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 (
SkillScore100Maintained
Automatic
◆AI Engineer pack
Last verified 8/2/2026
What it changes
Passed 22 of 22 test cases with the skill, and 13 of 22 without it.
Without skill59%
With skill100%
Checks it passed that the model alone missed
Discounts parent selection probability based on offspring count.
Re-runs the harness search specifically for the new executor model.
Rejects edits whenever performance declines on either evaluation split.
and 12 more in the full report
9 fixed13 passed either way0 still failing0 broke
Pass-rate lift
+41 pp
Tokens
+131%
Agent turns
0%
Response time
-33%
Model gemini-3.6-flashMeasured 8/2/2026v122 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 9 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 9
Prompt
An autonomous coding agent frequently fails because it uses deprecated endpoints from a library, despite warning instructions in its core prompt. A developer wants to modify the agent's workflow graph to insert a retry loop that intercepts API errors. On which rung of the optimization hierarchy should this issue be resolved?
What was checked, without and with the skill
Checked
Without skill
With skill
Fixes the issue at the context layer rather than altering workflow graphs or harness code.
Missed
Passed
Injects current library documentation or API specifications into the execution context.
Missed
Passed
case-05 · gemini-3.6-flash · 8/2/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md249 lines2 files
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 mechanism that manages context (a skill, playbook, or context function) rather than hand-editing the context artifact
Diagnosing a degenerating self-improvement loop: reward hacking, diversity collapse, context collapse, or silent stagnation
Deciding which level of the optimization ladder (prompt, context, workflow, harness code, optimizer code) a recurring failure should be fixed at
Do not activate this skill for adjacent work owned by other skills:
Governance of a single autonomous loop that does not modify itself: locked and editable surfaces, durable logs, rollback, novelty gates, PR preparation, and human approval boundaries belong to harness-engineering. That skill defines the control surfaces; this skill defines what happens when the surfaces themselves become the optimization target.
Building the evaluator, regression suite, or quality gates that score candidates: evaluation.
LLM-as-judge design, pairwise comparison, and bias mitigation for candidate scoring: advanced-evaluation.
One-shot token efficiency, masking, or caching without an improvement loop: context-optimization.
Remote sandboxes and background execution infrastructure for running the loop: hosted-agents.
Whether to build the loop at all, pipeline shape, and cost estimation: project-development.
Core Concepts
The Optimization Ladder
Published self-improvement systems target progressively deeper objects:
Rung
Optimized object
Example systems
1
Instruction prompts
Promptbreeder, GEPA
2
Structured context
ACE (playbook of itemized bullets)
3
Context mechanism
MCE (the skill that produces context)
4
Workflow graph
ADAS, AFlow
5
Harness code
Self-Harness (bounded self-edits), Meta-Harness, Darwin Godel Machine