Skip to content

Releases

claudecode-plugin-v0.11.0

Choose a tag to compare

@gangtao gangtao released this 04 Dec 19:30
0400797

The plugin is now monitoring only: it records what Claude Code does and never answers a hook (#340).

  • Tool-call holds are removed. AGENTGUARD_HOLDS_ENABLED, AGENTGUARD_URL and AGENTGUARD_HOLDS_FAIL_POLICY are ignored and can be removed from your settings.
  • On PreToolUse the plugin writes nothing to stdout. Earlier versions answered permissionDecision: "allow", which approved the tool call in place of Claude Code's permission prompt. Claude Code's own permission rules now decide, as they do without the plugin.
  • Every hook, PreToolUse included, can be registered async. An existing synchronous PreToolUse entry keeps working.
  • The before_tool_call row is unchanged.

codex-plugin-v0.5.0

Choose a tag to compare

@gangtao gangtao released this 01 Dec 01:45
fd037f2

timeplus-agentguard-codex-plugin 0.5.0.

What's Changed

  • Ingest with a Timeplus API key on the hooks export (#338, #339). New optional setting AGENTGUARD_API_KEY, so no password has to be kept on the agent host.
  • The key is used only with AGENTGUARD_INGEST_API=rest and AGENTGUARD_TIMEPLUS_URL pointing at the Timeplus REST API (port 8000), version 3.5.4 or later. The plugin then sends X-Api-Key and no username or password.
  • In timeplusd mode (port 3218 takes no key) the key is not sent: the username and password are used, and the plugin says on stderr that the key is ignored. A key does not change the ingest mode.
  • Without a key nothing changes.

Upgrade notes

  • Create the key as the Timeplus user the events should be written as, with the ingest scope. It can be limited to the stream ag.agentguard_hook_events.
  • A key stops working when it is revoked or expires, or when its owner changes their password. Ingest then fails with 401, reported on stderr, and the agent is not affected; create a new key.
  • A REST API older than 3.5.4 answers a key with 401.
  • Checked against a 3.5.4 REST API: ingest with a key, a key limited to another stream (403), a revoked and a malformed key (401), no key, and a key in timeplusd mode. Not checked: an expired key, and a key after a password change.
  • The key is for the hooks export only. The otel export sends to the OTLP input (port 4318), which takes no key.

Full Changelog: codex-plugin-v0.4.1...codex-plugin-v0.5.0

claudecode-plugin-v0.10.0

Choose a tag to compare

@gangtao gangtao released this 01 Dec 01:45
fd037f2

@timeplus/agentguard-claudecode-plugin 0.10.0.

What's Changed

  • Ingest with a Timeplus API key (#337, #339). New optional setting AGENTGUARD_API_KEY, so no password has to be kept on the agent host.
  • The key is used only with AGENTGUARD_INGEST_API=rest and AGENTGUARD_TIMEPLUS_URL pointing at the Timeplus REST API (port 8000), version 3.5.4 or later. The plugin then sends X-Api-Key and no username or password.
  • In timeplusd mode (port 3218 takes no key) the key is not sent: the username and password are used, and the plugin says on stderr that the key is ignored. A key does not change the ingest mode.
  • Without a key nothing changes.

Upgrade notes

  • Create the key as the Timeplus user the events should be written as, with the ingest scope. It can be limited to the stream ag.agentguard_hook_events.
  • A key stops working when it is revoked or expires, or when its owner changes their password. Ingest then fails with 401, reported on stderr, and the agent is not affected; create a new key.
  • A REST API older than 3.5.4 answers a key with 401.
  • Checked against a 3.5.4 REST API: ingest with a key, a key limited to another stream (403), a revoked and a malformed key (401), no key, and a key in timeplusd mode. Not checked: an expired key, and a key after a password change.
  • agents/claudecode/Makefile (local dev install) now writes AGENTGUARD_INGEST_API, and AGENTGUARD_API_KEY when one is given.

Full Changelog: claudecode-plugin-v0.9.0...claudecode-plugin-v0.10.0

codex-plugin-v0.4.1

Choose a tag to compare

@gangtao gangtao released this 30 Nov 21:47
7c24a1f

timeplus-agentguard-codex-plugin 0.4.1

A fix for 0.4.0. If you run 0.4.0, upgrade.

What's fixed

  • The response of a model request is now sent in a live session. Codex writes the line that closes a request in its rollout file after the PostModelRequest hook has returned. 0.4.0 looked for that line, so in a live session it sent no response and no request. 0.4.1 takes the response items written since the previous request of the turn. (#335, #336)
  • No delay on model requests. 0.4.0 waited 0.5 s on every model request for a line that was not coming. 0.4.1 does not wait when the response is in the file. It waits, up to 0.25 s, only when the file has nothing of the request yet.
  • Compaction requests are not looked up. Their summary is not a response item, so they are sent without response, and without a wait.

Documentation

  • response.tool_calls[].id is the model's call id. It equals the tool_use_id of the tool hooks for a function the model calls directly (spawn_agent, wait_agent). It does not for shell commands: the model calls exec with a script, and each command has a tool_use_id of its own. The 0.4.0 notes and README said the two always match.
  • PostModelRequest and the tool hooks of the same response run in no fixed order.

Upgrading

pip install -U timeplus-agentguard-codex-plugin (or pipx upgrade timeplus-agentguard-codex-plugin). No configuration change.

How it was checked

  • 13 live cases with Codex CLI 0.172.0 (codex exec) against Timeplus Enterprise with AgentGuard app 0.13.0, on both exports: tool calls, parallel commands, a failing command, apply_patch, content off, text limit, REST ingest, two turns, a sub-agent, an interrupted turn, forced compaction and a failed request. Every stored response matched the finished rollout file.
  • Replay of 54 rollout files (2,288 model requests, Codex 0.163 to 0.172).

Known limits

  • Not run live: the PermissionRequest hook, the interactive Codex TUI and desktop app, MCP and web search tool calls, and Codex versions other than 0.172.0.
  • The rollout file format is not a stable Codex interface.
  • The Agent Monitor of app 0.13.0 does not show the response of a Codex model request yet (timeplus-io/apps#106). The data is in the llm_response rows.

codex-plugin-v0.4.0

Choose a tag to compare

@gangtao gangtao released this 30 Nov 19:46
8d31f13

timeplus-agentguard-codex-plugin 0.4.0

What's changed

  • Each model request now carries its response. On PostModelRequest the plugin reads the response of that request from the Codex rollout file and adds it to the event: the text, its full length, the tool calls the model asked for (id and name) and the phase (commentary or final_answer). (#333, #332)
  • Request settings. The same event carries the turn's reasoning effort and summary settings.
  • Both exports. On the hooks export the new data is response and request in event_data. On the otel export it is the span attributes agentguard.response.text, agentguard.response.text_chars, agentguard.response.tool_calls (a JSON string), agentguard.response.phase, agentguard.request.effort and agentguard.request.summary.
  • Two new settings, the same as in the Claude Code plugin:
    • AGENTGUARD_LLM_CONTENT (default on): set to false to leave out the response text. The length, tool calls, phase and request settings are still sent.
    • AGENTGUARD_LLM_CONTENT_CHARS (default 4000): the response text is cut to this many characters.

Upgrading from 0.3.0

pip install -U timeplus-agentguard-codex-plugin (or pipx upgrade timeplus-agentguard-codex-plugin). No configuration change is needed.

The response text is sent by default. To keep it out of Timeplus:

export AGENTGUARD_LLM_CONTENT=false

The fields are described in the plugin README.

Known limits

  • The plugin finds a request in the rollout file by its turn and token counts, and waits up to 0.5 s for the lines to be written. Codex waits for the hook, so in the worst case each model request is delayed by that much. When no match is found the event is sent without the new fields.
  • This was checked by replaying the rollout files of 26 real Codex sessions (2,195 model requests, all matched), not inside a live Codex session. Whether the response lines are already in the file when the hook fires is not confirmed.
  • The rollout file format is not a stable Codex interface. It was read as written by Codex 0.172.0.
  • The AgentGuard app does not read the new fields yet (timeplus-io/apps#80, timeplus-io/apps#96).

Full Changelog: codex-plugin-v0.3.0...codex-plugin-v0.4.0

claudecode-plugin-v0.9.0

Choose a tag to compare

@gangtao gangtao released this 30 Nov 16:48
9b38eac

@timeplus/agentguard-claudecode-plugin 0.9.0.

What's Changed

  • Each llm_call row says what the model answered (#330, #331). New event_data.response: the text of the response (cut to 4,000 characters, with its full length in text_chars), the tool calls it asked for by id and name, and the size of thinking (thinking_tokens, thinking_duration_ms). The id of a tool call is the tool_use_id of the tool rows, so a tool call can be linked to the model request that asked for it.
  • Request settings. New event_data.request: query_source, max_tokens, effort, thinking (the thinking mode) and requested_model.
  • More usage detail. event_data.usage also has cache_creation (cache writes by 1h and 5m lifetime), server_tool_use, service_tier, speed and inference_geo, when the transcript reports them.
  • Sub-agent requests get the same fields.

Upgrade notes

  • New optional settings: AGENTGUARD_LLM_CONTENT (default true; false sends no response text, only its length and the other fields) and AGENTGUARD_LLM_CONTENT_CHARS (default 4000, the limit of the response text).
  • The response text is sent as the model wrote it, without redaction. A deployment that must not store model text sets AGENTGUARD_LLM_CONTENT=false.
  • Thinking text is not sent: Claude Code stores a thinking block without its text.
  • New fields only. The existing fields of an llm_call row are unchanged; a field the transcript does not record is left out (older Claude Code versions).
  • A row is larger: about 0.9 KB at the median and up to about 4 KB, from about 0.4 KB.

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

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

codex-plugin-v0.3.0

Choose a tag to compare

@gangtao gangtao released this 27 Nov 03:38
dd60af0

timeplus-agentguard-codex-plugin 0.3.0

What's changed

  • Hook-event export, as an alternative to OTel spans. Set AGENTGUARD_CODEX_EXPORT=hooks (or pass --export hooks) and each of the 14 Codex hooks becomes one row in ag.agentguard_hook_events with agent_type = 'codex', like the Claude Code, OpenClaw and Hermes plugins. It needs only port 3218 (timeplusd) or port 8000 (the Timeplus REST API), not the OTLP port 4318, and it does not use the Python SDK. (#323, #321)
  • One path at a time. The export is otel (default) or hooks. There is no setting that sends on both, and an unknown value is reported on stderr and treated as otel.
  • Same ingest settings as the other plugins on the hook path: AGENTGUARD_TIMEPLUS_URL, AGENTGUARD_INGEST_API (timeplusd or rest), AGENTGUARD_USERNAME, AGENTGUARD_PASSWORD, AGENTGUARD_DATABASE, AGENTGUARD_STREAM, AGENTGUARD_WORKSPACE.

The default OTel export is unchanged from 0.2.0.

Upgrading from 0.2.0

pip install -U timeplus-agentguard-codex-plugin (or pipx upgrade timeplus-agentguard-codex-plugin). No configuration change is needed to stay on the OTel export.

To switch to the hook-event export:

export AGENTGUARD_CODEX_EXPORT=hooks
export AGENTGUARD_TIMEPLUS_URL=http://<timeplus-host>:3218
export AGENTGUARD_USERNAME=<timeplus-user>
export AGENTGUARD_PASSWORD=<timeplus-password>

The row format is in the plugin README.

Known limits

  • The AgentGuard app does not yet turn Codex hook-event rows into agentguard_cim_event and agentguard_cim_metrics rows (timeplus-io/apps#71). Until it does, the hook-event export fills agentguard_hook_events only, and Agent Rooms, metrics and detection rules see a Codex session only on the OTel export.
  • The hook-event rows were checked with replayed hook payloads against Timeplus Enterprise 3.5.1-rc.1, not with a live Codex session.

Full Changelog: codex-plugin-v0.2.0...codex-plugin-v0.3.0

claudecode-plugin-v0.7.1

Choose a tag to compare

@gangtao gangtao released this 27 Nov 19:57
d16fb46

@timeplus/agentguard-claudecode-plugin 0.7.1.

What's Changed

  • Fix: the last model request of every turn was missing (#328). Claude Code writes the response that ends a turn to the transcript about 100 ms after it completes, and 0.7.0 read the file just before that. A turn with one request reported zero llm_call rows and an all-zero _llm_usage. On Stop the plugin now waits for that response, for at most 1.5 s.

Upgrade notes

  • Upgrade from 0.7.0: its llm_call rows and _llm_usage are one request short per turn.
  • A turn that made no model request now waits the full 1.5 s before Stop returns.

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

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