By obra
Run an autonomous experiment loop that iteratively tries ideas, measures metrics, and keeps what works — all tracked in git for reproducibility, with optional AWS Bedrock cost controls via a rate limiter.
Autonomous experiment loop for Claude Code. Port of pi-autoresearch as a pure skill — no MCP server, just instructions the agent follows with its built-in tools.
Runs experiments, measures results, keeps winners, discards losers, loops forever.
claude --plugin-dir /path/to/autoresearch-claude-code
This loads the plugin for the current session only.
Clone the repo and point Claude Code at it:
git clone https://github.com/obra/autoresearch-claude-code.git ~/autoresearch-claude-code
Then add to your ~/.claude/settings.json:
{
"plugins": ["~/autoresearch-claude-code"]
}
claude plugin disable autoresearch # disable (hooks stop firing too)
claude plugin enable autoresearch # re-enable
Or use /plugin inside Claude Code for an interactive manager.
/autoresearch:autoresearch optimize test suite runtime
/autoresearch:autoresearch # resume existing loop
/autoresearch:autoresearch off # pause (in-session)
The agent creates a branch, writes a session doc + benchmark script, runs a baseline, then loops autonomously. Send messages mid-loop to steer the next experiment.
Included in examples/ — uses the Driveline OpenBiomechanics dataset to predict fastball velocity from biomechanical POI metrics.

22 autonomous experiments took R² from 0.44 to 0.78 (+78%), predicting a new player's fastball velocity within ~2 mph from biomechanics alone.
| Metric | Baseline | Best | Change |
|---|---|---|---|
| R² | 0.440 | 0.783 | +78% |
| RMSE | 3.53 mph | 2.20 mph | -38% |
To run it yourself:
mkdir -p third_party
git clone https://github.com/drivelineresearch/openbiomechanics.git third_party/openbiomechanics
python3 -m venv .venv && source .venv/bin/activate
pip install xgboost scikit-learn pandas numpy matplotlib
cp examples/train.py examples/autoresearch.sh .
.venv/bin/python train.py
See examples/obp-autoresearch.md for the session config and experiments/worklog.md for the full experiment narrative.
| pi-autoresearch (MCP) | This port (Plugin) |
|---|---|
init_experiment tool | Agent writes config to autoresearch.jsonl |
run_experiment tool | Agent runs ./autoresearch.sh with timing |
log_experiment tool | Agent appends result JSON, git commit on keep |
| TUI dashboard | autoresearch-dashboard.md |
before_agent_start hook | UserPromptSubmit hook injects context |
State lives in autoresearch.jsonl. Session artifacts (*.jsonl, dashboard, session doc, benchmark script, ideas backlog, worklog) are gitignored.
.claude-plugin/plugin.json # Plugin manifest
skills/autoresearch/SKILL.md # Core skill: setup, JSONL protocol, run/log/loop logic
commands/autoresearch.md # /autoresearch slash command (start, resume, off)
hooks/hooks.json # Hook definitions (plugin format)
hooks/autoresearch-context.sh # UserPromptSubmit hook — injects context when active
examples/ # Fastball velocity prediction demo
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Core skills library for Claude Code: TDD, debugging, collaboration patterns, and proven techniques
Use when creating new skills, editing existing skills, or verifying skills work before deployment
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup
Use when implementing any feature or bugfix, before writing implementation code
Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies
npx claudepluginhub obra/autoresearch-claude-codeAutonomous experiment loop — iteratively optimize any metric with git-tracked experiments, a Stop-hook loop engine, noise-floor keep/discard, and a locked eval harness
Autonomous experiment loop that edits code, runs benchmarks, measures metrics, and keeps improvements or reverts — repeating forever. Works for any optimization target: LLM training loss, test speed, bundle size, build time, Lighthouse scores, and more.
Autonomous experimentation skill — your AI coding agent designs experiments, tests hypotheses, discards failures, keeps wins. Runs overnight while you sleep.
ML research skills: topic, plan, judge, run, sweep, verify, fortify, retro
Autonomous experiment loop for any project type. Inspired by karpathy/autoresearch.
Autonomous experiment loop that optimizes any file by a measurable metric. 5 slash commands, 8 evaluators, configurable loop intervals (10min to monthly).