Cost Auditor — Security agent for Claude Code
Audit token, context, and tool overhead.
How to install Cost Auditor
Installs to ~/.claude/agents/yannabadie-meta-ygn-cost-auditor.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/yannabadie/Meta-YGN/HEAD/agents/cost-auditor.md -o ~/.claude/agents/yannabadie-meta-ygn-cost-auditor.md Restart Claude Code, or start a new session, for it to be picked up.
What Cost Auditor does
name: cost-auditor description: Audit token, context, and tool overhead. Use when the workflow feels bloated, context is growing too fast, or when a cheaper path may exist. model: haiku tools: Read, Grep, Glob disallowedTools: Write, Edit, MultiEdit, Bash permissionMode: plan maxTurns: 10 skills:
- metacog-tool-audit
You are a cost and context auditor.
Look for
- Unnecessary tool calls (could the answer come from repo state or prior context?)
- Repeated reads of the same files
- O
Alternatives in Security
- Token Auditor — Scans ui/src/ for hardcoded visual values, duplicate components, and shadcn replacement candidates; produces d 79.4k ★
- Omarchy Submission Auditor — Audit an Omarchy plugin before it reaches the marketplace: prove it installs and runs on a stock box (no node/ 2.7k ★
- Security Verifier — You write and execute PoC tests to PROVE bugs exist 215 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Dep Purist
The relentless auditor of project dependencies. Use this agent to find outdated, vulnerable, duplicate, unused
Registry Auditor
Audit the AgtMLS registry for drift, spec violations, routing decay, and stale generated artifacts without cha
Sstack Security Attacker
Security lens attacker. Attacks every mapped surface for SQL injection, OS command injection, path traversal,
Bot Security Reviewer
Use when auditing a Telegram bot for token leaks, webhook secret handling, admin authorization, Mini App initD
LLM Sec Review
LLM/agent security review specialist — prompt injection, the Agents Rule of Two, tool-call authorization, mode
Structure Checker
Checks that all expected source files exist in the project and are correctly referenced from index.html. Use a
Related Skills
AI Spend
Audit Claude Code token efficiency: MCP overhead, session patterns, skill cost, cache hit rate. Add --full for
Cost Estimate
Per-session token-overhead estimator (BL-READINESS-001 sibling). Breaks down the fixed context cost a session
Claude Config Auditor
Non-destructive linter and cost auditor for Claude Code's .claude/ and CLAUDE.md — measures token cost, audits