Append-only audit log exposes two accounting bugs in open-source Claude Code tracker
A developer maintaining an append-only audit log of Claude Code usage discovered two accounting bugs in Splitrail, a 216-star Rust-based usage tracker for agentic CLIs. The first bug stemmed from Claude Code rewriting session files during resume or compaction events, causing already-incurred token usage to silently vanish from any tracker that recomputes totals from live files. The developer filed the issue, the maintainer confirmed it the same day, and a fix was shipped in Splitrail version 3.6.0 within twelve days via a local SQLite history store. A second issue emerged during validation testing, where the suggested comparison method between versions was found to be flawed unless a drift event was deliberately simulated. Ultimately, both bugs were resolved through merged pull requests, and the developer's append-only log and Splitrail 3.6.0 reconciled to an exact token count of 18,548,947 across over 13,500 messages.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in