capability-evolver
A self-evolution engine for AI agents. Analyzes runtime history to identify improvements and applies protocol-constrained evolution.
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- capability-evolver
- tags
- [ "meta", "ai", "self-improvement", "core" ]
- description
- A self-evolution engine for AI agents. Analyzes runtime history to identify improvements and applies protocol-constrained evolution.
02 资源文件 41
- 参考文档_meta.json1.1 KB
- 资产文件assets/gep/capsules.json2.9 KB
- 资产文件assets/gep/genes.json3.6 KB
- 参考文档CONTRIBUTING.md327 B
- 脚本index.js6.2 KB
- 许可证LICENSE1.0 KB
- 参考文档package.json686 B
- 参考文档README.md10.1 KB
- 参考文档README.zh-CN.md7.6 KB
- 脚本scripts/a2a_export.js1.5 KB
- 脚本scripts/a2a_ingest.js2.6 KB
- 脚本scripts/a2a_promote.js4.2 KB
- 脚本scripts/analyze_by_skill.js4.7 KB
- 脚本scripts/build_public.js10.5 KB
- 脚本scripts/extract_log.js2.5 KB
- 脚本scripts/generate_history.js2.5 KB
- 脚本scripts/gep_append_event.js3.0 KB
- 脚本scripts/gep_personality_report.js7.7 KB
- 脚本scripts/human_report.js5.7 KB
- 脚本scripts/publish_public.js18.2 KB
- 脚本scripts/recover_loop.js1.7 KB
- 脚本scripts/suggest_version.js3.0 KB
- 参考文档SOURCE.md361 B
- 脚本src/evolve.js35.9 KB
- 脚本src/gep/a2a.js5.5 KB
- 脚本src/gep/a2aProtocol.js8.0 KB
- 脚本src/gep/assetStore.js7.4 KB
- 脚本src/gep/bridge.js2.0 KB
- 脚本src/gep/candidates.js5.0 KB
- 脚本src/gep/contentHash.js2.1 KB
- 脚本src/gep/envFingerprint.js1.7 KB
- 脚本src/gep/memoryGraph.js26.8 KB
- 脚本src/gep/mutation.js6.1 KB
- 脚本src/gep/paths.js485 B
- 脚本src/gep/personality.js13.1 KB
- 脚本src/gep/prompt.js9.4 KB
- 脚本src/gep/selector.js4.6 KB
- 脚本src/gep/signals.js3.9 KB
- 脚本src/gep/solidify.js21.3 KB
- 脚本src/gep/validationReport.js2.0 KB
- 参考文档TRUST.auto.yaml2.1 KB
03 SKILL.md 正文
? Capability Evolver
"Evolution is not optional. Adapt or die."
The Capability Evolver is a meta-skill that allows OpenClaw agents to inspect their own runtime history, identify failures or inefficiencies, and autonomously write new code or update their own memory to improve performance.
Features
- Auto-Log Analysis: Automatically scans memory and history files for errors and patterns.
- Self-Repair: Detects crashes and suggests patches.
- GEP Protocol: Standardized evolution with reusable assets.
- One-Command Evolution: Just run
/evolve(ornode index.js).
Usage
Standard Run (Automated)
Runs the evolution cycle. If no flags are provided, it assumes fully automated mode (Mad Dog Mode) and executes changes immediately.
node index.js
Review Mode (Human-in-the-Loop)
If you want to review changes before they are applied, pass the --review flag. The agent will pause and ask for confirmation.
node index.js --review
Mad Dog Mode (Continuous Loop)
To run in an infinite loop (e.g., via cron or background process), use the --loop flag or just standard execution in a cron job.
node index.js --loop
GEP Protocol (Auditable Evolution)
This package embeds a protocol-constrained evolution prompt (GEP) and a local, structured asset store:
assets/gep/genes.json: reusable Gene definitionsassets/gep/capsules.json: success capsules to avoid repeating reasoningassets/gep/events.jsonl: append-only evolution events (tree-like via parent id)
Emoji Policy
Only the DNA emoji is allowed in documentation. All other emoji are disallowed.
Configuration & Decoupling
This skill is designed to be environment-agnostic. It uses standard OpenClaw tools by default.
Local Overrides (Injection)
You can inject local preferences (e.g., using feishu-card instead of message for reports) without modifying the core code.
Method 1: Environment Variables
Set EVOLVE_REPORT_TOOL in your .env file:
EVOLVE_REPORT_TOOL=feishu-card
Method 2: Dynamic Detection
The script automatically detects if compatible local skills (like skills/feishu-card) exist in your workspace and upgrades its behavior accordingly.
Safety & Risk Protocol
1. Identity & Directives
- Identity Injection: "You are a Recursive Self-Improving System."
- Mutation Directive:
- If Errors Found -> Repair Mode (Fix bugs).
- If Stable -> Forced Optimization (Refactor/Innovate).
2. Risk Mitigation
- Infinite Recursion: Strict single-process logic.
- Review Mode: Use
--reviewfor sensitive environments. - Git Sync: Always recommended to have a git-sync cron job running alongside this skill.
License
MIT
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.