agent-handoff
Skill2 starsChanged 8 months agoMITView on GitHub
Generate a structured context packet before dispatching any subagent. Prevents the #1 cause of subagent failure: the agent acts on a wrong assumption that was never stated. Use before every Agent tool call, tmux dispatch, or session delegation.
10 other projects use a version of this.
Adopted by
Most recently taken up by
- aprameyak/coding-skillstheir own version, first seen Oct 2, 2026
- L3DigitalNet/Claude-Code-Pluginstheir own version, first seen Aug 31, 2026
- hams-ollo/zen-agent-skillstheir own version, first seen Aug 31, 2026
- sht5/skillstheir own version, first seen Aug 14, 2026
- WeirdSky924/agent-handoff-skilltheir own version, first seen Aug 14, 2026
- NITISH-R-G/agent-memory-protocoltheir own version, first seen Aug 1, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- WeirdSky924/agent-handoff-skill★ 29same name
- suyashb734/cliagents★ 19same name
- L3DigitalNet/Claude-Code-Plugins★ 8same name
- hams-ollo/zen-agent-skills★ 2same name
- Lutren/agent-handoff-protocol★ 2same name
- aprameyak/coding-skills★ 1same name
- NITISH-R-G/agent-memory-protocol★ 1same name
- ccpowerpack/claude-code-skills★ 0same name
- sht5/skills★ 0same name
- sonu07-star/agent-handoff-skill★ 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 repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- context-anchorSkill
- cost-cap-guardSkill
- dead-letterSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
4
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
- Distinctive: line 65
Ruled-out paths are mandatory: If you tried something that failed, write it down.
- Distinctive: line 68
No filler in context facts: Only write what the subagent would not know from reading the codebase.
- Very specific: line 73
Before every Agent tool call where you're delegating real work
- Distinctive: line 74
Before spawning a tmux agent session (any god, hero, or worker)
- Distinctive: line 75
Before resuming a session that has been idle > 30 minutes (use as a self-handoff)
“Common” is measured: kept by at least 6 in 10 of the 9 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 Handoff Skill
You are preparing a handoff packet — the minimum context a subagent needs to execute correctly without asking clarifying questions, re-exploring dead ends, or hallucinating constraints.
Subagents fail for one reason: they receive a goal but not its shape. They don't know what you already tried, what's off-limits, what "done" looks like, or which files actually matter. This skill makes that implicit context explicit.
What You Will Do
- Extract from the current session:
- The exact task to delegate (one sentence, actionable)
- Decisions already made that the subagent must not re-litigate
- Approaches tried and ruled out (with reasons)
- Files/paths the subagent needs to touch (concrete, not vague)
- The success criterion — how the subagent knows it's done
- Hard constraints — what it must not do
- Write the handoff packet to
.claude/handoff-<timestamp>.md:
# Agent Handoff — <ISO timestamp>
## Objective
[One sentence. Starts with a verb. Specific enough that no clarifying question is needed.]
## Context the subagent needs
- [Key fact 1 — architectural decision, API behavior, business rule]
- [Key fact 2]
- [Add only what would not be obvious from reading the files]
## Already tried — do not re-attempt
- [Approach]: [Why it failed or was ruled out]
- [Approach]: [Why it failed or was ruled out]
## Files to touch
- `path/to/file.ts` — [what to do here, optionally line number]
- `path/to/other.ts` — [what to do here]
## Hard constraints
- [MUST NOT]: [What the subagent must not change, call, or assume]
- [MUST NOT]: [...]
## Success criterion
- [ ] [Concrete, verifiable output — test passes, file exists, API returns X]
- [ ] [Second criterion if needed]
## If blocked
[What the subagent should do if it hits an unexpected blocker — escalate, write a findings file, skip and note, etc.]- Echo the packet so you can verify it before dispatching.
- Copy the packet content into your Agent tool prompt or tmux dispatch command so the subagent has it inline.
Rules
- One objective per handoff. Compound tasks produce confused agents. Split them.
- Ruled-out paths are mandatory. If you tried something that failed, write it down. Subagents re-explore dead ends by default — they don't know better unless you tell them.
- Constraints are not optional. "Don't touch the auth middleware" said once in conversation does not propagate to a subagent. Write it explicitly every time.
- Success criterion must be verifiable. "It works" is not a success criterion. "The test at
tests/auth.test.tspasses" is. - No filler in context facts. Only write what the subagent would not know from reading the codebase. Architecture docs, past decisions, runtime behavior — yes. Basic syntax — no.
- If-blocked is load-bearing. An unblocked subagent that can't proceed will hallucinate a workaround. Give it an explicit fallback.
When to Use
- Before every
Agenttool call where you're delegating real work - Before spawning a tmux agent session (any god, hero, or worker)
- Before resuming a session that has been idle > 30 minutes (use as a self-handoff)
- Any time your prompt to a subagent exceeds 3 sentences — that's a sign implicit context is leaking in and needs to be made explicit
Why This Exists
Subagent failure is almost never a model capability problem. It's a context problem. The orchestrator knows what was tried, what's fragile, what matters — and none of that gets transmitted. The subagent operates from a clean slate with a thin goal statement, fills in the blanks with plausible-sounding assumptions, and produces output that looks right but breaks something the orchestrator would never have broken.
The handoff packet is the fix. It externalizes the orchestrator's working model so the subagent starts from the same state, not a hallucinated one.
This skill is free. The full Atlas Starter Kit ($97) includes 12 more production skills — including the complete PAX protocol for structured inter-agent communication that scales this pattern across a full Pantheon of persistent agents.
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.

