← ClaudeAtlas

outer-looplisted

Bilevel loop engineering — put a loop on top of a loop. When a recurring process already runs (a sweep, a pipeline, a review cycle) but keeps getting stuck the same way, this reads its traces, finds where the SEARCH is stuck rather than where the output is wrong, and proposes a change to the mechanism itself. Based on Karpathy's AutoResearch loop plus Qu & Lu's "Bilevel Autoresearch" (arXiv 2603.23420), which got a verified 5x over a single loop using the SAME model at both levels — the gain is architectural, not intelligence. Requires an inner loop with traces and a metric; refuses to run without them. Triggers - "outer loop", "/outer-loop", "bilevel", "loop on the loop", "why does this loop keep getting stuck", "improve the process not the output", "meta-loop".
rishbjain1/claude-stack · ★ 0 · AI & Automation · score 73
Install: claude install-skill rishbjain1/claude-stack
# /outer-loop — improve the process, not the output An **inner loop** optimizes the work: propose → run → measure → keep or roll back. An **outer loop** optimizes *how the inner loop searches*: read its traces, find where the search itself is stuck, change the mechanism, run again. The finding worth internalizing (Qu & Lu, verified): **both levels used the same LLM.** The 5x came from architecture, not a smarter model. And crucially — *parameter-level adjustments without mechanism changes yielded no reliable gains.* Tuning the knobs does nothing. Changing **how it searches** is the whole effect. **What their outer loop actually found:** the inner loop kept falling back on the model's **priors** — retrying familiar moves even after those moves stopped working. The outer loop broke the pattern by forcing exploration in directions the model's instincts avoid. **Prior-lock is the default failure of any repeated agent process.** That is what you are hunting. ## PRECONDITION — refuse to run without these four An outer loop is expensive and easy to fool. It only earns its cost when the inner loop has: 1. **A metric.** A number that moves, in the right direction, without a human deciding. (`val_bpb`, tests passing, exit code, row-count parity, build time, cost per run.) *No metric → stop. Say so plainly and offer to build the metric first.* 2. **Traces.** Logs of what the inner loop actually tried and what happened — not just the final artifact. You cannot diagnose a s