Skip to content
Unsnag

unsnag draft

Draft new Scenarios with the explainer Agent; each draft that passes verify is written as a new file in unsnag/drafts/, and an existing file is never overwritten.

unsnag draft [options]

Options

FlagDescriptionDefault
--count <n>At most this many new Draft Scenarios; drafts that fail verify are dropped.10
--uncoveredDraft only for the commands and flags no Reference Solution uses yet.
--goal <text>What an Agent should be able to do, in your words: the drafts are aimed at it (with --count 1, one Scenario for it, or why there is none).
--want <goal>A Scenario you want, as its goal in your words: drafted first, one Scenario aimed at it, alongside the rest, or listed as not drafted with why; repeat it for each.
--budget <usd>The most this may spend in US dollars, instead of budget.draft.
--parallel <n>Run this many drafters at once, each in its own sandbox, on its share of --count and of the CLI's commands.1
--deadline <seconds>Stop every drafter this many seconds after the help is read; the drafts saved by then are still verified, briefly.
--events <file>Also write drafting's progress to this file as it happens, one JSON event per line (emptied first).
--prepareOnly build the CLI's image and read its help, then stop, keeping both: a later unsnag draft --prepared drafts at once.
--preparedUse the image --prepare kept and the help it read (in unsnag/.cache/) instead of building and reading them again; the image is built again when the Benchmark builds it differently now (the source must not have changed).

It also takes the global options (--json, --quiet, --progress <form>, --no-color, --config <path>) and -h, --help.