Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add wan-huiyan/context-baton --skill successor-handoffgit clone --depth 1 https://github.com/wan-huiyan/context-batonWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/wan-huiyan/context-baton/successor-handoff)<a href="https://agentmods.dev/skills/wan-huiyan/context-baton/successor-handoff"><img src="https://agentmods.dev/badge/skills/wan-huiyan/context-baton/successor-handoff/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/wan-huiyan/context-baton/successor-handoff"><img src="https://agentmods.dev/badge/skills/wan-huiyan/context-baton/successor-handoff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00163 | $0.04170 |
| Opus 5.5 | $0.00065 | $0.01668 |
| Sonnet 5.5 | $0.00033 | $0.00834 |
| Haiku 4.5 | $0.00016 | $0.00417 |
Grade A, and why
successor-handoff scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 265 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Successor Handoff
A pattern for running many-hour autonomous workflows without hitting a single context window.
Three rules, one parent, many successor hops. The parent never fills up because it reads only status files. Each track's subagent stays lean via file-first discipline. When a subagent's context does start to swell, a fresh successor spawns in seconds with the filesystem as its memory — no human in the loop, no narrative compression.
The Problem
Autonomous workflows that need many hours of wall-clock time — overnight research, multi-track experiments, 10-hour BigQuery exploration — cannot fit in a single Claude context window. Two naive patterns exist, and both fail:
- Work until context fills, then session-handoff to a human, then resume. Costs minutes-to-hours per round-trip. Requires a human at an unpredictable time. Each handoff is a lossy narrative compression.
- Keep one giant context alive. Claude degrades before it errors. Tool outputs that never get pruned clog the prompt. Quality drops quietly.
The pattern in this skill replaces both. The parent orchestrator is permanently lean (reads only status files, never query outputs), so it isn't the thing filling up. Each track is a subagent using disk as memory (per planning-with-files). When a subagent does get stretched, a fresh successor is dispatched in seconds with a resume prompt pointing at the state directory. No human needed. No narrative summary needed. The file system is the knowledge.
When to Use
digraph when {
"Autonomous work that may exceed one context window?" [shape=diamond];
"Agent-to-agent handoff mid-run?" [shape=diamond];
"End-of-run delivery to a human?" [shape=diamond];
"successor-handoff (this skill)" [shape=box, style=filled, fillcolor=lightyellow];
"session-handoff" [shape=box];
"Normal conversation — no handoff pattern" [shape=box];
"Autonomous work that may exceed one context window?" -> "Agent-to-agent handoff mid-run?" [label="yes"];
"Autonomous work that may exceed one context window?" -> "Normal conversation — no handoff pattern" [label="no"];
"Agent-to-agent handoff mid-run?" -> "successor-handoff (this skill)" [label="yes"];
"Agent-to-agent handoff mid-run?" -> "End-of-run delivery to a human?" [label="no"];
"End-of-run delivery to a human?" -> "session-handoff" [label="yes"];
"End-of-run delivery to a human?" -> "Normal conversation — no handoff pattern" [label="no"];
}
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 265 lines · 163 tokens per session scan A 4626a468f139
successor-handoff is a skill published in the GitHub repository wan-huiyan/context-baton (1 stars, last pushed 4mo ago), licensed MIT. It adds 163 tokens to every session and 4,170 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
successor-handoff compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| successor-handoffwan-huiyan/context-baton | Skill | 1 | 4mo ago | MIT | A | 163 | Claude Code |
| high-output-managementwondelai/skills | Skill | 2.7k | 7d ago | MIT | A | 176 | Claude Code |
| 37signals-waywondelai/skills | Skill | 2.7k | 7d ago | MIT | A | 177 | Claude Code |
| drive-motivationwondelai/skills | Skill | 2.7k | 7d ago | MIT | A | 130 | Claude Code |
| claude-code-bash-patternssecondsky/claude-skills | Skill | 250 | 20d ago | MIT | B | 52 | Claude Code |
| emoji-readoutsimiancraft/simiancraft-skills | Skill | 8 | today | MIT | A | 167 | Claude Code |
| promoteArcticFox2029/chamnan | Skill | 10 | 15d ago | MIT | A | 29 | Claude Code |