self-improvement-loops
Skill này làm gì
Skill này bao quát các hệ thống mà chính harness, scaffold hoặc quy trình của agent là thứ được cải thiện, chẳng hạn một agent nghiên cứu các lần thất bại và đề xuất sửa đổi. Nó dành cho người xây dựng nâng cao các hệ thống agent tự sửa đổi.
Khi nào nên dùng
- ✓Khi một agent được thiết kế để đề xuất chỉnh sửa prompt, scaffold hoặc quy trình của chính nó.
- ✓Khi bạn chọn cách chấp nhận hoặc từ chối các thay đổi do một hệ thống tự sửa đổi thực hiện.
- ✓Khi một vòng lặp tự cải thiện bắt đầu gian lận chỉ số hoặc mất đa dạng trong ý tưởng.
Liên kết skill
https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/self-improvement-loops/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tôi muốn agent của mình xem xét các lần chạy thất bại của chính nó và đề xuất thay đổi quy trình an toàn hơn. Làm sao để nó không gian lận điểm số?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill giải thích cách thiết kế các chỉnh sửa có giới hạn, khai thác các mẫu thất bại và đặt cổng chấp nhận, để vòng lặp cải thiện theo mục tiêu thực thay vì một chỉ số yếu.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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:
- 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.
- 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
Câu hỏi thường gặp
Vòng lặp tự cải thiện là gì?
Đó là một chu trình trong đó hệ thống AI nghiên cứu kết quả của chính nó và thay đổi cấu hình của mình để làm tốt hơn.
Vì sao gian lận phần thưởng là rủi ro?
Vòng lặp tối ưu hóa bất kỳ tín hiệu nào nó nhận được, kể cả điểm yếu của tín hiệu đó, nên chỉ số có thể trôi khỏi mục tiêu thực.
Khác gì với kỹ thuật harness?
Kỹ thuật harness kiểm soát một vòng lặp, còn skill này bao quát việc để một vòng lặp tự viết lại một phần của chính nó một cách an toàn.
Chi tiết
Mô tả gốc của tác giả
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,
Độ phổ biến
- Sao GitHub
- 18k
- Vị trí xếp hạng
- #10650
- Giấy phép
- MIT
- Cập nhật
- 11/10/2026
Bình luận
- …
Thêm skill từ kho mã này
context-engineering-collection
18kGiúp agent của bạn quản lý những gì đưa vào cửa sổ ngữ cảnh của model AI, từ bộ nhớ và công cụ đến thiết lập nhiều agent và đánh giá.
advanced-evaluation
18kDạy agent của bạn cách đánh giá câu trả lời AI bằng một AI khác, với chấm điểm, so sánh cạnh nhau và kiểm tra thiên lệch.
bdi-mental-states
18kDạy agent của bạn mô hình hóa niềm tin, mục tiêu và kế hoạch bằng cách tiếp cận BDI, để các quyết định của nó có thể được truy vết và giải thích.
context-compression
18kGiúp agent của bạn rút gọn các phiên AI dài thành bản tóm tắt giữ lại quyết định, file, rủi ro và bước tiếp theo.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.