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 Jamie-BitFlight/claude_skills --skill kage-bunshingit clone --depth 1 https://github.com/Jamie-BitFlight/claude_skillsWrote 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/jamie-bitflight/claude_skills/kage-bunshin)<a href="https://agentmods.dev/skills/jamie-bitflight/claude_skills/kage-bunshin"><img src="https://agentmods.dev/badge/skills/jamie-bitflight/claude_skills/kage-bunshin/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/jamie-bitflight/claude_skills/kage-bunshin"><img src="https://agentmods.dev/badge/skills/jamie-bitflight/claude_skills/kage-bunshin.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00099 | $0.04905 |
| Opus 5 | $0.00049 | $0.02452 |
| Sonnet 5 | $0.00020 | $0.00981 |
| Haiku 4.5 | $0.00010 | $0.00490 |
Grade A, and why
kage-bunshin 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 7d 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 — 448 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Kage Bunshin — Persistent Peer Claude Sessions
Spawn independent interactive claude CLI sessions in tmux with full bidirectional communication. The orchestrator can send messages, read responses, monitor status, and steer work mid-flight via tmux send-keys and tmux capture-pane.
This is NOT a subagent or teammate — it is an independent CLI process with its own context window, inheriting all MCP servers, skills, plugins, and agents from the project directory.
Session Manager Script
All operations go through ${CLAUDE_SKILL_DIR}/scripts/spawn.py:
spawn.py --session-id ID spawn --name X [--model MODEL] [--max-budget N] [--effort LEVEL] "prompt"
spawn.py --session-id ID send --name X "message"
spawn.py --session-id ID read --name X
spawn.py --session-id ID status --name X
spawn.py --session-id ID list
spawn.py --session-id ID stop --name X # graceful shutdown (Ctrl-C + wait)
spawn.py --session-id ID kill --name X # force kill (last resort)
The --session-id isolates each orchestrator's registry. Generate a UUID once per fleet and pass it on every call. Without it, defaults to "default". Can also be set via KB_SESSION_ID environment variable.
Quick Start
SPAWN="${CLAUDE_SKILL_DIR}/scripts/spawn.py"
SID=$(uuidgen) # one UUID per fleet — isolates this orchestrator's registry
# 1. Spawn a session (interactive claude in tmux + worktree)
$SPAWN --session-id $SID spawn --name worker-42 --model haiku \
"Load /dh:work-backlog-item #42. Execute the full work flow."
# 2. Check on it
$SPAWN --session-id $SID status --name worker-42
# 3. Read what's on screen
$SPAWN --session-id $SID read --name worker-42
# 4. Steer mid-flight
$SPAWN --session-id $SID send --name worker-42 \
"Stop current work. Prioritize the auth module instead."
# 5. Graceful shutdown when done
$SPAWN --session-id $SID stop --name worker-42
Session Lifecycle
stateDiagram-v2
[*] --> Spawning: spawn
Spawning --> Idle: claude REPL initialized
Idle --> Working: send (prompt delivered)
Working --> Idle: claude finishes (❯ prompt returns)
Working --> Working: send (steer mid-task)
Idle --> Stopping: stop (sends Ctrl-C)
Working --> Stopping: stop (sends Ctrl-C)
Stopping --> Dead: session exits gracefully
Stopping --> Dead: timeout → force kill
Dead --> [*]: registry cleanup
Idle --> Dead: crash
Working --> Dead: crash
note right of Stopping: Shutdown hooks run here
note right of Dead: kill bypasses hooks — last resort only
What ships with it
5 files 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.
- 7d ago Changed f41b0adf9992
- 8d ago First seen · 448 lines · 99 tokens per session scan A aa0cb22a54e6
kage-bunshin is a skill published in the GitHub repository Jamie-BitFlight/claude_skills (66 stars, last pushed today), licensed MIT. It adds 99 tokens to every session and 4,905 once invoked, about $0.0005 per session on Opus 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-09-03.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
insight-error-page
Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…
next-cache-components-optimizer
Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…
next-partial-prefetching-adoption
Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…