Overview
These plugins send coding-agent sessions to Judgment. A session is the set of traces from one conversation. Each user turn becomes one trace, with the prompt, the model calls, and the tool calls inside it.
Tracing stays off until a project opts in. A hook writes each event to a local queue and returns, so the agent never waits on the network. A background process sends the turn after it ends. If a send fails, the agent keeps running and the send is retried later.
Install
The plugins run on macOS and Linux. The hooks need jq and python3 (3.9 or later) on PATH. Without either one, the hooks still return and nothing is traced. Pi without jq records each event's ids and timing, and none of its text. The Hermes plugin runs in Hermes's own Python and doesn't need jq.
The Pi plugin requires Pi >= 0.80.5, installed with npm install -g @earendil-works/pi-coding-agent. Older Pi versions, including the deprecated @mariozechner/pi-coding-agent package (which ends at 0.73.1), do not emit agent_settled, so nothing is traced.
-
Save your credentials in ~/.config/judgment/credentials, then run chmod 600 on that file. See Credentials for every field.
JUDGMENT_API_KEY=<your-api-key>
JUDGMENT_PROJECT_ID=<your-project-id>
-
Install the plugin for each agent you run. Each agent installs and updates it through its own plugin system. The setup pages have the details.
| Agent | Install | Update | Setup page |
|---|
| Claude Code | claude plugin marketplace add JudgmentLabs/judgeval-coding-agent, then claude plugin install judgment-tracing@judgment-tracing | claude plugin marketplace update judgment-tracing && claude plugin update judgment-tracing@judgment-tracing | claude-code/README.md |
| Codex | codex plugin marketplace add https://github.com/JudgmentLabs/judgeval-coding-agent.git, then codex plugin add judgment-tracing@judgment-tracing, then trust the hooks when Codex starts | Automatic when a session starts | codex/README.md |
| Cursor | One copy command into ~/.cursor/plugins/local | Run the copy command again | cursor/README.md |
| Pi | pi install git:github.com/JudgmentLabs/judgeval-coding-agent | pi update --extensions | pi/README.md |
| Hermes Agent | Copy hermes/ to ~/.hermes/plugins/judgment-tracing, then hermes plugins enable judgment-tracing --no-allow-tool-override | git pull in the clone, then replace the plugin folder as hermes/README.md shows | hermes/README.md |
-
Turn tracing on in a project, from its root:
mkdir -p .judgment && printf '{"enabled": true}\n' > .judgment/tracing.json
Before the first traced session, add the project's secret files and commands to that file. List what to hide has the steps, for you or for the coding agent that sets tracing up. Turn tracing on for a project lists the other settings.
-
Start a new agent session in that project and send a prompt. The trace appears in the project's Traces view a few seconds after the turn ends.
Turn tracing on for a project
Tracing is on in a directory when .judgment/tracing.json is in it or in a parent of it. The file looks like this:
{
"enabled": true,
"capture": "sanitized",
"sessionDefault": "on"
}