Reference
Configuration reference
probeagent init writes a local probeagent.yaml. Loading precedence is model
defaults, then YAML, then PROBEAGENT__section__field=value environment overrides.
Override values are parsed as YAML scalars; unknown fields are rejected.
Configurations contain environment-variable names, not secret values. Keep provider credentials in the shell or an untracked local secrets file.
intent — what to probe (§4.0)#
Set a campaign name, a description of the behavior to investigate, and source
task directories under intent.seed_tasks. Populate that list from
probeagent seeds when using real-task amplification.
Model roles — who calls a model, and with whose key#
Six roles besides the target call a model during a campaign, each with its own
endpoint and its own key variable. They are listed here because the count and
the naming have both misled people: the docs used to say "three agent roles",
and the role probeagent doctor prints as analyst is configured at
analysis.judge — which is a different thing from induction.judge.
| role | config path | what it does | costs |
|---|---|---|---|
| target | agent.harbor.model |
the agent under test | the bulk of a run |
| builder | synthesis.builder.model |
writes and repairs environments | yes |
| axes | search.axes_model |
derives the coverage axes from intent |
small, once per campaign |
| analyst | analysis.judge |
explains one failed rollout into a record | yes, per failure |
| induction judge | induction.judge |
rules on record pairs inside the judged band | yes, but only ~5% of pairs |
| embedder | induction.embedder |
embeds record causes for grouping | small |
| generator | synthesis.generator |
the legacy llm synthesizer only |
— |
Which of these run at all depends on synthesis.synthesizer. The default is
template, a deterministic built-in generator that calls no model — under it
neither the builder nor the generator is used. agentic, which is what every
campaign we have run sets and what the rest of this site describes, uses
synthesis.builder. generator belongs to the legacy llm synthesizer. An
earlier version of this table had that backwards.
Two more things follow from it, and neither is obvious from the config file:
Credentials reach the target differently from everything else. The target
runs in a container and gets the variables named in agent.harbor.forward_env.
Every other role is called from the host process and reads the variable named by
its own api_key_env. Both sets have to be present, and they are not the same
set — a config whose six host-side roles all need TOKENROUTER_API_KEY once
passed a preflight that only looked for OPENAI_API_KEY.
A role you do not set does not inherit a global default. Each node carries
its own model, base_url and api_key_env; probeagent doctor prints one line per
role so the six are visible together before anything is spent.
agent — target agent and its equipment#
agent.harbor.name chooses the Harbor agent and agent.harbor.model its model.
Use forward_env for provider-variable names. Optional system prompts, tools,
MCP servers, and skills are configured under their corresponding agent fields.
synthesis — inner-loop generation (§4.1)#
Choose template for deterministic setup checks or agentic for a builder that
varies real source tasks. The builder and reviewer model roles are configured
separately. Quality-round and time budgets bound candidate revision.
scan — admission checks (§4.1)#
Enable the reference solution and do-nothing checks, and configure their reward thresholds. Independent review checks consistency between the instruction, environment, and checker. See Validation.
execution — how Harbor runs are launched#
Select Docker or Daytona, concurrency, retries, and artifact export. Ensure the
configured Harbor executable is on PATH. Forwarded values can appear in job
configuration files; keep execution artifacts local unless reviewed for sharing.
analysis — attribution (§4.3)#
Configure the analyst model, maximum candidate steps, and explanation confidence filter. The analyst reads the trajectory and task requirements.
expansion — outer-loop search (§4.5)#
Sampling limits and the failure threshold determine when an execution outcome
counts as a stable observation. Search scheduling and its build/rollout budgets
are configured under search; see Search.
benchmarks — external benchmark sweeps (probeagent sweep)#
Configure benchmark sources, target settings, rollout depth, and output ledger
paths. The generic example is configs/examples/benchmarks.yaml.
induction — failure-mode grouping#
Configure the embedder and pairwise judge, automatic similarity thresholds,
neighbor count, grouping margin, and held-out fraction. induction.corpora accepts
record stores as agent-label=path entries. Increasing the margin favors smaller,
more internally similar groups.
storage / logging#
storage.root defaults to probeagent-data/. It holds tasks, jobs, failure
records, builder workspaces, and search state. Use separate roots for separate
campaigns. logging.level controls console verbosity.
Adding a new configurable#
Add the field and its description to src/probeagent/config/models.py, add a
validation test when needed, then regenerate the documentation. Reusable
examples live in configs/examples/.
Every field, with its type and default#
The following table is generated from the configuration models.
| field | type | default | what it controls |
|---|---|---|---|
intent |
section | The test intent: what to probe and why (proposal §4.0). | |
intent.name |
str | default |
Short slug naming this probe campaign. |
intent.description |
str | — | Natural-language test intent: capability under scrutiny, scenario domain, measurement goal. Drives LLM synthesis and the intent audit. |
intent.domains |
list[str] | ['tool-use'] |
Scenario families to cover (tool-use, terminal, coding, ...). |
intent.seed_tasks |
list[Path] | [] |
Optional seed environments: paths to existing Harbor-format task directories. Each build starts as a copy of one of these and the builder modifies it (amplifier mode), so the difficulty is inherited from a real task rather than requested of the builder. Empty = generate from the intent alone. |
agent |
section | The agent under test and its full equipment loadout. | |
agent.name |
str | target |
Label used in run/job names. |
agent.preset |
str | — | Optional equipment preset name (see probeagent/config/presets.py); explicit fields below override preset values. |
agent.harbor |
section | How the agent under test is launched by Harbor. | |
agent.harbor.name |
str | claude-code |
Harbor agent: a built-in name (claude-code, codex, terminus-2, nop, oracle, ...), a custom import path 'module.path:ClassName', or an ACP shorthand. |
agent.harbor.model |
str | — | Backbone model for the agent (Harbor -m). None = agent default. |
agent.harbor.kwargs |
map | {} |
Agent kwargs passed as --ak key=value (see the agent's init). |
agent.harbor.forward_env |
list[str] | [] |
Names of environment variables to forward into the agent via --ae KEY= |
agent.system_prompt |
section | System prompt for the agent under test. At most one source. | |
agent.system_prompt.text |
str | — | Inline system prompt. |
agent.system_prompt.file |
Path | — | Path to a file with the prompt. |
agent.tools |
section | One extra CLI tool installed into the environment for the agent to use. | |
agent.tools.name |
str | required | |
agent.tools.enabled |
bool | True |
|
agent.tools.description |
str | — | |
agent.tools.script |
str | — | Executable script body installed as /usr/local/bin/ |
agent.tools.params |
map | {} |
|
agent.mcp_servers |
section | One MCP server made available to the agent (Claude-style config). | |
agent.mcp_servers.name |
str | required | |
agent.mcp_servers.enabled |
bool | True |
|
agent.mcp_servers.transport |
stdio | http | sse | stdio |
|
agent.mcp_servers.command |
str | — | stdio: executable to launch. |
agent.mcp_servers.args |
list[str] | [] |
|
agent.mcp_servers.url |
str | — | http/sse: server URL. |
agent.mcp_servers.env |
map | {} |
Environment for the server process. Values that name an existing environment variable (e.g. 'MY_KEY_ENV') are resolved at render time; never put raw secrets here. |
agent.mcp_servers.allowed_tools |
list[str] | [] |
Optional tool allowlist; empty = all. |
agent.skills |
section | One skill: a directory of instructions/scripts mounted into the environment. | |
agent.skills.name |
str | required | |
agent.skills.path |
Path | required | Local directory containing the skill (SKILL.md + files). |
agent.skills.enabled |
bool | True |
|
agent.skills.description |
str | — | |
synthesis |
section | Environment synthesis (proposal §4.1): solution-first, synthesize–scan–fix. | |
synthesis.synthesizer |
template | agentic | llm | template |
'template' = deterministic built-in generator (no LLM, fully seeded); 'agentic' = a coding agent authors and self-verifies the environment (see builder); 'llm' = single-shot LLM synthesis (legacy; kept for comparison only). |
synthesis.builder |
section | Agent used by the 'agentic' synthesizer. | |
synthesis.builder.kind |
builtin | claude-code | codex | builtin |
'claude-code'/'codex' shell out to those CLIs in headless mode; 'builtin' runs ProbeAgent's own tool-use loop against an OpenAI-compatible endpoint. |
synthesis.builder.executable |
str | — | Override the CLI binary name/path (CLI kinds only). |
synthesis.builder.model |
section | One LLM endpoint (OpenAI-compatible chat API). | |
synthesis.builder.model.model |
str | gpt-5.6-sol |
Model name sent to the API. |
synthesis.builder.model.base_url |
str | https://api.tokenrouter.com/v1 |
OpenAI-compatible base URL (no trailing slash). |
synthesis.builder.model.api_key_env |
str | TOKENROUTER_API_KEY |
Name of the environment variable holding the API key. Never the key itself. |
synthesis.builder.model.temperature |
float | 0.0 |
|
synthesis.builder.model.max_tokens |
int | 8192 |
|
synthesis.builder.model.timeout_sec |
float | 180.0 |
|
synthesis.builder.model.extra |
map | {} |
Extra JSON fields merged into the request body. |
synthesis.builder.max_turns |
int | 40 |
Tool-use turns (builtin kind). |
synthesis.builder.timeout_sec |
float | 2400.0 |
Wall-clock cap per attempt. |
synthesis.builder.allow_bash |
bool | True |
Give the builder a shell. Required for self-verification (it must be able to build the image and run the checks). Scope is the workspace directory; this is a guardrail, not a sandbox — see probeagent/agentic/tools.py. |
synthesis.builder.self_verify |
bool | True |
Hand the builder the verification command and require it to pass before reporting done. The harness still re-verifies independently afterwards. |
synthesis.builder.extra_args |
list[str] | [] |
Extra CLI args (CLI kinds only). |
synthesis.generator |
section | LLM used by the legacy 'llm' synthesizer. | |
synthesis.generator.model |
str | gpt-5.6-sol |
Model name sent to the API. |
synthesis.generator.base_url |
str | https://api.tokenrouter.com/v1 |
OpenAI-compatible base URL (no trailing slash). |
synthesis.generator.api_key_env |
str | TOKENROUTER_API_KEY |
Name of the environment variable holding the API key. Never the key itself. |
synthesis.generator.temperature |
float | 0.0 |
|
synthesis.generator.max_tokens |
int | 8192 |
|
synthesis.generator.timeout_sec |
float | 180.0 |
|
synthesis.generator.extra |
map | {} |
Extra JSON fields merged into the request body. |
synthesis.audit_enabled |
bool | True |
Run the independent audit agent over each built environment. An environment is admitted only when the executable checks pass AND the reviewer approves; the reviewer's findings go back to the builder as revision feedback. |
synthesis.max_quality_rounds |
int | 5 |
Attempts at one environment (build/verify/review). Running out discards it rather than admitting something unreviewed. |
synthesis.drop_brief_rules |
list[str] | [] |
Named rules to withhold from the builder brief, for ablations. identity removes the rule that a variant must still ask what its seed asked. An ablation must never be run by editing the brief in the working tree: one was, and a routine git add -A src committed the stripped rule to main, silently removing a core design constraint from the project. |
synthesis.max_build_seconds |
int | 1800 |
Wall-clock budget for one environment, initial build included. Rounds cap attempts, not time — a round is minutes or an hour depending on what the builder does, and one measured environment spent 2h12m inside a 5-round cap. When the budget is spent the current stage finishes, no new revision starts, and the environment is discarded with the time in the reason. Admission that has already happened is never revoked. |
synthesis.max_fix_iterations |
int | 3 |
Bounded fix loop: scan feedback rounds before a scenario is discarded. |
synthesis.scenarios_per_round |
int | 4 |
|
synthesis.template |
str | expense-audit |
Which built-in template the template synthesizer uses. |
scan |
section | Scanner checks (proposal §4.1). Hard checks gate admission. | |
scan.oracle_check |
bool | True |
Replay π* via Harbor '-a oracle'; reward must reach threshold. |
scan.null_check |
bool | True |
Run '-a nop' (do-nothing agent); reward must be 0. Catches vacuous checkers that pass anything — the symmetric twin of the oracle check. |
scan.oracle_reward_threshold |
float | 1.0 |
|
scan.judge_samples |
int | 3 |
Extra oracle replays when the checker asks a model rather than running something. The reference solution is fixed, so every replay is the same input: any spread in the reward is the judge disagreeing with itself. 1 disables the measurement. |
scan.max_judge_spread |
float | 0.0 |
How much a judge may vary on identical input and still be admitted. 0.0 means it must be exactly reproducible. A judge noisier than this cannot support a claim that an agent failed — the noise is larger than the signal. |
execution |
section | How Harbor runs are launched (scanner checks and target-agent rollouts). | |
execution.engine |
docker | daytona | docker |
Harbor execution engine (-e). Local scans default to docker; use daytona for scaled-out target runs. Requires DAYTONA_API_KEY in the environment. |
execution.harbor_bin |
str | harbor |
Harbor executable (name or path). |
execution.n_concurrent |
int | 4 |
Harbor -n. |
execution.n_attempts |
int | 1 |
Harbor -k (attempts per trial). |
execution.timeout_multiplier |
float | 1.0 |
|
execution.extra_args |
list[str] | [] |
Raw extra args appended to every harbor invocation. |
execution.adaptive_concurrency |
bool | True |
On build/quota/rate-limit failures, automatically halve concurrency (down to min_concurrent) and retry the run. The reduction is sticky for the rest of the runner's lifetime. |
execution.min_concurrent |
int | 1 |
Floor for adaptive reduction. |
execution.max_run_retries |
int | 2 |
Retries per harbor run when a transient infra failure is detected. |
execution.export_artifacts |
bool | True |
Download job artifacts/logs immediately after each run. Non-negotiable on Daytona: stopping a sandbox destroys it irreversibly. |
analysis |
section | Trajectory attribution (proposal §4.3). | |
analysis.judge |
section | LLM that reads failed trajectories and explains them. | |
analysis.judge.model |
str | gpt-5.6-sol |
Model name sent to the API. |
analysis.judge.base_url |
str | https://api.tokenrouter.com/v1 |
OpenAI-compatible base URL (no trailing slash). |
analysis.judge.api_key_env |
str | TOKENROUTER_API_KEY |
Name of the environment variable holding the API key. Never the key itself. |
analysis.judge.temperature |
float | 0.0 |
|
analysis.judge.max_tokens |
int | 8192 |
|
analysis.judge.timeout_sec |
float | 180.0 |
|
analysis.judge.extra |
map | {} |
Extra JSON fields merged into the request body. |
analysis.max_candidates |
int | 5 |
Candidate faulty steps requested per trajectory. |
analysis.min_confidence |
float | 0.0 |
Drop explanations below this confidence when aggregating. |
analysis.embedding_model |
str | text-embedding-3-large |
Embedding model for failure-aware clustering. |
analysis.min_cluster_size |
int | 3 |
|
induction |
section | Consolidating explained failures into modes (§4.4). Runs offline. | |
induction.embedder |
section | Embedding model. Vectors are mean-centered over the corpus before cosine similarity is computed. | |
induction.embedder.model |
str | gpt-5.6-sol |
Model name sent to the API. |
induction.embedder.base_url |
str | https://api.tokenrouter.com/v1 |
OpenAI-compatible base URL (no trailing slash). |
induction.embedder.api_key_env |
str | TOKENROUTER_API_KEY |
Name of the environment variable holding the API key. Never the key itself. |
induction.embedder.temperature |
float | 0.0 |
|
induction.embedder.max_tokens |
int | 8192 |
|
induction.embedder.timeout_sec |
float | 180.0 |
|
induction.embedder.extra |
map | {} |
Extra JSON fields merged into the request body. |
induction.judge |
section | Decides pairs the geometry is not confident about, and writes each mode's assertion against its nearest non-members. | |
induction.judge.model |
str | gpt-5.6-sol |
Model name sent to the API. |
induction.judge.base_url |
str | https://api.tokenrouter.com/v1 |
OpenAI-compatible base URL (no trailing slash). |
induction.judge.api_key_env |
str | TOKENROUTER_API_KEY |
Name of the environment variable holding the API key. Never the key itself. |
induction.judge.temperature |
float | 0.0 |
|
induction.judge.max_tokens |
int | 8192 |
|
induction.judge.timeout_sec |
float | 180.0 |
|
induction.judge.extra |
map | {} |
Extra JSON fields merged into the request body. |
induction.join_threshold |
float | 0.15 |
Centred cosine at or above which a pair is taken as one mode without asking. Above the highest cross-mode similarity seen in calibration. |
induction.split_threshold |
float | -0.1 |
Centred cosine at or below which a pair is taken as two modes without asking. Everything between the two goes to the judge — one threshold would force a decision exactly where mode edges live. |
induction.judge_workers |
int | 8 |
Maximum concurrent pairwise-judge calls during induction. |
induction.corpora |
list[str] | [] |
Record stores to induce over, written as agent-label=path or plain paths. Labels provide provenance for records that do not already identify their agent. |
induction.auto_thresholds |
bool | True |
Calibrate join and split thresholds from cached pair judgments, targeting 90% same-mode precision and 98% different-mode precision. Configured thresholds remain the fallback until enough judgments are available. |
induction.judge_neighbours |
int | 15 |
Judge each record against at most this many of its nearest band partners; 0 judges the whole band. Grouping never needed the complete graph — same-mode edges close transitively, so distant pairs are reached through chains of neighbours — and this keeps judge calls near-linear in the corpus instead of quadratic. |
induction.holdout_fraction |
float | 0.25 |
Records withheld from grouping and then classified with the resulting assertions. Without this, 'these belong together' is asserted by the same kind of model that grouped them. |
induction.margin |
float | 0.05 |
Required similarity margin between within-group pairs and neighboring failures outside the group. Larger values produce finer groups. |
expansion |
section | Outer-loop search (proposal §4.5). | |
expansion.min_samples |
int | 2 |
Minimum rollouts before a node outcome is used as a stable observation. |
expansion.variance_samples |
int | 4 |
Rollout cap for a node with mixed outcomes. Past this it is reported as unstable rather than sampled further. |
expansion.failure_threshold |
float | 0.5 |
A rollout counts as a failure below this reward, and a seed counts as one the target fails below it too. Not 1.0: several benchmarks score continuously, where reward < 1.0 means 'not perfect' rather than 'could not do it'. A lawbench candidate scoring 0.993 was accepted as a seed the target fails, and a rollout at 0.99 would have been sent to the analyst to explain a failure that did not happen. |
expansion.rollout_budget |
int | 100 |
Hard cap on target-agent rollouts per campaign. |
search |
section | The macro/micro search (see probeagent.search.scheduler). | |
search.siblings_per_mode |
int | 3 |
Sibling environments built to test whether one failure generalises. Below 3 a single unrelated outcome flips the verdict. |
search.macro_dry_streak |
int | 3 |
Consecutive exploration builds yielding no new failure label before exploration stops. Queued verification work still runs. |
search.explore_every |
int | 3 |
At most this many consecutive verification builds before exploration gets one, while exploration is still open. Siblings can surface new modes, which queue siblings of their own: one live campaign spent 14 of 18 builds verifying and explored 4 seeds out of 14, so most of the benchmarks it was given were never touched. 1 alternates strictly; a very large value restores the old queue-first behaviour. |
search.max_spec_attempts |
int | 3 |
Proposals allowed per gap before it is treated as unreachable. The check is cheap and happens before the build, so retrying costs seconds. |
search.build_budget |
int | 20 |
Environments built per campaign. |
search.rollout_budget |
int | 60 |
Target-agent rollouts allowed. |
search.axes_model |
section | LLM that derives the axes and proposes specs. Cheap calls next to a build. | |
search.axes_model.model |
str | gpt-5.6-sol |
Model name sent to the API. |
search.axes_model.base_url |
str | https://api.tokenrouter.com/v1 |
OpenAI-compatible base URL (no trailing slash). |
search.axes_model.api_key_env |
str | TOKENROUTER_API_KEY |
Name of the environment variable holding the API key. Never the key itself. |
search.axes_model.temperature |
float | 0.0 |
|
search.axes_model.max_tokens |
int | 8192 |
|
search.axes_model.timeout_sec |
float | 180.0 |
|
search.axes_model.extra |
map | {} |
Extra JSON fields merged into the request body. |
benchmarks |
section | Benchmark sweep configuration (probeagent sweep). |
|
benchmarks.datasets |
section | One external benchmark dataset to run in a sweep. | |
benchmarks.datasets.dataset |
str | required | Harbor registry dataset, 'name@version'. |
benchmarks.datasets.n_tasks |
int | 1 |
Tasks to run from this dataset. |
benchmarks.datasets.enabled |
bool | True |
|
benchmarks.datasets.notes |
str | — | Why this benchmark is in the sweep. |
benchmarks.datasets.timeout_sec |
float | 5400.0 |
Wall-clock cap for each harbor invocation. |
benchmarks.nop_first |
bool | True |
Run the nop agent before the real one; on nop failure, skip the paid run for that dataset (plumbing is broken, tokens would be wasted). |
benchmarks.continue_on_error |
bool | True |
Keep sweeping after a dataset fails. |
benchmarks.ledger |
Path | — | Results ledger path (default: |
storage |
section | Where ProbeAgent keeps everything. All paths derive from root unless overridden. | |
storage.root |
Path | probeagent-data |
|
storage.tasks_dir |
Path | — | Default: |
storage.jobs_dir |
Path | — | Default: |
storage.modes_dir |
Path | — | Default: |
storage.tree_path |
Path | — | Default: |
logging |
section | ||
logging.level |
DEBUG | INFO | WARNING | ERROR | INFO |