From orc
Autonomous optimization loop inspired by Karpathy's autoresearch pattern. Iteratively improve any measurable codebase metric (coverage, latency, accuracy, test pass rate) by observing misses, hypothesizing fixes, dispatching edits to Cursor/Codex, evaluating, and ratcheting gains via git. Use when: "orc:autoresearch", "autoresearch", "optimize X metric", "iterate until X improves", "hill-climb", "run the loop", "autoresearch on [target]", or when the user wants autonomous iterative improvement of a scalar metric. Part of the orc system: orc:orchestrate, orc:backlog, orc:autoresearch, orc:status, orc:recap, orc:scope, orc:handoff.
npx claudepluginhub athan-dial/skills --plugin orcThis skill uses the workspace's default tool permissions.
Autonomous hill-climbing for any codebase metric. Opus orchestrates; Cursor/Codex execute; git ratchets gains.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Generates original PNG/PDF visual art via design philosophy manifestos for posters, graphics, and static designs on user request.
Autonomous hill-climbing for any codebase metric. Opus orchestrates; Cursor/Codex execute; git ratchets gains.
/autoresearch [description] — Start new session (discovery + loop)/autoresearch:status — Read var/autoresearch/<slug>/session.json, display iteration, best metric, last hypothesis/autoresearch:resume — Read session.json, restore state, continue from last iteration. See references/loop-integration.mdUse AskUserQuestion (max 3 questions). Skip when args make the answer obvious.
Run bash scripts/init-session.sh <slug> <branch-name>. The script:
autoresearch/<slug> branchvar/autoresearch/<slug>/ directoryallowed_files.txtThen:
program.md from references/program-template.mdevaluate.sh (must output JSON: {"metric": N, "miss_report": {...}})baseline.json, commit: autoresearch(<slug>): init baseline=<metric>Integrates with /loop for self-pacing. See references/loop-integration.md for session.json schema and resume protocol.
Each /loop tick = one OHEE iteration:
Observe — Read last iteration-<N>.json + git log --oneline -5 + hypotheses.jsonl. Do NOT re-read full mutable files.
Hypothesize — Pick highest-leverage fix from miss report. Check hypotheses.jsonl to avoid repeats. Log hypothesis.
Experiment — Route by size: trivial (<20 LOC) → Claude direct, focused (<100 LOC) → Cursor, complex → Codex. After executor completes, run bash scripts/check-allowed-files.sh <slug> to verify scope.
Evaluate — Run bash scripts/ratchet.sh <slug>. The script runs guard, evaluator, compares, and either commits or resets. Returns JSON with keep/revert decision + new metric.
Write var/autoresearch/<slug>/REPORT.md. Display summary: baseline → final, top gains, plateau point.
Offer: merge autoresearch/<slug> branch (squash) or keep as-is.
check-allowed-files.sh)autoresearch/<slug> branch — never commit directly to mainhypotheses.jsonl before proposing — no repeat experimentsreferences/architecture.md — Three-file pattern, orchestrator/executor split, miss report designreferences/program-template.md — Template for program.mdreferences/loop-integration.md — /loop self-pacing, session.json schema, resume protocol