Autoresearch

An autonomous iteration skill for agents: modify, verify, revert failed changes, and repeat the loop toward a target metric

Skill

High risk

We rate an entry high when the tool writes to external systems, handles money, production databases or secrets, or runs arbitrary commands. The CLI installs it only with your consent.

Why this level

  • Autonomously edits code in a loop, committing and reverting via git
  • Runs shell commands to verify with tests and benchmarks
  • Without guardrail hooks it may perform arbitrary actions in the project
All reasons and checks

uditgoenka/autoresearch

Install

In your terminal, with SkillFoxx CLI

npx skillfoxx add skills/uditgoenka-autoresearch

Detects the agents on your machine, checks the risk and pins the version.

Other ways to install

Assembled automatically, review before installing.

Run in a terminal in the project folder

npx skills add uditgoenka/autoresearch --skill autoresearch autoresearch autoresearch autoresearch autoresearch -a claude-code -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Without third-party tools, from commit 050e30d
tmp=$(mktemp -d)
git clone --filter=blob:none --no-checkout https://github.com/uditgoenka/autoresearch.git "$tmp"
git -C "$tmp" sparse-checkout set --no-cone /.agents/skills/autoresearch/ /.claude/skills/autoresearch/ /claude-plugin/skills/autoresearch/ /.opencode/skills/autoresearch/ /plugins/autoresearch/skills/autoresearch/
git -C "$tmp" checkout 050e30dc4ba0974b03f2873111b9901ec3211390
mkdir -p .claude/skills
cp -R "$tmp/.agents/skills/autoresearch" .claude/skills/autoresearch
cp -R "$tmp/.claude/skills/autoresearch" .claude/skills/autoresearch
cp -R "$tmp/claude-plugin/skills/autoresearch" .claude/skills/autoresearch
cp -R "$tmp/.opencode/skills/autoresearch" .claude/skills/autoresearch
cp -R "$tmp/plugins/autoresearch/skills/autoresearch" .claude/skills/autoresearch

Commands for macOS and Linux, on Windows run them in Git Bash.

Run in a terminal in the project folder

npx skills add uditgoenka/autoresearch --skill autoresearch autoresearch autoresearch autoresearch autoresearch -a cursor -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Without third-party tools, from commit 050e30d
tmp=$(mktemp -d)
git clone --filter=blob:none --no-checkout https://github.com/uditgoenka/autoresearch.git "$tmp"
git -C "$tmp" sparse-checkout set --no-cone /.agents/skills/autoresearch/ /.claude/skills/autoresearch/ /claude-plugin/skills/autoresearch/ /.opencode/skills/autoresearch/ /plugins/autoresearch/skills/autoresearch/
git -C "$tmp" checkout 050e30dc4ba0974b03f2873111b9901ec3211390
mkdir -p .agents/skills
cp -R "$tmp/.agents/skills/autoresearch" .agents/skills/autoresearch
cp -R "$tmp/.claude/skills/autoresearch" .agents/skills/autoresearch
cp -R "$tmp/claude-plugin/skills/autoresearch" .agents/skills/autoresearch
cp -R "$tmp/.opencode/skills/autoresearch" .agents/skills/autoresearch
cp -R "$tmp/plugins/autoresearch/skills/autoresearch" .agents/skills/autoresearch

Commands for macOS and Linux, on Windows run them in Git Bash.

Run in a terminal in the project folder

npx skills add uditgoenka/autoresearch --skill autoresearch autoresearch autoresearch autoresearch autoresearch -a github-copilot -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Without third-party tools, from commit 050e30d
tmp=$(mktemp -d)
git clone --filter=blob:none --no-checkout https://github.com/uditgoenka/autoresearch.git "$tmp"
git -C "$tmp" sparse-checkout set --no-cone /.agents/skills/autoresearch/ /.claude/skills/autoresearch/ /claude-plugin/skills/autoresearch/ /.opencode/skills/autoresearch/ /plugins/autoresearch/skills/autoresearch/
git -C "$tmp" checkout 050e30dc4ba0974b03f2873111b9901ec3211390
mkdir -p .github/skills
cp -R "$tmp/.agents/skills/autoresearch" .github/skills/autoresearch
cp -R "$tmp/.claude/skills/autoresearch" .github/skills/autoresearch
cp -R "$tmp/claude-plugin/skills/autoresearch" .github/skills/autoresearch
cp -R "$tmp/.opencode/skills/autoresearch" .github/skills/autoresearch
cp -R "$tmp/plugins/autoresearch/skills/autoresearch" .github/skills/autoresearch

Commands for macOS and Linux, on Windows run them in Git Bash.

Run in a terminal in the project folder

