Repository navigation
Releases
claudecode-plugin-v0.11.0
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_URLandAGENTGUARD_HOLDS_FAIL_POLICYare ignored and can be removed from your settings. - On
PreToolUsethe plugin writes nothing to stdout. Earlier versions answeredpermissionDecision: "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,
PreToolUseincluded, can be registeredasync. An existing synchronousPreToolUseentry keeps working. - The
before_tool_callrow is unchanged.
codex-plugin-v0.5.0
timeplus-agentguard-codex-plugin 0.5.0.
What's Changed
- Ingest with a Timeplus API key on the
hooksexport (#338, #339). New optional settingAGENTGUARD_API_KEY, so no password has to be kept on the agent host. - The key is used only with
AGENTGUARD_INGEST_API=restandAGENTGUARD_TIMEPLUS_URLpointing at the Timeplus REST API (port 8000), version 3.5.4 or later. The plugin then sendsX-Api-Keyand no username or password. - In
timeplusdmode (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
ingestscope. It can be limited to the streamag.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
timeplusdmode. Not checked: an expired key, and a key after a password change. - The key is for the
hooksexport only. Theotelexport 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
@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=restandAGENTGUARD_TIMEPLUS_URLpointing at the Timeplus REST API (port 8000), version 3.5.4 or later. The plugin then sendsX-Api-Keyand no username or password. - In
timeplusdmode (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
ingestscope. It can be limited to the streamag.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
timeplusdmode. Not checked: an expired key, and a key after a password change. agents/claudecode/Makefile(local dev install) now writesAGENTGUARD_INGEST_API, andAGENTGUARD_API_KEYwhen one is given.
Full Changelog: claudecode-plugin-v0.9.0...claudecode-plugin-v0.10.0
codex-plugin-v0.4.1
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
PostModelRequesthook has returned. 0.4.0 looked for that line, so in a live session it sent noresponseand norequest. 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[].idis the model's call id. It equals thetool_use_idof the tool hooks for a function the model calls directly (spawn_agent,wait_agent). It does not for shell commands: the model callsexecwith a script, and each command has atool_use_idof its own. The 0.4.0 notes and README said the two always match.PostModelRequestand 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
PermissionRequesthook, 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_responserows.
codex-plugin-v0.4.0
timeplus-agentguard-codex-plugin 0.4.0
What's changed
- Each model request now carries its response. On
PostModelRequestthe 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 (commentaryorfinal_answer). (#333, #332) - Request settings. The same event carries the turn's reasoning
effortandsummarysettings. - Both exports. On the
hooksexport the new data isresponseandrequestinevent_data. On theotelexport it is the span attributesagentguard.response.text,agentguard.response.text_chars,agentguard.response.tool_calls(a JSON string),agentguard.response.phase,agentguard.request.effortandagentguard.request.summary. - Two new settings, the same as in the Claude Code plugin:
AGENTGUARD_LLM_CONTENT(default on): set tofalseto leave out the response text. The length, tool calls, phase and request settings are still sent.AGENTGUARD_LLM_CONTENT_CHARS(default4000): 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=falseThe 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
@timeplus/agentguard-claudecode-plugin 0.9.0.
What's Changed
- Each
llm_callrow says what the model answered (#330, #331). Newevent_data.response: the text of the response (cut to 4,000 characters, with its full length intext_chars), the tool calls it asked for byidandname, and the size of thinking (thinking_tokens,thinking_duration_ms). Theidof a tool call is thetool_use_idof 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) andrequested_model. - More usage detail.
event_data.usagealso hascache_creation(cache writes by 1h and 5m lifetime),server_tool_use,service_tier,speedandinference_geo, when the transcript reports them. - Sub-agent requests get the same fields.
Upgrade notes
- New optional settings:
AGENTGUARD_LLM_CONTENT(defaulttrue;falsesends no response text, only its length and the other fields) andAGENTGUARD_LLM_CONTENT_CHARS(default4000, 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_callrow 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
@timeplus/agentguard-claudecode-plugin 0.8.0.
What's Changed
- Sub-agents that end without a
SubagentStophook are reported (#309, #329). Claude Code fires neitherSubagentStartnorSubagentStopfor some foreground sub-agents (web-fetch). When theAgenttool call of such a sub-agent completes, the plugin now sends asubagent_endedrow built from the tool result (event_data.synthetic = true) and the sub-agent'sllm_callrows. - 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_endedrow of a helper such as the compaction summarizer hasevent_data.internal_helper = true. - The README and
docs/cim.mdsay 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-claudecodein the system temp directory; removed onSessionEnd. - A consumer that counts
subagent_endedrows now also sees the synthetic ones; filter onevent_data.syntheticto tell them apart.
Full Changelog: claudecode-plugin-v0.7.1...claudecode-plugin-v0.8.0
codex-plugin-v0.3.0
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 inag.agentguard_hook_eventswithagent_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) orhooks. There is no setting that sends on both, and an unknown value is reported on stderr and treated asotel. - Same ingest settings as the other plugins on the hook path:
AGENTGUARD_TIMEPLUS_URL,AGENTGUARD_INGEST_API(timeplusdorrest),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_eventandagentguard_cim_metricsrows (timeplus-io/apps#71). Until it does, the hook-event export fillsagentguard_hook_eventsonly, 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
@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_callrows and an all-zero_llm_usage. OnStopthe plugin now waits for that response, for at most 1.5 s.
Upgrade notes
- Upgrade from 0.7.0: its
llm_callrows and_llm_usageare one request short per turn. - A turn that made no model request now waits the full 1.5 s before
Stopreturns.
Full Changelog: claudecode-plugin-v0.7.0...claudecode-plugin-v0.7.1
claudecode-plugin-v0.7.0
@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
Stopthe plugin sends onellm_callrow per model request made since the previousStop, with the model, token usage and latency. OnSubagentStopit sends the requests of the sub-agent. A response is counted once, not once per content block. _llm_usageis now the usage of the turn (#326), not a running total of the session, with the counts split by model.run_idis the turn id (#325, #327): theprompt_idof the hook, also on theprompt_context,llm_contextandllm_callrows. It stays equal tosession_idwhen the hook has noprompt_id.
Upgrade notes
- Anything that summed
_llm_usageover thellm_outputrows of a session, or took the last one as the session total, must change: sum thellm_callrows instead. - Anything that relied on
run_id = session_idfor Claude Code must usesession_id. - The AgentGuard app needs a metrics view over the
llm_callrows 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