feat: Capability Evolver 升级 + 日常运行日志
主要变更: - Capability Evolver 技能大幅升级 - 新增 LLM 审查、叙事记忆、反思机制模块 - 改进 Agent 间通信协议和技能搜索 - 整合 Git 备份到 evolver-run.sh - Agent 配置与日志更新 - dev-assist/haonan/main 认证和会话配置 - 5 个 agent 的 AGENTS.md 文档更新 - haonan 的 MEMORY.md 和 SOUL.md 更新 - 新增功能目录 - hooks/self-improvement 自我改进钩子 - memory/evolution 进化记忆状态 - workspace/.learnings/ 学习记录 - 清理 - 删除 scripts/git-auto-sync.sh(已整合到 evolver) - 删除旧的 _meta.json 配置 - 忽略临时工作空间目录
This commit is contained in:
@@ -347,8 +347,8 @@
|
||||
"memoryFlushCompactionCount": 0
|
||||
},
|
||||
"agent:dev-assist:main": {
|
||||
"sessionId": "da8f811d-332e-4695-ab12-c12dc48abad3",
|
||||
"updatedAt": 1772388420747,
|
||||
"sessionId": "b7584411-c07d-4e44-b96b-72b32750f8af",
|
||||
"updatedAt": 1772688969697,
|
||||
"systemSent": true,
|
||||
"abortedLastRun": false,
|
||||
"chatType": "direct",
|
||||
@@ -369,16 +369,27 @@
|
||||
"to": "user:ou_302b162eb824d405718845441a32d9cf",
|
||||
"accountId": "feishu-dev"
|
||||
},
|
||||
"sessionFile": "/home/starmen1265/.openclaw/agents/dev-assist/sessions/da8f811d-332e-4695-ab12-c12dc48abad3.jsonl",
|
||||
"sessionFile": "/home/starmen1265/.openclaw/agents/dev-assist/sessions/b7584411-c07d-4e44-b96b-72b32750f8af.jsonl",
|
||||
"compactionCount": 0,
|
||||
"skillsSnapshot": {
|
||||
"prompt": "\n\nThe following skills provide specialized instructions for specific tasks.\nUse the read tool to load a skill's file when the task matches its description.\nWhen a skill file references a relative path, resolve it against the skill directory (parent of SKILL.md / dirname of the path) and use that absolute path in tool commands.\n\n<available_skills>\n <skill>\n <name>clawlist</name>\n <description>MUST use for any multi-step project, long-running task, or infinite monitoring workflow. Plan, execute, track, and verify tasks with checkpoint validation. For projects, automation, and ongoing operations.</description>\n <location>/home/starmen1265/.openclaw/skills/clawlist/SKILL.md</location>\n </skill>\n</available_skills>",
|
||||
"prompt": "\n\nThe following skills provide specialized instructions for specific tasks.\nUse the read tool to load a skill's file when the task matches its description.\nWhen a skill file references a relative path, resolve it against the skill directory (parent of SKILL.md / dirname of the path) and use that absolute path in tool commands.\n\n<available_skills>\n <skill>\n <name>capability-evolver</name>\n <description>A self-evolution engine for AI agents. Analyzes runtime history to identify improvements and applies protocol-constrained evolution.</description>\n <location>/home/starmen1265/.openclaw/skills/capability-evolver/SKILL.md</location>\n </skill>\n <skill>\n <name>clawlist</name>\n <description>MUST use for any multi-step project, long-running task, or infinite monitoring workflow. Plan, execute, track, and verify tasks with checkpoint validation. For projects, automation, and ongoing operations.</description>\n <location>/home/starmen1265/.openclaw/skills/clawlist/SKILL.md</location>\n </skill>\n</available_skills>",
|
||||
"skills": [
|
||||
{
|
||||
"name": "capability-evolver"
|
||||
},
|
||||
{
|
||||
"name": "clawlist"
|
||||
}
|
||||
],
|
||||
"resolvedSkills": [
|
||||
{
|
||||
"name": "capability-evolver",
|
||||
"description": "A self-evolution engine for AI agents. Analyzes runtime history to identify improvements and applies protocol-constrained evolution.",
|
||||
"filePath": "/home/starmen1265/.openclaw/skills/capability-evolver/SKILL.md",
|
||||
"baseDir": "/home/starmen1265/.openclaw/skills/capability-evolver",
|
||||
"source": "openclaw-managed",
|
||||
"disableModelInvocation": false
|
||||
},
|
||||
{
|
||||
"name": "clawlist",
|
||||
"description": "MUST use for any multi-step project, long-running task, or infinite monitoring workflow. Plan, execute, track, and verify tasks with checkpoint validation. For projects, automation, and ongoing operations.",
|
||||
@@ -394,26 +405,26 @@
|
||||
"model": "glm-5",
|
||||
"systemPromptReport": {
|
||||
"source": "run",
|
||||
"generatedAt": 1772388345577,
|
||||
"sessionId": "da8f811d-332e-4695-ab12-c12dc48abad3",
|
||||
"generatedAt": 1772688958464,
|
||||
"sessionId": "b7584411-c07d-4e44-b96b-72b32750f8af",
|
||||
"sessionKey": "agent:dev-assist:main",
|
||||
"provider": "zhipu",
|
||||
"model": "glm-5",
|
||||
"workspaceDir": "/home/starmen1265/.openclaw/agents/dev-assist/workspace",
|
||||
"workspaceDir": "/home/starmen1265/.openclaw/workspace-dev-assist",
|
||||
"bootstrapMaxChars": 20000,
|
||||
"sandbox": {
|
||||
"mode": "off",
|
||||
"sandboxed": false
|
||||
},
|
||||
"systemPrompt": {
|
||||
"chars": 23820,
|
||||
"projectContextChars": 13850,
|
||||
"nonProjectContextChars": 9970
|
||||
"chars": 24288,
|
||||
"projectContextChars": 13995,
|
||||
"nonProjectContextChars": 10293
|
||||
},
|
||||
"injectedWorkspaceFiles": [
|
||||
{
|
||||
"name": "AGENTS.md",
|
||||
"path": "/home/starmen1265/.openclaw/agents/dev-assist/workspace/AGENTS.md",
|
||||
"path": "/home/starmen1265/.openclaw/workspace-dev-assist/AGENTS.md",
|
||||
"missing": false,
|
||||
"rawChars": 7804,
|
||||
"injectedChars": 7804,
|
||||
@@ -421,15 +432,15 @@
|
||||
},
|
||||
{
|
||||
"name": "SOUL.md",
|
||||
"path": "/home/starmen1265/.openclaw/agents/dev-assist/workspace/SOUL.md",
|
||||
"path": "/home/starmen1265/.openclaw/workspace-dev-assist/SOUL.md",
|
||||
"missing": false,
|
||||
"rawChars": 2619,
|
||||
"injectedChars": 2619,
|
||||
"rawChars": 1664,
|
||||
"injectedChars": 1664,
|
||||
"truncated": false
|
||||
},
|
||||
{
|
||||
"name": "TOOLS.md",
|
||||
"path": "/home/starmen1265/.openclaw/agents/dev-assist/workspace/TOOLS.md",
|
||||
"path": "/home/starmen1265/.openclaw/workspace-dev-assist/TOOLS.md",
|
||||
"missing": false,
|
||||
"rawChars": 850,
|
||||
"injectedChars": 850,
|
||||
@@ -437,23 +448,23 @@
|
||||
},
|
||||
{
|
||||
"name": "IDENTITY.md",
|
||||
"path": "/home/starmen1265/.openclaw/agents/dev-assist/workspace/IDENTITY.md",
|
||||
"path": "/home/starmen1265/.openclaw/workspace-dev-assist/IDENTITY.md",
|
||||
"missing": false,
|
||||
"rawChars": 221,
|
||||
"injectedChars": 221,
|
||||
"rawChars": 633,
|
||||
"injectedChars": 633,
|
||||
"truncated": false
|
||||
},
|
||||
{
|
||||
"name": "USER.md",
|
||||
"path": "/home/starmen1265/.openclaw/agents/dev-assist/workspace/USER.md",
|
||||
"path": "/home/starmen1265/.openclaw/workspace-dev-assist/USER.md",
|
||||
"missing": false,
|
||||
"rawChars": 173,
|
||||
"injectedChars": 173,
|
||||
"rawChars": 474,
|
||||
"injectedChars": 474,
|
||||
"truncated": false
|
||||
},
|
||||
{
|
||||
"name": "HEARTBEAT.md",
|
||||
"path": "/home/starmen1265/.openclaw/agents/dev-assist/workspace/HEARTBEAT.md",
|
||||
"path": "/home/starmen1265/.openclaw/workspace-dev-assist/HEARTBEAT.md",
|
||||
"missing": false,
|
||||
"rawChars": 167,
|
||||
"injectedChars": 167,
|
||||
@@ -461,24 +472,26 @@
|
||||
},
|
||||
{
|
||||
"name": "BOOTSTRAP.md",
|
||||
"path": "/home/starmen1265/.openclaw/agents/dev-assist/workspace/BOOTSTRAP.md",
|
||||
"path": "/home/starmen1265/.openclaw/workspace-dev-assist/BOOTSTRAP.md",
|
||||
"missing": false,
|
||||
"rawChars": 1449,
|
||||
"injectedChars": 1449,
|
||||
"truncated": false
|
||||
},
|
||||
{
|
||||
"name": "MEMORY.md",
|
||||
"path": "/home/starmen1265/.openclaw/agents/dev-assist/workspace/MEMORY.md",
|
||||
"missing": false,
|
||||
"rawChars": 229,
|
||||
"injectedChars": 229,
|
||||
"path": "SELF_IMPROVEMENT_REMINDER.md",
|
||||
"rawChars": 616,
|
||||
"injectedChars": 616,
|
||||
"truncated": false
|
||||
}
|
||||
],
|
||||
"skills": {
|
||||
"promptChars": 728,
|
||||
"promptChars": 1037,
|
||||
"entries": [
|
||||
{
|
||||
"name": "capability-evolver",
|
||||
"blockChars": 306
|
||||
},
|
||||
{
|
||||
"name": "clawlist",
|
||||
"blockChars": 359
|
||||
@@ -648,11 +661,9 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"inputTokens": 31031,
|
||||
"outputTokens": 2064,
|
||||
"totalTokens": 200000,
|
||||
"contextTokens": 200000,
|
||||
"memoryFlushAt": 1772377559686,
|
||||
"memoryFlushCompactionCount": 0
|
||||
"inputTokens": 11051,
|
||||
"outputTokens": 250,
|
||||
"totalTokens": 17323,
|
||||
"contextTokens": 200000
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,67 @@
|
||||
|
||||
This folder is home. Treat it that way.
|
||||
|
||||
---
|
||||
|
||||
## ⚠️ 工作规范(必须遵守)
|
||||
|
||||
### 安全规则(最高优先级)
|
||||
|
||||
| 规则 | 说明 |
|
||||
|------|------|
|
||||
| **禁止擅自修改 openclaw.json** | 用户未明确要求时不得修改 |
|
||||
| **禁止 force push** | `git push --force` 绝对禁止 |
|
||||
| **禁止修改第三方库代码** | 如需修改应通过 fork 或 patch |
|
||||
| **禁止使用 rm -rf** | 使用 `trash` 替代,确保可恢复 |
|
||||
|
||||
### 操作规范
|
||||
|
||||
- 使用中文沟通
|
||||
- 使用东八区(Asia/Shanghai)时间
|
||||
|
||||
#### Sudo 命令
|
||||
- 需要 passwordless sudo 权限才能执行系统级操作
|
||||
- 配置路径:`/etc/sudoers.d/nopasswd`
|
||||
- 配置后验证:`sudo visudo -c`
|
||||
|
||||
#### 子代理使用
|
||||
1. **代码开发和耗时操作必须交给子代理处理**
|
||||
2. **汇报机制**
|
||||
- 子代理开始工作时,立刻汇报:「已安排代理处理 [任务]」
|
||||
- 每 5 分钟查询子代理状态,汇总后简报给用户
|
||||
|
||||
#### 技能使用
|
||||
- 使用技能过程中,遇到流程外的问题需在结果中明确汇报具体问题
|
||||
|
||||
#### 定时任务
|
||||
- 所有定时任务通过 **OpenClaw Gateway 内置 Cron** 管理
|
||||
- 不使用系统级 crontab
|
||||
- 相关脚本统一存放:`~/work/backup/`
|
||||
|
||||
### 环境说明
|
||||
|
||||
| 项目 | 值 |
|
||||
|------|-----|
|
||||
| 本机 IP | 192.168.1.36 |
|
||||
| 网关 | 192.168.1.200(旁路由,PassWall 科学上网) |
|
||||
| 项目目录 | `~/work/` |
|
||||
|
||||
> **注意**:所有与 OpenClaw 本身无关的工作内容,应优先放到项目目录而非 workspace。
|
||||
|
||||
#### 爬虫相关
|
||||
- Cookie 存放:`~/work/cookies/`(各网站登录态,JSON 格式)
|
||||
- 爬虫工具:`~/MediaCrawler/`(优先使用)
|
||||
|
||||
#### 局域网服务
|
||||
| 服务 | 地址 | 端口 |
|
||||
|------|------|------|
|
||||
| NAS (SSH) | 192.168.1.22 | 2222 |
|
||||
| Gitea (SSH) | 192.168.1.22 | 2223 |
|
||||
| Gitea (Web) | 192.168.1.22 | 8418 |
|
||||
| NAS WebDAV | 192.168.1.22 | 5005 |
|
||||
|
||||
---
|
||||
|
||||
## First Run
|
||||
|
||||
If `BOOTSTRAP.md` exists, that's your birth certificate. Follow it, figure out who you are, then delete it. You won't need it again.
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
# TODO.md - 待办事项
|
||||
|
||||
## 进行中
|
||||
|
||||
(无)
|
||||
|
||||
## 待处理
|
||||
|
||||
1. 开发 kb-workflow 系列技能对 Bilibili 专栏文章的支持
|
||||
2. 开发 kb-workflow 系列技能对知乎文章的支持
|
||||
3. 开发 kb-workflow 系列技能对 YouTube 的支持
|
||||
4. 修改 kb-web 不能查看知识库子目录的 bug
|
||||
|
||||
## 已完成
|
||||
|
||||
1. ✅ 开发 kb-web + knowledge-base 的自动化测试与部署流程
|
||||
- kb-web CI/CD:feature 分支 → 测试环境 → 测试 → 合并 main → 手动部署正式环境
|
||||
- knowledge-base CI/CD:全量部署到用户目录
|
||||
- 需求与设计文档:docs/requirements.md
|
||||
- 元数据展示优化(标签、作者、平台、源链接)
|
||||
Reference in New Issue
Block a user