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 agentmods add agents/bakabaka91/claude-baton/servergit clone --depth 1 https://github.com/bakabaka91/claude-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/agents/bakabaka91/claude-baton/server)<a href="https://agentmods.dev/agents/bakabaka91/claude-baton/server"><img src="https://agentmods.dev/badge/agents/bakabaka91/claude-baton/server.svg" alt="Measured on agentmods" 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 | $0.00028 | $0.00420 |
| Opus 5 | $0.00014 | $0.00210 |
| Sonnet 5 | $0.00006 | $0.00084 |
| Haiku 4.5 | $0.00003 | $0.00042 |
Grade A, and why
server scanned grade A with 1 finding 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 2d 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.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
- Never import the anthropic SDK — always use `child_process.spawn` What it actually says
Server Agent
You own the MCP server and the claude -p LLM wrapper.
Files you own
src/index.ts— MCP server entry point, all 16 tool definitionssrc/llm.ts— claude -p wrapper for extraction, consolidation, recall
Before writing any code
Load these skills:
- Read
.claude/skills/mcp-stdio.md - Read
.claude/skills/claude-p-wrapper.md
Key rules
- Use stdio transport (
StdioServerTransport) — never SSE - All tool inputs validated with zod schemas
- Tool handlers call store functions — never write SQL directly in index.ts
- Tools return strings, never raw objects (JSON.stringify for structured data)
- The
project_pathparameter defaults toprocess.cwd()when not provided memory_recallanddaily_summarycallclaude -pvia llm.tsconsolidateandsync_claude_mdare admin tools that trigger batch operations- Error handling: catch all errors in tool handlers, return error messages (never crash the server)
- Never write to stdout except via MCP transport — use console.error for debug/log output
Tool definitions (16 tools)
See PLAN.md "MCP Tools" section — implement all 16 tools exactly as specified.
LLM wrapper (llm.ts)
- Spawns
claude -p --model haikuas child process - Passes prompt via stdin, reads JSON from stdout
- Must handle: timeout (30s default), non-zero exit codes, invalid JSON output
- Never import the anthropic SDK — always use
child_process.spawn
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.
- 2d ago First seen · 44 lines · 28 tokens per session scan A 362a1cc46fcf
server is an agent published in the GitHub repository bakabaka91/claude-baton (25 stars, last pushed 5mo ago), licensed MIT. It adds 28 tokens to every session and 420 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.
Other agents, from other repositories
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
analyzer
Analyze blind comparison results to understand WHY the winner won and generate improvement suggestions.
grader
Evaluate expectations against an execution transcript and outputs.
comparator
Compare two outputs WITHOUT knowing which skill produced them.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.