Agent Cost Auditor — Security skill for Claude Code
Audit an AI agent's tool-call or reasoning log for wasted tokens.
How to install Agent Cost Auditor
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open jusspound-netizen/agent-cost-auditor and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agent Cost Auditor does
Audit an AI agent's tool-call or reasoning log for wasted tokens. Reads local ghost-tracer / ghost-reason SQLite logs, flags redundant calls, retry loops, and duplicate thoughts, and prints a quantified token + dollar savings estimate. Stdlib-only, no network, no env vars.
Alternatives in Security
- Agent Memory Vault — Markdown-first shared memory vault for Claude Code and Codex with SQLite, Zvec, Git, closeout, and audit 314 ★
- Audit Patterns — Design patterns audit 63 ★
- Clawdbot Security Check — This skill teaches Clawdbot to audit its own security posture using first-principles reasoning 63 ★
README
Agent Cost Auditor
[](https://www.agensi.io/r/CONTEXTBRIDGE?to=/skills/agent-cost-auditor)
A SKILL.md package for AI agents that audits an agent's tool-call or reasoning log for wasted tokens and prints a quantified savings estimate.
What it does
Reads a local SQLite log from `ghost-tracer` or `ghost-reason` and reports:
- Redundant tool calls: same tool + same args repeated
- Retry loops: same tool called again immediately after an error
- Duplicate reasoning steps
Prints an estimated token and dollar savings per run.
Usage
Requires Python 3.9+. No external packages needed.
python scripts/run.py --db path/to/ghost_tracer.db
python scripts/run.py --db path/to/ghost_tracer.db --json
License
MIT
Ready-to-use Agent Skills
Want your AI agent to use this tool automatically? Install the **Agent Cost Auditor** skill on Agensi.
**[Get Agent Cost Auditor on Agensi](https://www.agensi.io/r/CONTEXTBRIDGE?to=/skills/agent-cost-auditor)**
Related Skills
Orquestar
Runs the architect→planner→coder coder-web→qa pipeline for a task in api-core (or web-app), then integration t
Ryzu Prompt
Always-on personal AI skill: premium web UI, humanized academic writing, OpenGL, Cisco Packet Tracer, Rust/Jav
Auditing Agent Config
Audit your Claude setup for drift: redundant skills, dead plugins, bloated CLAUDE.md, session-start pile-up.
iOS Security Audit
Audit iOS credential storage, auth, crypto, data protection & Privacy Manifest / required-reason APIs.
Audit Note
Re-run the two-layer faithfulness audit on a single Synapse note. Useful after manual edits, after a prompt ch
Aeo Fixes
Turn the latest AEO audit into a prioritized, ordered fix list with the reason each item matters.
Related Agents
Skill Portfolio Analyzer
Analyzes installed skills/plugins/MCP servers against ~/.claude.json to detect dead, ghost, duplicate, and col
Asset Producer Retry
Retry variant of asset-producer (pinned Opus). Use ONLY for attempts = 2 of a task assigned to asset-producer,
Simplify Efficiency Reviewer
Read-only efficiency lens of the HIGH simplify pass: redundant loops, repeated parsing/I-O/queries/allocations