Skip to content
Unsnag

Using the App

The App is Unsnag in the browser. You sign up, connect the repository your CLI lives in, keep the Scenarios Unsnag drafts for it that a real user would ask, and start a Report. Unsnag supplies the machine: each Report runs on a fresh one of its own, which is deleted afterwards. You watch the Report run, read it when it is done, and send its link to a colleague.

Nothing needs installing, and Docker is not involved. You need:

  • A GitHub account that can install a GitHub App on your CLI's repository, or, for a published CLI, the command that installs it.
  • An OpenRouter API key with a few dollars of credit, by the time you start the first Report. Every model call of a Report, the Agents' and Unsnag's own, is paid through it. Unsnag pays for drafting your first Scenarios.
  • A card. Nothing is charged during the beta: the card is what keeps the machines Unsnag lends from being abused.

Open the App to begin. The same form signs you in and makes your account. Everything below is the path the App walks you through, eight steps from signing up to the first Report. You can leave at any step and come back to it: the App remembers where you were.

1. Name your Organization

An Organization holds your Projects, your OpenRouter key and the people you invite. Name it after your company or team; you can rename it later in its settings.

2. Your CLI

First the CLI's command: the word one types to run it, such as pimlico in pimlico keys list. Agents are told this name. It also names the Project, the home of this CLI's Benchmark and its Reports.

Then where the CLI comes from:

  • A public repository. Paste its address on GitHub: https://github.com/acme/cli, acme/cli, the .git address you clone with, or the address of a folder on a branch (https://github.com/acme/cli/tree/main/packages/cli). Nothing needs installing. Then pick the branch (the repository's default one to begin with) and the folder the CLI is in (leave it empty if the CLI is at the root).
  • A private repository. Unsnag cannot see it by its address. Connect GitHub instead: install the Unsnag GitHub App on the account that holds it and pick the repositories it may read. It asks for read access to their contents and nothing else, and never writes to them. Pick the repository, then the branch and the folder, as above.
  • A published CLI. Choose "Use its install command" and give the command your users install it with, such as npm install -g @acme/cli. Unsnag runs it on a fresh machine before every Report, so Agents get the version your users would.

For a repository, Unsnag reads the folder without running anything and says what it found: the CLI's command (and every other command your package declares beside it, such as a daemon's), the install steps it would use, a Mock if there is a Dockerfile for one, your CLI's agent skill if the repository has one (a SKILL.md), and any install step that needs a secret. When one does, such as a private package registry's token, the next screen asks for it. That is a build secret: it exists only while the CLI is built and never reaches a Run, so no Agent can read it.

3. Drafting

Unsnag builds your CLI on a machine of its own, reads its help, and drafts Scenarios: each a goal in a user's words, with Checks that decide whether it was reached and a Reference Solution that proves it can be. Every draft's solution is run against its Checks before you see it, and only drafts that pass are kept. It usually takes about 15 to 25 minutes; the first drafts show as they pass, and you can close the page meanwhile. Unsnag pays for drafting's model calls, up to $5 for your Organization. Once you have set your own key, drafting runs on it instead, at most $5 a time; once Unsnag's $5 are spent, drafting more asks for your key.

If the build fails, the step that failed and what it printed are on the screen, with the install steps and a field for a build secret beside them. Fix what it says and try again.

4. Review the drafts

The review: three drafts, the first one open with why it was drafted, its Check and its solution.

A good Scenario is something your users really ask for, and its goal gives no command away. For each draft, read the goal and decide:

  • Accept or Reject it, or Accept all. Undo takes back the last decision.
  • Open it to read why it was drafted, which of your commands its solution and Checks call, its setup (the script that runs as root in /work before the Agent starts: what it seeds, installs or turns off), its Checks and the solution itself. Edit changes any of them; an edited draft is not verified until you verify it again.
  • Add your own, for the Scenario you care most about: write its goal, Checks and solution, then Save it. It is accepted once it can run, and Unsnag verifies it.

The keyboard works too: j and k step through the drafts, a accepts, x rejects, u undoes. The step goes on once at least one draft is accepted. Rejected drafts are remembered, so they are not drafted again.

5. How big a first Report

Every accepted Scenario is tried by every Agent, under every Context Condition, a number of times over; each combination of the three is a Cell. The step asks one thing first, as two cards, each with its Runs, estimated cost and time: a quick look (one try each: what Agents do with your CLI, soon) or a repeatable baseline (five tries each, so a fluke stands out and later Reports compare against it). Continue is right under them.

  • Agents: Claude Code, Codex and opencode, each on a model from a different vendor, with what a Run of each costs. Switch off the ones you don't want.
  • Web: whether the Agents can use the web, asked on the drafting step; change shows the switch again.
  • Customize the run holds the rest. Add an Agent: a harness and a model, named as OpenRouter names it. What Agents are given: "Your CLI's name only" tells the Agent the CLI's name and nothing else; when your repository has an agent skill, "Name + SKILL.md" also gives it that skill, and is on, so the first Report shows how much your skill helps, for twice the Runs. Add a Context Condition that gives a skill folder, an instructions file or a file from your repository, and the Report shows what that is worth; a CLI installed by a command has no repository to give from, for now. The Context Conditions guide explains how to read the difference. Tries: Runs per Cell, for any other number than the two cards'.

6. Paste your OpenRouter key

A Report's Runs are the Agents' model calls, billed to your own OpenRouter key: the step says what the first Report comes to. The App checks the key with OpenRouter before it saves it, and tells you if OpenRouter refuses it. Once saved, the key is never shown again, to you or anyone else: only a hint of its last characters. It is stored encrypted, and only the machine running a Report can read it. Replace it at any time in the Organization's settings, under OpenRouter key. An Organization that has a key already skips this step.

