Source profileQuality 84/100Review permissions

xoai/sage/skills/autoresearch/SKILL.md

autoresearch

Autonomous iteration toward a measurable outcome. Use when the user wants to optimize a numeric metric through repeated modify-verify cycles — reduce bundle size, increase test coverage, improve query time, lower readability score. Not for exploratory research, subjective judgment, or tasks without a verification command.

Source repository stars
25
Declared platforms
0
Static risk flags
1
Last source update
2026-08-04
Source checked
2026-08-04

Decision brief

What it does—and where it fits

Autonomous iteration toward a measurable outcome. The agent modifies code, commits, runs a verify command, keeps improvements, reverts regressions — repeating until a target is hit, a budget is exhausted, or the user interrupts.

Best for

  • Task has a measurable numeric metric (size, time, count, score, coverage)
  • A verify command exists that outputs the metric deterministically
  • "Better" means the number going consistently in one direction

Not for

  • Subjective goals ("make the UI prettier")
  • No verify command available

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeNot declaredNo explicit evidencePortability before use
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/xoai/sage --skill "skills/autoresearch"
Safe inspection promptEditorial

Inspect the Agent Skill "autoresearch" from https://github.com/xoai/sage/blob/f7cc487b393474030cef15d50efdbb195612b756/skills/autoresearch/SKILL.md at commit f7cc487b393474030cef15d50efdbb195612b756. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    The 8-Phase Loop

    Each iteration follows 8 phases. Read references/loop-protocol.md for per-phase detail.

    Exit code ≠ 0 → crash, reset to HEADNo METRIC line → crash, resetnan/inf → crash, reset
  2. 02

    When to Use

    Task has a measurable numeric metric (size, time, count, score, coverage)

    Task has a measurable numeric metric (size, time, count, score, coverage)A verify command exists that outputs the metric deterministically"Better" means the number going consistently in one direction
  3. 03

    When NOT to Use

    Subjective goals ("make the UI prettier")

    Subjective goals ("make the UI prettier")No verify command availableMetric requires manual evaluation
  4. 04

    Elicitation Checklist

    Before the loop can start, capture these (skip if already provided):

    Before the loop can start, capture these (skip if already provided):Present as a brief for user approval:
  5. 05

    Runtime Integration

    An optional Python runtime handles the deterministic phases (COMMIT, VERIFY, DECIDE, LOG, REPEAT); the agent handles the creative phases (REVIEW, IDEATE, MODIFY). The runtime was extracted from core into its own package in Phase 3 (like sage-memory) — install it with sage add xo…

    An optional Python runtime handles the deterministic phases (COMMIT, VERIFY, DECIDE, LOG, REPEAT); the agent handles the creative phases (REVIEW, IDEATE, MODIFY). The runtime was extracted from core into its own package…Running the runtime — probe first, and degrade LOUDLY if it is absent (announce + log to decisions.md; never silently skip):Harness contract: The verify command must print METRIC name=number to stdout. See references/harness-conventions.md.

Permission review

Static risk signals and limitations

Runs scripts

medium · line 76

The documentation asks the agent to run terminal commands or scripts.

| 5 | VERIFY | runtime | Run verify command with wall-clock budget |

Runs scripts

medium · line 99

The documentation asks the agent to run terminal commands or scripts.

python3 -m autoresearch run --brief .sage/work/<slug>/brief.md --project .

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score84/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars25SourceRepository attention, not individual Skill quality
Compatibility0 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
xoai/sage
Skill path
skills/autoresearch/SKILL.md
Commit
f7cc487b393474030cef15d50efdbb195612b756
License
MIT
Collected
2026-08-04
Default branch
main
View the original SKILL.md

Autoresearch

Autonomous iteration toward a measurable outcome. The agent modifies code, commits, runs a verify command, keeps improvements, reverts regressions — repeating until a target is hit, a budget is exhausted, or the user interrupts.

