delegate-agent
Skill0 starsChanged 29 days agoApache-2.0View on GitHub
Spawn, discover, monitor, steer, cancel, and resume durable background CLI coding agents through a backend-neutral interface. Use when delegating repository work to Codex today or when implementing another backend such as Claude Code, while retaining model selection, progress inspection, mailbox steering, concurrent isolated runs, and follow-up turns without a daemon.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- kpatdev/my-skillstheir own version, first seen Oct 26, 2026
- hyperlist/feishu-multi-agenttheir own version, first seen Oct 8, 2026
- kpatdev/skillstheir own version, first seen Aug 8, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- hyperlist/feishu-multi-agent★ 273same name
- kpatdev/my-skills★ 0same name
- kpatdev/skills★ 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 repository61 other files it gives its agents.
- AGENTS.mdAGENTS.md
- Contact DeduperSkill
- Csv CleanerSkill
- Expense CategorizerSkill
- Invoice ProcessorSkill
- Json WranglerSkill
- Log AnalyzerSkill
- Pdf ExtractorSkill
- Report Chart BuilderSkill
- Spreadsheet AnalyzerSkill
- Survey SummarizerSkill
- Approval Request TriageSkill
- Backup RunnerSkill
- Channel BroadcastSkill
- Dependency AuditorSkill
- Memory KeeperSkill
- Repo OnboarderSkill
- Scheduled Job DoctorSkill
- Web Form FillerSkill
- Web ScraperSkill
- Website MonitorSkill
- Brain Dump To TasksSkill
- Calendar Day PlannerSkill
- Daily BriefingSkill
- Email TriageSkill
- Follow Up TrackerSkill
- Meeting MinutesSkill
- Recurring Digest SetupSkill
- Standup ReporterSkill
- Task Board GroomerSkill
- Weekly ReviewSkill
- Arxiv Paper ScannerSkill
- Comparison MatrixSkill
- Competitor WatchSkill
- Deep Research BriefSkill
- Fact CheckerSkill
- News DigestSkill
- People Company BriefSkill
- Product Price ScoutSkill
- Stock Price CheckerSkill
- Trending Topic DigestSkill
- Senior Software EngineerSkill
- Skill CreatorSkill
- Social CommentsSkill
- Social CoreSkill
- Social DMSkill
- Social EngageSkill
- Social HealthSkill
- Social InsightSkill
- Social ProspectSkill
- Social WatchSkill
- Blog Post WriterSkill
- Documentation WriterSkill
- Email DrafterSkill
- Executive SummarySkill
- Press Release WriterSkill
- Proposal WriterSkill
- Release Notes WriterSkill
- Social Media RepurposerSkill
- Tone RewriterSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 0 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use scripts/agent.py. Both the Codex and Claude Code backends are implemented.
- Very specific: line 18
Never assume a backend is installed or usable.
- Very specific: line 28
Every spawn belongs to a group.
- Very specific: line 32
Prefer supervise <group-id> --after <cursor> --timeout 30 for multiple workers.
- Very specific: line 33
Use --until action,failed,warning,complete to select wake conditions.
- Very specific: line 35
Use group status <group-id> for aggregate state and group list for discovery.
- Very specific: line 47
Treat next_cursor as durable caller state.
- Very specific: line 62
Add --interrupt only for an urgent direction change.
- Very specific: line 68
Use separate worktrees for parallel write-capable agents.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Delegate Agent
Use scripts/agent.py. Both the Codex and Claude Code backends are implemented; each reports usable: true when its CLI is installed. Always confirm with backends before spawning.
Discover
python3 <skill-dir>/scripts/agent.py backends
python3 <skill-dir>/scripts/agent.py backend codex
python3 <skill-dir>/scripts/agent.py models --backend codexNever assume a backend is installed or usable. Pass --backend explicitly when spawning.
Spawn
python3 <skill-dir>/scripts/agent.py spawn --backend codex --cwd <repo> --role <role> --complexity <level> --prompt "<task>"Retain the returned agent_id. Use workspace-write for implementation and read-only for inspection. Full access requires explicit authorization and DELEGATE_AGENT_ALLOW_DANGER=1.
Every spawn belongs to a group. Omit --group to create one automatically, or pass a group returned by group create --name "<workflow>". Use the same group for related Codex and Claude workers. Workers retain private mailboxes; the group stores aggregate events and coordinator routing metadata.
Supervise
- Prefer
supervise <group-id> --after <cursor> --timeout 30for multiple workers. By default it wakes for parent action, worker failure/interruption, supervision warnings, or group completion; inspectreason,timed_out,truncated, andnext_cursor. - Use
--until action,failed,warning,completeto select wake conditions. Use--followto wait without a timeout when the caller can keep one shell command attached. When truncated, call again with the returned cursor so no events are skipped. - Inspect
action_requiredand answer questions withgroup respond <group-id> <request-id> "<answer>". - Use
group status <group-id>for aggregate state andgroup listfor discovery. wait <agent-id> --timeout 30events <agent-id> --after <cursor>status <agent-id>respond <agent-id> <request-id> "<answer>"whenpending_requestis present
A group is complete only when every worker is terminal and no coordinator response is pending. Direct worker-to-worker communication is intentionally unsupported; the caller forwards findings using steer.
Message semantics
input.requestedis worker-to-coordinator communication that requires a response. It wakes supervision withreason: action_required; read the request fromcoordinator_inbox, then usegroup respond.agent.messageis informational output, andprogress.reportedis a milestone. Both appear ineventsbut do not wake supervision by themselves. A finalagent.messagenormally arrives with worker completion, which wakes withreason: complete.- Treat
next_cursoras durable caller state. Start with--after 0, process every returned event, savenext_cursor, and pass it to the next call. Iftruncated: true, call again immediately with that cursor before waiting for new activity.
Typical coordinator loop:
supervise GROUP --after CURSOR --follow
process events and save next_cursor
if reason == action_required: group respond GROUP REQUEST_ID ANSWER
if reason is complete or worker_failed: inspect result/status
otherwise: supervise again using the saved cursorSteer and Continue
steer <agent-id> "<instruction>"queues checkpoint steering.- Add
--interruptonly for an urgent direction change. - Steering a terminal worker returns
delivery: next_resume; the instruction is durable but will not run until resume. Interrupting a terminal worker is rejected. resume <agent-id> --prompt "<follow-up>"continues the originating backend session.cancel <agent-id>stops active work.result <agent-id>returns the final captured message.
Use separate worktrees for parallel write-capable agents. Load references/protocol.md when implementing a new backend or diagnosing lifecycle behavior.
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.