7. Put a card on file

The card is entered into Stripe's own form; the App stores only its brand and last four digits. Unsnag charges nothing during the beta; OpenRouter bills the Agents' model use, on your key, when you run a Report. Every Report that runs on Unsnag's machines needs the key and the card; until both are there, Start a Report lists what is missing.

8. Start the first Report

The last step: 30 Runs, about $2.10 and about 7 minutes, with the Scenarios, Agents, Context Conditions, repeats and the budget cap.

The last step leads with the decision: the Runs, about how long, and the estimated cost on your OpenRouter key, with the budget cap beside them, three times the estimate to begin with. The Report stops when it has spent the cap, and keeps what finished. Then the button, labelled with the Runs and the cost, and under it the Scenarios, the Agents, how the Runs multiply, how long (building your CLI takes as long as its last build on a machine of Unsnag's) and the commit it builds. A Scenario you accepted that is not verified is named above the button: one whose solution failed its Checks has to be fixed or rejected first, and one not verified yet starts only when you say so. Start it, and the App opens the Report as it runs.

Under How it runs, and what's safe: when it starts, how long each part takes, what its machine holds, that your key never enters an Agent's sandbox, and what the web is.

Each Report runs on a machine of its own, made for it and deleted when it ends, whatever state the Report is in. The machine holds only what this one Report needs: a read-only token for your one repository, which GitHub lets expire after an hour; your OpenRouter key; and the Project's secrets. The start panel says the same before every Report.

Watching a Report

A Report while it runs: 114 of 360 Runs done, five failed; the phases, and the grid filling in.

A running Report says in one sentence how it is going: the Runs done and failed, the time left, what has been spent. Under it are the phases (queued, starting a machine, building, verifying the Scenarios, running Agents, finding problems), then the build's output while it builds, and once the Runs start, the grid: one mark per Run, Scenarios down, Agent and Context Condition across. A failed Run is marked the moment it lands. Open any mark to read its Run, its transcript growing while the Agent works.

You can close the page: the Report keeps running, and the top bar shows it on the Project's screens. Cancel the Report stops a Report started in the App, and keeps the Runs that finished. An Organization runs one job on Unsnag's machines at a time (a Report, or drafting); one started while another runs waits its turn, and says so. Each Organization may start up to 10 such Reports, and 40 drafting and verify jobs, in 24 hours; past that, Start says when the next can start. When the Report is done, the same address shows the finished Report.

Reading a Report

A finished Report: 352 of 360 Runs passed, one thing to fix; the switch that makes it public, and the grid.

A finished Report opens on its result in a sentence, then the grid, then What to fix: each Finding with how many Runs and Agents it touched. A Finding shows what tripped the Agents, the evidence from a Run, the fix as before and after, and a prompt to copy into your own coding agent. Runs lists every Run, to find any by Scenario, Agent, Context Condition or outcome; Scenarios says how each did and which are saturated (every Run passed, so they no longer tell anything apart); Details has each Agent's numbers and how the Report was made. A Report with failed Runs offers Run the failed Cells again, which costs little and tells you whether a fix worked.

Sharing a Report

The switch beside a Report's date makes it public: anyone with its link can read it, without an account and without being able to change anything. A private Report's link asks a visitor to sign in and says nothing about the Report. In the Organization's settings, Sharing lists the Reports that are public now, and an owner chooses whether new Reports start public.

After the first Report

  • The Project's home lists its Reports: when, who or what started each, the CLI's version, Runs passed, Findings and cost, and the pass rate over them as a small trend. Start a Report, in the top bar, says what will run, the estimate and the budget cap, and can make the Report public before it starts.
  • The Benchmark is the Project's, and lives in the App: Scenarios, Agents, Context Conditions, the Environment (how the CLI is built, its Mock, variables, limits) and Files. Edits stay unsaved until you save them as the next version, and every Report records the version it ran. Ask Unsnag to draft more drafts again, without repeating the Scenarios you have. Files exports the Benchmark as benchmark.yaml and Scenario files, and imports them back.
  • Secrets, in the Project's settings: a build secret reaches the CLI's and the Mock's builds only; a Run secret is in every Run's environment, where an Agent can read it. Values are never shown again once saved, only replaced.
  • A Report on every release: the Release trigger, in the Project's settings, starts a Report when a tag matching a pattern (such as v*) is pushed to the repository. It is off until an owner turns it on, and needs a budget cap first.
  • Members: owners invite colleagues by email, as owners or members. Members read everything and start Reports; only owners change the key, secrets, the card, members and the release trigger.

The CLI with a Project

The App is one way to use Unsnag; the CLI is the other, and the two meet in a Project. A folder linked to a Project runs the Project's Benchmark on your own machine, with your own OpenRouter key and Docker, and puts the Report in the App beside the hosted ones. The commands are listed in the Project's settings, under CLI and tokens:

unsnag login
unsnag link acme/mycli
unsnag run

unsnag login shows a code and opens the App, where you approve this machine for one of your Organizations; no token is pasted into a shell. unsnag link <organization>/<project> (the two names in the Project's address in the App) writes unsnag/project.yaml: commit it, so CI's checkout is linked too. A linked unsnag run fetches the Project's latest Benchmark version and runs it as the quickstart describes.

Already have a Benchmark in your repository? In a linked folder, unsnag import makes its unsnag/benchmark.yaml and Scenarios the Project's next version, and unsnag push puts a Report you already ran into the App. unsnag unlink and unsnag logout undo the link and the login; a folder that is not linked works exactly as before.

For CI, make a token in the Project's settings under Tokens for CI. It is shown once, reaches that Project only, and acts for nobody: set it as UNSNAG_TOKEN in your workflow, as the CI guide shows. Linked machines are listed beside the tokens, and unlinking one signs it out.