Static Fire (pre-release)
Find out which agent configuration (harness + model + effort + apkit Profile) does your real work best,
and what it costs. Same tasks, same graders, same judge for every config; the result is an
Artificial Analysis-style score-vs-cost chart, the Agent Performance Index, for your workflows.
The whole point is real-world performance. A trial reproduces the real job as closely as it can: the
inputs, tools, context and instructions you would actually give the agent, and graders that read the
output the way its real readers would. A score is only worth something if it predicts how the config does
on your actual work. Every place a trial differs from the real job is a known gap, and a candidate to remove.
The engine's gaps are listed below.
Quick start
You need Node or Bun. The package brings its own Bun (ADR-0008).
npm install -g static-fire # once
static-fire init # make your home project in ~/static-fire
npx static-fire init does the same with no install. Install it for regular use: npx asks the npm registry for
a newer version on every run, so each command can wait a minute or more when the network is slow or missing.
Then open your agent in ~/static-fire and tell it what you want to test, for example "I want to find out which
agent is the best at making thumbnails". init writes an AGENTS.md that sends the agent to
static-fire guide, which takes it from your goal to a dashboard with data. The guide also holds the file
formats, so neither of you needs to read the engine source.
A project is the folder that holds static-fire.yaml. A command works on the nearest project at or above
the current folder, so you can run it from any subfolder. Outside any project it uses your home project, and
says so in one line. The commands:
static-fire init [<folder>] [--json] # make the home (~/static-fire) or a project in <folder>; never overwrites a file
static-fire guide # the guide for agents: from a goal to a dashboard, and the file formats
static-fire home [<folder>] # show the home project, or set it to a project folder
static-fire new task <id> # a task folder with a commented task.yaml
static-fire rename task <old> <new> # a new id for a task; its earlier trials stay in view under it
static-fire configs | judges | suites | tasks
static-fire run --suites <suite> | --tasks <task> --configs <config>,<config>|all \
[--trials 3] [--judge <judge>] [--votes 3] [--concurrency 4] # one batch
static-fire run ... --plan [--json] # the plan: agent runs per config, judge calls, and the estimated cost at API prices; starts nothing
static-fire rerun <batch> [--plan [--json]] # its failed trials, its trials stopped by the limit or by you, and what an interrupted batch did not finish, again, as new trials
static-fire stop <batch> [--config <id>]... [--trial <id>]... # stop a running batch from any terminal, or only those configs or trials
static-fire stop <regrade> # stop a running regrade from any terminal
static-fire run | rerun | regrade ... --approve # start it although its estimate is above your limit, or it has no estimate
static-fire regrade [--tasks t] [--configs a,b] [--batch id] [--trial id]... [--judge id] [--votes n] [--only-invalid]
# judge calls only: trials with no valid grading under the current grading hash
static-fire regrade ... --plan [--json] # the trials it would grade, their judge calls and the judge cost at API prices; starts nothing
static-fire show [--suites s | --tasks t] [--judge id] [--grading hash] [--since date] [--until date]
[--excluded hidden|shown] [--json]
# the comparable trials, pooled across batches (JSON for agents)
static-fire exclude <trial id>... --reason "<text>" # take ended trials out of every view, with a reason
static-fire include <trial id>... # put excluded trials back in the views
static-fire recheck [<trial id>...] [--plan] # run the current answer key check on stored invalid trials; a clean one counts again
static-fire clear <trial id>... --reason "<text>" # clear trials that the answer key check ended as invalid, by hand
static-fire clear <trial id>... --take-back # take clearings back
static-fire serve # dashboard at http://localhost:4477
static-fire list # batches and regrades, newest first, with their state and progress
static-fire export [path] # every record as JSON, for backup
static-fire migrate # one-off import of an experiment folder from before 0.25.0
How it works
Every trial is a record; a chart is a query over them. Running one new config on one task adds its point to
the existing chart, next to every earlier trial that is comparable: the same task hash, and a valid grading
under the same grading hash. The dashboard has five pages. Results (/) shows the chart, or the same
numbers as a table. Its index buttons (the suites in view) and Filter menu (task, harness, model, effort,
Profile, judge, grading version, date range, excluded trials) are in the page URL, so a view can be bookmarked. The chart card's
Export button saves the chart of the view as a PNG made for a post on X: the same configs and values, laid out
with text that can be read in a phone feed. Its dialog has a live preview, a title field (empty gives the chart
title), a shape (square 1600 x 1600, portrait 1600 x 2000 or landscape 1600 x 1280), a handle for the footer, and
Download PNG and Copy image. The browser remembers the handle and the last shape, not the title. Each of
the four bar cards under the chart card (the score, cost, time and tokens per task) has an Export button too: the
same dialog saves the bars of that card, one row per config. With more configs than a shape holds, that image is
taller than the shape and the dialog says its size. The per-task
table and the trials are one card each, with a menu to pick the task. Harness, model, effort and Profile
each take several values, for example ?model=opus&model=haiku. With no judge picked, the view (and
static-fire show) uses the most-graded judge: the judge in judges.yaml whose view of the same picks lists
the most trials, so a pick that only one judge graded shows that judge's trials. The header and the first line of show then
say "(most graded)" after the judge label, and the URL does not hold that judge. When a question or the judge changes,
earlier trials are left out of the view, and the notice under the chart offers to regrade them with judge
calls only. Runs (/runs) lists every run, batches and regrades, newest first; start a batch from New
run there. A run shows live whatever started it: the CLI, New run or the Regrade button. A run is running,
ended or interrupted. Interrupted means its process stopped before its end. The gradings that an interrupted
regrade did not finish show as not graded, and the next regrade grades them, and rerun offers the trials that an
interrupted batch left queued or with its agent running. A click on a batch opens its trials, grouped by config. A
running batch has a Stop control, and in its trials the header of each config with trials not ended has a Remove
control and each trial row that has not ended has a Stop control; see Stopping a batch. A
running regrade has a Stop control too; see Stopping a regrade. The opened row of a run
has a Log section with what its process printed; see The run log. A batch from New run, or a
regrade from the Regrade button, runs in a process of its own, as a run from the CLI does: it goes on when the
dashboard server stops (a crash, Ctrl-C, a closed terminal), and spends agent and judge calls until it ends or is
stopped. A server started later shows it as running. A restart of the server does not stop it: use Stop or
static-fire stop <id>. The run status in the top bar shows what is running. The Compare page (/compare) shows what changed between two
grading versions of a task, and what that did to the scores and to each criterion. Suite and task descriptions,
what the agent gets and how each task is graded are on the Tasks page (/tasks): pick a suite or a task in
its menu, and the page shows that one. How it works
(/how-it-works) explains the scores.
Terms are defined in CONTEXT.md; the scoring design is
ADR-0001, and trials as records is
ADR-0006.
Excluding a trial
An excluded trial is a trial that you took out of the views, with a reason: for example a trial that scored 0
because the machine was overloaded, not because of the agent. It counts in nothing of a view: no mean, index, n or
chart, in the dashboard, in show and in an exported image. No stored trial, grading or verdict changes, and you
can include the trial again at any time. Only you exclude a trial; the engine never does.
- In the dashboard: open the trial and press Exclude in the head of the drawer, give the reason, and press
Exclude again. The view loads again, so each number is right at once. The drawer of an excluded trial shows
the date and the reason, with an Include again button.
- In a terminal:
static-fire exclude <trial id>... --reason "<text>" and static-fire include <trial id>....
With several ids, nothing is written when one of them is refused.
- What is refused: an empty reason, a trial id the record store does not have, a trial that is queued or
running, and an include of a trial that is not excluded. To change a reason, exclude the trial again.
- To see the excluded trials: set the filter Excluded trials to Shown (it is Hidden by default), or
run
static-fire show --excluded shown. The Trials card then shows each one with a dashed border, and they still
count in nothing. The Runs page marks an excluded trial at all times.
- Regrade: a regrade does not grade an excluded trial.
static-fire regrade --trial <id> names a trial to
grade, an excluded one too.
- As data:
static-fire show --json has excluded: the count and, for each excluded trial, the trial id, the
reason and the time.
- In a backup:
static-fire export has the table trial_exclusions, with each exclude and each include.
The decision is ADR-0028.
Clearing a trial
The answer key check (step 3 of "What happens in a run") ends a trial as invalid when a tool call names the
answer key. The check matches text, so it can be wrong: for example a tool call that holds a path of the project as
text, and opens nothing. A cleared trial is such a trial that counts again. It reads as a done
trial that carries its clearing. No stored trial, grading or verdict changes: the trial keeps its stored status
invalid and the evidence of the check, and a clearing is an added row. Only you start a clearing; the engine
never does. There are two ways:
- Check again:
static-fire recheck [<trial id>...] runs the check of today on the stored agent run of each
trial: the code of the check as it is now, the project folder, and the answer places of the Task as its file is
now. With no trial id it covers each trial that
the check ended as invalid and that is not cleared. A trial that
it finds clean is cleared by the check. A trial that it still finds at the answer key stays invalid, and its
line names the path. Each other trial stays as it is, and its line says why. It prints one line per trial and a
last line with the counts; --plan prints the same trial lines and writes nothing. Use it
after a fix of the check (a new version of the engine) or after a change of a Task's answerPlaces. It never
ends a done trial or a cleared trial as invalid, and it does not clear a trial whose clearing you took back.
- Clear by hand: when no fix clears a trial and you read in its evidence that the agent did not read the
answer, clear it with a reason. In the dashboard: open the trial, go to Run details, and press Clear
under the evidence of the check; give the reason and press Clear again. In a terminal:
static-fire clear <trial id>... --reason "<text>". The trial is cleared by the user. To change the reason,
clear the trial again.
After either way:
- Regrade: a cleared trial has no grading yet. Until a regrade grades it, it is not in the Trials card and
counts in no number of a view: the view counts it as a trial not graded yet, and the Runs page shows it as a
done trial with the mark
cleared. After Clear in the drawer, the drawer closes for this reason. The
Regrade button of the dashboard or static-fire regrade grades it from its stored result, with judge calls
only. Then it counts as each done trial does.
- The mark: a cleared trial has the mark
cleared in the Trials card, in the trial list of the drawer and
on the Runs page. The head of its drawer shows the way, the date and your reason.
- The count: the view says how many of its trials you cleared, where it says how many were not checked, and
static-fire show prints the same as a cleared: line. A trial cleared by the check has the mark and is in no
count.
- Take back: the Take back button beside the mark in the head of the drawer, or
static-fire clear <trial id>... --take-back. The trial is invalid again, and its gradings count in nothing
until you clear it again. The button needs a trial that the view lists, so for a cleared trial that has no
grading yet, use the command.
- What is refused: an empty reason; a trial id the record store does not have; a trial that the check did not
end as invalid; a trial that is also invalid for another cause (two worktrees that do not agree, a copy of the
held-out original); a trial that also passed its time limit, which has no stored result; and a take back of a
trial that is not cleared. With several ids, nothing is written when one of them is refused. The drawer of a
trial that cannot be cleared has no Clear button and says why.
- With an exclusion: a trial that is excluded and cleared counts in nothing.
- As data:
static-fire show --json has cleared: the count of the trials you cleared and, for each cleared
trial of the view, the trial id, the way, the reason and the time.
- In a backup:
static-fire export has the table trial_clearings, with each clearing and each take back.
The decision is ADR-0030.
Cost and the limit
Every dollar figure in Static Fire is at API prices: what the tokens would cost on the providers' APIs. It
measures the size of a batch. It is not your bill: on a subscription you pay in usage, not in these dollars.