npx skills add uditgoenka/autoresearch --skill autoresearch autoresearch autoresearch autoresearch autoresearch -a codex -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Without third-party tools, from commit 050e30d
tmp=$(mktemp -d)
git clone --filter=blob:none --no-checkout https://github.com/uditgoenka/autoresearch.git "$tmp"
git -C "$tmp" sparse-checkout set --no-cone /.agents/skills/autoresearch/ /.claude/skills/autoresearch/ /claude-plugin/skills/autoresearch/ /.opencode/skills/autoresearch/ /plugins/autoresearch/skills/autoresearch/
git -C "$tmp" checkout 050e30dc4ba0974b03f2873111b9901ec3211390
mkdir -p .agents/skills
cp -R "$tmp/.agents/skills/autoresearch" .agents/skills/autoresearch
cp -R "$tmp/.claude/skills/autoresearch" .agents/skills/autoresearch
cp -R "$tmp/claude-plugin/skills/autoresearch" .agents/skills/autoresearch
cp -R "$tmp/.opencode/skills/autoresearch" .agents/skills/autoresearch
cp -R "$tmp/plugins/autoresearch/skills/autoresearch" .agents/skills/autoresearch

Commands for macOS and Linux, on Windows run them in Git Bash.

Run in a terminal in the project folder

npx skills add uditgoenka/autoresearch --skill autoresearch autoresearch autoresearch autoresearch autoresearch -a gemini-cli -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Without third-party tools, from commit 050e30d
tmp=$(mktemp -d)
git clone --filter=blob:none --no-checkout https://github.com/uditgoenka/autoresearch.git "$tmp"
git -C "$tmp" sparse-checkout set --no-cone /.agents/skills/autoresearch/ /.claude/skills/autoresearch/ /claude-plugin/skills/autoresearch/ /.opencode/skills/autoresearch/ /plugins/autoresearch/skills/autoresearch/
git -C "$tmp" checkout 050e30dc4ba0974b03f2873111b9901ec3211390
mkdir -p .agents/skills
cp -R "$tmp/.agents/skills/autoresearch" .agents/skills/autoresearch
cp -R "$tmp/.claude/skills/autoresearch" .agents/skills/autoresearch
cp -R "$tmp/claude-plugin/skills/autoresearch" .agents/skills/autoresearch
cp -R "$tmp/.opencode/skills/autoresearch" .agents/skills/autoresearch
cp -R "$tmp/plugins/autoresearch/skills/autoresearch" .agents/skills/autoresearch

Commands for macOS and Linux, on Windows run them in Git Bash.

Run in a terminal in the project folder

tmp=$(mktemp -d)
git clone --filter=blob:none --no-checkout https://github.com/uditgoenka/autoresearch.git "$tmp"
git -C "$tmp" sparse-checkout set --no-cone /.agents/skills/autoresearch/ /.claude/skills/autoresearch/ /claude-plugin/skills/autoresearch/ /.opencode/skills/autoresearch/ /plugins/autoresearch/skills/autoresearch/
git -C "$tmp" checkout 050e30dc4ba0974b03f2873111b9901ec3211390
mkdir -p .devin/skills
cp -R "$tmp/.agents/skills/autoresearch" .devin/skills/autoresearch
cp -R "$tmp/.claude/skills/autoresearch" .devin/skills/autoresearch
cp -R "$tmp/claude-plugin/skills/autoresearch" .devin/skills/autoresearch
cp -R "$tmp/.opencode/skills/autoresearch" .devin/skills/autoresearch
cp -R "$tmp/plugins/autoresearch/skills/autoresearch" .devin/skills/autoresearch

Commands for macOS and Linux, on Windows run them in Git Bash.

Formerly Windsurf.

Run in a terminal in the project folder

npx skills add uditgoenka/autoresearch --skill autoresearch autoresearch autoresearch autoresearch autoresearch -a cline -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Without third-party tools, from commit 050e30d
tmp=$(mktemp -d)
git clone --filter=blob:none --no-checkout https://github.com/uditgoenka/autoresearch.git "$tmp"
git -C "$tmp" sparse-checkout set --no-cone /.agents/skills/autoresearch/ /.claude/skills/autoresearch/ /claude-plugin/skills/autoresearch/ /.opencode/skills/autoresearch/ /plugins/autoresearch/skills/autoresearch/
git -C "$tmp" checkout 050e30dc4ba0974b03f2873111b9901ec3211390
mkdir -p .cline/skills
cp -R "$tmp/.agents/skills/autoresearch" .cline/skills/autoresearch
cp -R "$tmp/.claude/skills/autoresearch" .cline/skills/autoresearch
cp -R "$tmp/claude-plugin/skills/autoresearch" .cline/skills/autoresearch
cp -R "$tmp/.opencode/skills/autoresearch" .cline/skills/autoresearch
cp -R "$tmp/plugins/autoresearch/skills/autoresearch" .cline/skills/autoresearch