Core principles (from Karpathy's autoresearch pattern):

  1. One change per iteration
  2. Commit before verify
  3. Metrics must be mechanical (deterministic, fast, parseable)
  4. Keep improvements, revert regressions — no exceptions
  5. The branch is sacred — never touch main
  6. State survives crashes — resume from last known good
  7. Memory spans sessions — what worked/failed carries forward

When to Use

  • Task has a measurable numeric metric (size, time, count, score, coverage)
  • A verify command exists that outputs the metric deterministically
  • "Better" means the number going consistently in one direction
  • The agent can make changes autonomously within a defined scope

When NOT to Use

  • Subjective goals ("make the UI prettier")
  • No verify command available
  • Metric requires manual evaluation
  • Task needs human judgment per iteration
  • Exploratory research without a target

Elicitation Checklist

Before the loop can start, capture these (skip if already provided):

FieldRequiredExample
GoalYes"Reduce bundle below 200KB"
Metric nameYesbundle_kb
DirectionYeslower or higher
TargetOptional200
Verify commandYespnpm build && measure.sh
Writable scopeRecommendedsrc/**/*.ts
Frozen scopeRecommendedpackage.json, *.lock
Per-run budgetYes (default 120s)120 seconds
Max iterationsOptional100
TerminationAutotarget if target given, else interrupt

Present as a brief for user approval:

Sage: Autoresearch session configured.

  Goal: [goal statement]
  Metric: [name] ([direction]), target: [target or "none — runs until interrupted"]
  Verify: [command]
  Scope: writable [globs], frozen [globs]
  Budget: [seconds]s per run, [max iterations or "unlimited"]

[A] Start — begin autonomous iteration
[R] Revise — change configuration

The 8-Phase Loop

Each iteration follows 8 phases. Read references/loop-protocol.md for per-phase detail.

#PhaseActorWhat happens
1REVIEWagentRead current state, recent history (last 20 iterations from JSONL)
2IDEATEagentPropose ONE change, ≤1 sentence. If stuck, load references/stuck-recovery.md
3MODIFYagentMake the change. Stay within writable scope.
4COMMITruntimegit add -A && git commit on autoresearch/<slug> branch
5VERIFYruntimeRun verify command with wall-clock budget
6DECIDEruntimeParse METRIC, compare to best → keep / discard / crash
7LOGruntime+agentAppend JSONL, rebuild TSV, agent updates living doc
8REPEATruntimeCheck termination → loop or exit

Decision rules (Phase 6):

  • Exit code ≠ 0 → crash, reset to HEAD
  • No METRIC line → crash, reset
  • nan/inf → crash, reset
  • Metric improved → keep, advance branch
  • Metric equal or worse → discard, reset

Runtime Integration

An optional Python runtime handles the deterministic phases (COMMIT, VERIFY, DECIDE, LOG, REPEAT); the agent handles the creative phases (REVIEW, IDEATE, MODIFY). The runtime was extracted from core into its own package in Phase 3 (like sage-memory) — install it with sage add xoai/sage-autoresearch.

Running the runtime — probe first, and degrade LOUDLY if it is absent (announce + log to decisions.md; never silently skip):

if python3 -c 'import autoresearch' 2>/dev/null; then
  python3 -m autoresearch run --brief .sage/work/<slug>/brief.md --project .
else
  echo "Sage: autoresearch runtime not installed — running in degraded (manual)"
  echo "mode. For the deterministic runtime: sage add xoai/sage-autoresearch"
fi

Harness contract: The verify command must print METRIC name=number to stdout. See references/harness-conventions.md.

Session State

All state lives in .sage/work/<YYYYMMDD-slug>/:

FileRole
brief.mdConfiguration (goal, metric, scope, budget)
autoresearch.mdLiving doc — ideas tried, wins, dead ends
autoresearch.jsonlStructured log (one line per iteration)
results.tsvHuman-readable view (derived from JSONL)
runs/NNNN-*.logPer-iteration stdout+stderr
.autoresearch-state.jsonCrash recovery state (not committed)

Session Resume

On resume (new session, context reset, platform switch):

  1. Read autoresearch.md for high-level context
  2. Read last 20 lines of autoresearch.jsonl for recent history
  3. Verify last JSONL commit matches git log on the branch
  4. Continue from next iteration number

See references/session-continuity.md for full protocol.

Memory Integration

Session end: Store a structured summary in sage-memory:

  • Winning patterns (what worked)
  • Losing patterns (what didn't)
  • Best achieved value
  • Iteration count

Session start: Search sage-memory for priors on this repo + metric. Inject into IDEATE as "known-good starting points" and "known dead ends."

Quality Gates

GateWhenCheck
scopeAfter MODIFYChanged files ⊆ writable, frozen untouched
pre-verifyAfter COMMITgit status is clean
metric-parseableAfter VERIFYAt least one METRIC line in stdout
budgetDuring VERIFYWall-clock ≤ per_run_seconds

Gates are enforced by the runtime, not by prose. The agent cannot bypass them.

References

  • references/loop-protocol.md — per-phase inputs, outputs, failure modes
  • references/metric-design.md — what makes a good metric
  • references/harness-conventions.md — METRIC line contract
  • references/stuck-recovery.md — escape local minima
  • references/crash-handling.md — retry vs skip decision tree
  • references/session-continuity.md — resume protocol

Alternatives

Compare before choosing

Computed 8937,425

github/awesome-copilot

autoresearch

Autonomous iterative experimentation loop for any programming task. Guides the user through defining goals, measurable metrics, and scope constraints, then runs an autonomous loop of code changes, testing, measuring, and keeping/discarding results. Inspired by Karpathy's autoresearch. USE FOR: autonomous improvement, iterative optimization, experiment loop, auto research, performance tuning, automated experimentation, hill climbing, try things automatically, optimize code, run experiments, auton

Computed 9111,387

Orchestra-Research/AI-Research-SKILLs

autoresearch

Orchestrates end-to-end autonomous AI research projects using a two-loop architecture. The inner loop runs rapid experiment iterations with clear optimization targets. The outer loop synthesizes results, identifies patterns, and steers research direction. Routes to domain-specific skills for execution, supports continuous agent operation via Claude Code /loop and OpenClaw heartbeat, and produces research presentations and papers. Use when starting a research project, running autonomous experimen

Computed 10042,968

coreyhaines31/marketingskills

ab-testing

When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program

Computed 10023,781

alirezarezvani/claude-skills

app-store-optimization

App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist