autoresearch
Autonomous iteration loop: modify, verify, keep/discard against any metric
Convert a goal into validated Scope, Metric, Direction, Verify config
> /plugin marketplace add uditgoenka/autoresearch > /plugin install autoresearch@autoresearch
How it fires
How this command gets triggered: by you, by Claude, or both.
/planContext preview
What this command does when you run it.
Convert a goal into validated Scope, Metric, Direction, Verify config
name: autoresearch:plan description: "Convert a goal into validated Scope, Metric, Direction, Verify config" argument-hint: "[Goal: <text>] [--chain <targets>]"
EXECUTE IMMEDIATELY.
Extract from $ARGUMENTS:
Remaining text = goal description.
AskUserQuestion (single batch): Q1 (Goal): "What do you want to achieve?" — open text Q2 (Type): "What kind of goal?" — improve a metric, fix errors, audit security, explore edge cases, document code, ship something If Goal provided → skip.
Parse the goal to determine:
1. Scan project structure 2. Identify files relevant to the goal 3. Propose file globs 4. If ambiguous → ask user to confirm
For metric-driven goals:
For subjective goals:
1. Identify how to extract the metric as a number from a shell command 2. Propose Verify command (e.g., `npm test -- --coverage | grep "All files" | awk '{print $10}'`) 3. **Safety screen:** check proposed command for rm -rf, fork bombs, curl|sh, credentials 4. Dry-run the Verify command → confirm it outputs a valid number 5. If dry-run fails → adjust command and retry
Propose a Guard command if applicable:
Based on goal complexity:
Output a ready-to-run autoresearch config block:
/autoresearch
Goal: {derived goal}
Scope: {derived globs}
Metric: {derived metric}
Direction: {higher_is_better|lower_is_better}
Verify: {derived command}
Guard: {derived guard or omit}
Iterations: {suggested count}Ask user: "Run this config now, or adjust?"
If --chain set:
Turn Claude Code, OpenCode, or OpenAI Codex into a relentless improvement engine. Based on Karpathy's autoresearch — constraint + mechanical metric + autonomous iteration = compounding gains.
Repo: uditgoenka/autoresearch
Autonomous iteration loop: modify, verify, keep/discard against any metric
Analyze iteration results: trends, plateaus, regressions, recommendations
Scout codebase and auto-generate docs — or a navigable wiki knowledge base — with validation-fix loop