Commands for macOS and Linux, on Windows run them in Git Bash.

Run in a terminal in the project folder

npx skills add uditgoenka/autoresearch --skill autoresearch autoresearch autoresearch autoresearch autoresearch -a roo -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Without third-party tools, from commit 050e30d
tmp=$(mktemp -d)
git clone --filter=blob:none --no-checkout https://github.com/uditgoenka/autoresearch.git "$tmp"
git -C "$tmp" sparse-checkout set --no-cone /.agents/skills/autoresearch/ /.claude/skills/autoresearch/ /claude-plugin/skills/autoresearch/ /.opencode/skills/autoresearch/ /plugins/autoresearch/skills/autoresearch/
git -C "$tmp" checkout 050e30dc4ba0974b03f2873111b9901ec3211390
mkdir -p .roo/skills
cp -R "$tmp/.agents/skills/autoresearch" .roo/skills/autoresearch
cp -R "$tmp/.claude/skills/autoresearch" .roo/skills/autoresearch
cp -R "$tmp/claude-plugin/skills/autoresearch" .roo/skills/autoresearch
cp -R "$tmp/.opencode/skills/autoresearch" .roo/skills/autoresearch
cp -R "$tmp/plugins/autoresearch/skills/autoresearch" .roo/skills/autoresearch

Commands for macOS and Linux, on Windows run them in Git Bash.

A fork of Roo Code, same .roo folders.

Run in a terminal in the project folder

npx skills add uditgoenka/autoresearch --skill autoresearch autoresearch autoresearch autoresearch autoresearch -a opencode -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Without third-party tools, from commit 050e30d
tmp=$(mktemp -d)
git clone --filter=blob:none --no-checkout https://github.com/uditgoenka/autoresearch.git "$tmp"
git -C "$tmp" sparse-checkout set --no-cone /.agents/skills/autoresearch/ /.claude/skills/autoresearch/ /claude-plugin/skills/autoresearch/ /.opencode/skills/autoresearch/ /plugins/autoresearch/skills/autoresearch/
git -C "$tmp" checkout 050e30dc4ba0974b03f2873111b9901ec3211390
mkdir -p .agents/skills
cp -R "$tmp/.agents/skills/autoresearch" .agents/skills/autoresearch
cp -R "$tmp/.claude/skills/autoresearch" .agents/skills/autoresearch
cp -R "$tmp/claude-plugin/skills/autoresearch" .agents/skills/autoresearch
cp -R "$tmp/.opencode/skills/autoresearch" .agents/skills/autoresearch
cp -R "$tmp/plugins/autoresearch/skills/autoresearch" .agents/skills/autoresearch

Commands for macOS and Linux, on Windows run them in Git Bash.

Run in a terminal in the project folder

tmp=$(mktemp -d)
git clone --filter=blob:none --no-checkout https://github.com/uditgoenka/autoresearch.git "$tmp"
git -C "$tmp" sparse-checkout set --no-cone /.agents/skills/autoresearch/ /.claude/skills/autoresearch/ /claude-plugin/skills/autoresearch/ /.opencode/skills/autoresearch/ /plugins/autoresearch/skills/autoresearch/
git -C "$tmp" checkout 050e30dc4ba0974b03f2873111b9901ec3211390
mkdir -p .agents/skills
cp -R "$tmp/.agents/skills/autoresearch" .agents/skills/autoresearch
cp -R "$tmp/.claude/skills/autoresearch" .agents/skills/autoresearch
cp -R "$tmp/claude-plugin/skills/autoresearch" .agents/skills/autoresearch
cp -R "$tmp/.opencode/skills/autoresearch" .agents/skills/autoresearch
cp -R "$tmp/plugins/autoresearch/skills/autoresearch" .agents/skills/autoresearch

Commands for macOS and Linux, on Windows run them in Git Bash.

Run in a terminal in the project folder

tmp=$(mktemp -d)
git clone --filter=blob:none --no-checkout https://github.com/uditgoenka/autoresearch.git "$tmp"
git -C "$tmp" sparse-checkout set --no-cone /.agents/skills/autoresearch/ /.claude/skills/autoresearch/ /claude-plugin/skills/autoresearch/ /.opencode/skills/autoresearch/ /plugins/autoresearch/skills/autoresearch/
git -C "$tmp" checkout 050e30dc4ba0974b03f2873111b9901ec3211390
mkdir -p .agents/skills
cp -R "$tmp/.agents/skills/autoresearch" .agents/skills/autoresearch
cp -R "$tmp/.claude/skills/autoresearch" .agents/skills/autoresearch
cp -R "$tmp/claude-plugin/skills/autoresearch" .agents/skills/autoresearch
cp -R "$tmp/.opencode/skills/autoresearch" .agents/skills/autoresearch
cp -R "$tmp/plugins/autoresearch/skills/autoresearch" .agents/skills/autoresearch

