Architecture · LikeC4
codeprobe
Mines tasks from a repo, replays agents against them in isolation, scores against oracles, and ranks configs
The whole picture
System landscape
The system in context, then opened up into its containers.
Inside each box
Containers & components
Each part decomposed into the components that implement it. Every box links to its source in the interactive explorer.
CLI — command group & subcommands
cliContainercli/ — Click command group: assess, mine, run, interpret, experiment, probe, snapshot, …
Mining — repo history → tasks + consensus oracle
miningContainermining/ — extract eval tasks from git history; build oracle ground truth via multi-backend consensus
Execution engine — isolated agent replay
executionContainercore/ — drive each agent config against each task in an isolated worktree; collect telemetry
Agent adapters — the Adapter + Collector boundary
adaptersContaineradapters/ — Adapter + Collector hybrid: drive each agent CLI, collect token/cost telemetry
Scoring / verifier — reward families & honesty guards
scoringContainercore/scoring/ — score agent output against oracle ground truth; honesty-linted reward families
Analysis — deterministic ranking + statistics + report
analysisContaineranalysis/ — compare configs statistically and emit a ranked, formatted report
Calibration + QA — validity gates on the corpus
calibrationContainercalibration/ + qa/ — validity gates: inter-curator agreement and cross-task leakage
Snapshot + trace — redacted shareable artifacts
snapshotContainersnapshot/ + trace/ — deterministic redacted experiment snapshots; SQLite agent-trace recorder
Supporting libraries — domain, config, LLM, preambles
supportContainermodels/ config/ loaders/ llm/ preambles/ net/ ratings/ — shared domain + IO plumbing
How it runs
Walkthrough flows
Dynamic views — the narrative spine of the system, step by step.
Walkthrough — mining tasks with a consensus oracle
mineFlowMulti-source consensus is on by default: every backend runs and a task ships only when ≥2 agree above the F1 threshold. This is the structural defense against the MCP-bias tautology — do not pass --no-consensus for MCP-vs-no-MCP comparisons.
Walkthrough — replaying an agent against a task
runFlowEach task runs in its own worktree pinned to the task commit; hide/scaffold isolation can stash local source so the agent must use MCP. Every adapter extracts token/cost telemetry — that is a contract, not best-effort.
Walkthrough — scoring output against the oracle
scoreFlowReward families are honesty-linted: an F1-family branch must never silently fall back to recall, and ScoreResult must declare scorer_family=. Failures score as "incorrect" — they are never dropped.
Walkthrough — interpret with bias guards
interpretFlowBefore ranking, three bias detectors fire (backend_overlap / overshipping / no_independent_baseline). When no independent baseline exists the aggregate winner is suppressed by design — the table prints, the ranking does not.
Explore it live
The figures above are static exports. The interactive explorer lets you pan, zoom, follow relationships, and jump from any box to the source.