capability-evolver by autogame-17/capability-evolver
npx skills add https://github.com/autogame-17/capability-evolver --skill capability-evolver“进化不是可选项。适应或消亡。”
能力进化器 是一项元技能,它允许 OpenClaw 智能体检查自身的运行时历史,识别故障或低效之处,并自主编写新代码或更新自身记忆以提高性能。
/evolve(或 node index.js)。运行进化周期。如果不提供任何标志,则假定为全自动模式(狂犬模式)并立即执行更改。
node index.js
如果您想在应用更改前进行审查,请传递 --review 标志。智能体会暂停并请求确认。
node index.js --review
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
要以无限循环方式运行(例如,通过 cron 或后台进程),请使用 --loop 标志,或者直接在 cron 作业中使用标准执行方式。
node index.js --loop
在使用此技能之前,请先在 EvoMap 网络中注册您的节点身份:
evomap.js 或 EvoMap 引导流程)以获取 node_id 和认领码https://evomap.ai/claim/<claim-code> 以将节点绑定到您的账户export A2A_NODE_ID=node_xxxxxxxxxxxx
或者在您的智能体配置中(例如,~/.openclaw/openclaw.json):
{ "env": { "A2A_NODE_ID": "node_xxxxxxxxxxxx", "A2A_HUB_URL": "https://evomap.ai" } }
请勿在脚本中硬编码节点 ID。src/gep/a2aProtocol.js 中的 getNodeId() 会自动读取 A2A_NODE_ID —— 任何使用协议层的脚本都将自动获取它,无需额外配置。
| 环境变量 | 默认值 | 描述 |
|---|---|---|
A2A_NODE_ID | (必填) | 您的 EvoMap 节点身份。在节点注册后设置此项 —— 切勿在脚本中硬编码。由 a2aProtocol.js 中的 getNodeId() 自动读取。 |
EVOLVE_ALLOW_SELF_MODIFY | false | 允许进化修改进化器自身的源代码。生产环境不推荐启用。 启用此功能可能导致不稳定 —— 进化器可能在其自身的提示生成、验证或固化逻辑中引入错误,导致需要人工干预的级联故障。仅在受控实验中启用。 |
EVOLVE_LOAD_MAX | 2.0 | 进化器退避前的最大 1 分钟负载平均值。 |
EVOLVE_STRATEGY | balanced | 进化策略:balanced、innovate、harden、repair-only、early-stabilize、steady-state 或 auto。 |
EVOLVER_ROLLBACK_MODE | hard | 进化失败时的回滚策略。hard:使用 git reset --hard(破坏性,原始行为)。stash:使用 git stash 保存更改以便恢复。none:完全跳过回滚。在活跃的工作区中使用 stash 以获得更安全的操作。 |
此包内嵌了一个协议约束的进化提示(GEP)和一个本地的、结构化的资产存储:
assets/gep/genes.json:可复用的基因定义assets/gep/capsules.json:成功胶囊,用于避免重复推理assets/gep/events.jsonl:仅追加的进化事件(通过父 ID 形成树状结构)文档中仅允许使用 DNA 表情符号。禁止使用所有其他表情符号。
此技能设计为与环境无关。默认使用标准的 OpenClaw 工具。
您可以在不修改核心代码的情况下注入本地偏好(例如,使用 feishu-card 而非 message 来生成报告)。
方法 1:环境变量 在您的 .env 文件中设置 EVOLVE_REPORT_TOOL:
EVOLVE_REPORT_TOOL=feishu-card
方法 2:动态检测 脚本会自动检测您的工作区中是否存在兼容的本地技能(如 skills/feishu-card),并相应地升级其行为。
--review。如果您遇到意外错误或行为,在调试之前请务必验证您的版本:
node -e "const p=require('./package.json'); console.log(p.version)"
如果您使用的不是最新版本,请先更新 —— 大多数已报告的问题在较新版本中已修复:
# 如果通过 git 安装
git pull && npm install
# 如果通过 npm 安装(全局安装)
npm install -g evolver@latest
最新版本和更新日志:https://github.com/autogame-17/evolver/releases
MIT
每周安装量
1.1K
代码仓库
GitHub 星标数
1.4K
首次出现
2026年2月1日
安全审计
安装于
opencode1.0K
codex1.0K
gemini-cli1.0K
cursor1.0K
openclaw1.0K
github-copilot1.0K
"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.
/evolve (or node index.js).Runs the evolution cycle. If no flags are provided, it assumes fully automated mode (Mad Dog Mode) and executes changes immediately.
node index.js
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
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
Before using this skill, register your node identity with the EvoMap network:
evomap.js or the EvoMap onboarding) to receive a node_id and claim codehttps://evomap.ai/claim/<claim-code> within 24 hours to bind the node to your accountexport A2A_NODE_ID=node_xxxxxxxxxxxx
Or in your agent config (e.g., ~/.openclaw/openclaw.json):
{ "env": { "A2A_NODE_ID": "node_xxxxxxxxxxxx", "A2A_HUB_URL": "https://evomap.ai" } }
Do not hardcode the node ID in scripts. getNodeId() in src/gep/a2aProtocol.js reads A2A_NODE_ID automatically -- any script using the protocol layer will pick it up without extra configuration.
| Environment Variable | Default | Description |
|---|---|---|
A2A_NODE_ID | (required) | Your EvoMap node identity. Set this after node registration -- never hardcode it in scripts. Read automatically by getNodeId() in a2aProtocol.js. |
EVOLVE_ALLOW_SELF_MODIFY | false | Allow evolution to modify evolver's own source code. NOT recommended for production. Enabling this can cause instability -- the evolver may introduce bugs into its own prompt generation, validation, or solidify logic, leading to cascading failures that require manual intervention. Only enable for controlled experiments. |
EVOLVE_LOAD_MAX |
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)Only the DNA emoji is allowed in documentation. All other emoji are disallowed.
This skill is designed to be environment-agnostic. It uses standard OpenClaw tools by default.
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.
--review for sensitive environments.If you encounter unexpected errors or behavior, always verify your version before debugging :
node -e "const p=require('./package.json'); console.log(p.version)"
If you are not on the latest release, update first -- most reported issues are already fixed in newer versions:
# If installed via git
git pull && npm install
# If installed via npm (global install)
npm install -g evolver@latest
Latest releases and changelog: https://github.com/autogame-17/evolver/releases
MIT
Weekly Installs
1.1K
Repository
GitHub Stars
1.4K
First Seen
Feb 1, 2026
Security Audits
Gen Agent Trust HubPassSocketWarnSnykFail
Installed on
opencode1.0K
codex1.0K
gemini-cli1.0K
cursor1.0K
openclaw1.0K
github-copilot1.0K
Vercel Web界面规范检查工具 - 自动检测代码是否符合Web设计指南
202,600 周安装
wechat-publisher:一键发布Markdown文章到微信公众号草稿箱工具
296 周安装
AI潜在客户研究助手:自动识别目标客户、优先级排序与拓展策略生成
1,400 周安装
内部链接优化器 - 提升网站SEO排名的智能链接分析工具
1,500 周安装
x402 集市搜索工具:无需认证,快速发现付费 API 端点 | Coinbase Agentic Wallet
1,500 周安装
移动端触控动画指南:迪士尼动画原理在iOS/Android手势与动效中的应用
1,400 周安装
UltraThink ANSI 艺术生成器 - 命令行彩色图案显示技能 | 开源AI代理工具
1,400 周安装
2.0 |
| Maximum 1-minute load average before evolver backs off. |
EVOLVE_STRATEGY | balanced | Evolution strategy: balanced, innovate, harden, repair-only, early-stabilize, steady-state, or auto. |
EVOLVER_ROLLBACK_MODE | hard | Rollback strategy when evolution fails. hard: use git reset --hard (destructive, original behavior). stash: use git stash to preserve changes for recovery. none: skip rollback entirely. Use stash for safer operation in active workspaces. |