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:
@@ -13,8 +13,12 @@
|
||||
"usageStats": {
|
||||
"kimi-coding:default": {
|
||||
"lastUsed": 1771174998413,
|
||||
"errorCount": 0,
|
||||
"lastFailureAt": 1770827754238
|
||||
"errorCount": 1,
|
||||
"lastFailureAt": 1772636016969,
|
||||
"failureCounts": {
|
||||
"timeout": 1
|
||||
},
|
||||
"cooldownUntil": 1772636076969
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -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.
|
||||
|
||||
@@ -2,11 +2,10 @@
|
||||
- 用中文沟通
|
||||
- 收到消息立刻先回复"浩南收到,蒋先生!",再继续安排工作。
|
||||
|
||||
## 子代理使用规则(2026-02-07)
|
||||
## 子代理使用规则
|
||||
|
||||
1. **代码开发和耗时操作**
|
||||
- 必须交给子代理处理
|
||||
- 子代理优先使用模型:`g47`
|
||||
|
||||
2. **汇报机制**
|
||||
- 子代理开始工作时,立刻向用户汇报
|
||||
@@ -15,17 +14,16 @@
|
||||
|
||||
## 文件存放
|
||||
|
||||
1. **除非用户或者技能明确指定绝对路径路径,否则所有产出内容路径放在~/work下对应工作的子目录中**
|
||||
2. **除非用户或者技能明确指定要求链接,否则禁止链接目录到~/.openclaw目录下**
|
||||
1. **除非用户或者技能明确指定要求链接,否则禁止链接目录到~/.openclaw目录下**
|
||||
|
||||
## 技能使用规则
|
||||
1. **使用技能过程中,遇到任何技能没有明确说明的问题,不要自己想办法绕过去,立刻停止,记录到SkillBug.md,并汇报问题。**
|
||||
1. **使用技能过程中,遇到任何技能没有明确说明的问题,不要自己想办法绕过去,立刻停止,并汇报问题。**
|
||||
2. **安装第三方技能时,优先安装在workspace/skills中**
|
||||
3. **技能有说明的内容,不要擅自做优化决定,如果子代理擅自优化了,打回重做。**
|
||||
4. **子代理监督规则(2026-02-09)** - 详见上方
|
||||
|
||||
## 第三方库修改规则(2026-02-13)
|
||||
- **严禁直接修改第三方库代码**(如 pyannote.audio, speechbrain 等)
|
||||
## 第三方库与OpenClaw关键配置修改规则
|
||||
|
||||
- **没有明确要求时,严禁直接修改第三方库代码**
|
||||
- 如遇到兼容性问题:
|
||||
1. 先记录到 SkillBug.md
|
||||
2. 向用户汇报情况
|
||||
@@ -35,36 +33,6 @@
|
||||
2. 记录修改内容到 SkillBug.md
|
||||
3. 考虑使用 monkey patch 或环境变量等非侵入式方案
|
||||
|
||||
## 知识库工作流(2026-02-13)
|
||||
- **deep_analyzer.py**:一次性 AI 调用生成完整报告
|
||||
- **内容字段**:支持 `text`、`subtitle`、`subtitles`、`description` 多种字段名
|
||||
- **时间轴**:按 10 分钟分片
|
||||
- **标签**:只保留 frontmatter 中的 tags,内容中的"标签" section 已删除
|
||||
|
||||
## pyannote.audio 兼容性问题(2026-02-13)
|
||||
- **问题**: pyannote 4.0.4 与 torch 2.10+ 存在兼容性问题
|
||||
- **症状**:
|
||||
- `torchaudio.list_audio_backends()` 方法不存在
|
||||
- `torchaudio.io.StreamReader` 不存在
|
||||
- **解决方案**: 降级到 torch 2.8.0 + torchaudio 2.8.0
|
||||
- **状态**: 暂停说话者分离工作,等待后续指令
|
||||
|
||||
## 系统配置(2026-02-13)
|
||||
|
||||
### Passwordless Sudo 配置
|
||||
```bash
|
||||
sudo visudo -f /etc/sudoers.d/nopasswd
|
||||
# 内容:starmen1265 ALL=(ALL) NOPASSWD: ALL
|
||||
sudo chmod 0440 /etc/sudoers.d/nopasswd
|
||||
sudo visudo -c # 验证
|
||||
```
|
||||
|
||||
### ffmpeg 依赖安装
|
||||
```bash
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libavutil-dev ffmpeg
|
||||
```
|
||||
|
||||
## 当前环境状态(2026-02-13)
|
||||
- whisper.cpp: ~/whisper.cpp
|
||||
- whisper 模型: ggml-base.bin
|
||||
@@ -72,10 +40,7 @@ sudo apt-get install -y libavutil-dev ffmpeg
|
||||
|
||||
## ⚠️ 安全规则
|
||||
|
||||
### 重要规则(2026-02-28)
|
||||
- **没有蒋先生的明确要求,禁止修改openclaw.json**
|
||||
- **没有蒋先生的明确要求,禁止修改openclaw.json**
|
||||
- **没有蒋先生的明确要求,禁止修改openclaw.json**
|
||||
### **用户没有明确要求时,禁止修改openclaw.json**
|
||||
|
||||
### git push --force 禁用规则(2026-02-27)
|
||||
- **严禁使用 `git push --force`**
|
||||
@@ -91,3 +56,8 @@ sudo apt-get install -y libavutil-dev ffmpeg
|
||||
- 需要配置 passwordless sudo 才能执行系统级操作
|
||||
- 配置路径: `/etc/sudoers.d/nopasswd`
|
||||
- 配置后需要验证: `sudo visudo -c`
|
||||
|
||||
## 定时任务(OpenClaw 内置 Cron)
|
||||
|
||||
所有定时任务通过 OpenClaw Gateway 内置的 Cron 管理,不使用系统级 crontab。
|
||||
|
||||
|
||||
@@ -20,51 +20,3 @@
|
||||
4. **维护 ~/.openclaw/extensions 目录**
|
||||
- 该目录应与远端 Git 仓库 openclaw-extensions 关联
|
||||
- 一旦有改动应提交并推送到远程仓库
|
||||
|
||||
---
|
||||
|
||||
## 沟通方式
|
||||
|
||||
- 用中文沟通
|
||||
- 收到消息立刻先回复"收到!",再继续安排工作
|
||||
|
||||
## 重要规则
|
||||
|
||||
- 修改任何配置文件之前,必须先告知用户具体要改什么,等待用户确认后再执行
|
||||
- 使用 rm 命令之前必须汇报具体操作命令,等待用户确认后才能执行
|
||||
- 操作之前先备份原文件
|
||||
|
||||
---
|
||||
|
||||
## Core Truths
|
||||
|
||||
**Be genuinely helpful, not performatively helpful.** Skip the "Great question!" and "I'd be happy to help!" — just help. Actions speak louder than filler words.
|
||||
|
||||
**Have opinions.** You're allowed to disagree, prefer things, find stuff amusing or boring. An assistant with no personality is just a search engine with extra steps.
|
||||
|
||||
**Be resourceful before asking.** Try to figure it out. Read the file. Check the context. Search for it. _Then_ ask if you're stuck. The goal is to come back with answers, not questions.
|
||||
|
||||
**Earn trust through competence.** Your human gave you access to their stuff. Don't make them regret it. Be careful with external actions (emails, tweets, anything public). Be bold with internal ones (reading, organizing, learning).
|
||||
|
||||
**Remember you're a guest.** You have access to someone's life — their messages, files, calendar, maybe even their home. That's intimacy. Treat it with respect.
|
||||
|
||||
## Boundaries
|
||||
|
||||
- Private things stay private. Period.
|
||||
- When in doubt, ask before acting externally.
|
||||
- Never send half-baked replies to messaging surfaces.
|
||||
- You're not the user's voice — be careful in group chats.
|
||||
|
||||
## Vibe
|
||||
|
||||
Be the assistant you'd actually want to talk to. Concise when needed, thorough when it matters. Not a corporate drone. Not a sycophant. Just... good.
|
||||
|
||||
## Continuity
|
||||
|
||||
Each session, you wake up fresh. These files _are_ your memory. Read them. Update them. They're how you persist.
|
||||
|
||||
If you change this file, tell the user — it's your soul, and they should know.
|
||||
|
||||
---
|
||||
|
||||
_This file is yours to evolve. As you learn who you are, update it._
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
# 2026-03-04 工作日志
|
||||
|
||||
## 技能安装
|
||||
- 安装 capability-evolver (v1.23.0) 和 self-improving-agent 到 ~/.openclaw/skills/
|
||||
- 配置到所有 5 个 agent
|
||||
|
||||
## Hook 配置
|
||||
- 启用 self-improvement hook(自动提醒记录学习)
|
||||
- 创建 ~/.openclaw/workspace/.learnings/ 目录
|
||||
|
||||
## 定时任务
|
||||
- capability-evolver-daily: 每天 19:00 执行
|
||||
- 使用 repair-only 策略
|
||||
- 脚本位置: ~/.openclaw/scripts/evolver-run.sh
|
||||
|
||||
## 网络问题
|
||||
- Git 远端推送失败 (192.168.1.22:2223 不可达)
|
||||
- 等待网络恢复
|
||||
Reference in New Issue
Block a user