Skip to content

claudecode-plugin-v0.7.0

Choose a tag to compare

@gangtao gangtao released this 27 Nov 19:39
6cadeb6

@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 Stop the plugin sends one llm_call row per model request made since the previous Stop, with the model, token usage and latency. On SubagentStop it sends the requests of the sub-agent. A response is counted once, not once per content block.
  • _llm_usage is now the usage of the turn (#326), not a running total of the session, with the counts split by model.
  • run_id is the turn id (#325, #327): the prompt_id of the hook, also on the prompt_context, llm_context and llm_call rows. It stays equal to session_id when the hook has no prompt_id.

Upgrade notes

  • Anything that summed _llm_usage over the llm_output rows of a session, or took the last one as the session total, must change: sum the llm_call rows instead.
  • Anything that relied on run_id = session_id for Claude Code must use session_id.
  • The AgentGuard app needs a metrics view over the llm_call rows 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