autoresearch
What it does
Runs an automatic loop where your agent makes a change, checks it against a measure, and keeps the change only if it helps. It also has modes for debugging, fixing errors and security audits. It is for people who want steady, measured progress.
When to use it
- βWhen you want an agent to keep improving a result until a number gets better.
- βWhen you need an agent to hunt for bugs or clear a list of errors one by one.
- βWhen you want an agent to run a security audit of your code.
Skill link
https://github.com/uditgoenka/autoresearch/blob/master/.agents/skills/autoresearch/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βKeep trying changes to make my test suite faster, and keep only the ones that actually help.β
5 new skills a week. 1 minute to read.
How it works
Each round the agent makes a change and measures it. The change is kept only if it helps, results are logged in a folder, and the loop stops after a set number of rounds unless you ask for more.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Autoresearch β Autonomous Goal-directed Iteration
Safety Invariants (all subcommands)
- Never push, publish, or deploy without explicit user approval.
- Bounded by default. Override with
Iterations: unlimited. - All results logged to
autoresearch/{subcommand}-{YYMMDD}-{HHMM}/directory. - Chain handoff via
handoff.json. Evals reads*-results.tsv.
Dispatch (bare $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.
Subcommands
| 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 |
Subcommand routing
To run a subcommand yourself (an orchestrator hop or a --chain target), Read its protocol file and follow it:
<name>.md (relative to this skill's directory), or autoresearch.md for the classic loop.
The commands are user-typed only, so the model loads them from here instead of invoking them.
Universal Flags
| 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) |
Getting Unstuck: Fork-and-Flush
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).
Orchestrator
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 rout
FAQ
Will it push or deploy my changes?
No. The skill says it never pushes, publishes or deploys without your explicit approval.
How many rounds does it run?
Runs are bounded by default, with 25 rounds for the basic loop, unless you set the iterations to unlimited.
Where are the results kept?
Each run writes its logs to a folder named for the mode and the time it started.
Details
Original description by the author
Autonomous iteration loop: modify, verify, keep/discard against any metric
repo: uditgoenka/autoresearch
Popularity
- GitHub stars
- 6.8k
- Ranking position
- #13731
- License
- MIT
- Updated
- 10/31/2026
Comments
- β¦
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.