Skip to content

claudecode-plugin-v0.8.0

Choose a tag to compare

@gangtao gangtao released this 28 Nov 03:58
6b1f93b

@timeplus/agentguard-claudecode-plugin 0.8.0.

What's Changed

  • Sub-agents that end without a SubagentStop hook are reported (#309, #329). Claude Code fires neither SubagentStart nor SubagentStop for some foreground sub-agents (web-fetch). When the Agent tool call of such a sub-agent completes, the plugin now sends a subagent_ended row built from the tool result (event_data.synthetic = true) and the sub-agent's llm_call rows.
  • A resumed sub-agent only sends its new requests. The plugin keeps how many requests it sent for each sub-agent, so no request is sent twice.
  • Internal helpers are marked. The subagent_ended row of a helper such as the compaction summarizer has event_data.internal_helper = true.
  • The README and docs/cim.md say how to find the start and end of a sub-agent.

Upgrade notes

  • New optional setting AGENTGUARD_STATE_DIR: where the plugin keeps what it already sent for each sub-agent. Default: agentguard-claudecode in the system temp directory; removed on SessionEnd.
  • A consumer that counts subagent_ended rows now also sees the synthetic ones; filter on event_data.synthetic to tell them apart.

Full Changelog: claudecode-plugin-v0.7.1...claudecode-plugin-v0.8.0