Skip to content

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