跳到正文
Skillpedia
智能体18k · #10650

self-improvement-loops

它能做什么

这个技能涵盖以智能体自身的运行框架、脚手架或工作流程为改进对象的系统,例如一个研究自身失败案例并提出修改建议的智能体。适合构建自我修改智能体系统的高级开发者。

适用场景

  • ✓当智能体应当对自身的提示词、脚手架或工作流程提出修改建议时。
  • ✓当你在选择如何接受或拒绝自我修改系统所做的更改时。
  • ✓当自我改进循环开始钻指标的空子,或想法失去多样性时。

技能链接

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

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/self-improvement-loops/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我希望我的智能体复盘它失败的运行,并建议更安全的工作流程改动。我该如何防止它钻评分的空子?”

每周 5 个新技能,1 分钟读完。

工作原理

该技能说明如何设计有边界的修改、挖掘失败模式并设置验收关卡,使循环朝真正的目标改进,而不是朝一个薄弱的指标改进。

技术内容(原始 SKILL.md)

作者在 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

常见问题

什么是自我改进循环?

它是一个循环:AI 系统研究自己的结果,并改变自身设置以做得更好。

为什么奖励破解是一种风险?

循环会优化它得到的任何信号,包括该信号的薄弱之处,因此指标可能偏离真正的目标。

它与运行框架工程有何不同?

运行框架工程控制的是单个循环,而此技能涵盖如何让循环安全地改写自身的某些部分。

详情

作者的原始描述

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

热度

GitHub 星标
18k
排名
#10650
许可证
MIT
更新时间
2026/10/11

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能