delegation-protocol
Skill2 starsChanged 2 months agoMITView on GitHub
Structured 6-section delegation template and session-continuity rules for orchestrating sub-agents. Load before spawning any agent.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- bakhod1r/awesome-agentstheir own version, first seen Oct 15, 2026
- jeroromano/claude-code-orchestration-templatetheir own version, first seen Oct 14, 2026
- aws-solutions/konductortheir own version, first seen Sep 23, 2026
- megandmartin/agent-skills-repotheir own version, first seen Jul 24, 2026
- zebbern/termstacktheir own version, first seen Apr 16, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- aws-solutions/konductor★ 11same name
- zebbern/termstack★ 4same name
- megandmartin/agent-skills-repo★ 3same name
- jeroromano/claude-code-orchestration-template★ 1same name
- bakhod1r/awesome-agents★ 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 repository30 other files it gives its agents.
- agents-mdSkill
- agent-workflow-engineeringSkill
- analyze-architectureSkill
- architecture-auditSkill
- ask-mattSkill
- check-readinessSkill
- ci-cd-and-automationSkill
- codebase-contextSkill
- decision-memorySkill
- dependency-analysisSkill
- diagnosing-bugsSkill
- dispatching-parallel-agentsSkill
- documentation-maintenanceSkill
- engineering-closeoutSkill
- environment-discoverySkill
- github-pr-workflowSkill
- implementSkill
- interview-meSkill
- parallel-feature-developmentSkill
- planning-and-task-breakdownSkill
- project-contextSkill
- project-retrospectiveSkill
- release-managementSkill
- requesting-code-reviewSkill
- solution-architectureSkill
- subagent-driven-developmentSkill
- synthesize-project-contextSkill
- task-intakeSkill
- workflow-definitionSkill
- workflow-runnerSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
4
Distinctive
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
- Distinctive: line 9
Every delegation prompt MUST include all six sections.
- Distinctive: line 33
Every delegation result includes a session_id.
- Very specific: line 36
Follow-up on a result → resume with session_id + "Also: <question>".
- Distinctive: line 41
After every delegation, store the session_id for potential continuation.
- Distinctive: line 62
If any answer is no → resume the session with a corrective prompt.
- Very specific: line 81
Integration is a separate step: after all tracks report, run the full suite (lint/typecheck/test/build), review the combined diff, and fix …
“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
You are delegating work to a sub-agent. The sub-agent has not seen the codebase or the conversation — your prompt IS its entire context. Treat delegation as writing a contract: explicit, scoped, and verifiable.
The 6-section template (every delegation)
Every delegation prompt MUST include all six sections. Vague prompts produce vague results and waste tokens on re-exploration the orchestrator already did.
## TASK
[One atomic goal. One verb. One outcome. No "and also".]
## EXPECTED OUTCOME
[Concrete deliverables and success criteria. "I will know this is done when ..."]
## REQUIRED TOOLS
[Explicit allowlist: fs_read, fs_grep, etc. Prevents tool sprawl.]
## MUST DO
[Exhaustive requirements. Leave nothing implicit. If you'd be annoyed by the agent not doing X, list X.]
## MUST NOT DO
[Forbidden actions. Anticipate rogue behavior. "Do not modify files outside src/auth/."]
## CONTEXT
[File paths, code snippets, existing patterns, constraints. Paste actual code lines from prior exploration — not just file paths.]Session continuity (NON-NEGOTIABLE)
Every delegation result includes a session_id. Use it.
- Task failed/incomplete → resume with
session_id+ a tight "Fix:<error>" prompt. - Follow-up on a result → resume with
session_id+ "Also:<question>". - Multi-turn with the same agent → always resume. Never start fresh.
Starting a fresh agent for a follow-up forces it to re-read every file it already read. That's 70%+ wasted tokens, plus the agent loses the reasoning it built up.
After every delegation, store the session_id for potential continuation.
Skill nudges to delegates
Sub-agents have their own skills. Nudge them in the CONTEXT section:
"Load
code-reviewbefore evaluating the diff." "Loadfrontend-ui-uxbefore editing component files." "Loadgit-masterbefore touching history."
A one-line nudge saves the delegate a skills-catalog lookup turn.
Verification after delegation
A delegation is NOT complete when the sub-agent returns. It is complete when YOU have verified:
- Did it work as expected? (Did the file change? Did the test pass?)
- Did it follow existing codebase patterns?
- Did the EXPECTED OUTCOME actually materialize?
- Did it respect MUST DO and MUST NOT DO?
If any answer is no → resume the session with a corrective prompt. Do not re-spawn from scratch.
Parallel dispatch decision rule
Dispatch multiple implementers in parallel ONLY when both conditions hold: their file sets are disjoint, AND a shared contract is already frozen (types, function signatures, message shapes, defaults). Otherwise run sequentially — shared files or an unfrozen contract are exactly how parallel tracks collide.
- Freeze the contract first: one serial task defines the interface; parallel tasks consume it read-only. Never let two agents edit the same file.
- Enforce disjointness via MUST NOT DO: each task's forbidden list names the other tracks' files. That turns "disjoint" from an assumption into a checkable constraint.
- Verification while tracks run: per-track
tsc/tests will transiently fail on siblings' half-written files (mid-edit snapshots). Verify against the track's own files and tell each agent the sibling errors are not its concern; defer full-suite verification to the integration point. - Integration is a separate step: after all tracks report, run the full suite (lint/typecheck/test/build), review the combined diff, and fix residuals yourself. Never dispatch fix requests back mid-integration.
- Note: this complements
subagent-driven-development's "never parallel" rule — that rule assumes tasks share the codebase; the exception here is strictly file-disjoint tracks under a frozen contract.
Anti-patterns
- "Follow existing patterns" with no snippet → agent guesses, often wrong
- Multi-goal prompts → agent does the easy one, skips the rest
- Missing MUST NOT DO → agent over-reaches into unrelated files
- Discarding session_id on failure → forced re-exploration, wasted tokens
- Re-spawning instead of resuming for a 1-line fix → 10x cost
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.

