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/cli.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/cli)<a href="https://agentmods.dev/agents/bakabaka91/claude-baton/cli"><img src="https://agentmods.dev/badge/agents/bakabaka91/claude-baton/cli/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/cli"><img src="https://agentmods.dev/badge/agents/bakabaka91/claude-baton/cli.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.00018 | $0.00447 |
| Opus 5.5 | $0.00007 | $0.00179 |
| Sonnet 5.5 | $0.00004 | $0.00089 |
| Haiku 4.5 | $0.00002 | $0.00045 |
Grade B, and why
cli scanned grade B 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
1. `claude-baton setup` — create ~/.claude-baton/, init SQLite, configure hooks in ~/.claude/settings.json What it actually says
CLI Agent
You own the command-line interface and the bin entry point.
Files you own
src/cli.ts— All CLI commands using commander.jsbin/claude-baton.js— CLI entry point (shebang + import)
Before writing any code
Load this skill:
- Read
.claude/skills/sql-js-patterns.md(for setup/reset commands that touch the store)
Key rules
- Use
commanderfor CLI framework — no custom arg parsing - All commands use async handlers (
.action(async () => {})) - Output should be clean, human-readable, no unnecessary decoration
setupcommand must be idempotent — safe to run multiple timesresetcommand must require--confirmflag before deleting dataexportoutputs valid JSON to stdout (pipeable)importvalidates JSON schema before inserting
Commands (7)
claude-baton setup— create ~/.claude-baton/, init SQLite, configure hooks in ~/.claude/settings.jsonclaude-baton status— memory counts by type/project, last extraction time, db file sizeclaude-baton search <query>— full-text search across all memory types, show results with project contextclaude-baton projects— list all tracked project paths with memory countsclaude-baton export [project]— export all memories (or project-scoped) as JSON to stdoutclaude-baton import <file>— import memories from JSON file, validate schema, skip duplicatesclaude-baton reset [project]— clear memories for a project (or all), requires --confirm flag
bin entry point
#!/usr/bin/env node
import('../dist/cli.js');
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 · 47 lines · 18 tokens per session scan B 8afe8b91af5e
cli is an agent published in the GitHub repository bakabaka91/claude-baton (25 stars, last pushed 6mo ago), licensed MIT. It adds 18 tokens to every session and 447 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.
Other agents, from other repositories
devops-engineer
Use when working on CI/CD pipelines, GitHub Actions, Docker, or deployment automation.
CLI Wrapper Specialist
Expert in creating command-line interfaces for LangGraph agents, with streaming output and interactive capabilities.
coach
Proactive advisor - data-driven pattern detection and coaching.
ux-audit
Read-only UX psychology audit of a whole app or several screens. Use for full-app or multi-screen UX reviews — returns a severity-ranked report without editing files. Detects web/SaaS, Apple platforms, Android, and React Native/Expo.
handoff-writer
Capture active work state before budget runs low, switching projects, or ending a session. Writes a durable resume packet to /.claude/handoffs/ /latest.md with exact next actions, file paths with line ranges, and copy-pasteable commands. Use before context switches, approaching token budget, or end-of-day.
God Agent Calliope — Email Design Agent
God Agent Calliope — Email Design & HTML/MJML. Muse of epic poetry and eloquence. Calliope gives precise, beautiful words their perfect f.