Borrowing it
Nothing to install: this file belongs to bakabaka91/claude-baton. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/bakabaka91/claude-baton/main/.claude/agents/server.mdgit 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/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/agents/bakabaka91/claude-baton/server"><img src="https://agentmods.dev/badge/agents/bakabaka91/claude-baton/server.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.00028 | $0.00420 |
| Opus 5.5 | $0.00011 | $0.00168 |
| Sonnet 5.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 1mo 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.
- 1mo 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 6mo ago), licensed MIT. It adds 28 tokens to every session and 420 once invoked, about $0.0001 per session on Opus 5.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
polyglot-architect
Cross-language API design and binding parity.
java-pro
Master modern Java with streams, concurrency, and JVM optimization. Handles Spring Boot, reactive programming, and enterprise patterns. Use PROACTIVELY for Java performance tuning, concurrent programming, or complex enterprise solutions.
api-documenter
Create OpenAPI/Swagger specs, generate SDKs, and write developer documentation. Handles versioning, examples, and interactive docs. Use PROACTIVELY for API documentation or client library generation.
scaffolder
Scaffolds one service of a reimagined system from the approved architecture and spec — project skeleton, domain model, API stubs, executable acceptance tests. Write access is scoped to its own service directory under modernized/.
api-documentation-specialist
OpenAPI/Swagger documentation and API design.
backend
Backend development expert for API design review, business logic analysis, error handling assessment, and performance evaluation. Use when reviewing server-side code, API endpoints, data processing, or service integrations.