Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 94
  • 18k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-loops

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install self-improvement-loops in Claude Code

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

A

No 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 →

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.

self-improvement-loops Install

Add to stack

Loading.