By seanGSISG
Autonomous experiment loop for Claude Code — try an idea, measure it, keep what works, discard what doesn't, repeat. Inspired by karpathy/autoresearch.
Delete the autoresearch session log and turn mode off
Open the live autoresearch dashboard in the browser
Enable or disable the unattended auto-resume loop
Start or resume an autoresearch experiment loop for a goal
Show autoresearch session status
Set up and run an autonomous experiment loop for any optimization target. Gathers what to optimize, then starts the loop immediately. Use when asked to "run autoresearch", "optimize X in a loop", "set up autoresearch for X", or "start experiments".
Author pre/post-iteration hooks for an autoresearch session. Use when the user asks to add research fetching, Slack/webhook notifications, persistent learnings, auto-tagging, anti-thrash intervention, idea rotation, or any side effect around iterations.
Admin access level
Server config contains admin-level keywords
Uses power tools
Uses Bash, Write, or Edit tools
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.
Runs pre-commands
Contains inline bash commands via ! syntax
Runs pre-commands
Contains inline bash commands via ! syntax
Autonomous experiment loop for Claude Code — try an idea, measure it, keep what works, discard what doesn't, repeat.
A native Claude Code plugin that turns Claude into a tireless optimization researcher. Point it at any measurable target — test runtime, bundle size, training loss, Lighthouse score, build time — and it runs the inner loop for you: hypothesize → change code → run a benchmark → measure → keep or discard → commit → repeat. Inspired by karpathy/autoresearch.
This is the Claude Code port of the original
pi-autoresearchextension for the pi agent.
Every kept experiment is auto-committed; every discard/crash auto-reverts your code (session files under .auto/ are always preserved). After a few runs it reports a confidence score so you can tell a real improvement from benchmark noise. A guardrail keeps Claude from overfitting or cheating the benchmark.
From this repository's marketplace:
/plugin marketplace add seanGSISG/cc-autoresearch
/plugin install autoresearch@cc-autoresearch
For local development, load the checkout directly:
claude --plugin-dir /path/to/cc-autoresearch
Requirements: Node.js ≥ 22 on PATH (hooks run TypeScript via Node's built-in type stripping; the MCP server is a pre-bundled, dependency-free mcp/server.js). Git is used for keep/revert.
/autoresearch:start optimize unit-test runtime, keep correctness
On first use for a target, Claude runs the autoresearch-create skill: it gathers (or infers) the goal, benchmark command, primary metric + direction, files in scope, and constraints; creates an autoresearch/<goal>-<date> git branch; and writes .auto/prompt.md + .auto/measure.sh. Then it initializes the session and starts looping.
Watch it live:
/autoresearch:dashboard
| Command | What it does |
|---|---|
/autoresearch:start "<goal>" | Enter autoresearch mode and start or resume the loop. |
/autoresearch:stop | Leave autoresearch mode (keeps the session log). |
/autoresearch:clear | Delete .auto/log.jsonl and reset session state. |
/autoresearch:status | Show mode, goal, metric, run count, baseline → best. |
/autoresearch:dashboard | Open the live browser dashboard (SSE-updated). |
/autoresearch:loop on|off | Toggle the opt-in unattended auto-resume loop (default off). |
The bundled MCP server exposes three loop tools (plus dashboard):
init_experiment — one-time session config (name, metric, unit, direction). Writes the config header to .auto/log.jsonl. Call again to start a new segment with a fresh baseline when the target changes.run_experiment — runs a shell command, times wall-clock duration, captures/truncates output, parses METRIC name=value lines, and (if present) runs .auto/checks.sh as a correctness gate.log_experiment — records the result. keep → git add -A && git commit; discard/crash/checks_failed → auto-revert code (.auto/** preserved). Reports the confidence score after 3+ runs..auto/)Everything for a session lives in one folder, so it survives reverts, is easy to .gitignore, and easy to clean up:
| File | Purpose |
|---|---|
.auto/prompt.md | The playbook — objective, metrics, files in scope, constraints, what's-been-tried. A fresh agent resumes from this alone. |
.auto/measure.sh | Benchmark; emits METRIC name=value lines. |
.auto/log.jsonl | Append-only result log (source of truth). |
.auto/state.json | Mode + loop state (managed by the plugin). |
.auto/ideas.md | Optional ideas backlog. |
.auto/checks.sh | Optional correctness backpressure. |
.auto/config.json | Optional { "maxIterations": N, "workingDir": "..." }. |
.auto/hooks/{before,after}.sh | Optional per-iteration hooks (see the autoresearch-hooks skill). |
While autoresearch mode is active, a UserPromptSubmit hook injects the loop guidance ("optimize the primary metric… NEVER STOP… don't cheat the benchmark") each turn, and a SessionStart hook re-injects session context on startup, resume, and after compaction (a deterministic summary of rules + ideas + recent runs, so state survives context loss).
By default you drive each iteration. To let it run unattended, enable the opt-in loop:
/autoresearch:loop on
npx claudepluginhub seangsisg/cc-autoresearch --plugin autoresearchAlways-on memory for Claude Code -- records sessions, extracts observations, consolidates insights, injects context automatically.
Vault-specific skills, rules, and hooks for the MyVault Obsidian knowledge base. Provides note creation, search, inbox processing, maintenance, and frontmatter validation.
Claude Code skills for building MCP Apps with interactive UIs and packaging MCP servers as MCPB desktop extensions
AI-powered search and access to 573 Anthropic documentation paths — Claude Code CLI, API, Agent SDK, and more
Clean up old cached plugin versions to free disk space
Ultra-compressed communication mode. Cuts 65% of output tokens (measured) while keeping full technical accuracy by speaking like a caveman.
Multi-model consensus engine integrating OpenAI Codex CLI, Gemini CLI, and Claude CLI for collaborative code review and problem-solving.
Unified capability management center for Skills, Agents, and Commands.
Memory compression system for Claude Code - persist context across sessions
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Standalone image generation plugin using Nano Banana MCP server. Generates and edits images, icons, diagrams, patterns, and visual assets via Gemini image models. No Gemini CLI dependency required.