Skip to main content
The PandaProbe Harness wraps any PandaProbe-instrumented agent in a self-healing envelope: it evaluates every completed turn, posts a diagnostic notice when quality degrades, and gives your agent the tools to analyze its own failures and write — and prove — its own operating rules.
Before you begin, make sure you have:
  • A PandaProbe account. Sign up at app.pandaprobe.com.
  • A PandaProbe API key + project name.
  • The pandaprobe CLI installed and authenticated — the harness reaches the platform exclusively through it.
  • An agent traced with the PandaProbe SDK, so its sessions produce scoreable traces.
1

Install the package

The core has zero runtime dependencies. Framework adapters are optional extras, e.g. pip install "pandaprobe-harness[langgraph]".
2

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.
3

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:
4

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.
5

Watch a healing cycle

Nothing else is required — the loop is fully automatic:
  1. A turn finishes and its session scores breach (e.g. agent_reliability drops below 0.5).
  2. The harness posts a diagnostic notice to the workspace mailbox and the system context grows a ⚠ HARNESS: 1 pending diagnostic notice(s) banner.
  3. 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.
  4. 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.
  5. The validated rule re-enters the system prompt on every future run.
Inspect what happened at any time:

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