agent-dispatch
Skill2 starsChanged 23 days agoMITView on GitHub
Domain-aware subagent dispatcher. Maps task → domain (research / build / draft / verify / ops) → recommended subagent_type + tool boundaries + briefing scaffold. Adapted from a phase-based activation pattern.
- Installs packages
8 other projects use a version of this.
Adopted by
Most recently taken up by
- Adonis0123/adonis-skillstheir own version, first seen Nov 1, 2026
- fanglinwei/agent-dispatchtheir own version, first seen Oct 25, 2026
- GGGODLIN/gggodlin-cc-harnesstheir own version, first seen Oct 20, 2026
- NinjaSln-labs/agent-skillstheir own version, first seen Oct 13, 2026
- Octonove/agent-dispatchtheir own version, first seen Oct 9, 2026
- jjuniper-dev/skillstheir own version, first seen Sep 27, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- GGGODLIN/gggodlin-cc-harness★ 73same name
- Adonis0123/adonis-skills★ 4same name
- userFRM/agent-dispatch★ 4same name
- jjuniper-dev/skills★ 2same name
- Octonove/agent-dispatch★ 2same name
- NinjaSln-labs/agent-skills★ 1same name
- SwimmingLiu/easy-skills★ 1same name
- fanglinwei/agent-dispatch★ 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 repository57 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- advisorSkill
- arenaSkill
- audit-pypi-model-packageSkill
- branching-workflowSkill
- code-reviewSkill
- criticSkill
- cron-child-oauth-auditSkill
- daily-forestSkill
- deep-researchSkill
- diagnose-cron-timeoutSkill
- dreamingSkill
- eod-summarySkill
- filingSkill
- forest-synthesisSkill
- goalsSkill
- graph-hygieneSkill
- ideaSkill
- inline-tagsSkill
- intel-analyzerSkill
- longformSkill
- loop-experimentSkill
- loop-librarySkill
- meta-memory-reviewSkill
- office-hoursSkill
- open-loopsSkill
- plan-ceo-reviewSkill
- plan-design-reviewSkill
- prdSkill
- progressive-disclosureSkill
- reality-feedback-createSkill
- reality-review-weeklySkill
- recallSkill
- reconcile-extractionSkill
- redactSkill
- repo-auditSkill
- research-digestSkill
- review-gateSkill
- run-long-job-detachedSkill
- saveSkill
- scopeSkill
- self-auditSkill
- shadow-test-local-classifierSkill
- signal-scorerSkill
- skill-auditSkill
- skill-chainingSkill
- spawn-agent-in-tenantSkill
- spawn-tenantSkill
- split-log-rows-by-session-kindSkill
- subagent-delegationSkill
- telegram-dump-routerSkill
- telegram-reply-toolSkill
- verify-stackSkill
- wave-planSkill
- weekly-retroSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Read memory/Infra/agent-phase-domains.json (canonical schema).
- Distinctive: line 43
Every brief answers 6 questions.
- Distinctive: line 55
Memory isolation: Don't paste full memory dumps.
- Distinctive: line 57
Verify diffs on return: Read changed files, don't blindly accept summary text.
“Common” is measured: kept by at least 6 in 10 of the 4 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
agent-dispatch
Right subagent, right tools, right brief. Pull from the domain registry. don't freestyle.
When to invoke
About to spawn an Agent AND:
- Task is non-trivial (>3min inline, or 3+ files / 5+ commands per the delegation threshold)
- Fits one of the 5 domains below
Skip dispatch (do inline) if: <3min, depends on active session state, or multi-turn user conversation.
The 5 domains
Read memory/Infra/agent-phase-domains.json (canonical schema). One-line cheat sheet:
| domain | purpose | subagent_type | writes? |
| research | doc-mining, repo audits, web research, codebase exploration | Explore | ❌ read-only |
| build | code-writing: skills, scripts, configs | general-purpose | ✅ filesystem (scope-limited) |
| draft | creative content: proposals, briefs, posts, decks | general-purpose | ✅ outputs/raw/ only |
| verify | smoke tests, validation, audits, output QA | general-purpose | ❌ read+exec only |
| ops | routine operations: status progression, follow-up, briefings, triage | general-purpose | ⚠️ outputs/ only, NO external writes |
Dispatch flow
- Classify the task. Pick ONE domain. If it spans 2+, decompose into separate subagent calls (one per domain): don't blend.
- Load the domain entry from
agent-phase-domains.json. Pull:recommended_subagent_type,tools_denied,briefing_scaffold. - Brief using the scaffold. Fill EVERY placeholder. Don't skip "stack context (paste-in)". subagents have no transcript memory.
- Constrain: explicitly include the
tools_deniedlist as "Hard rules: do NOT use these tools" in the briefing. Subagents can't read the schema, you have to inline the rules. - Dispatch via the Agent tool with
subagent_type= the recommended one. - Verify the diff on return. Subagent wrote files? Read them. Don't trust the summary blind. that's the "trust the summary, verify the diff" delegation rule.
Briefing template (universal)
Every brief answers 6 questions. Domain scaffolds in the JSON add 3-4 domain-tuned lines on top.
- Goal? (one sentence)
- Why? (why this task exists. the subagent has no transcript)
- What's known / ruled out? (don't re-discover)
- Scope? (specific files/paths/questions, NOT "investigate X area")
- Out of scope? (denylist)
- Success criteria? (output format, length budget, pass test)
Hard rules (inherit from delegation discipline)
- Max depth = 2. The parent (this session) can spawn ONE child via the Agent tool. The child must NOT spawn further Agent calls. When briefing, NEVER write "spawn N more agents" or "delegate to other agents" in the prompt.
- Memory isolation. Don't paste full memory dumps. Paste the SPECIFIC fact/file path the subagent needs.
- No MCP write tools in subagents. The parent owns external writes (chat, spreadsheet, knowledge graph). Always.
- Verify diffs on return. Read changed files, don't blindly accept summary text.
- Skip dispatch for <3min tasks: overhead exceeds value.
Anti-patterns (from agent-phase-domains.json)
- ❌ Pasting the full voice constitution / user model into a draft subagent. Paste the specific voice rules + anti-AI-slop subset relevant to the piece.
- ❌ Letting a research subagent edit files. They report findings, the parent writes the reference page.
- ❌ Blending build + verify into one subagent. Build, return the diff, dispatch verify separately if needed.
- ❌ Allowing an outbound-message tool in a draft/build/ops subagent. They write to outputs/, the parent decides if it goes external.
Example dispatches
research domain. repo doc-mine
subagent_type: Explore
brief includes:
- Goal: "Deep-mine github.com/X/Y for 5 specific patterns"
- Stack context: paste the relevant 5-10 lines of your existing infra
- Specific files to read: explicit URLs/paths
- Output format: structured markdown with file path + line range cites
- Tools denied: Edit, Write, npm/pip install, subagent spawningbuild domain. new script
subagent_type: general-purpose
brief includes:
- Goal: "Build scripts/your_new_tool.py that does X" # e.g. an example placeholder path
- Files to read first (existing patterns to mirror): list
- Smoke-test command: single bash invocation
- Out-of-scope: don't touch skills/, don't add MCP wiring
- Tools denied: external-write MCP tools, schedule_createverify domain. output QA
subagent_type: general-purpose
brief includes:
- Goal: "Smoke-test outputs/raw/agent/<file>.md against the rubric"
- Pass criteria: explicit checks (frontmatter present, no slop phrases, links resolve)
- Output: pass/fail + line cites for each failure
- Tools denied: Edit, Write, all MCP writes (verify never mutates)ops domain. status-progression routine
subagent_type: general-purpose
brief includes:
- Goal: "Run a status-progression check on active items"
- Data sources: explicit knowledge-graph paths + spreadsheet ranges
- Output destination: outputs/raw/agent/status-<date>.md
- CONFIRM-gate flags: any terminal-state candidates require the parent's confirmation BEFORE a knowledge-graph edit
- Tools denied: outbound message, spreadsheet update, knowledge-graph create (parent writes external)Logging
Log the dispatch + verification outcome to logs/session.jsonl:
{"ts":"<ISO>","persona":"default","category":"agent-dispatch","event":"dispatched","domain":"research","subagent_type":"Explore","verified":true}Verified = the parent read returned files / confirmed claims / accepted the summary. If verified=false, also log the discrepancy.
Cross-references
memory/Infra/agent-phase-domains.json: canonical schema (this skill reads it)docs/agent-protocols.md: the broader agent protocol (3 surfaces: persona handoff / subagent briefing / cross-bot handoff)- The system prompt's
# Session Self-Regulation→ Delegation threshold + Delegation discipline (3 hard rules)
Adoption
Opt-in. Use for: repo audits, multi-step research, ops routines with a pattern (status-progression, follow-up). Skip for: trivial inline work, multi-turn conversation, single-file ops.
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.

