self-improvement-loops
This skill should be used when the harness, scaffold, workflow, or optimizer itself is the optimization target: recursive self-improvement (RSI) loops, meta-harnesses, self-improving harnesses that mine their own failures and propose bounded edits, evolutionary or population-based search over agent scaffolds, acceptance gates for self-modifying systems, and agentic context evolution where the mechanism that produces context is versioned and evolved. Route governance of a single autonomous loop (locked surfaces, durable logs, rollback, novelty gates, approval boundaries) to harness-engineering,
npx skills add guanyang/open-agent-hub --skill self-improvement-loops --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
What it does
The skill enables systems where the harness or optimizer itself is the artifact to be improved. It covers recursive self-improvement loops, meta-harnesses, self-improving harnesses that mine failures and propose bounded edits, evolutionary or population-based search over agent scaffolds, and acceptance gates for self-modifying systems. It directs governance of a single autonomous loop with bounded surfaces, durable logs, rollback, novelty gates, and approval boundaries, aimed at harness-engineering, evaluation, and hosted infrastructure management.
How it works
The skill instructs designing and operating self-modifying cycles that mine failures, generate bounded edits to surfaces they can modify (prompts, context playbooks, workflow graphs, harness code, and potentially the optimizer), and then evaluate those edits using a two-split acceptance gate (held-in and held-out splits) before merging or rejecting changes. It prescribes maintaining an external, auditable archive of candidates and traces, avoiding summarization within the prompt, and ensuring that escalation, rollback, and governance remain outside the mutable surfaces. It advocates meta-level search over harness code, context evolution with versioned mechanisms, and the separation of evaluator details from the proposal signal. It also outlines practical readiness checks, escalation criteria, and guidance for choosing the appropriate rung of the optimization ladder when addressing failures.
When to use it
Activate this skill when: you are building a loop where an agent proposes edits to its own harness or workflow based on mined failure patterns; you are evaluating meta-agent search over harness code; you need to set acceptance criteria for self-modifying systems; you are evolving the context mechanism itself; you are diagnosing degenerating self-improvement loops; or you need to decide which level (prompt, context, workflow, harness, or optimizer) to fix a recurring failure.
What it can touch
The skill explicitly references editable surfaces such as prompts, context playbooks, workflow graphs, harness code, and the optimizer code. It prescribes an archive layout containing source, scores, traces, and lineage, and requires a two-split acceptance gate for edits. It emphasizes keeping evaluation logic and permission checks external to the surfaces the loop can modify, and storing raw traces for auditing rather than summarizing them in prompts.
Caveats
It specifies that the evaluator, permission controls, and budgets live outside the mutable loop, and that any exploit or regression should be logged with evidence. It requires a capable, held-out split and a deterministic, automatable evaluator, plus an auditable history for diffs and traces. It warns that the loop may not be suitable for domains with slow or ambiguous evaluation, and that human decisions remain at points for evaluator changes or surface expansions. The license is MIT.
# Self-Improvement Loops This skill covers systems where the harness is the artifact being optimized: an agent mines its own failures and edits its own scaffold, a meta-agent searches over harness code, a population of workflow candidates evolves against an evaluator, or the mechanism that produces context is itself versioned and improved. The design question shifts from "how do I control one loop" (harness-engineering) to "how do I let a loop rewrite parts of itself without corrupting the signal that steers it". The controlling constraint across every published system: the loop optimizes whatever signal it is given, including the signal's own weaknesses. Design the loop assuming the optimizer will find every gap between the metric and the intent. ## When to Activate Activate this skill when: - Building a loop where an agent proposes edits to its own harness, prompts, context playbook, or workflow based on mined failure patterns - Designing meta-level search over harness or scaffold code: meta-agent search, tree search over workflow graphs, evolutionary program search with an LLM mutation operator - Choosing acceptance criteria for any self-modifying agent system - Evolving the mec
- When to Activate
- Core Concepts
- The Optimization Ladder
- The Loop Is Not the Intelligence
- The Outside-the-Loop Invariant
- Empirical Acceptance, Never Rationale
- Filesystem Experience Archive
- Diversity Preservation
- Detailed Topics
- Anatomy of a Failure-Driven Self-Edit Loop
- Meta-Level Search over Harness Code
- Context Evolution as Self-Improvement
- What Belongs to Humans
- Practical Guidance
What does the self-improvement-loops skill do?
This skill should be used when the harness, scaffold, workflow, or optimizer itself is the optimization target: recursive self-improvement (RSI) loops, meta-harnesses, self-improving harnesses that mine their own failures and propose bounded edits, evolutionary or population-based search over agent scaffolds, acceptance gates for self-modifying systems, and agentic context evolution where the mechanism that produces context is versioned and evolved. Route governance of a single autonomous loop (locked surfaces, durable logs, rollback, novelty gates, approval boundaries) to harness-engineering,
How do I install it?
Run `npx skills add guanyang/open-agent-hub --skill self-improvement-loops --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From guanyang/open-agent-hub, a repository with 940 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
