Repository navigation
claudecode-plugin-v0.7.0
@timeplus/agentguard-claudecode-plugin 0.7.0. It includes the changes of 0.6.0, which was not published.
What's Changed
- Token usage per model request (#324, #326). On
Stopthe plugin sends onellm_callrow per model request made since the previousStop, with the model, token usage and latency. OnSubagentStopit sends the requests of the sub-agent. A response is counted once, not once per content block. _llm_usageis now the usage of the turn (#326), not a running total of the session, with the counts split by model.run_idis the turn id (#325, #327): theprompt_idof the hook, also on theprompt_context,llm_contextandllm_callrows. It stays equal tosession_idwhen the hook has noprompt_id.
Upgrade notes
- Anything that summed
_llm_usageover thellm_outputrows of a session, or took the last one as the session total, must change: sum thellm_callrows instead. - Anything that relied on
run_id = session_idfor Claude Code must usesession_id. - The AgentGuard app needs a metrics view over the
llm_callrows to show these token figures; until then they are stored but not shown.
Full Changelog: claudecode-plugin-v0.5.1...claudecode-plugin-v0.7.0