amElnagdy/delegate-skills

★ 2,127⑂ 172

Delegate a coding task to a separate coding agent CLI, review the diff, land the commit yourself — one per implementer.

About amElnagdy/delegate-skills

amElnagdy/delegate-skills is an open-source project on GitHub, mainly written in JavaScript. Delegate a coding task to a separate coding agent CLI, review the diff, land the commit yourself — one per implementer. It currently holds 2,127 stars and 172 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

AI Homed tracks it on the AI Coding Agents board.

GitHub Repository Details

Repository amElnagdy/delegate-skills · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

delegate-skills

relay smoke skills.sh License

Create your fleet of lanes. One orchestrator, the right implementer for every job.

Discover the implementer CLIs already installed on your machine, organize them into lanes like feature, tests, and ui, then delegate by lane — or choose one implementer directly. Either way, you keep the review and the commit.

npx skills add amElnagdy/delegate-skills

Then ask your orchestrating agent to create the fleet:

Use $delegate-setup to discover my installed implementer CLIs and create a fleet for feature, tests, and UI work.

Or delegate directly:

Use $codex-delegate to have Codex implement the refactor in services/billing/, then review and commit it.
flowchart LR
  S["$delegate-setup
discover → propose → approve"] --> F["Example fleet"] O["Your orchestrator"] --> F F -->|"feature"| A["OpenCode"] F -->|"tests"| B["Codex"] F -->|"ui"| C["Cursor"] A --> R["Review the diff
Run the gates"] B --> R C --> R R --> L["You land the commit"]

Choose how you delegate

Create a fleet

| Skill | Job | | --- | --- | | delegate-setup | Discover installed CLIs, propose fleet lanes, and write global or project config after you approve. Never dispatches work. |

A fleet is your set of named lanes. Each lane binds a kind of work to one implementer and optional dials such as model, effort, or variant. Setup discovers what is available, proposes a compact fleet, shows you the complete configuration, and writes only after explicit approval.

Configuration can apply globally or to one repository. Once it is ready, dispatch with the matching *-delegate skill and --lane . Explicit flags override lane dials, and the wrong implementer skill for a lane fails loud. Project config is content-bound to explicit setup approval, so cloned or edited project lanes fail closed until re-approved. See the delegate-fleet.v1 schema for paths, supported dials, and overlay behavior.

Delegate directly

Skip setup when you want one implementer or one-off dials. Pick the skill for a CLI you have:

| Skill | Implementer CLI | Write access (default) | Read-only run | Resume | | --- | --- | --- | --- | --- | | aider-delegate | Aider (aider) — any OpenAI-compatible endpoint, including a local or self-hosted model via --api-base | --yes-always with --no-suggest-shell-commands; no sandbox or permission modes; commits force-disabled [^aider] | --read-only (--dry-run) | --resume-last (chat history, per-worktree) | | agy-delegate | Google Antigravity (agy) | Antigravity's own permissions; bypass opt-in | --read-only (plan mode) | --resume-last, --conversation | | claude-delegate | Claude Code (claude) | acceptEdits + explicit tool surface | --read-only (plan mode) | --resume-last, --session | | cline-delegate | Cline (cline) | --auto-approve true in act mode; upstream sandbox not configured by the relay | --plan + --auto-approve false (relay-enforced pair) | — (headless JSON resume unsupported) | | codex-delegate | OpenAI Codex (codex) | --sandbox workspace-write | --read-only | --resume-last, --session | | commandcode-delegate | Command Code (cmd; cmdc on Windows) | --yolo — the only headless write state; no sandbox [^commandcode] | --read-only (withheld tools + plan) | --continue-last, --session | | cursor-delegate | Cursor Agent (cursor-agent) | --force; --no-force withholds command approval | --read-only (plan mode) | --resume-last, --session | | grok-delegate | Grok Build (grok) | workspace-scoped; --full-access opt-in | --read-only — best-effort [^grok] | --resume-last, --session | | kimi-delegate | Kimi Code (kimi) | auto permission mode, always | — [^none] | --resume-last, --session | | opencode-delegate | OpenCode (opencode) | agent build (--model required) | --read-only (agent plan) | --resume-last, --session | | pi-delegate | Pi (pi) | full local tools — no sandbox, no permission modes [^none]; project trust opt-in | --read-only (read,grep,find,ls) | --resume-last, --session | | omp-delegate | Oh My Pi (omp) | --yolo (tools.approvalMode: yolo); project .omp extras off unless --approve | --read-only (read,grep,glob) | --resume-last, --session | | qoder-delegate | Qoder (qodercli) | auto permission mode; bypass opt-in | --permission-mode plan | --resume-last, --resume | | vibe-delegate | Mistral Vibe (vibe) | accept-edits; --full-access opt-in | --plan-only (plan agent) | --resume-last, --session | | copilot-delegate | GitHub Copilot CLI (copilot) | --allow-all-tools opt-in; headless auto-deny otherwise | --read-only (--mode plan) | --resume-last, --session | | warp-delegate | Warp Agent CLI (oz) | full local tools — no sandbox, no permission modes [^none] | — [^none] | --conversation | | zcode-delegate | Z.AI ZCode (zcode) [^zcode] | --mode yolo | --read-only (plan mode) | --resume-last, --session |

[^commandcode]: Command Code's headless mode has two states and nothing between them: a -p run withholds the write, edit, and shell tools, and --yolo (alias --dangerously-skip-permissions) allows every tool anywhere the process can reach. --permission-mode auto-accept and --tools-all do not lift the write gate. So an implementation run is full-trust with no path restriction — the brief's path list is guidance, not containment. A worktree isolates the checkout, while a container or another OS-enforced sandbox is required when writes outside the target tree are unacceptable. touchedFiles is a review aid based on git status; it cannot show ignored files or writes outside the repository.

[^none]: No CLI-enforced read-only mode. touchedFiles and the diff are what you review against, not a guarantee: they are post-run git status in the workspace, so they cannot show ignored files, reverted edits, or writes outside the repository.

[^aider]: Aider is the one implementer here that commits by default. Its --auto-commits and --dirty-commits both default to True, the second of which commits your pre-existing uncommitted work before editing. The relay always passes --no-auto-commits and --no-dirty-commits, and neither is configurable through it.

[^grok]: grok cannot be prevented from writing headlessly. The relay reports a tri-state readOnlyViolation tripwire for detected Git-visible changes; it does not enforce or attribute them.

[^zcode]: ZCode ships its CLI inside the desktop app — there is no zcode on PATH, no npm package, and the public docs cover only the GUI. The relay resolves it from --zcode-path/ZCODE_CLI, then PATH, then the installed app bundle. Of ZCode's four documented modes only plan and yolo work headlessly: build and edit have no permission client there, so they block every write tool and exit 0 having changed nothing, and the relay rejects them rather than report that as success. ZCode offers --disallowed-tools but no --allowed-tools, so capability can be subtracted, never enumerated. Where zcode login fails with `OAuth response is not valid JSON, the key comes from ZCODE_API_KEY / ANTHROPIC_API_KEY / ZAI_API_KEY` instead.

Each skill name links to its SKILL.md, which owns that implementer's prerequisites, flags, and caveats. Building one for another CLI? Claim it first, then see CONTRIBUTING.md.

Install

Browse first:

npx skills add amElnagdy/delegate-skills --list

Install the package, the setup skill, or one implementer skill:

npx skills add amElnagdy/delegate-skills
npx skills add amElnagdy/delegate-skills --skill delegate-setup
npx skills add amElnagdy/delegate-skills --skill codex-delegate

To pin an installation, append an existing release tag as @vMAJOR.MINOR.PATCH. The Skills CLI installs by git ref, not by metadata.version in SKILL.md.

Install for a specific agent, or globally:

npx skills add amElnagdy/delegate-skills --skill codex-delegate --agent claude-code
npx skills add amElnagdy/delegate-skills --global

Works with any orchestrating agent the Skills CLI supports.

How delegation works

Whether you choose the implementer directly or through a fleet lane, every dispatch follows the same review-first loop:

1. Write a brief — self-contained task context; the implementer has no orchestrator chat history. 2. Dispatch it with the bundled relay.mjs. 3. Wait for completion — the relay writes a structured result.json. 4. Review the diff — re-run the project's gates yourself; pair with guard skills. 5. Land it — you commit, because committing belongs to the reviewer.

Use $claude-delegate to have a separate Claude Code session implement the parser fix, then review and commit it.
Use $opencode-delegate with --lane feature to implement the billing workflow, then review and commit it.
Use $codex-delegate to run this queue of migration tasks through Codex while I review each one.

Every relay speaks the same delegate-relay.result.v1 contract: status, exitCode, signal (with a host-killed hint when the OOM killer ends a run), the implementer's own final report, touchedFiles, and a session id where the CLI exposes one. Learn the loop once, swap the implementer freely.

You feel it when a bounded task — a migration, a mechanical refactor, a removal sweep — comes back as a clean diff with a structured report, and you land it after re-running the gates yourself instead of typing it all by hand.

What counts as an implementer skill

Four invariants hold for every *-delegate skill. They are also the bar for a new implementer:

not a gateway — an implementer whose work you can read with git diff. The relay launches its implementer CLI and git, plus the platform process launcher where a Windows shim or a process-tree kill needs one. the two footnotes above.

This is a loop, not a forwarder: a forwarder hands over one task and returns the output. Here you dispatch, poll, review, and land, across one task or a queue. It stays complementary to a vendor's own plugin or subagents — those coordinate inside one agent; this keeps the contract portable across orchestrators, with the commit on the reviewer.

delegate-setup is the setup-skill exception: it discovers CLIs and writes an approved fleet map, but never dispatches coding work.

Full checklist: CONTRIBUTING.md.

Requirements

implementer skill's SKILL.md carries its own install and login commands.

Trust and validation

This package is intentionally inspectable:

scripts/relay.mjs. The delegate-setup utility ships discover.mjs / config.mjs / lane.mjs (and a shared implementer table) instead of a relay — it never dispatches coding work. have no dependencies (Node built-ins only). Relays launch an implementer CLI and git, plus the platform process launcher/termination utility where a Windows shim or process-tree kill requires one. Discover may invoke installed CLIs for --version / model list probes (those CLIs may contact their own services). Read the script before you run it. Verification status — claims here are backed by runs, not assumptions.

True of every relay: argument handling, exit codes, result.json shape, supported resume mappings, and signal reporting are verified, along with each implementer-specific guard.

Per skill — platform, CLI version, and what the run exercised:

live headless --message-file runs against a stub OpenAI-compatible endpoint on loopback. Those runs covered: an applied edit left uncommitted, with a pre-existing dirty file still uncommitted, proving --no-auto-commits/--no-dirty-commits; no .gitignore written, proving --no-gitignore; a --read-only (--dry-run) run that left the target file byte-identical; an endpoint returning 401, where aider exits 0 and the relay reports failed with litellm.AuthenticationError; aider_unavailable/127 writing a result file; and usage errors exiting 2 without one. Review follow-ups were re-verified the same way: a successful run whose report says OPENAI_API_KEY three times still reports completed; a reused --out-dir seeded with another run's final.txt and result.json publishes neither; a plain exit 7 carries an error; and a --read-only run over a modified .aider.conf.yml plus generated history and tags-cache warns about exactly the config file. Not run against a hosted provider model or a real local inference server, and not run on macOS or Linux. file; --read-only --effort high run whose brief ordered an immediate file write, in a directory the permission rules allowed: agy refused, wrote nothing, and result.json reported effort high, readOnly true, readOnlyViolation false; argument validation for a bad --effort value and for --read-only combined with --dangerously-skip-permissions, both exiting 2; resume by --conversation with a delta brief. macOS, agy 1.0.16: headless edit run, --print= delivery, absolute --add-dir workspace pin. edit, with the Git tripwire true on a violation and false on a clean run; --session/--resume-last resume; claude_unavailable/127 and usage errors exiting 2 without a result file; deny rules and the shell sandbox blocking git commit, git push, git -C push, a nested claude, and a $HOME write. macOS, claude 2.1.271: --autocompact argument handling only. The installed CLI accepted auto, 400k, 1M, 200, and 200000 and rejected auto2, 50k, 2m, 99, 1000001, and 0 with exit 1, each observed through claude --autocompact --help, which validates the option and exits before any model call; claude 2.1.220 rejects the option itself with unknown option '--autocompact', which is the documented 2.1.221 floor. The relay's pass-through, resume re-pass, and result.json record are contract-tested against the smoke matrix; no delegated run has been dispatched with --autocompact set. --read-only touching nothing; --session resume applying a delta brief; usage errors exiting 2. A maintainer-run native macOS plan-mode smoke against the same version captured model, session, and usage with no touched files. resume; read-only is best-effort by measurement, hence the violation flag. Contributor-run native Windows check with grok 1.0.13: a no-edit dispatch using --trust-git-root on a drive rejected by Git's ownership check completed with the pre-existing untracked file reported and readOnlyViolation: false; that run used a real drive path whose spelling did not diverge, and the verdict is claimed for Windows paths whose spelling does not diverge — exact-head CI evidence for spelling-divergent temp paths lands with this repair. Ownership, nested-directory, linked-worktree, dirty-path, submodule, and unavailable-Git cases are covered by the grok-git-trust smoke module. resume paths — the relay's --session/--resume-last, which drive Kimi's own --session and --continue. session/provider/model/usage capture, and a --read-only run leaving a clean tree. Write, --session, and --resume-last runs are contributor-reported. argv (--yolo, --tools read,grep,glob, --no-extensions --no-skills --no-rules, --thinking), session header / message_end parsing, --approve omitting the project-trust flags, --continue resume, assistant stopReason: error reported as failed, omp_unavailable/127, and bounded --version preflight. Native Windows launch is a native omp.exe (no shell:true); that path is contract-tested via the smoke matrix's compiled fake, not against a live Oh My Pi install. explicit model and 32768-token context window, no commit. throwaway git repository had Command Code fix a remainder-dropping bug in a money-splitting function and add three tests; the project gate was re-run independently by the orchestrator (2 tests before, 5 passing after), the diff matched the brief with no writes outside the two named files, and HEAD was untouched — the relay does not commit, and the run did not either. A second dispatch with --session verified resume through the relay: a one-line delta brief amended exactly the comment it named, with the session id from the first run. A --read-only dispatch verified the other direction, returning readOnlyViolation: false on a clean tree. Also verified negatively: separate live runs confirmed --tools-all and --permission-mode auto-accept leave the headless write gate closed and only --yolo opens it.

Live running surfaced a CLI limitation the relay now handles. cmd ends a run with a run_end event embedding the whole conversation, then exits with process.exit, discarding whatever is still queued in its stdout pipe: both write runs lost their result line entirely (one cut ~8 KB into run_end, the other losing its last ~780 events). So nothing load-bearing is read from that tail — sessionId comes from run_start, the first line of the stream, and the report from the last message_end or its streamed deltas — the event log is written in batches so the relay drains the pipe as fast as it can, resultLine reports complete/truncated/absent so a consumer knows which fields are trustworthy. A complete non-success result converts a zero child exit to relay exit 1, while a lost result line falls back to the process exit code. Smoke cases pin that contract. On a long run the report itself can land in the discarded region. The diff is the deliverable, and a thin report means missing information, not a failed run.

Native Windows launch is contract-tested against the installed cmdc.cmd shape, including stdin brief delivery and the cmd.exe collision guard. A live native Windows Command Code run remains unverified; upstream recommends WSL for stable Windows use.

dispatch against a throwaway git repository had Warp add a function plus four assertions across two files; both project gates were re-run independently by the orchestrator, the diff matched the brief, and HEAD was untouched. Verified end to end: version preflight, launch, ndjson parsing (run_startedrunId/runUrl, conversation_startedconversationId), report extraction from {"type":"agent","text":…} events with agent_reasoning excluded, touchedFiles, and status: "completed" / exit 0. A second dispatch with --conversation verified resume: a delta brief saying only "the function you just added" — never naming it — produced exactly the right edit, with resumed: true and the conversation id preserved. Also observed on a prior run: touchedFiles: [] on a clean tree and exit 1 → status: "failed". Two caveats are documented in the skill rather than fixed, because they are Warp's behaviour and not the relay's: finalMessage is the agent's full narration rather than a distinct final-message event, and --cwd governed shell commands while the agent's file tool resolved bare relative paths against $HOME. --no-snapshot, --profile, --skill, and --mcp are contract-tested only. Git tripwire false; write run under yolo creating the briefed file and reporting it in touchedFiles; --session resume with an attached delta brief, which recalled the earlier turn; single-document --json parsing; --version preflight; discovery resolving the CLI from the app bundle rather than PATH; and environment-variable auth under all three names ZCode accepts — against an isolated home whose config carried no apiKey, a keyless run failed first, then ZAI_API_KEY, ZCODE_API_KEY, and ANTHROPIC_API_KEY each c

GitHub Stars & Activity

2,127Stars
172Forks
0Open issues
JavaScriptLanguage

GitHub Popularity

GitHub stars2,127
Forks172
Open issues0
Primary languageJavaScript
License-
Stars gained today0
Created-
Last pushed-

Trending History

Trending statusnot on today's boards

Related AI Projects

1

affaan-m / ECC

JavaScript★ 263,990⑂ 39,485
2

addyosmani / agent-skills

JavaScript★ 97,815⑂ 10,300
3

career-ops-hq / career-ops

JavaScript★ 72,283⑂ 13,607
4

asgeirtj / system_prompts_leaks

JavaScript★ 67,903⑂ 11,033
5

gsd-build / get-shit-done

JavaScript★ 64,491⑂ 5,449
6

zarazhangrui / frontend-slides

JavaScript★ 29,619⑂ 2,323
7

decolua / 9router

JavaScript★ 29,484⑂ 5,505
8

jarrodwatts / claude-hud

JavaScript★ 28,078⑂ 1,302

More AI Rankings