Commands for macOS and Linux, on Windows run them in Git Bash.

You will need: Node.js

Checked against the repository on Sep 26, 2026, commit 050e30d.

Text for your agent

Install the skill: npx skills add uditgoenka/autoresearch. In Claude Code you can use the plugin: /plugin marketplace add uditgoenka/autoresearch, then /plugin install autoresearch@autoresearch. Start a new session after installing.

Other ways from the author
npx skills add uditgoenka/autoresearch

Restart the agent session after installing.

This is third-party code. Review the repository files before installing.

What it does

Autoresearch turns an agent into a continuous improvement loop inspired by Karpathy's autoresearch. The user sets a goal and a mechanical metric, and the agent repeats: read the current state and git history, make one focused change, commit, run verification via tests or benchmarks, then keep the change if it improved things or revert it. Beyond the core loop there are separate commands: plan, debug, drive errors to zero, security audit via STRIDE and OWASP, edge-case generation, requirement probing, results analysis and a regression gate. In the orchestrator mode you state a goal in plain language and the agent selects the commands itself and runs the loop until the condition is met. For Claude Code there are guardrail hooks that block dangerous commands and reading of secrets.

Who it is for. For developers and quality engineers who want the agent to iteratively improve code or any measurable result on its own.

Good fit when

  • You have a goal and a number you can measure: tests, a benchmark, a score
  • You need to drive the error count to zero through repeated fixes
  • You need an autonomous improvement loop with automatic rollback of failures
  • You need a security audit or a regression gate before a release

Not a fit when

  • There is no mechanical metric and quality can only be judged subjectively
  • You cannot let the agent change and commit code autonomously

Example request

Run the improvement loop until all tests pass, and revert every change that makes things worse

Limitations

The loop only works where a verifiable metric and a way to run it exist; it does not fit subjective tasks. The guardrail hooks are Claude Code only, while OpenCode and Codex get the core skill without them, so protection there must be handled separately. The agent edits code, commits and reverts on its own, so run it on a repository with a working git.

How to disable. Remove the autoresearch plugin via /plugin or delete the skill and command folders from the agent's directory. Individual hooks can be turned off with AR_DISABLE_* environment variables.

Security check

  • Autonomously edits code in a loop, committing and reverting via git
  • Runs shell commands to verify with tests and benchmarks
  • Without guardrail hooks it may perform arbitrary actions in the project

README in short

The README describes Autoresearch as an autonomous improvement loop for Claude Code, OpenCode and Codex that generalizes Karpathy's approach to any domain with a measurable metric. The core loop makes one change per iteration, commits before verifying, runs a mechanical check and reverts anything that did not improve the result, with git serving as experiment memory. Beyond iteration there are fourteen commands: plan, debug, fix, security, ship, scenarios, requirement probing and others, while an orchestrator assembles the right pipeline for a plain-language goal. It documents the Claude Code guardrail hooks that block dangerous commands, reading secrets and context bloat. Installation is via npx skills, a plugin or manual copying, and the architecture is split into a thin routing file plus separate commands to save context.

SKILL.md

---
name: autoresearch
description: "Autonomous iteration loop: modify, verify, keep/discard against any metric"
version: 2.2.2
---

# Autoresearch — Autonomous Goal-directed Iteration

## Safety Invariants (all subcommands)

LOOP (N iterations or until done):
  1. Review current state + git history + results log
  2. Pick the next change (based on what worked, what failed, what's untried)
  3. Make ONE focused change
  4. Git commit (before verification)
  5. Run mechanical verification (tests, benchmarks, scores)
  6. If improved keep. If worse git revert. If crashed fix or skip.
  7. Log the result
  8. Repeat until N iterations complete or goal is met.

FAQ

What do I set before running?

A goal, a mechanical metric and the edit scope. The agent runs a one-time setup, takes a baseline, and only then starts the loop.

Do the safety hooks work everywhere?

No, the full hook set is Claude Code only. OpenCode and Codex get the core skill and commands without hooks.

Editors’ pick

A skills library that gives coding agents a development process: brainstorming, planning, TDD, subagents and code review

PluginMedium riskNo VPN needed292.5KRepository stars
Editors’ pick

Small composable skills for engineering with agents: plan grilling, TDD, bug diagnosis, code review and architecture

SkillLow risk271.4KRepository stars
Editors’ pick

GitHub toolkit for spec-driven development: the specify CLI adds agent commands and skills to a project, from principles to implementation

CLIMedium riskNo VPN needed139.3KRepository stars

Reference MCP servers

Model Context Protocol servers

Official

Official reference MCP servers: Filesystem, Fetch, Git, Memory, Sequential Thinking, Time and Everything

MCP serverMedium risk90.6KRepository stars
Foxx AIAutoresearch

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.