Skip to content

/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 ​

OptionDefaultMeaning
goalrequiredWhat the person should get done, in quotes.
url=required unless feature= has oneWhere the task starts.
icp= or pool=asked once if missingWho the study is about, or a persona pool by name.
success=asked once if missingWhat counts as done, in one sentence.
feature=noneA saved feature; its test target fills the URL, goal and milestone.
mode=ofat_stressofat_stress, ofat, factorial, half_fraction or composites (what they mean).
repeats=confirmconfirm, explore or decide (what they mean).
archetypes=the design's default4 to 8.
parallel=4Browsers at once in the default mode.
watch=liveoffHeaded browsers you can watch, two at a time.
browser=chromeoffYour own Chrome, one run at a time (see below).
unattendedoffOne background claude -p worker per run, for long studies and CI.
questions=noneQuestions the report should answer, separated by ;.
factors=the backend's choiceFactor keys to vary, in order, instead of reviewing the suggested ones.
max_runs=noneWith unattended: the most runs the study may start, waves included.
model=the workers' defaultWith unattended: the model the actor workers use.
study=noneResume 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 ​

  1. 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.
  2. 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).
  3. Archetypes. Name, role, varied factor, a one line story, patience budget and trust gates for each. Confirm once: archetypes cost runs.
  4. Runs. The wave 1 matrix, the run order and the estimate. This is the last confirmation.
  5. 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.
  6. Waves. When wave 1 is done, the backend adds confirmation runs for archetypes that behaved differently from the baseline, and the plugin runs them.
  7. 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 ​

ModeAsk for it withBrowserAt once
Headlessdefaultisolated Playwrightup to 4
Watch livewatch=liveisolated Playwright, headed2
Unattendedunattendedone claude -p worker per run2 (up to 4)
Your Chromebrowser=chromeClaude in Chrome with your profile1

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.