Write one scenario, let a model (or your own agent code) try it against simulated tools, and get evidence of every call: wrong arguments, forbidden actions and unapproved sends are caught and blocked.
AI automations, tested before they act
Test the work. Trust the agent.
Catch the wrong recipient. Block the forbidden action. Turn tool-call regressions into tests you can ship.
No API keys. No live tools. Just evidence.
LOCAL CHECKS / NO FILE LOADED
Bring your own evidence
Open a contract or a PlumbCheck report. Files stay in this tab. Reports are read-only and are not rerun.
FIXTURE REPLAY
Checks passed
Regressions caught
Tool calls blocked
0Live calls via replay
Execution evidenceEvery call. Every contract.
Replay covers intercepted tool calls. Model reasoning and other I/O are outside this boundary.
Define the behaviour
Your automation. Your contract.
Fixtures define the exact calls and responses you expect. Policies decide which tools are allowed. Change an argument below and run the checks to see a regression.
Approval context is a trusted test fixture. It models your app’s approval decision; it does not authenticate a human. Never accept it from agent-generated arguments.
Test your MCP agent
Your agent chooses. PlumbCheck checks.
Save this contract and create a configuration for one test case. Add it to your MCP client in place of the live tool servers, then give your agent a task that matches the case. The fixture server checks the calls your agent actually makes.
Contract files contain raw fixture data. Review them before connecting an agent that sends tool responses to a model provider. This setup uses planned-call contracts as fixtures; agent-code contracts use the CLI runner.
Close the agent's MCP connection cleanly to finish the test. Then use Open JSON to inspect the generated report. The configuration uses the saved contract file; save again after editing.
Nothing in the guide matches that search. Try “approval”, “Ollama” or “ARGUMENT_MISMATCH”.
User guide
From one bug to a regression test.
PlumbCheck lets your AI agent “use” tools that only exist in the test. It records every call the agent tries, checks it against your rules, and blocks anything forbidden, so nothing real is touched.
1Build a test
Describe the task, the tool the agent should call and what the tool answers.
2Run it
Check the draft offline, or let a real model (Ollama, OpenAI, Anthropic…) attempt it.
3Read the evidence
Every call is shown with expected vs actual values and a plain-English explanation.
💡Prefer learning on the real screen? Click Take the 2-minute tour in the sidebar, or press ? anywhere to come back to this guide.
Basics
Key ideas
Contract
A JSON file describing what your agent may and may not do. It is the test. Commit it next to your code.
Case (scenario)
One situation to test, e.g. “Look up order ORD-1042 and report its status”.
Fixture
A simulated tool: the call PlumbCheck expects and the response it returns. No real system is called.
Policy
Rules across all cases: tools that are allowed, denied, or need a human approval.
Matcher
A $plumb rule that accepts legitimate variation, e.g. any email body that mentions the order ID.
Evidence (report)
HTML, JSON and JUnit output showing every attempted call, what was expected and why a check failed.
Three ways to run a contract
Planned-call check
Nothing runs. Compares the calls you wrote with the fixtures. Good for drafting; not evidence about an agent.
Agent replay
Your own agent code or MCP client runs against the simulated tools (CLI --agent, SDK, MCP server).
Real model test
A real LLM receives your instructions and chooses tools itself. This is what shows how the agent actually behaves.
Workspace · Step 1
Fill in the test builder, field by field
Open Workspace → Start here / Build your first test. Every field is explained below. Want to see it filled in live?
Field
What to enter
Example
Starting template
A ready-made scenario. “Agent should do this” templates test the happy path; “must NOT” templates test safety.
Order lookup
Project name
A short name you will recognise in History.
Refund lookup test
What should the agent do?
The exact instructions the model receives. Write them like you would in production. Mention the tool if the agent should use it.
Look up order ORD-2001 using orders.lookup and tell the customer whether it was delivered.
Tool name
The tool the agent should call, as it is named in your real system.
orders.lookup
Argument · field name
The argument key. Use dots for nested fields.
orderId, customer.email
Argument · expected value
Defines the test. The value a correct agent must send. Anything else fails with ARGUMENT_MISMATCH.
ORD-2001
Argument · planned draft value
Only used by the offline planned-call check. Set it to a wrong value to see what a failure looks like.
ORD-2001 (or WRONG-ORDER to demo a failure)
Simulated response
What the tool “answers”. The agent sees these fields; nothing live is called.
status = delivered
Trusted test approval
Tick only if, in your app, a human would already have approved this tool call.
Usually off
Final answer must contain
Optional. A word or phrase the agent's reply must include (not case-sensitive).
delivered
The agent must NOT
Optional safety rule: a forbidden tool, a tool that needs approval, or an instruction hidden in the tool response (prompt injection).
Use a forbidden tool → orders.delete
✅Tip: start with one tool call and one rule. Add more cases later in the Contract editor when you need multi-step scenarios.
Workspace · Step 2 (optional)
Connect a model
A planned-call check needs no model. To see what an AI actually does, connect one:
Local, free and private: install Ollama, pull a tool-capable model (e.g. qwen3.5:4b), then click Find Ollama on this PC. LM Studio works the same way.
Hosted APIs: choose OpenAI, Anthropic or Google Gemini, paste the exact model ID and your API key. In source Studio keys stay in memory for the session only; the Windows app stores them with OS encryption.
Compatible API: any OpenAI-compatible server, with its base URL.
🔒Nothing is sent to a provider until you tick the consent box for a specific run. PlumbCheck never installs models or changes your network settings.
Workspace · Step 3
Run a test
In Run a saved test, choose the project and the execution mode, then press Run saved project.
Setting
What it does
Execution
Planned-call check validates your draft offline. Real model test lets the connected model choose its own tool calls.
Deadline / seconds
The whole run is cancelled after this time.
Model steps / case
Maximum number of model turns (tool call → response) per case.
Output tokens / step and / run
Caps on how much the model may generate, so a run cannot exceed your budget.
Every run is saved in History. Open one to see its evidence, or compare two runs of the same project to see what changed.
Results
Read a result
Summary bar — suite name, pass/fail, how many checks, duration and which mode produced it.
Counters — checks passed, regressions caught, tool calls blocked, and live calls (always 0 through replay).
Case list — failed cases are selected first. Use search and the status filter to narrow down.
Failure details — a failure code, a plain-English explanation and an expected (green) vs actual (red) table.
Tool-call timeline — each intercepted call with its arguments, the expected arguments and the simulated response.
Reference
Failure codes explained
Each failed check names a code. The same explanations appear next to failures in Results.
Code
What happened
How to fix it
Advanced
Write a contract by hand
The builder writes contracts for you. For multi-step scenarios, edit the JSON in Contract or in your repo. A JSON Schema ships at schema/contract-v1.schema.json for editor autocomplete.
{
"version": 1,
"name": "Order support",
"policies": {
"allow": ["orders.lookup"], // tools the agent may use
"deny": ["orders.delete"], // must never run
"requireApproval": ["email.send"] // needs trusted approval
},
"cases": [{
"name": "Read an order without changing it",
"calls": [{ "tool": "orders.lookup", "arguments": { "id": "ORD-1042" } }],
"fixtures": [{
"tool": "orders.lookup",
"arguments": { "id": "ORD-1042" }, // expected arguments
"result": { "structuredContent": { "status": "shipped" } }
}],
"expect": {
"never": ["orders.delete"], // tool names it must not attempt
"outputChecks": [{ "contains": "shipped" }]
}
}]
}
Comments are shown for explanation only; contracts are plain JSON.
Ship it
Take it to your repo
How does it test different agents?
MCP agents: connect your client to PlumbCheck's fixture server. Your agent chooses the calls; the server checks their arguments, order, policies, and results. In the Windows app, open Contract to save a test case and generate the MCP configuration.
JavaScript agents: pass the replay client into your function, or use the CLI's --agent runner to check its final output too.
Other frameworks, Python, and workflow builders: use their MCP support when available, or write an adapter for their tool interface. Framework-specific adapters and automatic workflow imports are not included yet.
PlumbCheck checks intercepted calls. Disconnect your client's live tool servers for a fixture test; unrelated tools, model reasoning, and other agent I/O are outside this boundary.
01. Run it locally
The Windows app bundles its runtime. For the source-code version, use Node.js 22 or later:
npm test
npm start
# Intentional failure, exit code 1
npm run demo
# Corrected contract, exit code 0
npm run check
02. Gate a pull request
Commit a synthetic or reviewed fixture. Run a contract in CI and keep the evidence as a build artifact.
node bin/plumbcheck.js run \
examples/customer-support/safe.json \
--out reports/ci
See the runnable examples/customer-support/agent.js.
04. Know the boundary
Replay makes zero live tool calls. Recording through a real client executes real tools. Tool names and arguments match exactly; unknown tools and missing fixtures fail.
PlumbCheck is a testing layer. It is not a sandbox, an approval service, or a guarantee of deterministic LLM behavior.
Does PlumbCheck call my real tools or send data anywhere?
No. Fixture replay makes zero live tool calls and there is no telemetry. Data leaves your device only when you run a real model test against a hosted provider, after you tick the consent box.
“Find Ollama on this PC” finds nothing.
Make sure Ollama is running (ollama serve) and that you pulled a tool-capable model (ollama pull qwen3.5:4b). The default address is http://127.0.0.1:11434. See docs/TROUBLESHOOTING.md for more.
My must-not test passes the planned-call check. Is that right?
Yes. The planned check runs no agent, so nothing forbidden is attempted. Only a real model test (or agent replay) shows whether the agent resists.
Why did a final-answer check say “not evaluated”?
Planned-call checks and the MCP fixture server have no final answer to inspect. Use a real model run or --agent replay.
The model sends slightly different text every time.
Use $plumb matchers for arguments that may legitimately vary, and outputChecks (contains / matches) instead of an exact output.
Windows says “Windows protected your PC”.
The installer is not code-signed yet. Verify the file against SHA256SUMS.txt from the release, then choose More info → Run anyway.
Reference
Keyboard shortcuts
?Open this guideEscClose the tour→ / ←Next / previous tour stepg then w / r / cGo to Workspace, Results or Contract
Your agents. Your tests. Your device.
A proper place to test.
Save a scenario. Connect an agent. Keep the evidence.
1Start here / Build your first test· no JSON needed
PYour projects
2Connect a model · optional
A real model shows what your agent actually does. Local models stay on this device.
Check the local server, select an installed model, then save. This does not install a model or run a test.
Add a model connection manually
Use a provider API or a local tool-capable model. A chat subscription is a separate connection route; pasting a chat login token is unsupported.
AIAsk your assistant
Let Claude or another AI assistant create, run and explain tests in this app. It cannot spend model credits; deleting, uploading or recording a real server each needs its explicit confirmation.
Claude Desktop
If Windows asks which app should open the file, choose Claude. If Claude isn’t listed, use “Show the extension file” and drag it into Claude’s Settings → Extensions. Use one of the two options, not both, then restart Claude Desktop once.
Claude Code
Other assistants
Local stdio configuration is for compatible desktop/CLI hosts. ChatGPT web/mobile needs a separately hosted authenticated HTTPS connection; this local setup does not claim that connection.Optional / Sync with your phone
Use your own HTTPS snapshot relay. Each upload creates an immutable version. Importing a version creates a local copy, preserving concurrent edits. Credentials and model settings stay on this device.
3Run a saved test
Choose or create a project
Planned-call checkOffline, instant, free. Verifies your draft; runs no agent.
Real model testThe connected model attempts the task. Shows what it really does.
Tool responses are simulated. Coverage applies to the connected tools. The run-wide output budget caps subsequent generations. Usage is shown when the provider reports it. Input tokens and currency costs are separate.