/simplicio-loop:simplicio-autoresearchfrom simplicio-loop — Universal Looping AI Orchestrator
Evolutionary optimization loop that mutates a target, evaluates against fixed criteria, keeps improvements or reverts regressions. Use for shrinking tokens/latency/bundle size or improving pass-rate against a measurable eval.
Ships in simplicio-loop — Universal Looping AI Orchestrator. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Credit: Andrej Karpathy's autoresearch pattern
(https://github.com/balukosuri/Andrej-Karpathy-s-Autoresearch-As-a-Universal-Skill) and the ECC
bundle's autoresearch-agent, adapted into a first-class simplicio skill. The upstream loop is
NOT installed raw — it conflicts with this ecosystem's rules (unbounded iteration, no git
isolation discipline, single-metric hill-climbing). This skill fixes all three. The mechanical
bookkeeping (caps, git actions, journal, plateau math, receipt) is a deterministic, model-free
worker (scripts/autoresearch.py) — it never mutates the target itself. You (the LLM driving
this skill) propose the mutation; the worker enforces the contract around it.
Register this skill's runtime as an agent with a hard cap on iterations and budget BEFORE the first mutation — an uncapped loop is a review-blocker, per spec:
### simplicio-autoresearch
- yool_id: `agent.dev.autoresearch`
- authority: dev
- lane: background
- agent_terms:
cpu_quota_pct: 60
disk_quota_mb: 100
timeout_s: 300
max_iterations: <N> # MANDATORY — set at `init`, never omitted
max_token_budget: <N> # MANDATORY — set at `init`, never omitted
scripts/autoresearch.py init refuses to start (exit 2) without both --max-iterations and
--max-token-budget as positive integers — the cap is enforced mechanically, not by convention.
record refuses (exit 12) any iteration number beyond the frozen max_iterations.
Fit requires: a concrete target file (or small set of files), a command that can score it, and a correctness gate that is genuinely binary.
| Good fit (pilots) | Why |
|---|---|
| mapper — TOON encoder heuristics | eval = round-trip fixtures (correctness) + measured tokens on real artifacts (score) |
| dev-cli — prompt template | eval = the A/B bench pass-rate, fixed validation set |
| runtime — local model-ladder tuning | eval = ladder success-rate / latency on a fixed task set |
| Low fit — do NOT use | Why |
|---|---|
| sprint (planning code vs its own pytest suite) | the eval IS the test suite the code is graded against — the loop would learn to game its own gate (Goodhart) |
| an agent already in production | "cache is sacred" — mutating a live, cached agent config outside an offline branch risks correctness regressions no one is watching for |
| marketing copy with no fixed judge | a wobbling human/LLM judge with no binary criteria is not a gate, it's noise — the loop would hill-climb on judge mood, not quality |
init{"gate": "pass"|"fail", "score": <number>} (JSON anywhere in stdout/
stderr, or gate: pass / score: 7 lines as a fallback) — see parse_eval_output in the
worker. The eval includes the repo's OWN gate (lint + tests for the target's language/repo)
— the loop must never commit red.--tokenizer-id <name> at init whenever the score is a token count.--max-iterations, --max-token-budget (mandatory), optionally
--cpu-quota-pct (default 60), --disk-quota-mb (default 100), --timeout-s (default 300),
--plateau-n (default 5).python3 scripts/autoresearch.py init --target <path> --eval "<eval command>" \
--max-iterations 20 --max-token-budget 50000 [--tokenizer-id cl100k-estimate] \
[--branch <name>] [--direction max|min] [--margin 0.0] [--plateau-n 5]
Refuses to start on main/master — it resolves the target's git root, checks out (creating if
needed) an isolated autoresearch/<slug> branch, records the pre-mutation HEAD, and runs the
eval command ONCE to capture the baseline gate + score. Print the store= path it returns; every
later command needs --store <that path> (or export SIMPLICIO_AUTORESEARCH_STORE=<that path>).
For each iteration N (1..max_iterations):
--remote/--allow-remote with recorded escalation evidence. An optimizer that burns
frontier tokens indefinitely contradicts the point of the exercise.python3 scripts/autoresearch.py record --iteration <N> --store <store> \
--note "<what you changed>" --mutation-summary "<one-line>"
Gate-first, always: a fail gate is always revert, no matter how good the score looks
(anti-Goodhart). Only once the gate passes does the score decide keep vs revert, by
--direction (max default; min for tokens/latency/size) beyond --margin. record
performs the matching scoped git action itself — git add <target> && git commit on keep,
git checkout -- <target> on revert — never touching anything outside the target file(s).
hooks/action_gate.py stays active underneath: a mutation is a file edit, never a destructive
op.python3 scripts/autoresearch.py plateau --store <store> --exit-code
Exit 10 = --plateau-n (default 5) consecutive reverts in a row. Do a full rewrite of the
target from scratch (not another small nudge), then acknowledge it so the streak resets:
python3 scripts/autoresearch.py record --iteration <N> --store <store> --plateau-break \
--note "plateau-break: full rewrite"
record call prints a HEALTH-CHECK| reminder line: pause and
re-validate the binary criteria + validation set haven't quietly drifted before continuing.python3 scripts/autoresearch.py finish --store <store> --message "<Conventional Commit subject>"
Squashes every kept commit since the branch's start HEAD into ONE commit (the whole run is a
SINGLE task for the DoD — the diff + the journal is the evidence, not N micro-tasks). Refuses
(BLOCKED, exit 12) if the final kept state's gate is not pass — a run can never "finish" on a
losing state. Writes receipt.json (simplicio.savings-event/v1):
{
"schema": "simplicio.savings-event/v1",
"source": "autoresearch",
"yool_id": "agent.dev.autoresearch",
"baseline": {"gate": "pass", "score": 118.0},
"actual": {"gate": "pass", "score": 71.0},
"proof": {"kind": "autoresearch-eval-log", "path": ".../journal.jsonl"},
"tokenizer": "cl100k-estimate",
"iterations": 14, "kept": 4, "reverted": 9, "plateau_breaks": 1
}
baseline/actual are the values the eval command ITSELF produced, never hand-typed. finish
also leaves the isolated branch checked out with the squashed commit — open the PR against it
per the normal simplicio-tasks flow; do not merge to main from inside this skill.
python3 scripts/autoresearch.py eval --store <store> # run the eval now, print gate/score
python3 scripts/autoresearch.py status --store <store> # config + plateau streak + journal tail
python3 scripts/autoresearch.py selftest # pure decision math, no git/network
main/master — init refuses; the worker mechanically enforces isolation.--max-iterations/--max-token-budget — a cap-less loop is blocked, not "faster".finish refuses when the winner's gate isn't pass.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub simpletibr/simplicio --plugin simplicio-loop12 skills in this plugin
/simplicio-compressCut output and memory tokens without losing meaning — terse prose levels (caveman-style) that preserve code/paths/URLs byte-for-byte, plus a one-time memory/doc compaction pass that pays back every future turn. Use when replies or worker reports are verbose, when standing context (CLAUDE.md/AGENTS.md/notes) is bloated, or when simplicio-tasks needs its output-side + input-side token discipline. Compression NEVER touches code, identifiers, or a safety confirmation./simplicio-dev-cliPerform deterministic Simplicio code changes and validation through the Dev CLI. Use for file edits, patches, implementation, formatting, tests, diagnostics, pre-effect validation, retries, evidence files, and safe mutation workflows. The agent decides intent; Dev CLI owns the mutation and verification./simplicio-fastAccelerate Simplicio retrieval with indexed search, ranking, cache, mmap, and bounded parallel reads. Use for repeated or large context lookups, low-latency symbol/file retrieval, snapshot-backed ranking, and cache-aware discovery. Do not use it as the source of truth or as a file mutation tool./simplicio-learnPersist what a run taught you so the next run is cheaper and more correct — mine high-signal lessons from the trajectory, dedup them, and write them back to AGENTS.md / memory so they're applied not re-derived. Use after a run or at session end, when the user says "remember this", "do a retrospective", "learn from this run", or when simplicio-tasks closes its self-audit. Keeps memory lean: durable, reusable bullets only — no transcripts, no one-offs./simplicio-loopUnified public entrypoint for Simplicio's body-of-work orchestration: core + loop in one command. Use when the user types /simplicio-loop, says "ralph loop", "keep iterating until done", "finish all open issues", or asks to drain a queue of work autonomously. Runtime-agnostic: binds a real stop-hook where the host supports hooks (Claude, Cursor); otherwise self-paces via the host scheduler. The older /simplicio-tasks surface is a legacy alias; never escape the loop with a false promise./simplicio-mapperSurvey and understand Simplicio codebases before action. Use for repository discovery, architecture mapping, symbol and dependency lookup, call-graph analysis, precedent search, snapshot creation, context selection, and any task where an agent must understand the project before editing. Do not use it as the mutation owner.Other plugins' skills for the same job