jusspound-netizen

Agent Cost Auditor — Security skill for Claude Code

Security community

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

[![Agensi](https://img.shields.io/badge/Agensi-Agent_Cost_Auditor-blue)](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)**