ai-agents-metrics

CI PyPI Downloads License Python

Analyze your AI agent work history. Track spending. Optimize your workflow.

AI is writing more of your code. You still don’t know:

ai-agents-metrics extracts these signals from your existing Claude Code or Codex history. Point it at your history files and see what’s happening: sessions per thread, token cost, and session timeline.

Running this on 6 months of Claude Code + Codex history (3.85B tokens, 160 threads) surfaced:

Full index: docs/findings/. N=1 developer; the mechanisms generalize because they come from the tools, not the data.


Quick start

pipx install ai-agents-metrics

ai-agents-metrics history-update     # reads ~/.codex + ~/.claude by default
ai-agents-metrics show               # sessions per thread, cost, session timeline
ai-agents-metrics render-html        # interactive HTML report

Non-default history paths and the full command list: CLI reference.


What you get

Not a benchmark, not an eval framework, not a model comparison tool. It is a local analysis tool for real engineering work done with AI.


Privacy

All data stays local. Writes only to: