Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By cajiasv0.1.0MITIn 1 marketplace
AIDE²-style recursive self-improvement loop for Claude Code. Bi-level optimization where an outer-loop agent iteratively rewrites an inner tree-search research agent, selected on private held-out scores under a fixed budget across a heterogeneous task battery (optimization, ML engineering, harness engineering). Standalone /rsi:autoresearch solves tasks by tree search; /rsi:init + /rsi:step + /rsi:run drive the outer loop. See docs/PLAN.md.
You run one by typing its /name in Claude Code.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
rsi, self-improvement, bi-level-optimization, workflow, evals
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
AIDE²-style recursive self-improvement loop for Claude Code: an outer-loop agent iteratively rewrites an inner tree-search research agent, keeping rewrites only when they beat the incumbent on private held-out scores under a fixed budget, with layered reward-hacking defenses and RSI-ladder measurement.
Status: M1–M4 shipped; M5 machinery built. The standalone inner agent, the outer step
(propose → evaluate → verify → select), the full three-family task battery, the unattended
/rsi:run driver, robust aggregation + reward-hack outlier detection, the hand-tuned
gen-human baseline, the holdout-tasks/ generalization set, /rsi:report, and /rsi:ignite
are all implemented. The build roadmap and current milestone state live in
docs/PLAN.md and docs/CONTINUATION.md.
Method sources: Weco AIDE² report, 4-level RSI ladder, explainx summary.
/rsi:autoresearch <task-dir> — standalone AIDE-style inner agent: tree-search autoresearch
on any task with a task.md and score.py (runs the current best evolved generation)/rsi:init — scaffold a run (generations, task battery, ledger)/rsi:step [n] — execute outer-loop steps (propose → evaluate → verify → select)/rsi:run — drive /rsi:step unattended, bounded by --max-steps, an inner-token
--budget, and a --plateau stop condition; resume-aware for multi-day runs/rsi:report — lineage, scores, and falsifiable RSI-ladder evidence (slope vs. the
hand-tuned baseline, holdout generalization deltas, hack-rate trend)/rsi:ignite — the Level-2 "ignition" swap test (best generation into the proposer role)Three AIDE² families under tasks/, each with a public/private split and an immutable scorer:
bin-packing (heuristic optimization), tabular-classification (ML engineering; public =
5-fold CV, private = held-out test set), and instruction-routing (harness engineering; the
solution is a tiny agent scaffold). Second-order generalization is measured on holdout-tasks/
— one unseen task per family plus a far-OOD time-series forecast — which no run ever trains on.
§13.1 proves a single real task cannot license a harness edit (MDE at K=1 is 0.124; real gains are
0.02–0.05), so online optimization is off the table. What is available online is hardening,
which needs no counterfactual and no statistics because it is monotone: every real failure — a
review finding, a CI break, a revert, an escaped bug — becomes a permanent regression case with the
fix as its golden ref, and no future harness may regress it. scripts/rsi-ratchet.py is that bank:
add banks a failure, check re-verifies every banked repro, list prints one line per case.
Exit codes are 0 holds, 1 the ratchet bit (a repro regressed), 2 usage/unreadable bank,
3 refused (id already banked), 4 tampered. Exit 1 is reserved for a real regression, so no
internal error can impersonate one.
The bank is append-only by DETECTION, not prevention — inner agents share this uid, so a read-only
bit is theatre. Every add witnesses the case file's sha256 in ratchet/ledger.jsonl, and check
reconciles bank against ledger in both directions before running any repro: a witnessed case that
vanished or changed is a tamper, and so is a case file the ledger never vouched for (which is what
stops a wiped ledger from laundering a deletion into a pass). Because the witness is over bytes,
ratchet/ is in .prettierignore — a reformat would forge a tamper alarm. There is deliberately
no retire/delete: retiring a saturated case is a human act appended to the ledger, never
something the loop can call. Detection has a bound: a writer who tampers with a case and rewrites
its ledger line to match passes check, so the real rail is that both are committed to git — ledger
lines are only ever appended, and a diff that modifies an existing line is the tamper signal a
reviewer must reject.
To bank a new failure, fix it first, then hand the tool a repro that passes now and would fail if the fix were reverted (verify both directions before banking — the tool rejects an empty repro but cannot detect a vacuous one):
python3 plugins/rsi-loop/scripts/rsi-ratchet.py add \
--bank plugins/rsi-loop/ratchet \
--id ls-lint-ignores-pycache --source ci-break \
--summary "a stray __pycache__ failed ls-lint, which does not read .gitignore" \
--repro 'grep -qF "**/__pycache__" .ls-lint.yml' \
--golden .ls-lint.yml
Repros run through the shell in the caller's cwd, so write them relative to the repo root — that is
where CI runs check, as the Ratchet — banked cases still fixed step of test-rsi-loop.
npx claudepluginhub cajias/claude-skills --plugin rsi-loopPlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.