delegate
Skill14 starsChanged 3 months agoMITView on GitHub
Delegate implementation to Stuntman's headless workers (Claude via proxy, opencode, Codex, Antigravity, or Muse). The current host plans, reviews the diff, verifies, and iterates. Use when asked to use Stuntman to delegate a task, send work to a stunt double, or run the delegate skill.
- Installs packages
36 other projects use a version of this.
Adopted by
Most recently taken up by
- snjrusmn/multi-model-clitheir own version, first seen Oct 7, 2026
- andreilungeanu/cursor-delegate-mcptheir own version, first seen Oct 5, 2026
- Magnus-Gille/claude-skillstheir own version, first seen Oct 5, 2026
- Integralist/agent-skillstheir own version, first seen Oct 4, 2026
- ShalomPrinz/go2-dispatchertheir own version, first seen Oct 4, 2026
- mifunedev/skillstheir own version, first seen Oct 3, 2026
Used with
Projects with it also use release.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkillrelease
Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).
Also in 3 projects that use this
Other versions36 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 36
- Encod3d-Sec/TORCH★ 329same name
- prassanna-ravishankar/repowire★ 265same name
- HurricaHjz/second-yourself★ 105same name
- DannyMac180/astrable★ 42same name
- victor-falcon/skills★ 14same name
- gyroid-eth/orrery-telemetry★ 9same name
- bitflight-devops/hallucination-detector★ 8same name
- Magnus-Gille/claude-skills★ 5same name
- AbdurRafay2004/handoff★ 4same name
- andreilungeanu/cursor-delegate-mcp★ 4same name
26 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 7 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 33 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Read host and tool setup first.
- Very specific: line 19
Use "$STUNT" everywhere below.
- Very specific: line 23
If the user specifies a worker, set STUNTMAN_WORKER for every exec and resume call.
- Very specific: line 32
If unreachable, start fcc-server with the host's background execution tool, wait a few seconds, re-check.
- Distinctive: line 66
Keep task units small. For large work, split into multiple sequential delegations, reviewing each before the next.
- Distinctive: line 77
Use the host's supported long-running process mechanism.
- Very specific: line 85
If the repo is dirty, snapshot the baseline first (git status --porcelain > /tmp/stunt-baseline.txt, plus git diff of files you expect the …
- Distinctive: line 88
Prefer delegating from a clean tree or a branch.
- Distinctive: line 94
Check against the spec: correctness, edge cases, style match, no scope creep, no hallucinated APIs, no files touched beyond the spec.
- Distinctive: line 96
Run the verification commands yourself — never trust the worker's claim.
- Distinctive: line 100
If review finds problems, send feedback to the SAME worker session:
- Very specific: line 115
Always include a cost line, summing usage/cost_usd across all worker calls (exec + resumes):
- Distinctive: line 122
Never infer orchestrator tokens from the worker totals.
“Common” is measured: kept by at least 6 in 10 of the 33 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
stuntman: plan → execute → review
Read host and tool setup first. You, in Claude Code or Codex,
are the architect and reviewer. A
worker model (stunt) is the executor. Never implement the task yourself
unless the worker fails twice.
Resolve the worker command
STUNT="$STUNTMAN_ROOT/bin/stunt"Use "$STUNT" everywhere below. The worker backend is $STUNTMAN_WORKER
(claude via local proxy — the default —, opencode, codex, agy, or
muse).
If the user specifies a worker, set STUNTMAN_WORKER for every exec and resume
call. Otherwise preserve their environment/default. Save the backend and any
model pin with the session ID so review resumes the same provider. Running in
Codex does not automatically select Codex as the worker.
Preflight
- Backend
claude(default): check the proxy —curl -s -m 2 http://localhost:8082/v1/models -H "x-api-key: freecc" -o /dev/null -w "%{http_code}". If unreachable, startfcc-serverwith the host's background execution tool, wait a few seconds, re-check. If still down, tell the user and stop. - Backend
opencode: checkopencode --version. If missing, tell the user to install it (brew install sst/tap/opencode) and stop. - Backend
codex: checkcodex --versionandcodex login status. If the CLI is missing, tell the user to install it (npm install -g @openai/codex) and stop. If not logged in, tell the user to runcodex loginand stop. - Backend
agy: checkagy --version. If missing, tell the user to install Google Antigravity (theagyCLI ships with it;agy installwires the PATH) and stop. - Backend
muse: checkmuse --version. If missing, tell the user to install Meta's Muse Code CLI and runmuse login, then stop.
1. PLAN
Explore the codebase yourself and write a self-contained spec to a temp file. The worker has NO access to this conversation, so the spec must include:
- Exact goal and acceptance criteria.
- Files to create/modify with absolute or repo-relative paths, and precisely what changes to make (signatures, behavior, edge cases). Decide everything yourself — leave the worker zero design decisions. Weak models executing great instructions beat strong models executing vague ones.
- Constraints: match existing style, no extra refactors, no new dependencies unless listed, never run git write commands.
- Verification: the exact commands that must pass (tests, build, lint), including any env activation they need.
- Include: "You are the Stuntman executor. Implement directly; do not delegate or launch more Stuntman workers." This avoids recursive delegation when the worker also has Stuntman installed.
- End with: "When done, run the verification commands and fix failures before finishing. Reply with a summary of changed files."
Keep task units small. For large work, split into multiple sequential delegations, reviewing each before the next.
2. EXECUTE (the stunt double)
From the project root:
"$STUNT" exec "$(cat /tmp/stunt-spec.md)"- Use the host's supported long-running process mechanism; workers can be slow. Retain the process handle and capture stdout/stderr to task-specific files when needed. An output file is not complete until the process exits. Never start a replacement worker just because the first poll returned no output.
- Output is one JSON line:
{"backend", "session_id", "result", "is_error", "usage", "cost_usd"}. Capturesession_id(needed for iteration) and keepusage/cost_usdfrom every exec/resume call for the final report. - If the repo is dirty, snapshot the baseline first
(
git status --porcelain > /tmp/stunt-baseline.txt, plusgit diffof files you expect the worker to touch) so review covers only worker changes. Prefer delegating from a clean tree or a branch.
3. REVIEW (you — the second place expensive tokens go)
git diff(against the baseline if the tree was dirty) and read every changed file.- Check against the spec: correctness, edge cases, style match, no scope creep, no hallucinated APIs, no files touched beyond the spec.
- Run the verification commands yourself — never trust the worker's claim.
4. ITERATE or TAKE OVER
If review finds problems, send feedback to the SAME worker session:
"$STUNT" resume <session_id> "Code review feedback — fix these: ..."Maximum 2 feedback rounds. If still broken after that, the task qualifies as "heavy": fix the remaining issues yourself directly, and say so in the report.
Report to the user
End with: what was delegated, which backend/model executed, what review found, iterations needed, and verification results. Be explicit about anything you had to fix yourself.
Always include a cost line, summing usage/cost_usd across all worker
calls (exec + resumes):
Worker: 14,162 tokens (8,166 out) · $0.0002 · Orchestrator: planning + review
For orchestrator usage, use the current host's session accounting. Claude Code
offers /cost; Codex offers /status for limits and its own usage telemetry.
Never infer orchestrator tokens from the worker totals.
Notes
- Backend
claude= headless Claude Code + isolatedCLAUDE_CONFIG_DIR=~/.claude-stuntman+ a local Anthropic-compatible proxy (free-claude-code on :8082). Backendopencodetalks to its provider directly — no proxy. Backendcodexrunscodex exec/codex exec resumedirectly — no proxy, no isolated config; it reuses the user's owncodex login(ChatGPT subscription or API key), same as runningcodexinteractively, so worker sessions land in the samecodex resumehistory. Backendagyruns Google's Antigravity CLI headlessly (agy -p), reusing the user's own Antigravity subscription login — its roster (agy models) spans Gemini 3.x, Claude Sonnet/Opus, and GPT-OSS. The wrapper passes--add-dir "$PWD"(without it agy edits its own scratch workspace, not the project) — so specs for agy should use absolute paths. Backendmuseruns Meta's Muse Code CLI headlessly (muse exec --json; resume ismuse exec --session-id <id>— plainmuse resumeis TUI-only), reusing the user's ownmuse login; it emits no token usage, so usage reads zeros. Grok and Kimi models route through theopencodebackend (xai/…/moonshotai/…with the matching key). Worker usage is recorded separately from the orchestrator's per-call accounting. A worker using the same subscription as the host can share its quota. Pin a model withSTUNTMAN_MODEL(claude: proxy model id; opencode:provider/model; codex: a model id accepted bycodex exec -m; agy: an id fromagy models; muse: an id accepted bymuse exec --model). - The worker runs without permission prompts (claude and agy:
--dangerously-skip-permissions; opencode: its default run policy; codex:-s workspace-write, sandboxed to the project directory but no per-action approval; muse:--approval-mode neverwith muse's OS sandbox left ON) — only delegate within trusted project directories. - Codex, agy, and muse report
cost_usd: 0because this wrapper has no dollar accounting for them. This does not mean free execution; Codex can also use metered API-key billing. Muse additionally reports zero token usage (its event stream has no usage data) — say "usage not reported by muse" in the cost line.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

