NEW Workflows: agents follow the steps, you sign off. Read more →
Ulpi

regress

PLUGIN

Regression tests built from your own sessions.

by harishkotra · v0.1.0

What it does

Regression tests built from your own sessions. Capture is passive: every finished turn is written as a plain JSON case holding the prompt, the model, each tool call with its exact arguments and the output it returned.

Replay a case through the real agent loop with every tool call vetoed at pre_tool_call and answered from the recording, so a model, provider or config change can be measured without side effects — /regress run --model X reports pass, drift, regressed and error per case, with markdown, JUnit XML and a hash-chained export bundle for CI. Fixtures match only on identical tool and arguments; a case whose tool plan cannot be reproduced is reported as a gap instead of being answered from the wrong recording, and a replay window that never reaches the hook is marked error and stops the run rather than executing live tools.

Disclosure — writes captured cases under ULPI_HOME/plugin-data/ulpi-regress/ (mode 0600) with the prompt, answer, tool arguments and tool results all passed through redaction first (provider keys, GitHub/Slack/AWS tokens, JWTs and inline password/token values become [REDACTED], counts recorded per case); keeps replay state in the same directory (armed.json plus an audit line per armed tool call in hook.log), scopes the replay veto to the single session that claims the armed case (only a first turn whose message exactly matches the recorded prompt can claim it, recorded from pre_llm_call), keeps that scope through a mid-turn context compression by matching the claimed task id as well as the session id, and serialises claims with a file lock, so an unclaimed window serves and blocks nobody, a late claim cannot revive a disarmed window, and other chats and cron runs are never affected, and runs the local ulpi CLI as a subprocess when you ask for a replay; no network calls of its own, no telemetry.

Review notes

What an owner reads and accepts before the install is approved.

  • Ulpi has not reviewed this version: it is listed in the public plugin catalog, and the install still fetches it at its pinned commit, checks its shape and scans it before you approve

More in Tools

All listings →