From peeragent
Delegate arbitrary task work — implementation, research, review, debugging, design, doc updates, anything — to another local coding agent through the bundled peeragent wrapper. Use when the host assistant wants a peer agent to take a focused pass on a task in the current repository. Targets: Codex (default), Claude Code, Gemini through Antigravity. Free-form task text; the wrapper returns a JSON result the host summarizes for the user. Resolve the wrapper from the plugin location before invoking; do not assume `peeragent` is on PATH.
How this skill is triggered — by the user, by Claude, or both
Slash command
/peeragent:peerThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Delegate a focused task pass to a different local coding agent while you
Delegate a focused task pass to a different local coding agent while you stay responsible for the user conversation. Use this any time a peer agent would do the work better, faster, or with usefully different blind spots — implementation, research, review, debugging, refactors, doc updates, build fixes. Not just "implementation" despite the historical name.
Do not assume peeragent is on PATH. Resolve the bundled wrapper before
the first call and use that path for every invocation:
PEERAGENT_BIN names an executable, use it.bin/peeragent.bin/peeragent.peeragent only if the bundled path cannot be found and
command -v peeragent succeeds.If a bare peeragent call fails with command not found, retry once with
the bundled plugin path before reporting failure.
For invocations that launch or control a peer CLI (--agent ..., --async,
or --cancel), run the wrapper with the host harness's outside-sandbox command
mode so it inherits the developer machine's normal network, auth, hook, and
process environment. In Codex, use the command tool's escalated/outside-sandbox
execution mode for that wrapper invocation. Pure local --status and
--result reads may stay sandboxed when the job directory is readable. This is
separate from peeragent's --full-access flag: do not pass --full-access
unless the user explicitly asked for that target permission mode.
Pass the user's task text to the wrapper:
<resolved-peeragent-bin> --agent <codex|claude|gemini> "$ARGUMENTS"
--agent defaults to codex if omitted. The wrapper runs in the current
repository, blocks until the peer finishes, and returns JSON. Read the
JSON before responding to the user.
The right peer is the agent you are not, unless the user named one.
--agent codex. Use
--agent gemini when the user asks for Gemini or when Codex isn't
available.--agent claude. Use
--agent gemini when the user asks for Gemini or when Claude isn't
available.Different blind spots are the point. Their misses are your catches and vice versa.
Match depth to the task. Routine work takes the defaults; bump up only when the work is dense or the stakes are high.
| Target | Default | Lightweight | Deeper pass |
|---|---|---|---|
--agent codex | --effort high | --effort medium | --effort xhigh |
--agent claude | --model sonnet --effort xhigh | --model haiku --effort high | --model opus --effort xhigh |
--agent gemini | fixed Gemini 3.5 (no flag needed) | — | — |
Claude rejects --effort medium. Gemini ignores --effort and --model
beyond accepting --model gemini-3.5 as a no-op for explicit metadata.
The host delegates task intent; the peer performs the focused pass. The task text is arbitrary natural language, not shell syntax. Don't split the request into many wrapper calls unless the user explicitly asked for separate passes.
Default is blocking. Wait for the command to return, then summarize the
result using the wrapper's status, summary, changed_files,
verification, and details fields.
Claude Opus runs, especially with --effort xhigh, may take 10 minutes or
longer to finish. A slow or quiet Opus reply is not by itself evidence of a
hung process; keep waiting unless the wrapper exits, reports failure, or there
is concrete evidence the process is stuck.
Include a no-recursion instruction in every handoff. Tell the peer
explicitly not to reach for peeragent's own peer or peer-review
skills — and not to run the peeragent wrapper — to delegate the work back
out to another local coding agent. That would loop host → peer → host and
burn budget. The peer is the endpoint of this delegation. It may freely use
its own harness's internal sub-agents (Codex/Claude/Gemini built-in task or
sub-agent tooling) for parallel or focused passes; the prohibition is only
on recursive peeragent calls. A short line in the prompt is enough, e.g.
"Do this work directly — do not call the peeragent peer/peer-review skills
to hand it off again; use your own harness's sub-agents if you need help."
status: success — report what changed and what verification ran.status: blocked — explain the blocker; continue from the host side.status: failed — surface the failure reason and useful log details.
3 (or, in --text mode, a "no prebuilt binary for this
platform" message), peeragent has no committed binary for the user's
OS/arch. Prebuilt binaries cover linux/darwin on amd64/arm64. Tell the
user: on those platforms, reinstall the plugin or download the matching
archive from https://github.com/nklisch/peeragent/releases; on any other
platform, install from source (requires Go) with
go install github.com/nklisch/peeragent/cmd/peeragent@latest and set
PEERAGENT_BIN. If the
platform is misdetected, PEERAGENT_TARGET_OVERRIDE=<goos>-<goarch>
selects a present binary. Do not retry in a loop.status: running — only with --async; report the job id and how to
check it.status: cancelled — only after --cancel; report cleanly.Do not claim success unless the wrapper reports success.
Use advanced modes only when the request calls for them:
--full-access — run the peer CLI without sandboxing. Never implied;
ask the user first if the wrapper reports full access is needed.--worktree — reserved; returns a clear failure today.--profile <name> — Codex profile override.--resume <agent-session> — continue a prior target-agent session when
the previous result included metadata.agent_session. Use it for continuity
inside one multi-pass workflow; omit it for an independent second opinion.--cwd <path> — repo directory the peer runs in.--prompt-file <path> — read large prompts from a file.--async — start the peer as a background job; the wrapper returns a
job_id immediately with status: running.--status <job-id> — check an async job.--result <job-id> — fetch a finished async job's final result.--cancel <job-id> — best-effort cancel.--text / --json — output format; JSON is default.failed or
blocked results — diagnose first. On exit code 3, tell the user to
install a prebuilt binary (linux/darwin amd64/arm64) or build from source
with Go; do not retry.peer/peer-review skills (or the peeragent wrapper)
back out to another agent. The peer's own internal harness sub-agents are
fine; recursive peeragent delegation is not./peer-review (the looping cross-model review
skill) over a one-shot peer call.Provides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub nklisch/peeragent