Autoresearch Harness
Use this skill when the user wants an agent to explore a research, benchmark, optimization, or implementation space over repeated iterations.
This is an Overdrive-authored safety wrapper inspired by karpathy/autoresearch. Do not copy upstream code, do not auto-install dependencies, and do not start long-running loops without explicit user approval.
Hard Requirements
Before running or proposing an autonomous loop, define:
- Objective: what the loop optimizes or discovers.
- Editable Surface: exactly which files, configs, prompts, or parameters may change.
- Locked Surface: what must not change.
- Evaluation: command, script, benchmark, metric, or human review gate.
- Budget: max iterations, wall-clock time, API/tool budget, GPU/CPU constraints.
- Rollback: git branch/worktree, checkpoint, patch files, or backup strategy.
- Logging: where attempts, metrics, failures, and decisions are recorded.
- Stop Conditions: target score, no improvement, repeated failure mode, budget reached, or user intervention.
If any of these are missing, ask or propose conservative defaults before continuing.
Safety Rules
- Do not run overnight, high-cost, GPU-heavy, paid API, or large web-crawling loops without explicit confirmation.
- Do not install Python, Node, system packages, browser drivers, CUDA tooling, or model weights automatically.
- Do not write secrets into logs, prompts, configs, or experiment artifacts.
- Do not mutate production databases, real user accounts, auth settings, billing systems, deployment settings, or external services as part of an experiment loop.
- Keep loops fail-open: errors should stop or log and continue within budget, not hide failures.
- Prefer a dry run or one-iteration pilot before a long run.
When To Use Other Skills
- Use
harness-engineering when the main problem is building the test/evaluation harness.
- Use
self-improvement-loops when the main problem is improving prompts, agents, or workflows over repeated runs.
- Use
advanced-evaluation when scoring quality is the hard part.
- Use
graphify when the loop needs codebase relationship mapping first.
- Use
planning-first when there is not yet a clear experimental plan.
Recommended Loop Shape
for each iteration:
1. read current state and previous results
2. propose one small change
3. apply only within editable surface
4. run evaluation
5. record metric, diff summary, and failure notes
6. keep, revert, or branch based on acceptance rule
7. stop if budget or stop condition is hit
Output Contract
When asked to design a loop, produce:
- experiment title
- objective and hypothesis
- editable/locked surfaces
- setup commands, clearly marked as user-approved/manual if they install anything
- evaluation command or scoring rubric
- budget and stop conditions
- logging/checkpoint plan
- rollback plan
- first iteration plan
- risk notes
When asked to execute, run a pilot iteration first unless the user explicitly approves the full loop.
Logging Template
## Iteration N
- Change:
- Reason:
- Command:
- Result:
- Metric:
- Kept/Reverted:
- Notes:
1---2name: autoresearch-harness3description: Design safe autonomous research/experiment loops inspired by Karpathy's autoresearch. Use for bounded experiment harnesses, optimization loops, overnight research plans, benchmark exploration, or repeated hypothesis testing with explicit budget, rollback, logging, and approval gates.4---56# Autoresearch Harness78Use this skill when the user wants an agent to explore a research, benchmark, optimization, or implementation space over repeated iterations.910This is an Overdrive-authored safety wrapper inspired by `karpathy/autoresearch`. Do not copy upstream code, do not auto-install dependencies, and do not start long-running loops without explicit user approval.1112## Hard Requirements1314Before running or proposing an autonomous loop, define:15161. **Objective**: what the loop optimizes or discovers.172. **Editable Surface**: exactly which files, configs, prompts, or parameters may change.183. **Locked Surface**: what must not change.194. **Evaluation**: command, script, benchmark, metric, or human review gate.205. **Budget**: max iterations, wall-clock time, API/tool budget, GPU/CPU constraints.216. **Rollback**: git branch/worktree, checkpoint, patch files, or backup strategy.227. **Logging**: where attempts, metrics, failures, and decisions are recorded.238. **Stop Conditions**: target score, no improvement, repeated failure mode, budget reached, or user intervention.2425If any of these are missing, ask or propose conservative defaults before continuing.2627## Safety Rules2829- Do not run overnight, high-cost, GPU-heavy, paid API, or large web-crawling loops without explicit confirmation.30- Do not install Python, Node, system packages, browser drivers, CUDA tooling, or model weights automatically.31- Do not write secrets into logs, prompts, configs, or experiment artifacts.32- Do not mutate production databases, real user accounts, auth settings, billing systems, deployment settings, or external services as part of an experiment loop.33- Keep loops fail-open: errors should stop or log and continue within budget, not hide failures.34- Prefer a dry run or one-iteration pilot before a long run.3536## When To Use Other Skills3738- Use `harness-engineering` when the main problem is building the test/evaluation harness.39- Use `self-improvement-loops` when the main problem is improving prompts, agents, or workflows over repeated runs.40- Use `advanced-evaluation` when scoring quality is the hard part.41- Use `graphify` when the loop needs codebase relationship mapping first.42- Use `planning-first` when there is not yet a clear experimental plan.4344## Recommended Loop Shape4546```text47for each iteration:48 1. read current state and previous results49 2. propose one small change50 3. apply only within editable surface51 4. run evaluation52 5. record metric, diff summary, and failure notes53 6. keep, revert, or branch based on acceptance rule54 7. stop if budget or stop condition is hit55```5657## Output Contract5859When asked to design a loop, produce:6061- experiment title62- objective and hypothesis63- editable/locked surfaces64- setup commands, clearly marked as user-approved/manual if they install anything65- evaluation command or scoring rubric66- budget and stop conditions67- logging/checkpoint plan68- rollback plan69- first iteration plan70- risk notes7172When asked to execute, run a pilot iteration first unless the user explicitly approves the full loop.7374## Logging Template7576```markdown77## Iteration N7879- Change:80- Reason:81- Command:82- Result:83- Metric:84- Kept/Reverted:85- Notes:86```