Experiments and rounds

How neatlogs tests a change to your agent before release, in one model.

Beta
Experiments is in beta. It is live and you can use it today; screens, CLI flags and limits may still change. Send feedback or problems to neatlogs-support@neatlogs.com.

An experiment answers one question before you ship a change: is the changed version of my agent better, measured the way my goal says? It is the step between reviewing a change and verifying it in production.

The parts, at a glance

  • Experiment: one goal, written in plain words: what must improve and what must not get worse.
  • Setup: the cases, the pass/fail questions, the judge (an AI evaluator) and the detections. It is frozen, so every round on it is judged the same way.
  • Round: one comparison of A (the current version) and B (the changed version) on the same cases.
  • Case run: one version running one case, recorded as a trace.
  • Verdict: the round's answer. Outcome: whether the goal was reached.

Example: inside one real experiment

The experiment "Video brief: keep the brief neutral" had one goal: stop a news-brief agent from giving advice in its own voice, without losing the videos' main points or getting slower or more expensive. Here is everything it made:

  • One setup: 4 cases (4 news topics), each run once (1 trial), 7 pass/fail questions, 1 judge, and 1 detection ("Agent Execution Error"). All 3 rounds used this same setup.
  • 3 rounds. Each had a hypothesis and two versions: A, the current prompt, and B, a changed prompt.
  • In each round, A had one run and B had one run. Each run ran the 4 cases, so each round made 8 case runs, and the experiment made 24. Each case run is one trace.
  • Each case run got 7 grades (7 questions × 1 judge) and 1 detection result: 168 grades and 24 detection results in all.
  • Each run had measures: median time per case, cost per case run and tokens.
  • Each round got one result, written by the coding agent: round 1 Tie, round 2 Keep A, round 3 Keep A, each with the outcome Goal not met. Round 3's next step was finish.
  • The coding agent recorded 7 decisions, such as "use input-only cases of the same 4 topics, because the recorded ones were refused". Everything it reported appears as Activity.

The general shape

Every experiment has the same parts. Read it as a tree: an experiment holds one setup and several rounds. A round holds two versions. Each version has one or more runs; only the latest run counts. A run holds one case run for each case and trial. A case run holds its grades, its detection results and its time and cost. A round ends with one result.

PartWhat it isHow manyFixed or changing
ExperimentOne goal and everything done to reach it1Its status changes
GoalWhat must improve and what must not get worse, in plain words1 per experimentFixed
SetupThe cases, trials, questions, judge and detections1 per experiment, copied into each roundFrozen: changing it needs a new round
CaseOne input both versions runUp to 100 per setupFrozen
TrialOne repeat of a case; more trials show how much results vary1 to 10 per caseFrozen
QuestionOne pass/fail question the judge answersSeveral per setupFrozen
JudgeThe AI evaluator that answers the questions1 or more per setupFrozen
DetectionAn automatic check for a known problem0 to 10 per setupFrozen
RoundOne test of one idea: A against B1 or more per experimentFixed once it has a complete result
HypothesisWhat B changes and why it should help1 per roundFixed
Version (A or B)The current agent (A) or the changed one (B), with its captured code2 per roundFixed
RunOne version running every case; a retry is a new attempt1 or more per versionNew attempts can be added
Case runOne version running one case once; recorded as a traceCases × trials per runFixed once saved
GradeOne question answered by one judge for one case runQuestions × judges per case runFixed
Detection resultOne detection's finding on one case runDetections per case runCan be retried until it finishes
MeasuresMedian time per case, cost per case run, tokensPer runRead from the case runs
ResultThe verdict, the outcome, the next step and the reasoning1 per roundWritten by the coding agent; fixed once complete
DecisionA choice the coding agent made when the plan could not be followedAny numberAdded, never changed
ActivityEverything the coding agent reported, with timesAny numberAdded

Some words in the code differ from the page: a version is a variant in commands, a detection result is a check (and "safety check" in some error messages), the next step is the result's decision field (continue or finish), and the setup's planned measures are labelled per "answer" in places.

How a round's evidence turns into a verdict is on How a round is judged.

Who does what

Does
YouGive the goal, approve the CLI sign-in, answer the plan, read the result, decide what to ship
Your coding agent (Claude Code, Codex, or another agent that can run shell commands)Builds the setup, changes the code for B, runs A and B on your machine, records results and decisions
neatlogsStores the cases, grades every case run with the judge, runs the detections, measures cost and time, and shows the experiment

The verdict is your coding agent's assessment of the recorded evidence. neatlogs never changes or deploys your code.

How it relates to other features

Next step

Start your first experiment →

On this page

neatlogs
neatlogs

Ask neatlogs AI

Answers grounded in the docs

neatlogs

How can I help?

Ask anything about Incidents, Experiments, tracing, or the neatlogs dashboard.