Skip to content

Add cctrack to Agent infrastructure#88

Closed
nvwalj wants to merge 1 commit into
bradAGI:mainfrom
nvwalj:add-cctrack
Closed

Add cctrack to Agent infrastructure#88
nvwalj wants to merge 1 commit into
bradAGI:mainfrom
nvwalj:add-cctrack

Conversation

@nvwalj
Copy link
Copy Markdown

@nvwalj nvwalj commented May 17, 2026

Project: cctrack

Repo: https://github.com/nvwalj/claude-cost-tracker

What it is

Per-project cost tracker for Claude Code. Walks ~/.claude/projects/**/*.jsonl (the same NDJSON session-telemetry files Claude Code already writes), parses every assistant message.usage block, multiplies tokens (input / output / cache-read / cache-write 5m / cache-write 1h) by published Claude 4.x prices, and prints a per-project or per-day dollar breakdown.

How it slots into this list

It's not an agent itself — it's the kind of sidecar that the "Agent infrastructure" section already lists (observability/management around CLI coding agents). Closest analogues already in the list: AgentManager (lightweight CLI for managing agent runs/sessions), brood-box (cost-tracking via VM logs in some setups), claude-code-tools (workflow utilities).

Inclusion criteria

  • ✅ CLI / terminal interface: cctrack, single binary script, output is a table or --json
  • ✅ Open source: MIT
  • ✅ Built for agents: reads Claude Code's own telemetry format; nothing else uses these files in this way
  • ✅ Single-file Python, stdlib-only (no pip dependencies)

Sample output

$ cctrack --days 7
PROJECT                                COST USD    IN tok     OUT tok    CACHE-R     CACHE-W
-------------------------------------  --------    ------     -------    -------     -------
/Users/panda/Project/ai-memory-reader  $ 41.23       2,141   1,367,884   23,912,663   2,185,484
...

License

MIT

Per-project Claude Code cost tracker, MIT, single-file Python.
@nvwalj
Copy link
Copy Markdown
Author

nvwalj commented May 20, 2026

Closing — this project has been archived / made private. If you've already merged, feel free to remove the entry; otherwise no action needed. Apologies for the noise.

@nvwalj nvwalj closed this May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant