Cost Tracker
Overview
Use this skill to summarize real Codex session usage from ~/.codex/sessions and ~/.codex/state_5.sqlite.
It is useful for answering questions like "how much did this project use?" or "which recent sessions were expensive?"
Workflow
- Run
scripts/summarize_sessions.py --project-root <path>for project totals. - Add
--since-daysor--limitfor narrower slices. - Use the output to answer with session counts, input/output totals, and cache usage.
- If no Codex session data exists for the target path, say so explicitly.
Resources
- Script:
scripts/summarize_sessions.py