Before you begin, make sure you have:
- A PandaProbe account. Sign up at app.pandaprobe.com.
- A PandaProbe API key + project name.
- The
pandaprobeCLI installed and authenticated — the harness reaches the platform exclusively through it. - An agent traced with the PandaProbe SDK, so its sessions produce scoreable traces.
Install the package
- pip
- uv
pip install "pandaprobe-harness[langgraph]".Install and authenticate the CLI
Every platform call the harness makes — running evaluations, polling scores, inspecting traces — shells out to
pandaprobe. It never talks to the REST API directly.Pick a workspace root
The harness maintains its diagnostic workspace (mailbox, journal, rules, eval cases) on disk. The default is
/harness; point it anywhere writable:Wire the harness into your agent loop
Any custom loop integrates in a handful of lines — no adapter required:Using LangGraph, CrewAI, or another supported framework? A
Harness.for_<framework>() factory wires turn detection for you — see Framework adapters.Watch a healing cycle
Nothing else is required — the loop is fully automatic:
- A turn finishes and its session scores breach (e.g.
agent_reliabilitydrops below0.5). - The harness posts a diagnostic notice to the workspace mailbox and the system context grows a
⚠ HARNESS: 1 pending diagnostic notice(s)banner. - Guided by the standing protocol, your agent pulls the notice, inspects the flagged traces, and records a mitigation rule — which enters as an unproven candidate.
- The harness validates the candidate automatically (by replaying the captured failure, or by watching the next live sessions) and promotes it to an active rule — or retires it.
- The validated rule re-enters the system prompt on every future run.
Try it offline first
The repository ships runnable, fully-offline demos — no credentials, no network:What’s next?
Concepts
What self-healing means here, and the ideas behind the closed loop
How it works
The full pipeline, the workspace on disk, and one healing cycle in detail
Framework adapters
LangGraph, LangChain, DeepAgents, CrewAI, Claude Agent SDK, OpenAI Agents

