Repository navigation
tokview 0.0.7
Added — tokview import: backfill historical usage from local agent logs (no proxy needed)
tokview import claude— reads~/.claude/projects/**/*.jsonl(per-request provider token usage + per-tool estimates).tokview import codex— reads~/.codex/sessions/**/*.jsonl, reconstructing per-turn usage (input / cached / output / reasoning) by diffing each rollout's cumulativetoken_countevents (which also sidesteps the rate-limit-only re-emit over-count), plus per-tool estimates fromfunction_call/function_call_outputitems (shell calls labelled by their command family, e.g.rg,grep,pytest). Codex began persisting token usage in late 2025; older rollouts that predate it are skipped.
Both write into the same SQLite the live proxy uses, so imported history renders in tokview show and the browser dashboard immediately. Idempotent (deduped by transcript / tool id) — safe to re-run and to overlap with live-captured sessions.
Full changelog: https://github.com/chopratejas/tokview/blob/v0.0.7/CHANGELOG.md