← ClaudeAtlas

delegate-to-claude-codelisted

Call the Claude Code CLI (`claude`) as a delegated reviewer, second opinion, or edit worker. Use for Claude Code subagent-style delegation with `claude-rc-spawn`, `claude -p`, `--bg`, `--worktree`, `--tmux`, plan/read-only reviewers, acceptEdits/auto edit workers, JSON/stream-json capture, resume flows, and gotchas around permission modes, worktree cleanup, agent personas, and `--dangerously-skip-permissions`. For persistent `claude remote-control` repo servers, use the claude-remote-control-server skill instead.
T0mSIlver/skills · ★ 1 · AI & Automation · score 70
Install: claude install-skill T0mSIlver/skills
# Delegate to Claude Code (CLI) Run `claude` for a second opinion, review, or a delegated edit worker. Default path: `claude-rc-spawn` — interactive Claude in detached tmux with Remote Control, so the user can watch and steer from claude.ai/code. Use plain `claude -p` when machine-readable capture matters more than visibility. Model default: `--model opus --effort high` (`sonnet --effort low` for trivia). ## Happy path 1. **Write the brief** to `.agent-runs/$slug/prompt.md` (`slug="claude-$(date +%Y%m%d-%H%M%S)"; mkdir -p ".agent-runs/$slug"`): context, exact task, constraints, acceptance criteria, verification commands, output shape. Demand evidence (commands run, exit status, changed files, risks) and state explicitly: **verify synchronously — never end the turn waiting on a background monitor or watcher.** Workers otherwise park themselves "waiting for the monitor" and yield-loop. 2. **Launch.** Reviewer (read-only) via Remote Control tmux: ```bash claude-rc-spawn \ --cwd "$PWD" \ --prompt-file ".agent-runs/$slug/prompt.md" \ --name "$slug-review" --tmux-session "$slug-review" \ --permission-mode plan \ --model opus --effort high ``` Edit worker: same command, replacing `--permission-mode plan` with `--permission-mode acceptEdits`, renaming `--name`/`--tmux-session` to `"$slug-edit"`, and adding `--worktree "$slug"` (Claude creates the worktree and branch). Noninteractive fallback (JSON capture, no Remo