Drop this file into your project root. Any AI agent can use Autoresearch immediately.
Autonomous goal-directed iteration. One metric, constrained scope, fast verification, automatic rollback, git as memory.
Core loop: Modify → Verify → Keep/Discard → Repeat.
git clone https://github.com/coder-company/agent-autoresearch.git
cd agent-autoresearch
./install.sh --yes --claude
Restart session. Commands available as /autoresearch and /autoresearch:<subcommand>. If the autoresearch binary is already on PATH, claude plugin add coder-company/agent-autoresearch is also valid.
Pro tip: Use /goal for fully autonomous multi-turn execution:
/autoresearch
Goal: Increase test coverage from 72% to 90%
Scope: src/**/*.ts
Verify: npm test -- --coverage | tail -1
$skill-installer install https://github.com/coder-company/agent-autoresearch
Then: $autoresearch
For a local clone, ./install.sh --yes --codex copies .agents/skills/autoresearch/ into your Codex skills directory. Use ./install.sh --yes --codex-plugin for the local marketplace package at plugins/autoresearch/.
git clone https://github.com/coder-company/agent-autoresearch.git
cd agent-autoresearch
./install.sh --yes --opencodeCommands install as /autoresearch and /autoresearch_debug, /autoresearch_fix, etc.
git clone https://github.com/coder-company/agent-autoresearch.git
cd agent-autoresearch
./install.sh --yes --all| Command | Purpose |
|---|---|
autoresearch |
Autonomous iteration loop against a metric |
autoresearch:plan |
Interactive wizard: Goal → Scope, Metric, Verify config |
autoresearch:debug |
Bug hunting — hypothesize, test, falsify, repeat |
autoresearch:fix |
Error repair — one fix per iteration until zero |
autoresearch:security |
STRIDE + OWASP security audit |
autoresearch:ship |
Ship workflow — checklist, test, PR, deploy, verify |
autoresearch:scenario |
Edge case exploration across 12 dimensions |
autoresearch:predict |
Multi-persona expert debate before acting |
autoresearch:learn |
Auto-generate documentation |
autoresearch:reason |
Adversarial refinement with blind judges |
autoresearch:probe |
Requirement interrogation until saturation |
autoresearch:improve |
ICP-driven product improvement research |
autoresearch:evals |
Analyze iteration results: trends, plateaus |
/autoresearch
Goal: Reduce any-types to zero
Scope: src/**/*.ts
Verify: grep -rc ':any' src/ | awk -F: '{s+=$2}END{print s}'
Iterations: 30
$autoresearch
I want to get rid of all the `any` types in my TypeScript code
| Field | Required | Description |
|---|---|---|
Goal |
Yes | What to achieve (plain language) |
Scope |
Yes | Glob patterns for modifiable files |
Metric |
Yes | What number to optimize |
Verify |
Yes | Command that outputs a scalar metric or final-line JSON metrics |
Guard |
No | Safety command that must exit 0 |
Iterations |
No | Turn cap (default: 25 for the root loop; subcommands document their own defaults) |
Direction |
No | higher or lower |
Acceptance criteria |
No | Metric thresholds for stopping |
Required keep criteria |
No | Metric thresholds every keep must satisfy |
- One change per turn — atomic experiments create causality.
- Read before write — git log + results TSV before modifying.
- Mechanical verification only — run the command, parse the number.
- Automatic rollback —
git revert HEAD --no-editon failure. - Simplicity wins — equal metric + less code = KEEP.
- Git is memory — experiments committed, failures reverted, TSV logs all.
- Never stage artifacts —
autoresearch-results/and.codex-autoresearch/stay uncommitted. - When stuck, escalate — REFINE → PIVOT → Web Search → Stop.
Written in Rust. Single about-3MB binary. Sub-5ms hook execution. Zero runtime dependencies.
agent-autoresearch/
├── .claude-plugin/plugin.json ← Claude Code plugin manifest
├── hooks/hooks.json ← Hook definitions
├── skills/autoresearch/SKILL.md ← Claude Code skill
├── .agents/skills/autoresearch/ ← Codex skill package
├── .agents/plugins/marketplace.json ← Local Codex marketplace
├── plugins/autoresearch/ ← Codex plugin package
├── .opencode/ ← OpenCode commands, skill package, and docs-manager helper agent
├── commands/autoresearch.md ← Root command
├── commands/autoresearch/*.md ← Subcommands
├── SKILL.md ← Generic skill entrypoint
├── references/ ← Shared protocol docs
├── src/ ← Rust source
├── bin/autoresearch ← Portable hook wrapper (tracked)
├── target/release/autoresearch ← Built binary (gitignored)
└── install.sh ← Build + install
GNU General Public License v2.0