ProbeAgent

Developers

Architecture

ProbeAgent separates task construction, execution, trajectory analysis, search, and failure-mode induction. The command line connects these components through one validated configuration.

Source modules#

Package Responsibility
config Configuration models, loading, environment overrides, and presets
core Scenario and record types, seed checks, execution outcomes, and verdicts
seeds Candidate selection and reference/target/baseline checks
agentic Builder and reviewer backends, workspace tools, and agent loops
synthesis Task generation, scanning, semantic review, and revision loops
harbor Harbor task materialization and execution
analysis Loading trajectories and generating failure explanations
search Campaign coordination, coverage, and exploration/sibling scheduling
expansion Environment state and sampling policy
induction Embeddings, pair judgments, grouping, descriptions, and evaluation
report Reading campaign, recurrence, cost, and replay results
bench Benchmark sweeps and resumable result ledgers

The entry point is probeagent.cli:app. Public data structures are in src/probeagent/core/types.py; configuration fields are in src/probeagent/config/models.py.

Data flow#

  1. A source task and configured intent guide candidate construction.
  2. A scanner and reviewer admit the candidate or request revisions.
  3. Harbor runs the target in the admitted environment and records the trajectory.
  4. The analyst explains unsuccessful executions into failure records.
  5. Search schedules further exploration and sibling tests.
  6. Induction reads one or more record stores and writes failure-mode descriptions.

A campaign's storage.root holds the generated data. Multiple campaigns use separate roots; induction can combine them through induction.corpora or repeatable --records flags.

Agent configuration#

The target's model and Harbor agent are set under agent.harbor. Extra tools, MCP servers, skills, and prompts are declared in the corresponding agent fields. The builder, reviewer, analyst, search planner, embedder, and induction judge have separate model-role settings; see Configuration.

Repository organization#

src/, tests/, and configs/examples/ contain reusable project code and examples. Local configurations, downloaded tasks, run directories, and generated reports are ignored by Git. The original runbooks and experiment-specific configurations are preserved in the private backup repository linked from the main README.

Building documentation#

Markdown sources live under docs/src/. Generators live under scripts/docs/. Run the complete pipeline from the repository root:

python scripts/build_docs.py

It regenerates CLI/configuration tables and diagrams, renders the registered pages, rebuilds search, and validates local links and anchors. GitHub Pages serves the generated HTML and assets from main:/docs. Edit the Markdown or shared generators rather than the output HTML.

ProbeAgent — principled diagnosis of agent failures Source