Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
docs: clarify live response accounting
Aldo Junior108a1fcd69e7
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 8333fc92..dab44da6 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -14,9 +14,9 @@ version in [`docs/changelog/`](docs/changelog/):### Added- Added live, deduplicated response token accounting for Claude Code and Codex.- The native hooks now send measured response usage on `post-tool-use`, `stop`,- `pre-compact` and `session-end` instead of only at the end of a session, so- an open session's totals stay current. Each response is stored once by its+ Updated native hooks to send measured response usage on `post-tool-use`,+ `stop`, `pre-compact` and `session-end`, keeping open-session totals current+ rather than waiting for session end. Each response is stored once by itsnative identity in a new `token_calls` ledger (V92). A partial or replayeddelivery raises the stored counters column by column and never adds the sameresponse twice. Live extraction reads a bounded 4 MiB transcript tail anddiff --git a/docs/usage.md b/docs/usage.mdindex 99eb5302..e0a36467 100644--- a/docs/usage.md+++ b/docs/usage.md@@ -891,8 +891,8 @@ prose.Open a project under `/web` to see Token usage. Updated native Claude Code andCodex hooks send measured response usage on `post-tool-use`, `stop`,-`pre-compact` and `session-end`. A session can stay open: usage is stored as it-arrives, and the panel and the session totals refresh every ten seconds. To+`pre-compact` and `session-end`. The server stores usage as it arrives, including while a+session is open. The panel and session totals refresh every ten seconds. Toenable capture, update the native client on each agent machine as well as theserver.