No slash command · from autoresearch
Autonomous iteration loop that modifies, verifies, and keeps/discards changes against any metric. Includes subcommands for planning, debugging, fixing, security auditing, shipping, scenario generation, prediction, learning, reasoning, probing, improving, and regression testing.
Ships in autoresearch. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Iterations: unlimited.autoresearch/{subcommand}-{YYMMDD}-{HHMM}/ directory.handoff.json. Evals reads *-results.tsv./autoresearch)Parse the invocation in this order:
| Condition | Mode |
|---|---|
Metric: or Verify: present | Classic — existing metric loop, unchanged |
| Free-form natural-language goal, no metric/verify | Orchestrator — see Orchestrator section |
| Nothing | Setup wizard — interactive config builder |
--classic flag | Force Classic regardless of goal text |
--auto flag | Force Orchestrator regardless of goal text |
Print a banner on every invocation: [autoresearch] mode: classic | orchestrator | wizard.
| Command | Does | Default Iterations |
|---|---|---|
/autoresearch | Iterate against a metric: modify → verify → keep/discard | 25 |
/autoresearch:plan | Convert a goal into validated Scope, Metric, Verify config | N/A |
/autoresearch:debug | Hunt bugs: hypothesize → test → falsify → repeat | 15 |
/autoresearch:fix | Crush errors one-by-one until zero remain | 20 |
/autoresearch:security | STRIDE + OWASP audit with red-team personas | 15 |
/autoresearch:ship | Ship through 8 phases: checklist → dry-run → deploy → verify | N/A |
/autoresearch:scenario | Generate edge cases across 12 dimensions | 20 |
/autoresearch:predict | 5 expert personas debate before implementation | N/A |
/autoresearch:learn | Scout codebase → generate docs or wiki → validate → fix loop | 10 |
/autoresearch:reason | Adversarial debate with blind judges until convergence | 8 |
/autoresearch:probe | 8 personas interrogate requirements until saturation | 15 |
/autoresearch:improve | Research ICP challenges, discover improvements, generate PRDs | 15 |
/autoresearch:evals | Analyze iteration results: trends, plateaus, regressions | N/A |
/autoresearch:regression | Regression stability gate: baseline vs candidate, verdict STABLE/UNSTABLE | N/A |
To run a subcommand yourself (an orchestrator hop or a --chain target), Read its protocol file and follow it:
../../commands/autoresearch/<name>.md (relative to this skill's directory), or ../../commands/autoresearch.md for the classic loop.
The commands are user-typed only, so the model loads them from here instead of invoking them.
| Flag | Applies To | Purpose |
|---|---|---|
Iterations: N | All looping | Set iteration count |
Iterations: unlimited | All looping | Opt-in unbounded |
--evals | All looping | Mid-loop checkpoints + final summary |
--evals-interval N | All looping | Override checkpoint frequency |
--chain <targets> | All | Sequential handoff after completion |
--<subcommand> | All | Shorthand for --chain <subcommand> |
--dry-run | Orchestrator | Print derived config + planned pipeline; no execution |
--max-cycles N | Orchestrator | Hard ceiling on orchestration cycles (default 50) |
--classic | Bare /autoresearch | Force Classic metric-loop mode |
--auto | Bare /autoresearch | Force Orchestrator mode |
--no-fork | Metric loops | Disable fork-and-flush rounds |
Forks: K | Metric loops | Branches per fork-and-flush round (default 4; 2 when Verify is slow or uses a shared resource) |
Guided: R | Metric loops | Fraction of fork branches given an Advisor-assigned experiment (default 0.5; 0 = all random) |
Metric loops run fork-and-flush rounds on a fixed schedule: at 33% and 66% of the budget, plus early when 5
iterations pass with no keep. A round forks K fresh-context branches from the best commit so far, runs each
for a small budget, and keeps the winner. A fresh context means the files and results log only, with none of
the leader's reasoning. Half the branches (by default) are random and pick their own ideas; the other half are
guided, each given one distinct experiment by a stateless Advisor that reads the results log. Protocol:
references/fork-and-flush.md (arXiv:2610.07447, arXiv:2610.07625).
Activated when a plain-language goal is given without Metric:/Verify:. Classifies the goal into a Goal archetype — see references/orchestrator-routing.md for the archetype table and router decision table.
Resolve every scripts/... path below relative to this installed skill directory, never relative to the caller's working directory.
For performance, latency, throughput, runtime, CPU, memory, allocations, binary
size, power, energy, bandwidth, or compute-cost goals, read
references/behavior-preserving-optimization.md. The working metric ranks
candidates; independent behavior evidence decides whether a candidate survives.
Two modes based on archetype:
Backed by scripts/orchestrate.sh (deterministic seam — all routing logic lives there). Subcommands exposed: classify, next-hop, units, plateau, screen-cmd, verdict, validate-state, screen-state-predicate.
scripts/orchestrate.sh classify "<goal>" → archetype label + mode.plan logic to produce a concrete Success predicate: exact shell command + expected output. For optimize-metric, run the full plan/wizard derivation internally.AskUserQuestion showing: archetype, mode, concrete predicate (command + expected output), terminal choice (stop-at-verified vs proceed-to-ship). Misclassifications are caught here, not mid-run.screen-cmd; print projected cycle budget. Stop here if --dry-run.handoff.json, regression verdict, error count) + affected-test verify.
b. scripts/orchestrate.sh next-hop orchestrator-state.json → next subcommand.
c. Run subcommand via Subcommand routing (its own bounded inner loop).
d. Record per-hop outcome ∈ {progressed, no-op, failed, blocked}.
e. Fold hop's handoff.json into orchestrator-state.json.
f. scripts/orchestrate.sh units → recompute Units remaining and append the number or unknown to the state's units_remaining array.pending_verify unset or false → enter the ship gate for a shipping pipeline or report CONVERGED for any other pipeline. While independent verification is pending, continue routing through next-hop.--max-cycles N) → stop + report CEILING. Checked first: a reached ceiling is never extended by fork rounds.scripts/orchestrate.sh plateau orchestrator-state.json → exit 0 (flat): unless --no-fork or fork_rounds_since_progress is already 2, run one fork-and-flush round from the incumbent (references/fork-and-flush.md), add 1 to fork_rounds_since_progress, and continue; otherwise stop + report PLATEAU. Exit 1: continue. Exit 3: stop + report BLOCKED.blocked/failed with no alternative route → checkpoint + stop + report BLOCKED.orchestrator-state.json — orchestrator-owned, additive. Tracks: goal, archetype, predicate, terminal-choice, units_remaining history, cycle count, per-hop pipeline log with outcomes, current incumbent, fork_rounds_since_progress (reset to 0 whenever units improve). Each hop's handoff.json is unchanged (single-hop bridge); the orchestrator reads it and folds it in. Two clearly-owned state objects, no overlap.
--auto to ship; deploy always requires explicit user approval.localhost/127.0.0.1/container hostname, or database name carries _test/_ci suffix. Bare substring match does not qualify. Anything else refused.screen-state-predicate and refuses on refuse.screen-cmd.orchestrator-state.json; every cycle and every resume reuses that exact string so "done" is reproducible across runs.validate-state gates orchestrator-state.json (required fields + coarse types); a malformed ledger is not trusted to route from.pending_verify; next-hop routes to a verify hop (held-out / adversarial check) before DONE or ship. The verify hop never auto-approves ship.units returns unknown (e.g. runner crash) is not counted as zero-progress; repeated unknown routes to BLOCKED.references/behavior-preserving-optimization.md (opens in a new tab)references/fork-and-flush.md (opens in a new tab)references/orchestrator-routing.md (opens in a new tab)references/predict-personas.md (opens in a new tab)references/reason-judge-protocol.md (opens in a new tab)references/security-checklist.md (opens in a new tab)scripts/orchestrate.sh (opens in a new tab)scripts/score-regression.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub uditgoenka/autoresearch --plugin autoresearchOther plugins' skills for the same job