Skip to content

agentguard 0.14.0: the response of each Codex LLM call in the Agent Monitor (#106) - #107

Merged
gangtao merged 1 commit into
mainfrom
feature/106-codex-llm-response
Dec 1, 2026
Merged

gangtao merged 1 commit into
mainfrom
feature/106-codex-llm-response

Conversation

@gangtao

@gangtao gangtao commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Closes #106.

What changes

  • Span detail of a Codex LLM call: the Agent Monitor shows the response text, phase, the tool calls the response asked for, and the request settings. This needs Codex plugin 0.4.1 (feat(codex): send the response and request settings of each model request AgentGuard#333, fixed in fix(codex): read the response of a model request in a live session (0.4.1) AgentGuard#336). Both export paths are read: hooks and OTel.
  • Tool calls under their LLM call: a Codex tool call is drawn under the LLM call that asked for it.
    • A function the model calls directly (spawn_agent, wait_agent, update_plan) is linked by id.
    • A shell command or patch runs through the model's exec call. The response has call_…, the tool hooks have exec-…, 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.
  • No response: a request without one (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, with check rules for the ids and the order.
  • Docs: upgrade note and known limits in the app README, 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

  • Four real codex exec sessions (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

  • The OTel export (covered by the replay test only).
  • A compaction, a failed request, a permission request, MCP tools, and the interactive Codex.

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

…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>
@gangtao
gangtao merged commit daded6b into main Dec 1, 2026
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.

agentguard: show the response of each Codex model request (Codex plugin 0.4.0)

1 participant