Show HN: Toktrack – 1000x faster AI CLI cost tracker (Rust and SIMD) (github.com)

4 points by mag123c ↗ HN
Did you know Claude Code deletes your session data after 30 days? I found out the hard way when I tried to check my spending history.

My session files hit 3GB (2000+ files) and existing tools took 40+ seconds. Rewrote it in Rust with simd-json + rayon.

- First run: ~1s (vs 40s+) - Daily use: ~0.04s (1000x faster, cached) - TUI dashboard with daily/weekly/monthly breakdown - Supports Claude Code, Codex CLI, Gemini CLI - Persistent cache — history survives even after CLI deletes files

GitHub: https://github.com/mag123c/toktrack

Feedback welcome!

1 comment

[ 2.7 ms ] story [ 15.0 ms ] thread
Interesting! Sort of a tangential question to the product itself but why did you choose to build primarily in Rust? I saw "built with Rust + simd-json + ratatui for ultra-fast performance" but am not actually very familiar with how these technology choices specifically enable ultra-fast performance. Would love to learn more!