claude-delegate
Skill2.3k starsChanged 4 months agoMITView on GitHub
Delegate a coding task to a separate Claude Code CLI process or another Claude session as an implementer, then review its diff and land it yourself. Use only when the user explicitly asks to delegate implementation to Claude Code, another Claude session, or the `claude` CLI — for example, "have another Claude implement this", "delegate this to Claude Code", or "run this queue through a separate Claude session." Do not trigger merely because the current orchestrator is Claude, and do not use when the user asks the current Claude to implement directly without delegation.
- Commits and pushes
1 other project uses a version of this.
Trending
More talk lately.about the whole repository
Most recently taken up by
- StoicEnso/openclaw-claude-delegatetheir own version, first seen Apr 19, 2026
Who's talking about amElnagdy/delegate-skills
- @github-trending-js.bsky.social“📦 amElnagdy / delegate-skills ⭐ 1,766 (+53) 🗒 JavaScript Delegate a coding task to a separate coding …”Bluesky · Sep 7, 2026 · 2 likes
- A Hacker News story“delegate-skills”Hacker News · Aug 12, 2026 · 2 points
- sudosubin/agents.nix“agent-skills.github.amelnagdy.delegate-skills: v0.5.0 → refs/tags/v0.5.0”GitHub · Oct 3, 2026
- theknight87/CNG-Station-Management“Vendor delegate-skills (18 skills) into .claude/skills”GitHub · Oct 3, 2026
- ProSkillsMD/proskills“[Candidate] amelnagdy/delegate-skills/skills/grok-delegate - grok-delegate”GitHub · Sep 27, 2026
The biggest 5 of 15 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 15
Talked about on GitHub, Hacker News and Bluesky (15 times).
On GitHub · 13
- Oct 3, 2026agent-skills.github.amelnagdy.delegate-skills: v0.5.0 → refs/tags/v0.5.0 — sudosubin/agents.nix0 reactions
- Oct 3, 2026Vendor delegate-skills (18 skills) into .claude/skills — theknight87/CNG-Station-Management0 reactions · 1 comment
- Sep 27, 2026[Candidate] amelnagdy/delegate-skills/skills/grok-delegate - grok-delegate — ProSkillsMD/proskills0 reactions · 1 comment
- Sep 26, 2026[Candidate] amelnagdy/delegate-skills/skills/delegate-setup - delegate-setup — ProSkillsMD/proskills0 reactions · 1 comment
- Sep 26, 2026[Candidate] amelnagdy/delegate-skills/skills/cursor-delegate - cursor-delegate — ProSkillsMD/proskills0 reactions · 1 comment
8 more on GitHub
- Sep 26, 2026[Candidate] amelnagdy/delegate-skills/skills/cline-delegate - cline-delegate — ProSkillsMD/proskills0 reactions · 1 comment
- Sep 26, 2026[Candidate] amelnagdy/delegate-skills/skills/claude-delegate - claude-delegate — ProSkillsMD/proskills0 reactions · 1 comment
- Sep 26, 2026[Candidate] amelnagdy/delegate-skills/skills/aider-delegate - aider-delegate — ProSkillsMD/proskills0 reactions · 1 comment
- Sep 26, 2026[Candidate] amelnagdy/delegate-skills/skills/agy-delegate - agy-delegate — ProSkillsMD/proskills0 reactions · 1 comment
- Sep 25, 2026agent-skills.github.amelnagdy.delegate-skills: init at 0.5.0 — sudosubin/agents.nix0 reactions
- Sep 21, 2026Add a headless lane mechanic to /coordinator via delegate-skills relays (Codex/OpenCode), keep herdr panes for watched lanes — Observerstudio/coordinator0 reactions
- Aug 26, 2026feat: add 18 delegate skills docs-only from amElnagdy/delegate-skills — sickn33/agentic-awesome-skills0 reactions · 1 comment
- Aug 25, 2026feat: add 18 delegate skills from amElnagdy/delegate-skills — sickn33/agentic-awesome-skills0 reactions · 1 comment
On Hacker News · 1
- Aug 12, 2026delegate-skills2 points
On Bluesky · 1
- Sep 7, 2026📦 amElnagdy / delegate-skills ⭐ 1,766 (+53) 🗒 JavaScript Delegate a coding task to a separate coding agent CLI, review the diff, land the… — @github-trending-js.bsky.social2 likes and reposts
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- StoicEnso/openclaw-claude-delegate★ 0same name
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.
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agy-delegateSkill
- aider-delegateSkill
- cline-delegateSkill
- codex-delegateSkill
- commandcode-delegateSkill
- copilot-delegateSkill
- cursor-delegateSkill
- delegate-setupSkill
- grok-delegateSkill
- kimi-delegateSkill
- omp-delegateSkill
- opencode-delegateSkill
- pi-delegateSkill
- qoder-delegateSkill
- vibe-delegateSkill
- warp-delegateSkill
- zcode-delegateSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 91
Read finalMessage, touchedFiles, resultSubtype, and the raw artifact paths from result.json.
- Distinctive: line 95
Treat the implementer's report and gate outcomes as claims:
- Very specific: line 99
Read the complete diff against the brief, starting with touchedFiles.
- Distinctive: line 101
Run relevant guard skills if installed.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Claude Delegate
You are the orchestrator. Delegate one bounded coding task to a separate implementer — a Claude Code CLI session — then review what it produced and land it yourself. You write the brief and own the judgment; the separate Claude session edits the working tree; you verify and commit.
This skill is not a signal for the current Claude to implement directly. Use it only after the human explicitly asks for delegation to another Claude Code process or session.
When not to use this
- The human asked the current agent to implement the task directly.
- The task is small enough to do inline and the human did not request delegation.
- The
claudeCLI is missing or unauthenticated (claude auth status). - The task needs a stronger host boundary than Claude Code's tool permissions and shell-only sandbox provide. Use an isolated container or VM for that requirement.
Prerequisites
claude --versionsucceeds.claude auth statusreports an authenticated session. On macOS the live credentials sit in the login Keychain; when the orchestrator's own sandbox blocks Keychain access (Codex's sandbox does),claudefalls back to a possibly stale credentials file and reportsloggedIn: falseeven though the login is valid. Re-run the check — and the dispatch itself — with that sandbox escalated or outside it before concluding the CLI is unauthenticated.- The target repository is the directory passed with
--cd. - On Linux/WSL2, Claude's sandbox dependencies are installed. The normal relay profile is configured to fail when the sandbox is unavailable instead of silently running shell commands unsandboxed. Existing merged settings can still affect the effective boundary.
The loop
1. Write the brief
The separate session has no orchestrator chat history. It receives the brief on stdin and can inspect the target working tree.
Claude Code automatically discovers the target project's CLAUDE.md and normal local Claude
configuration because the relay does not use --bare. It does not generically auto-load
AGENTS.md. Read AGENTS.md yourself and copy every load-bearing constraint and the real gate
commands into the brief. Tell the implementer not to commit. Keep one task per brief.
Template and details: references/writing-the-brief.md.
2. Dispatch
node "<skill-dir>/scripts/relay.mjs" --brief brief.txt --cd /path/to/repo
# review/diagnosis only: add --read-only
# continue the latest session: add --resume-last
# continue the recorded session: add --session <id>
# choose limits: add --max-turns 40 --max-budget-usd 10
# set the auto-compact window: add --autocompact 400k
# hard relay deadline: add --timeout 2h
# inspect every option: node .../relay.mjs --help<skill-dir> is this installed skill directory, the folder containing this SKILL.md.
The relay runs claude -p --output-format stream-json --verbose, sends the brief through stdin, and
writes artifacts under the system temp directory by default. It never uses --bg or --bare, and it
never commits. See references/dispatch-and-poll.md.
--autocompact <auto|tokens> passes Claude Code's auto-compact window setting on every new or resumed invocation, and needs Claude Code 2.1.221 or newer — older builds fail the dispatch with unknown option '--autocompact'. The installed CLI owns the accepted range (auto, or 100k–1M tokens); the relay records the requested value but does not claim that Claude applied or enforced it.
3. Wait
The relay blocks until Claude exits. Use the orchestrator's background-command facility, or run it in
the foreground and wait. Completion means the process exited and result.json exists.
- A pre-run usage error exits 2 and writes no
result.json. - A missing
claudeexits 127 and writesstatus: "claude_unavailable". - Timeout and caught relay signals terminate the whole implementer process tree and preserve an outcome artifact.
Read finalMessage, touchedFiles, resultSubtype, and the raw artifact paths from result.json.
4. Review
Treat the implementer's report and gate outcomes as claims:
- Review edits to existing tests before a green gate means anything.
- Re-run the project's actual gates yourself.
- Read the complete diff against the brief, starting with
touchedFiles. - Inspect untracked and staged content as well as the ordinary diff.
- Run relevant guard skills if installed.
Full checklist: references/review-and-land.md.
5. Land
The orchestrator commits only after the gates pass and the diff holds. For rework, resume the same Claude session with a delta brief:
echo "Keep the implementation, replace the mocked DB test with the migrated fixture, and remove the
unused import." | node "<skill-dir>/scripts/relay.mjs" --session <id> --cd /path/to/repoReview a resumed run exactly like the first run.
Permission profiles
The normal profile is deliberately explicit:
acceptEditspermission mode.- Built-in tools restricted to Read, Glob, Grep, Edit, Write, and the platform shell.
- On macOS, Linux, and WSL2, Claude's shell sandbox is enabled with startup failure on missing dependencies and no unsandboxed retry. Commands that stay sandboxed are auto-approved so ordinary gates can run headlessly. The sandbox governs shell processes and their children only; merged local or managed sandbox settings can add effective paths or exclusions.
- Configured MCP discovery and Claude.ai connectors are disabled, all MCP tools are denied, and
skills, commands, and Claude's Agent tool are unavailable to the child. Project
CLAUDE.md, hooks, normal authentication, session persistence, and other local settings still load. - String rules deny common direct shell forms of
git commit,git push, and nestedclaude, plus any command containingclaude-delegate. Aliases, scripts, and wrappers can bypass them, so they are only a speed bump; the brief's no-commit instruction and orchestrator review remain the boundary.
Native Windows does not support Claude's shell sandbox. The relay restricts the tool surface and
pre-approves PowerShell so the run remains non-interactive, but that shell is not OS-isolated. Native
claude.exe and npm claude.cmd launch paths are implemented; Windows verification is pending.
--read-only uses plan mode with only Read, Glob, and Grep. It removes edit, write, and shell paths,
then compares parsed git porcelain and fingerprints the working-tree identity and index entries of
Git-visible paths that were already dirty.
readOnlyViolation is true when either signal proves a change, false when coverage is complete and
detects none, and null when coverage is incomplete. This is a reporting tripwire, not an OS boundary:
ignored paths and perfect restores are outside it, local hooks can write, and concurrent changes cannot
be attributed to Claude.
--dangerously-skip-permissions is an explicit opt-in to Claude's bypassPermissions mode. The
restricted tool surface, direct commit/push deny rules, and supported-platform shell sandbox remain,
but direct file tools can cross normal permission boundaries. Use it only with the human's explicit
acceptance.
Complementary to native Claude features
Claude subagents, agent teams, and background sessions are useful when the current Claude environment is already the orchestrator and native coordination is the goal. This skill is complementary: it provides a cross-orchestrator contract — self-contained brief → dispatch → artifacts → review → land — and keeps the commit with the orchestrator.
References
- references/writing-the-brief.md — context,
CLAUDE.mdversusAGENTS.md, real gates, report contract, and delta briefs. - references/dispatch-and-poll.md — flags, profiles, artifacts,
result.json, polling, and failure recovery. - references/review-and-land.md — generated-code review, the commit boundary, and session rework.
- references/multi-task-queues.md — sequential queues, progress tracking, constraint carry-forward, and final coherence.
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.

