Autoresearch: Autonomous Iteration Engine
Turn Claude Code, OpenCode, or OpenAI Codex into a relentless improvement engine: set a goal, define a metric, and let it iterate modify→verify→keep/discard automatically.
- Source repo
- uditgoenka/autoresearch
- Stars
- ★ 6.8k
- Last updated
- 17d ago
- License
- MIT
- Primary language
- Shell
- FA score
- 54/100 · Major gaps
At a glance
- How it runs
- Works with
- Platform-specificCodex · Claude CodeChatGPT (Unsupported)
- Cost
- Free software; you pay for model usage
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- A frontend developer wants to boost test coverage: run /autoresearch in Claude Code with a Goal and Metric, letting it iterate until 90% coverage.
- Not a fit if
- Teams not using Claude Code, OpenCode, or Codex — it cannot run on ChatGPT or other non-coding agents
- Users whose goals lack a mechanically verifiable metric; subjective work needs extra setup
- Anyone unable to monitor long autonomous runs that consume significant time and tokens
- Website
- udit.co/projects/autoresearch ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-10-31latest release v2.3.0 (2026-10-31)+3.0 ★/day over 7 days
- Source review
- 54/100 · Major gaps
What does this agent do, and when should you use it?
Autoresearch is a skill pack built on Karpathy's autoresearch principles, providing 14 commands and 9 safety hooks for Claude Code, OpenCode, and OpenAI Codex. It transforms one-off code improvements into an automated loop of modify→verify→keep/rollback, making one focused change per iteration and evaluating it with mechanical metrics (test coverage, performance) while auto-reverting failures via git. v2.2.0 introduces an autonomous orchestrator: type a plain-language goal, and it classifies it, derives a success predicate, and loops across subcommands until done. Architecturally, v2.1.0 replaced the monolithic 813-line SKILL.md with a 41-line routing file and 12 self-contained command files, slashing token usage by 95% per invocation. The skill installs into Claude Code (plugin or npx), OpenCode, and Codex, covering everything from coding, debugging, security audits, to product improvement.
It provides a full command suite: /autoresearch runs the classic iteration loop (review state → pick one change → commit → run verification → keep or revert); /autoresearch:plan converts a natural-language goal into a validated config; /autoresearch:debug iteratively hunts bugs using hypotheses; /autoresearch:fix auto-repairs errors to zero; /autoresearch:security performs STRIDE/OWASP audits; /autoresearch:ship drives releases through 8 phases; /autoresearch:scenario generates edge cases across 12 dimensions; /autoresearch:predict simulates 5 expert personas; /autoresearch:learn auto-generates docs; /autoresearch:reason runs adversarial debate with blind judges; /autoresearch:probe interrogates requirements with 8 adversarial personas; /autoresearch:improve researches ICP and produces PRDs; /autoresearch:evals analyzes historical result trends; /autoresearch:regression gates stability with STABLE/UNSTABLE verdicts. Every command ships with bounded default iterations, supports Guard commands to prevent regressions, logs results in TSV, and supports --chain chaining. Installation is via npx, plugin, guided script, or manual copy.
- A frontend developer wants to boost test coverage: run /autoresearch in Claude Code with a Goal and Metric, letting it iterate until 90% coverage.
- A backend team faces many failing tests before CI: use /autoresearch:fix to automatically repair all errors until passing.
- A security engineer needs periodic STRIDE/OWASP audits: run /autoresearch:security and get a structured report with code evidence.
- A product manager wants to derive requirements for a new feature: use /autoresearch:probe to surface constraints and /autoresearch:improve to generate PRDs.
- A developer before release needs to ensure no regressions: run /autoresearch:regression to get a STABLE/UNSTABLE verdict.
- A maintainer wants to generate docs for an existing codebase: /autoresearch:learn --mode init creates reference docs and architecture diagrams.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
npx skills add uditgoenka/autoresearch
How do you install or deploy this agent?
Installation varies by platform:
Claude Code (recommended via npx):
npx skills add uditgoenka/autoresearchOr via plugin:
/plugin marketplace add uditgoenka/autoresearch
/plugin install autoresearch@autoresearchOr manually copy the .claude directory into your project or globally. Or use the guided installer:
git clone https://github.com/uditgoenka/autoresearch.git
cd autoresearch
./scripts/install.sh --claude --globalOpenCode:
./scripts/install.sh --opencode --globalCodex:
./scripts/install.sh --codex --globalHow do you use this agent?
After installation, invoke commands directly in your Claude Code session. Example:
/autoresearch
Goal: Increase test coverage from 72% to 90%
Scope: src/**/*.test.ts, src/**/*.ts
Metric: coverage % (higher is better)
Verify: npm test -- --coverage | grep "All files"
Iterations: 25Or use the orchestrator mode:
/autoresearch help me fix the login bugUseful subcommands:
- /autoresearch:plan to turn goals into configs.
- /autoresearch:debug to hunt bugs.
- /autoresearch:security for audits.
- /autoresearch:ship to release.
If you're on OpenCode, use underscore naming (/autoresearch_debug); on Codex, use $autoresearch debug syntax.
What are this agent's strengths and limitations?
- Dramatically reduces token usage: v2.1.0 cut tokens per invocation by 95% (from ~100K to 5-8K).
- Ships with 9 safety hooks that block reading sensitive files (.env, keys), dangerous commands (force-push, rm -rf), etc.
- Supports three major agent platforms (Claude Code, OpenCode, Codex) with unified installation scripts.
- Every command has a bounded default iteration count, preventing infinite loops; failed changes auto-revert via git.
- Rich command set covers the entire dev workflow: planning, debugging, fixing, security, shipping, scenario generation, doc generation.
- Core dependency on Claude Code's Skill system; though ports exist for OpenCode and Codex, installation is more complex (manual copy or scripts).
- Not compatible with ChatGPT or other non-coding agents; cannot be used there.
- Requires users to provide a mechanically verifiable metric; for hard-to-quantify goals (e.g., subjective design) you need extra setup (like /autoresearch:reason).
- Requires a session restart after install for commands to resolve — a platform limitation.
- Even bounded iterations can consume significant time and tokens; users need to monitor long runs.
How does this agent compare with similar options?
Compared to Karpathy's original autoresearch, this repository generalizes it beyond ML models to any domain, adds 14 commands and safety hooks, and supports multiple agent platforms.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Autoresearch: Autonomous Iteration Engine This agent | 54 · Major gaps | Agent plugin / skillFree + model costs | ★ 6.8k | 17d ago | Shell | Codex · Claude Code |
| Maestro Orchestration Platform | 64 · Some gaps | Agent plugin / skillFree + model costs | ★ 490 | 28d ago | JavaScript | Codex · Claude Code |
| gnhf (Good Night, Have Fun) | 55 · Major gaps | CLIFree + model costs | ★ 4.3k | today | TypeScript | Codex · Claude Code |
| Ordewell | 87 · Good | CLIFree + model costs | ★ 210 | today | TypeScript | Codex · Claude Code · OpenAI API · Claude API |
How does FollowAgents rate this agent?
Why each dimension lost points
Safety invariants prohibit pushing, publishing, or deploying without explicit approval; bounded defaults, iteration logs, and git rollback provide meaningful confirmation and recovery support. The packet also describes hooks that block access to sensitive files and an optional Slack webhook, but says the hooks are defense in depth rather than a sandbox; the pi entry point says guardrails fail open. Evidence for permission isolation, data retention, and a complete outbound-data inventory is thin, as is dependency-security evidence.
The packet lists cross-platform installation, CI workflows, and test scripts, but this static review did not run them. README and AGENTS.md differ on default iteration counts, hooks, and command surfaces; platform skill files also differ in paths and capability descriptions. Some maintenance mechanisms are traceable, but evidence about failure messages and runtime reliability is limited.
The product targets Claude Code, OpenCode, Codex, pi, and Muse, and gives scenarios across code, content, marketing, and DevOps with many commands and options. Its core is bounded iteration toward measurable goals, but the claim of applicability to anything measurable is broad and depends on users defining sound metrics, scope, and verification. Platform installs and hook capabilities vary, so boundaries are stated but incomplete.
README, skill files, guides, and install examples provide a reasonably organized information structure, command examples, task guidance, and an MIT license. Version numbers are visible, but the supplied excerpts do not establish a complete change history, maintenance responsibility, or support path. Documentation differs on iteration defaults and platform capabilities, and command names vary by platform.
The loop, verification, keep-or-revert decisions, result logs, and subcommands offer a usable workflow with clear potential value. Multi-platform support and orchestration add usage complexity; if a metric fails to represent behavioral quality, optimizing it can diverge from the user's actual goal. The material calls for independent acceptance, but users still need to supply appropriate guardrails.
README and skill files state concrete invariants, commands, defaults, and procedures, while test and CI files provide traceable verification leads. Most support is internal to this project rather than independent corroboration; promotional claims such as token reduction are not directly verified by the supplied excerpts. Test files are evidence of test intent, not evidence that this review executed or confirmed their results.
- The loop edits the workspace and runs user-configured verification commands; constrain scope, use a recoverable git workspace, and configure an independent guard for behavioral correctness.
- Hooks are not a security boundary, and pi guardrails fail open; do not rely on them as the sole protection for sensitive data or dangerous operations.
- Check the skill and command paths for the selected platform before installing; README and AGENTS.md differ on defaults and platform capabilities.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
v2.3.0 v2.3.0 — pi, Muse and Fork-and-Flush
Release notes excerpt
What's new in v2.3.0 Highlights pi extension (#122, thanks @jbanety) - autoresearch now runs in the pi coding agent. The extension ports the Claude hooks to pi events: scout, privacy and dangerous-command blocks, iteration context, dev rules, simplify gate, session init, stop notification and subagent context. - Every hook fails open and honors the same AR_DISABLE_* env flags as the Claude hooks. - The 14 autoresearch commands ship as pi prompt templates (/autoresearch, /autoresearch_debug, ...). The dispatcher is a pi skill (/skill:autoresearch). …View on GitHub ↗ -
Release notes excerpt
What's new in v2.2.3 Guard hooks only run during an autoresearch run (#125, #123) - scout-block, dangerous-cmd-block, simplify-gate and dev-rules-reminder no longer fire in sessions that are not running autoresearch. - A run is active after you type /autoresearch, when the model loads the autoresearch skill, or while a results TSV was written in the last 30 minutes. - The run flag now survives compact and resume. - privacy-block stays global. Fewer false blocks …View on GitHub ↗ -
v2.2.2 Autoresearch v2.2.2 — Stabilization Release
Release notes excerpt
Autoresearch v2.2.2 is a stabilization release focused on truthful platform support, self-contained installs, and release confidence. Highlights - Portable Claude Code guardrails now cover native Windows with Git Bash as well as macOS and Linux. - Sensitive-file operations use the host native permission boundary; the forgeable APPROVED: path-prefix flow is removed. - Hook failures are visible and redacted, while guardrails remain explicitly documented as defense in depth rather than a security sandbox. …View on GitHub ↗
FAQ
What runtime environment do I need?
Is it safe? Could it break my code?
What if I don't know which metric to use?
Can it work for non-code tasks?
How do I stop the loop?
Iterations: N to your inline config. Since it commits before verifying, your last successful state remains in git.Is Autoresearch: Autonomous Iteration Engine free?
Is Autoresearch: Autonomous Iteration Engine open source?
Is Autoresearch: Autonomous Iteration Engine still maintained?
Who makes Autoresearch: Autonomous Iteration Engine?
What is Autoresearch: Autonomous Iteration Engine's official website?
Thanks — we use this to improve the page.