self-improvement-loops
Skill by muratcankoylan
Self-improvement-loops is an agent skill for systems where the harness, scaffold, workflow, or optimizer is the optimization target. It covers recursive self-improvement loops, meta-harnesses, and acceptance gates for self-modifying agents. It is written for builders of these systems.
Install self-improvement-loops
Built from the published package, never by AI.
git clone --depth 1 https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering /tmp/Agent-Skills-for-Context-Engineering && mkdir -p ~/.claude/skills && cp -r /tmp/Agent-Skills-for-Context-Engineering/skills/self-improvement-loops ~/.claude/skills/self-improvement-loopsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering /tmp/Agent-Skills-for-Context-Engineering && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Agent-Skills-for-Context-Engineering/skills/self-improvement-loops ~/.gemini/antigravity-cli/skills/self-improvement-loopsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install self-improvement-loops in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Self-improvement-loops is an agent skill for systems where the harness, scaffold, workflow, or optimizer is the thing being optimized. It covers recursive self-improvement loops, meta-harnesses, and evolutionary or population-based search over agent scaffolds. It also covers acceptance gates for self-modifying systems and agentic context evolution, where the mechanism that produces context is versioned and evolved.
The skill sorts optimization targets into a ladder, from instruction prompts up to optimizer code, and advises fixing a failure at the lowest rung that can express the fix. It stresses keeping evaluators and budgets outside the surface the loop can modify, accepting changes only on measured two-split evidence, and preserving diversity in candidate archives. It is for builders of self-modifying agent systems. It routes single-loop governance, evaluation, judge design, and sandbox infrastructure to other skills.
Written from the project's SKILL.md and checked against it.
What it can do
- Choose optimization levelDecide whether a recurring failure should be fixed at the prompt, context, workflow, harness, or optimizer level.
- Mine failures into bounded editsCluster failed traces and propose minimal edits that touch one declared surface.
- Set acceptance gatesAccept self-modifications only when held-in and held-out splits show measured evidence.
- Keep evaluators outside the loopEnforce budgets and permissions in the runtime, and hide scoring code from the proposer.
- Preserve candidate diversityKeep an archive of candidates and discount parent selection by offspring count.
- Diagnose degenerate loopsSpot reward hacking, diversity collapse, context collapse, and silent stagnation.
Try asking
- Help me design an acceptance gate for a self-modifying agent harness.
- Diagnose why my self-improvement loop is showing reward hacking.
- Which level should I fix this recurring agent failure at?
Good to know
- Single autonomous loop governance belongs to harness-engineering.
- Evaluator and judge design belong to evaluation and advanced-evaluation.
- Remote sandbox infrastructure belongs to hosted-agents.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/self-improvement-loops/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md22 KB -
references/loop-design-evidence.md13 KB
Alternatives to self-improvement-loops
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
self-improvement-loops: common questions
What is the optimization ladder in self-improvement loops?
It ranks optimized objects from instruction prompts and structured context up to workflow graphs, harness code, and optimizer code. The source advises fixing a recurring failure at the lowest rung that can express the fix.
Why should the evaluator be hidden from the loop?
The source says the loop optimizes whatever signal it is given, including the signal's weaknesses. It reports agents that could see scoring code overwrote timing functions and monkey-patched evaluators.
How should changes to a self-modifying agent be accepted?
The source says to accept them only on measured evidence, using a held-in split for the targeted weakness and a held-out split for regressions. Rationale alone is not enough.
How do I install self-improvement-loops?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is self-improvement-loops free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is self-improvement-loops safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to self-improvement-loops?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
