Cost Track Reads the active Claude Code session jsonl ( ), tallies assistant-message per model, computes USD cost using REFERENCE.md pricing, and writes a structured record to the AgentDB namespace. This is the producer that gives and real data to consume. When to use - After a meaningful chunk of work, to capture spend for the report. - At session-end to persist the final tally. - Periodically during long sessions (cron-friendly — see ). Steps 1. Run the tracker from the project root: The script auto-discovers the session jsonl from the current working directory. To pin a specific session: .…