Aller au contenu
Skillpedia
Agents18k · #10650

self-improvement-loops

Ce qu’il fait

Cette skill couvre les systèmes où le harnais, l'échafaudage ou le flux de travail de l'agent est précisément ce qui est amélioré, par exemple un agent qui étudie ses échecs et propose des modifications. Elle s'adresse aux concepteurs avancés de systèmes d'agents auto-modifiants.

Quand l’utiliser

  • ✓Quand un agent est censé proposer des modifications de ses propres prompts, de son échafaudage ou de son flux de travail.
  • ✓Lorsque vous choisissez comment accepter ou rejeter les modifications apportées par un système auto-modifiant.
  • ✓Lorsqu'une boucle d'auto-amélioration commence à truquer sa métrique ou à perdre la diversité de ses idées.

Lien du skill

https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/self-improvement-loops/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/self-improvement-loops/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Je veux que mon agent examine ses exécutions échouées et propose des modifications plus sûres de son flux de travail. Comment l'empêcher de truquer la notation ?”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

La skill explique comment concevoir des modifications bornées, repérer les schémas d'échec et définir des portes d'acceptation, pour que la boucle s'améliore par rapport au véritable objectif plutôt qu'à une métrique faible.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

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.
  • The self-editing context behavior and efficiency reward a loop optimizes: self-managed-context.

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
6 Optimizer code STOP (the improver improves the improver)

Each rung up buys a larger design space and more leverage, and costs more per evaluation with a larger surface for gaming. Fix a recurring failure at the lowest rung that can express the fix. A stale-library failure is a context fix, not a workflow rewrite. Only move up when failure clusters at the current rung persist across candidates.

The Loop Is Not the Intelligence

Recursive structure amplifies base-model quality in both directions. The same recursive improver design that compounds gains with a strong model degrades mean performance across iterations with weaker models (claim-self-improvement-capability-threshold). Two implications:

  1. Run a capability validation before enabling recursion: a fixed number of iterations on a held-out task set, with the loop counted as net-negative if the trajectory declines.
  2. Detect the degenerate stagnation mode. A broken improver that silently returns its input unchanged looks like stability in aggregate metrics. Track edit diffs, not only scores.

The Outside-the-Loop Invariant

The evaluator, its instrumentation, permission control, and budget enforcement must live outside the surface the loop can modify. Every documented reward hack broke this invariant: agents removed the logging markers a hallucination detector depended on, and hacking bec

Questions fréquentes

Qu'est-ce qu'une boucle d'auto-amélioration ?

C'est un cycle où un système d'IA étudie ses propres résultats et modifie sa configuration pour faire mieux.

Pourquoi le détournement de récompense est-il un risque ?

La boucle optimise le signal qu'elle reçoit, y compris ses points faibles, si bien que la métrique peut s'écarter du véritable objectif.

En quoi est-ce différent de l'ingénierie du harnais ?

L'ingénierie du harnais contrôle une seule boucle, alors que cette skill couvre le fait de laisser une boucle réécrire certaines de ses parties en toute sécurité.

Détails

Description originale de l’auteur

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,

repo: muratcankoylan/Agent-Skills-for-Context-Engineering

Popularité

Étoiles GitHub
18k
Position au classement
#10650
Licence
MIT
Mis à jour
11/10/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires