/ar:setup — Create New Experiment
Set up a new autoresearch experiment with all required config. Pairs with the autoresearch-agent loop.
If arguments provided
Pass straight to setup: --domain --name --target --eval "{cmd}" --metric --direction [--evaluator] [--scope].
Interactive mode (collect one at a time)
- Domain — engineering / marketing / content / prompts / custom
- Name — e.g., api-speed, blog-titles
- Target file — verify it exists
- Eval command — e.g.,
pytest bench.py,python evaluate.py - Metric — what the eval outputs (e.g., p50_ms, ctr_score)
- Direction — lower or higher better
- Evaluator (optional) — built-in or own
- Scope — project (
.autoresearch/) or user (~/.autoresearch/)
Built-in evaluators
benchmark_speed (p50_ms↓) · benchmark_size (size_bytes↓) · test_pass_rate (↑) · build_speed (build_seconds↓) · memory_usage (peak_mb↓) · llm_judge_content (ctr_score↑) · llm_judge_prompt (quality_score↑) · llm_judge_copy (engagement_score↑).
After setup
Report: experiment path + branch name; whether the eval command worked + baseline metric. Suggest: /ar:run {domain}/{name} to iterate, or /ar:loop {domain}/{name} for autonomous mode.