Back to Skills

autoresearch

Autonomous iteration loop: modify, verify, keep/discard against any metric

5,318stars394forksUpdated 7/14/2026

Security Assessment

Critical Risk(0/100)

Detected risks:

Destructive Operations([plan.md] rm -rf, [autoresearch.md] rm -rf, [regression.md] rm -rf)
Remote Code Execution([plan.md] curl|sh, [autoresearch.md] curl|sh, [regression.md] curl|sh)
Sensitive File Access([learn.md] .env, [security.md] .env)
Security Score0/100

About autoresearch

autoresearch is an autonomous, goal-directed iteration engine: it modifies, verifies, and keeps or discards changes against any metric until a goal is met. It solves the problem of running disciplined improvement loops — optimization, debugging, hardening, shipping — without a human driving every cycle, while keeping strict safety boundaries. Every invocation prints a mode banner and logs all results to a timestamped `autoresearch/{subcommand}-{YYMMDD}-{HHMM}/` directory, with chain handoff via `handoff.json`.

The skill dispatches into several modes. Providing a `Metric:` or `Verify:` runs the Classic metric loop (modify → verify → keep/discard); a free-form natural-language goal activates the Orchestrator, which classifies the goal into an archetype and either runs an orchestration loop until a mechanical success predicate is met or does a single-pass dispatch for subjective goals; and an empty invocation opens a setup wizard. It exposes a rich set of subcommands with sensible default iteration bounds — including `plan`, `debug`, `fix`, `security` (STRIDE + OWASP audit with red-team personas), `ship` (an eight-phase deploy pipeline), `scenario`, `predict`, `learn`, `reason`, `probe`, `improve`, `evals`, and `regression` — plus universal flags such as `Iterations: N`/`unlimited`, `--evals`, `--chain`, `--dry-run`, and `--max-cycles`. Strong safety invariants run throughout: it never pushes, publishes, or deploys without explicit user approval, never auto-approves ship/deploy, safety-screens every derived command, pins the success predicate so 'done' is reproducible, keeps data-migration behind an anchored DB-URL allowlist, and requires an independent verify hop before declaring convergence.

The skill targets engineers who want an automated but bounded and auditable loop for improving code against a concrete objective — optimizing a metric, crushing errors, hardening security, or preparing a release — with the agent orchestrating multiple specialized subcommands and stopping on convergence, plateau, ceiling, or a blocked state.

FAQ

How does autoresearch decide which mode to run?

If the invocation includes `Metric:` or `Verify:`, it runs the Classic metric loop. A free-form goal with no metric activates the Orchestrator, an empty invocation opens the setup wizard, and `--classic` or `--auto` force a mode explicitly.

What are its core safety guarantees?

It never pushes, publishes, or deploys without explicit user approval, never auto-approves ship/deploy, safety-screens every derived command (including on resume), pins the success predicate for reproducibility, restricts data migration to an anchored DB-URL allowlist, and requires an independent verify hop before convergence.

Is the loop bounded?

Yes, it is bounded by default with per-subcommand iteration defaults (for example 25 for the metric loop, 15 for debug, 20 for fix). You can override with `Iterations: N` or opt into `Iterations: unlimited`, and the orchestrator has a cycle ceiling via `--max-cycles`.

Where do results go?

All results are logged to a timestamped `autoresearch/{subcommand}-{YYMMDD}-{HHMM}/` directory, chained between steps via `handoff.json`, with `evals` reading `*-results.tsv`.

What stop conditions end an orchestration run?

The run stops when the success predicate is met (CONVERGED, or a ship gate if ship is in the pipeline), on PLATEAU, when the cycle ceiling is exceeded (CEILING), or when a hop is blocked or failed with no alternative route (BLOCKED).

All Files

20 files
references/reason-judge-protocol.md3.4 KB
View
SKILL.md7.6 KB
View
debug.md3.9 KB
View
plan.md2.8 KB
View
autoresearch.md4.7 KB
View
references/orchestrator-routing.md6.8 KB
View
regression.md9.0 KB
View
evals.md5.0 KB
View
probe.md4.8 KB
View
references/security-checklist.md3.4 KB
View
agents/openai.yaml0.2 KB
View
fix.md4.2 KB
View
improve.md5.9 KB
View
learn.md7.8 KB
View
predict.md3.7 KB
View
reason.md4.6 KB
View
references/predict-personas.md3.1 KB
View
scenario.md4.1 KB
View
security.md4.5 KB
View
ship.md3.8 KB
View

Install autoresearch

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill