/archetype:study
Run a whole behavioral study from Claude Code: the plugin creates the study, shows you the factors and archetypes, runs every archetype in isolated browsers, adds confirmation runs where they are needed and prints the report. Needs the Archetype plugin 0.6.0 or later.
/archetype:study "connect a bank account" url=https://staging.example.com \
icp="founders of 2 to 10 person SaaS teams who do their own books" \
success="the bank shows as connected in billing settings"Options
| Option | Default | Meaning |
|---|---|---|
| goal | required | What the person should get done, in quotes. |
url= | required unless feature= has one | Where the task starts. |
icp= or pool= | asked once if missing | Who the study is about, or a persona pool by name. |
success= | asked once if missing | What counts as done, in one sentence. |
feature= | none | A saved feature; its test target fills the URL, goal and milestone. |
mode= | ofat_stress | ofat_stress, ofat, factorial, half_fraction or composites (what they mean). |
repeats= | confirm | confirm, explore or decide (what they mean). |
archetypes= | the design's default | 4 to 8. |
parallel= | 4 | Browsers at once in the default mode. |
watch=live | off | Headed browsers you can watch, two at a time. |
browser=chrome | off | Your own Chrome, one run at a time (see below). |
unattended | off | One background claude -p worker per run, for long studies and CI. |
questions= | none | Questions the report should answer, separated by ;. |
factors= | the backend's choice | Factor keys to vary, in order, instead of reviewing the suggested ones. |
max_runs= | none | With unattended: the most runs the study may start, waves included. |
model= | the workers' default | With unattended: the model the actor workers use. |
study= | none | Resume an existing study by id, for example one created in the portal (see below). |
Anything missing besides the ICP and the success criterion has a default; the command asks at most one question.
What happens
- Create. The study is created in your account and appears in the portal's Test Hub. A suggested success check is shown for you to confirm or replace.
- Factors. A table of the chosen factors, why each matters here, its risk pole and typical level. Answer "use these" or ask for edits (select, remove, rename, flip a pole, set a level, reorder).
- Archetypes. Name, role, varied factor, a one line story, patience budget and trust gates for each. Confirm once: archetypes cost runs.
- Runs. The wave 1 matrix, the run order and the estimate. This is the last confirmation.
- Dispatch. One actor per run, each in its own browser. Actors get only their run id and browser: no product background and no other run's results.
- Waves. When wave 1 is done, the backend adds confirmation runs for archetypes that behaved differently from the baseline, and the plugin runs them.
- Report. Completion per archetype with its interval, factor impact with a confidence label and the probability in words, the stress check, findings hit by every or only some archetypes, the top recommendations with evidence, the honesty line and a link to the portal.
Browsers
| Mode | Ask for it with | Browser | At once |
|---|---|---|---|
| Headless | default | isolated Playwright | up to 4 |
| Watch live | watch=live | isolated Playwright, headed | 2 |
| Unattended | unattended | one claude -p worker per run | 2 (up to 4) |
| Your Chrome | browser=chrome | Claude in Chrome with your profile | 1 |
A study never mixes browsers: every run records its browser, and the report leaves out any run that differs from the rest. Use browser=chrome only for flows a script cannot log into: it brings your cookies, logins and extensions, holds your screen for the whole study, and the report says "real browser profile".
Every isolated run records a video (a local .webm file whose path appears in the run's trace in the portal) and a raw log of every browser call, so a step the archetype narrated but never did is marked Unverified.
Running a study created in the portal
A study you defined in the portal shows the command to run it on the study page, with its id:
/archetype:study study=<study_id>It picks the study up at the stage it reached, runs its queued runs (never the ones already finished), adds the next wave and prints the report. Add unattended to run it in background workers with no questions. The portal page fills in as the runs report.
To claim a single queued run instead, copy the command from that run's trace in the portal:
/archetype:validation --run <run_id>A run claimed this way does not plan the next wave: click _Plan next wave on the study page when every run of the wave has finished.