Repository navigation
agentguard 0.14.0: the response of each Codex LLM call in the Agent Monitor (#106) - #107
Merged
Merged
Conversation
…onitor (#106) - Agent Monitor: the span detail of a Codex LLM call shows the response text, phase, the tool calls it asked for and the request settings (Codex plugin 0.4.1), on both export paths (hooks and OTel). - A Codex tool call is drawn under the LLM call that asked for it. A function the model calls directly (spawn_agent, update_plan) is linked by id. A shell command or patch runs through the model's `exec` call and has an id of its own, so it is placed by time: under the last LLM call of the same agent that began before it. - A request with no response (plugin older than 0.4.1, a compaction, a failed attempt) says so in the span detail. - Session simulator: Codex model requests as plugin 0.4.1 sends them (one `exec` call per response, `exec-<uuid>` tool ids, tool hooks from 45 ms before to 120 ms after the response row), and rules for them. - Replay test of the plugin's hook rows for both export paths. - README upgrade note and known limits, docs/cim-events.md with what four real Codex sessions showed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #106.
What changes
spawn_agent,wait_agent,update_plan) is linked by id.execcall. The response hascall_…, the tool hooks haveexec-…, so these are placed by time: under the last LLM call of the same agent that began before the tool call. This is the rule the plugin README gives.docs/cim-events.md, simulator README.No DDL changes. The app version goes from 0.13.0 to 0.14.0.
How it was checked
codex execsessions (Codex CLI 0.172.0, plugin 0.4.1, hooks export) against a local Timeplus 3.5.1-rc.1: commands one by one, several commands in one response, a sub-agent, and a patch. All 19 completed requests had a response, and every tool call was drawn under the right LLM call in the browser.make test(142 pass),make simulate-check,make test-codex-hooks(hooks and OTel),make test-hook-events,make build.Not checked with a real session
Known differences in the simulator
A real sub-agent start is two tool calls of the main agent (
collaborationspawn_agent,collaborationwait_agent), and a real shell tool response is plain text. The simulator follows the plugin fixture for both. The simulator README lists these.🤖 Generated with Claude Code