Skip to content

docs(claudecode): model requests of a turn are sent when the turn ends - #334

Merged
gangtao merged 1 commit into
mainfrom
docs/claudecode-llm-call-timing
Nov 30, 2026
Merged

gangtao merged 1 commit into
mainfrom
docs/claudecode-llm-call-timing

Conversation

@gangtao

@gangtao gangtao commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Summary

Documents a limit of the Claude Code plugin: the model requests of a turn are not reported live.

Claude Code has no hook per model request. The plugin reads the requests of a turn from the transcript on Stop (and those of a sub-agent on SubagentStop) and sends the llm_call rows together. While a turn is running, Timeplus has its prompt and tool calls and none of its model requests, so a live view such as the trace of a running turn in the Agent Monitor shows no LLM calls and no token usage until the turn ends.

Changes

  • agents/claudecode/agentguard-plugin/README.md: the "Limits" line under "Token usage" is now a list, with the new limit first. It also says that the requests of a turn that ends without Stop are lost if the session ends before another Stop.
  • docs/cim.md: the same limit in the note on llm_call rows.

Docs only, no code change.

🤖 Generated with Claude Code

The llm_call rows are read from the transcript on Stop and SubagentStop, so a
running turn has no model requests in Timeplus and a live trace shows none
until the turn ends.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@gangtao
gangtao merged commit f008811 into main Nov 30, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant