Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

docs(skill-evolution): align self-evolution guide with current commands

z2tngdc835631812e
diff --git a/docs/assets/images/config_self_evolve.png b/docs/assets/images/config_self_evolve.png
index ef85dbf107..07ac00ce42 100644
Binary files a/docs/assets/images/config_self_evolve.png and b/docs/assets/images/config_self_evolve.png differ
diff --git "a/docs/assets/images/skill\346\274\224\350\277\233_\346\211\213\345\212\250\350\247\246\345\217\221.png" "b/docs/assets/images/skill\346\274\224\350\277\233_\346\211\213\345\212\250\350\247\246\345\217\221.png"
index 93fe0a3f13..cb628b123f 100644
Binary files "a/docs/assets/images/skill\346\274\224\350\277\233_\346\211\213\345\212\250\350\247\246\345\217\221.png" and "b/docs/assets/images/skill\346\274\224\350\277\233_\346\211\213\345\212\250\350\247\246\345\217\221.png" differ
diff --git "a/docs/assets/images/skill\346\274\224\350\277\233_\346\237\245\347\234\213\345\222\214\346\225\264\347\220\206\347\273\217\351\252\214.png" "b/docs/assets/images/skill\346\274\224\350\277\233_\346\237\245\347\234\213\345\222\214\346\225\264\347\220\206\347\273\217\351\252\214.png"
new file mode 100644
index 0000000000..337110c083
Binary files /dev/null and "b/docs/assets/images/skill\346\274\224\350\277\233_\346\237\245\347\234\213\345\222\214\346\225\264\347\220\206\347\273\217\351\252\214.png" differ
diff --git "a/docs/assets/images/skill\346\274\224\350\277\233_\350\207\252\345\212\250\346\243\200\346\265\213\345\274\200\345\205\263.png" "b/docs/assets/images/skill\346\274\224\350\277\233_\350\207\252\345\212\250\346\243\200\346\265\213\345\274\200\345\205\263.png"
index d2573602c7..1930b9b91f 100644
Binary files "a/docs/assets/images/skill\346\274\224\350\277\233_\350\207\252\345\212\250\346\243\200\346\265\213\345\274\200\345\205\263.png" and "b/docs/assets/images/skill\346\274\224\350\277\233_\350\207\252\345\212\250\346\243\200\346\265\213\345\274\200\345\205\263.png" differ
diff --git "a/docs/assets/images/skill\346\274\224\350\277\233_\350\207\252\345\212\250\350\247\246\345\217\221.png" "b/docs/assets/images/skill\346\274\224\350\277\233_\350\207\252\345\212\250\350\247\246\345\217\221.png"
index 3e74fa7b68..689bcc17f5 100644
Binary files "a/docs/assets/images/skill\346\274\224\350\277\233_\350\207\252\345\212\250\350\247\246\345\217\221.png" and "b/docs/assets/images/skill\346\274\224\350\277\233_\350\207\252\345\212\250\350\247\246\345\217\221.png" differ
diff --git "a/docs/assets/images/skill\346\274\224\350\277\233_\351\207\215\345\273\272.png" "b/docs/assets/images/skill\346\274\224\350\277\233_\351\207\215\345\273\272.png"
new file mode 100644
index 0000000000..d90e0b9904
Binary files /dev/null and "b/docs/assets/images/skill\346\274\224\350\277\233_\351\207\215\345\273\272.png" differ
diff --git a/docs/en/Configuration.md b/docs/en/Configuration.md
index 6f3e548c90..9e1fcccdd8 100644
--- a/docs/en/Configuration.md
+++ b/docs/en/Configuration.md
@@ -247,17 +247,12 @@ Self-evolution controls the automatic improvement of JiuwenSwarm's Skills.
![Self-Evolution Configuration Example](../assets/images/config_self_evolve.png)
-### Toggle
-
-- **Field**: `evolution.enabled`
-- **Default**: `false` (disabled)
-- **Purpose**: When enabled, the system detects issues in Skill execution and generates improvement suggestions to continuously optimize performance.
+### Toggles
-When enabled, the system will:
+The frontend shows two options under **Self-Evolution Configuration**:
-1. Monitor Skill execution and dialogue history
-2. Detect execution failures, user feedback, and improvement signals
-3. Automatically generate and log refinement suggestions
+- **Auto-detect evolution signals**: disabled by default. When enabled, the system scans failures, corrections, and other evolution signals after chat and tool execution. This maps to `evolution.auto_scan`; env `EVOLUTION_AUTO_SCAN` takes precedence.
+- **Auto-suggest new skill creation**: disabled by default. When enabled, the system can propose creating a new Skill when no suitable Skill exists. This maps to `evolution.skill_create`; env `SKILL_CREATE` takes precedence.
> 📖 For details on the self-evolution mechanism, see [Skill self-evolution](SkillSelfEvolution.md).
diff --git a/docs/en/SkillSelfEvolution.md b/docs/en/SkillSelfEvolution.md
index eb76c1b971..7878ec741f 100644
--- a/docs/en/SkillSelfEvolution.md
+++ b/docs/en/SkillSelfEvolution.md
@@ -131,41 +131,154 @@ Skills stay **living documents**: risks, examples, and fixes accumulate from rea
## How to use
+When using Skill self-evolution, first decide what you want to do:
+
+- Let the system discover and preserve experience in the background: enable **Auto-detect evolution signals**.
+- Immediately improve an existing Skill: use the `/evolve` commands.
+- Let the system propose creating a new Skill when there is a capability gap: enable **Auto-suggest new skill creation**.
+
### Enable auto-evolution
-Turn on **`evolution_auto_scan`** in configuration (see [Configuration](Configuration.md)).
+In **Self-Evolution Configuration**, enable the options you need:
+
+- **Auto-detect evolution signals**: lets the system scan failures, corrections, and other evolution signals after chat and tool execution; maps to `evolution.auto_scan` and is disabled by default.
+- **Auto-suggest new skill creation**: lets the system propose creating a new Skill when no suitable Skill exists; maps to `evolution.skill_create` and is disabled by default.
+
+If you manage settings through a config file, the corresponding keys are:
+
+```yaml
+evolution:
+ auto_scan: false
+ skill_create: false
+```
+
+Environment variables take precedence: `EVOLUTION_AUTO_SCAN` overrides `auto_scan`, and `SKILL_CREATE` overrides `skill_create`.
![Evolution auto-scan](../assets/images/skill演进_自动检测开关.png)
### Automatic path
-After each tool run / turn, signals may append entries to `evolutions.json` in the background. No user action required.
+When **Auto-detect evolution signals** is enabled, the system scans for evolution signals after tool execution and conversation turns. Common signals include tool failures, execution errors, user corrections, and explicit negative feedback.
+
+When valid signals are found, the system generates evolution experience for the relevant Skill. The next time that Skill is used, the experience is loaded automatically.
![Auto trigger](../assets/images/skill演进_自动触发.png)
### Manual evolution
+If a Skill just failed, behaved incorrectly, or needs a specific improvement, use:
+
```bash
-/evolve <skill_name>
+/evolve <skill_name> [user_query]
```
Example:
```bash
-/evolve xlsx
+/evolve xlsx confirm detailed requirements before creating an invoice file
```
![Manual evolve](../assets/images/skill演进_手动触发.png)
-### List pending
+In **Planning Mode**, the system first scans the current conversation for tool failures and user corrections. If no clear signal is detected, provide `user_query` to describe what should be improved.
+
+In **Cluster Mode**, `/evolve <skill_name>` must include an evolution intent, for example:
+
+```bash
+/evolve pptx add recovery steps when team report export fails
+```
+
+### Inspect and organize evolution experience
+
+To inspect one Skill's evolution records and scores, use:
+
+```bash
+/evolve_list <skill_name> [--sort score]
+```
+
+Example:
+
+```bash
+/evolve_list xlsx --sort score
+```
+
+In **Planning Mode**, bare `/evolve` still returns a pending-record summary for visible Skills. Cluster Mode does not support bare `/evolve`; it requires a Skill name and an evolution intent.
+
+If a Skill's experience library becomes repetitive, too long, or unclear, generate a cleanup proposal:
+
+```bash
+/evolve_simplify <skill_name> [user_intent]
+```
+
+Example:
```bash
-/evolve list
+/evolve_simplify xlsx merge duplicate export-failure records
```
-![Evolve list](../assets/images/skill演进_信息总览.png)
+The cleanup proposal is approval-gated. It is not written silently.
-### Manage `evolutions.json`
+![Inspect and organize evolution experience](../assets/images/skill演进_查看和整理经验.png)
+
+### Rebuild `SKILL.md`
+
+When a Skill has accumulated enough evolution experience and you want to reorganize it into `SKILL.md`, use:
+
+```bash
+/evolve_rebuild <skill_name> [user_intent]
+```
+
+Example:
+
+```bash
+/evolve_rebuild xlsx add fallback steps when required tools are missing
+```
+
+This command creates a follow-up task and continues as a normal Agent / Cluster Mode task. It is not a direct overwrite button for `SKILL.md`.
+
+![Rebuild SKILL](../assets/images/skill演进_重建.png)
+
+### Skill auto-creation
+
+Existing Skill evolution improves Skills that already exist. If the current task exposes a missing capability, enable **Auto-suggest new skill creation** in **Self-Evolution Configuration**. If you manage settings through a config file, use:
+
+```yaml
+evolution:
+ skill_create: true
+```
+
+When enabled, the system registers `SkillCreateRail`. In Cluster Mode, it registers `TeamSkillCreateRail`. When the system judges that the task should become a reusable Skill, it proposes creation and completes it through follow-up work.
+
+Notes:
+
+- `skill_create` is disabled by default.
+- `SKILL_CREATE=true` overrides the config file.
+
+### Supported modes
+
+| Mode | Support |
+|---|---|
+| Planning Mode `agent.plan` | Existing Skill evolution, inspection, cleanup, rebuild, and Skill auto-creation. |
+| Cluster Mode `team` | Team Skill evolution, inspection, cleanup, and rebuild; `/evolve <skill_name>` requires an evolution intent. |
+| Code mode / `agent.fast` | `/evolve` Skill self-evolution commands are not supported. |
+
+### Approval and status
+
+- `/evolve` and `/evolve_simplify` do not silently write changes. The backend pushes a confirmation question.
+- Accepting persists or solidifies the generated records; rejecting discards the generated content.
+- Accepted Cluster Mode Skill evolution syncs the team skill directory.
+- While evolution or approval is pending, supplemental input is queued until evolution completes.
+
+### Manage evolution experience
+
+Evolution experience is stored in each Skill's `evolutions.json`. In normal use, prefer:
+
+- Web UI **View skill experience**: edit `change.content`, or delete an entry and save.
+- `/evolve_list <skill_name>`: inspect records and scores.
+- `/evolve_simplify <skill_name> [user_intent]`: clean up, merge, or remove low-value experience.
+- `/evolve_rebuild <skill_name> [user_intent]`: reorganize experience into `SKILL.md`.
+
+Do not modify fields other than `change.content`, such as `id`, `source`, `timestamp`, `context`, `section`, `action`, `target`, `relevant`, or `applied`. These fields are generated and maintained by the system.
Location:
@@ -176,8 +289,6 @@ Location:
└── ...
```
-You can edit entries directly: add/remove objects, set `applied: true` when merged.
-
```json
{
"entries": [
@@ -197,3 +308,5 @@ You can edit entries directly: add/remove objects, set `applied: true` when merg
]
}
```
+
+After saving in the frontend, the updated experience content is loaded automatically in the next conversation.
diff --git a/docs/en/Skills.md b/docs/en/Skills.md
index 0083308388..1fde89517f 100644
--- a/docs/en/Skills.md
+++ b/docs/en/Skills.md
@@ -229,9 +229,9 @@ In the list, use **View skill experience** to browse evolution entries for that
- **Source**: where the entry came from (e.g. detected signal, chat, or execution context)
- **Time**: when the record was created or written
- **Context**: session/task background that triggered the entry
-- **Experience content**: the concrete change text, corresponding to fields such as `change.content`
+- **Experience content**: the concrete change text, corresponding to the `change.content` field
-> **How to see data:** Turn on self-evolution-related settings in **Configuration** first (for example **evolution auto-scan**, mapped to `evolution_auto_scan` / env `EVOLUTION_AUTO_SCAN`; see [Configuration](Configuration.md) and [Skill self-evolution](SkillSelfEvolution.md)). After that, **use the skill once in chat** (or trigger one evolution-worthy signal). Then open **View skill experience** to see entries as above.
+> **How to see data:** When a skill already has saved evolution experience, **View skill experience** becomes available in the skill list. If there is no data yet, that skill has no saved evolution records. Records can be generated manually with `/evolve <skill_name> [user_query]`, or automatically in failure/correction scenarios after enabling **Auto-detect evolution signals** under **Self-Evolution Configuration**. See [Configuration](Configuration.md) and [Skill self-evolution](SkillSelfEvolution.md).
> **Why it helps:** Skill experience reflects self-evolution and improvements from real use, so you can judge ongoing usefulness and maintainers get actionable input.
diff --git "a/docs/zh/Skill\350\207\252\346\274\224\350\277\233.md" "b/docs/zh/Skill\350\207\252\346\274\224\350\277\233.md"
index 44a4856e59..fd3c763df9 100644
--- "a/docs/zh/Skill\350\207\252\346\274\224\350\277\233.md"
+++ "b/docs/zh/Skill\350\207\252\346\274\224\350\277\233.md"
@@ -187,62 +187,161 @@ User: 不对,我说的是查询上海不是北京
## 如何使用
-使用 JiuwenSwarm 时,你可以通过以下方式与 Skill 演进功能交互:
+使用 Skill 自演进时,可以先按下面顺序判断自己要做什么:
+
+- 想让系统在后台自动发现并沉淀经验:开启自动扫描。
+- 想立即针对某个已有 Skill 生成经验:使用 `/evolve` 系列命令。
+- 想让系统在缺少合适 Skill 时自动提出新 Skill 创建建议:开启 Skill 自动创建。
### 自演进配置开关
-skill 自动演进功能通过在配置信息中开启自演进配置项 `evolution_auto_scan` 开关启用。
+在配置页的 **自演进配置** 中,可以按需要开启:
+
+- **自动检测可演进信号**:让系统在对话和工具执行后自动扫描失败、纠错等演进信号;对应配置 `evolution.auto_scan`,默认关闭。
+- **自动建议创建新技能**:让系统在缺少合适 Skill 时提出新 Skill 创建建议;对应配置 `evolution.skill_create`,默认关闭。
+
+如果通过配置文件管理,对应写法是:
+
+```yaml
+evolution:
+ auto_scan: false
+ skill_create: false
+```
+
+- 环境变量 `EVOLUTION_AUTO_SCAN` 会覆盖 `auto_scan`,`SKILL_CREATE` 会覆盖 `skill_create`。
![打开自演进自动检测](../assets/images/skill演进_自动检测开关.png)
-### 自动演进(无需干预)
+### 自动演进
-系统会在每次工具执行和对话结束后自动检测演进信号。当检测到执行异常或用户纠错时,会自动生成演进记录并存入 `evolutions.json`。
+开启 **自动检测可演进信号** 后,系统会在工具执行和对话结束后自动检测演进信号。常见信号包括工具失败、执行报错、用户纠错和明确负反馈。
-你无需做任何操作,演进在后台静默进行。下次调用该 Skill 时,会自动加载包含演进经验的内容。
+如果检测到有效信号,系统会为相关 Skill 生成演进经验。下次调用该 Skill 时,这些经验会被自动加载,帮助 Agent 避免重复错误。
![自动触发](../assets/images/skill演进_自动触发.png)
-### 手动触发演进
+### 手动触发已有 Skill 演进
-如果希望立即为某个 Skill 触发演进,可以输入:
+如果你刚遇到某个 Skill 的失败、偏差或需要补充的经验,可以直接输入:
```bash
-/evolve <skill_name>
+/evolve <skill_name> [user_query]
```
例如:
```bash
-/evolve xlsx
+/evolve xlsx 创建发票文件前需要向我确定具体要求
```
-系统会扫描最近的对话和执行记录,为该 Skill 生成演进经验,并显示生成结果。
-
![手动触发](../assets/images/skill演进_手动触发.png)
-### 查看演进状态
+在**规划模式**下,系统会优先扫描当前会话中的工具失败和用户纠错信号。如果没有检测到明确演进信号,可以在命令后补充 `user_query`,直接说明希望 Skill 改进什么。
+
+在**集群模式**下,`/evolve <skill_name>` 必须带上演进意图,例如:
+
+```bash
+/evolve pptx 让团队报告导出失败时给出可恢复步骤
+```
+
+### 查看和整理演进经验
+
+想查看某个 Skill 的详细经验库和评分,可以输入:
+
+```bash
+/evolve_list <skill_name> [--sort score]
+```
+
+例如:
+
+```bash
+/evolve_list xlsx --sort score
+```
+
+在**规划模式**下,无参数 `/evolve` 仍会返回当前可见 Skill 的待处理演进记录摘要;Team 模式不支持裸 `/evolve`,必须提供 Skill 名称和演进意图。因此日常查看经验库时,建议使用 `/evolve_list <skill_name>`。
+
+如果某个 Skill 的经验库开始重复、过长或价值不清,可以让系统生成整理方案:
+
+```bash
+/evolve_simplify <skill_name> [user_intent]
+```
+
+例如:
+
+```bash
+/evolve_simplify xlsx 合并重复的导出失败经验
+```
+
+整理方案不会静默落盘。系统会弹出审批,确认后才执行,拒绝后会丢弃本次整理。
+
+![查看和整理演进经验](../assets/images/skill演进_查看和整理经验.png)
+
+### 重建 Skill 文档
-想知道哪些 Skill 有待固化的演进经验,可以输入:
+当某个 Skill 积累了较多演进经验,希望把经验重新组织进 `SKILL.md` 时,可以输入:
```bash
-/evolve list
+/evolve_rebuild <skill_name> [user_intent]
```
-系统会列出所有包含待演进记录的 Skill 及具体内容摘要。
+例如:
+
+```bash
+/evolve_rebuild xlsx 增加环境缺少工具时的应对策略
+```
+
+这个命令会生成后续执行任务,并继续作为普通 Agent / Team 任务运行。它不是直接覆盖 `SKILL.md` 的快捷按钮,实际改动仍会通过任务执行和审批流程完成。
+
+![重建SKILL](../assets/images/skill演进_重建.png)
+
+### Skill 自动创建
-![信息总览](../assets/images/skill演进_信息总览.png)
+已有 Skill 自演进解决的是“已有 Skill 怎么变好”。如果当前任务暴露出缺少合适 Skill 的问题,可以开启 Skill 自动创建:
+
+```yaml
+evolution:
+ skill_create: true
+```
+
+开启后,系统会注册 `SkillCreateRail`。在集群模式中,会注册 `TeamSkillCreateRail`。当系统判断当前任务需要沉淀成新 Skill 时,会提出创建建议,并通过后续任务完成 Skill 创建。
+
+注意:
+
+- `skill_create` 默认关闭,适合在希望主动沉淀新能力时开启。
+- 环境变量 `SKILL_CREATE=true` 会覆盖配置文件。
+
+### 适用模式
+
+| 模式 | 支持情况 |
+|---|---|
+| 规划模式 `agent.plan` | 支持已有 Skill 演进、经验查看、整理、重建和 Skill 自动创建。 |
+| 集群模式 `team` | 支持团队 Skill 演进、经验查看、整理、重建;`/evolve <skill_name>` 必须带演进意图。 |
+| Code 模式 / `agent.fast` | 不支持 `/evolve` 系列 Skill 自演进命令。 |
+
+### 审批和状态
+
+- `/evolve` 和 `/evolve_simplify` 生成变更后不会静默写入,会推送确认问题。
+- 接受后,后端接受本次演进记录并写入或固化;拒绝后丢弃本次生成内容。
+- Team 技能演进接受后会同步团队技能目录。
+- 演进或审批未完成时,后续输入会先排队,等待演进完成后再发送。
### 如何管理演进经验
-演进经验存储在 Skill 目录下的 `evolutions.json` 文件中,你可以直接编辑该文件来管理演进经验。
+演进经验存储在 Skill 目录下的 `evolutions.json` 文件中。日常建议优先使用:
+
+- Web 前端 **查看技能经验**:编辑经验内容 `change.content`,或删除整条经验后保存。
+- `/evolve_list <skill_name>`:查看经验库和评分。
+- `/evolve_simplify <skill_name> [user_intent]`:整理、合并、清理经验库。
+- `/evolve_rebuild <skill_name> [user_intent]`:把经验重新组织进 `SKILL.md`。
+
+不要修改 `change.content` 之外的字段,例如 `id`、`source`、`timestamp`、`context`、`section`、`action`、`target`、`relevant`、`applied`。这些字段由系统生成和维护。
**目录位置:**
```
~/.jiuwenswarm/workspace/agent/skills/<skill_name>/
├── SKILL.md # Skill 源文档
-├── evolutions.json # 演进经验记录 ← 在这里编辑
+├── evolutions.json # 演进经验记录
└── ...
```
@@ -268,11 +367,4 @@ skill 自动演进功能通过在配置信息中开启自演进配置项 `evolut
}
```
-**常用操作:**
-
-- 添加新记录:在 `entries` 数组中追加新对象
-- 修改记录:直接编辑对应字段
-- 删除记录:从数组中移除
-- 标记已固化:将 `applied` 设为 `true`
-
-修改后在下次对话时会自动加载。
\ No newline at end of file
+前端保存后,下次对话会自动加载更新后的经验内容。
diff --git "a/docs/zh/TUI\344\275\277\347\224\250\346\214\207\345\215\227.md" "b/docs/zh/TUI\344\275\277\347\224\250\346\214\207\345\215\227.md"
index bd11be9c71..f0d34eb50b 100644
--- "a/docs/zh/TUI\344\275\277\347\224\250\346\214\207\345\215\227.md"
+++ "b/docs/zh/TUI\344\275\277\347\224\250\346\214\207\345\215\227.md"
@@ -180,6 +180,7 @@
- `agent.plan`:用于单 Agent Skill 自演进;其它 Agent / Code 子模式不处理这组命令。
- `team`:使用团队技能演进 rail;`/evolve <skill_name> <user_query>`、`/evolve_list`、`/evolve_simplify`、`/evolve_rebuild` 可用。
+- 无参数 `/evolve` 仅在 `agent.plan` 下返回待处理演进记录摘要;Team 模式会要求补充 Skill 名称和演进意图。
审批与状态:
diff --git "a/docs/zh/\346\212\200\350\203\275.md" "b/docs/zh/\346\212\200\350\203\275.md"
index 5fd852f9f1..deec4ae45d 100644
--- "a/docs/zh/\346\212\200\350\203\275.md"
+++ "b/docs/zh/\346\212\200\350\203\275.md"
@@ -225,9 +225,9 @@ Marketplace 不是统一官方商店,而是社区贡献的技能源集合。
- **来源**:经验产生的来源(如检测到的信号、对话或执行上下文)
- **时间**:记录生成或写入的时间
- **上下文**:触发该条经验时的会话/任务背景说明
-- **经验内容**:具体改进说明,对应数据中的 `change.content` 等字段
+- **经验内容**:具体改进说明,对应数据中的 `change.content` 字段
-> **如何能看到数据:** 需先在 **配置** 中开启自演进相关能力(例如自演进 / 自动检测开关,对应 `evolution_auto_scan` 或环境变量 `EVOLUTION_AUTO_SCAN` 等,详见[配置信息](配置信息.md)与 [Skill 自演进](Skill自演进.md))。开启后,在对话中**实际使用并触发一次**该技能(或产生一次可记录的演进信号),即可在「查看技能经验」中看到上述条目。
+> **如何能看到数据:** 当某个技能已经保存演进经验时,技能列表中的 **查看技能经验** 会变为可用,点击即可查看。若暂时没有数据,说明该技能还没有已保存的演进记录;这些记录可以通过 `/evolve <skill_name> [user_query]` 手动生成,也可以在 **自演进配置** 中开启 **自动检测可演进信号** 后,由系统在失败、纠错等场景中自动产生。详见[配置信息](配置信息.md)与 [Skill 自演进](Skill自演进.md)。
> **用途说明**:技能经验反映自演进与真实使用中的改进沉淀,便于判断技能是否持续可用,也为技能维护者提供依据。
diff --git "a/docs/zh/\351\205\215\347\275\256\344\277\241\346\201\257.md" "b/docs/zh/\351\205\215\347\275\256\344\277\241\346\201\257.md"
index 85235b1e55..72f96ce29d 100644
--- "a/docs/zh/\351\205\215\347\275\256\344\277\241\346\201\257.md"
+++ "b/docs/zh/\351\205\215\347\275\256\344\277\241\346\201\257.md"
@@ -203,15 +203,10 @@ Embed 模型的主要作用:
### 开关说明
-- **配置项**:`evolution.enabled`
-- **默认值**:`false`(关闭)
-- **作用**:启用后,系统会自动检测 Skills 执行过程中的问题,并生成改进建议,持续优化技能表现
-
-当开启自演进后,系统会:
+前端在 **自演进配置** 中展示两个开关:
-1. 监听 Skills 执行过程和对话内容
-2. 检测执行错误、用户反馈等改进信号
-3. 自动生成改进建议并记录
+- **自动检测可演进信号**:默认关闭。开启后,系统会在对话和工具执行后自动扫描失败、纠错等演进信号。对应配置 `evolution.auto_scan`,环境变量 `EVOLUTION_AUTO_SCAN` 优先。
+- **自动建议创建新技能**:默认关闭。开启后,系统可以在缺少合适 Skill 时提出自动创建建议。对应配置 `evolution.skill_create`,环境变量 `SKILL_CREATE` 优先。
> 📖 **详情**:关于自演进机制的详细说明,请参考 [Skill 自演进](Skill自演进.md) 文档。
@@ -320,4 +315,4 @@ A: 在配置面板中可以看到当前配置的模型信息。也可以通过
A: 不必须。视频、音频、视觉模型都是可选的。只有当您需要使用相应的多模态功能时才需要配置。
----
\ No newline at end of file
+---
diff --git a/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/evolve.ts b/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/evolve.ts
index 05479dd276..da15ae31e7 100644
--- a/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/evolve.ts
+++ b/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/evolve.ts
@@ -2,21 +2,21 @@ import { makeItem, parseArgs } from "../helpers.js";
import { CommandKind, type SlashCommand } from "../types.js";
/**
- * /evolve - Trigger skill evolution or list pending summaries
- * Usage: /evolve [list | <skill_name> [<user_query>...]]
+ * /evolve - Trigger skill evolution
+ * Usage: /evolve <skill_name> [<user_query>...]
*/
export function createEvolveCommand(): SlashCommand {
return {
name: "evolve",
- description: "Trigger skill evolution for <skill_name> (optionally with user_query), or list pending summaries if 'list' or no argument",
- usage: "/evolve [list | <skill_name> [<user_query>...]]",
+ description: "Trigger skill evolution for <skill_name> (optionally with user_query)",
+ usage: "/evolve <skill_name> [<user_query>...]",
example: "/evolve pptx improve error handling",
kind: CommandKind.BUILT_IN,
hidden: true,
takesArgs: true,
action: (ctx, args) => {
const skillArg = args.trim();
- // /evolve, /evolve list, or /evolve <skill_name> [<user_query>...]
+ // Forward as-is. Agent mode still accepts bare /evolve for a pending-record summary.
const text = skillArg ? `/evolve ${skillArg}` : `/evolve`;
const requestId = ctx.sendMessage(text);
@@ -70,14 +70,14 @@ export function createEvolveListCommand(): SlashCommand {
/**
* /evolve_simplify - Simplify evolution proposals for a skill
- * Usage: /evolve_simplify <skill_name> [--dry-run]
+ * Usage: /evolve_simplify <skill_name> [user_intent]
*/
export function createEvolveSimplifyCommand(): SlashCommand {
return {
name: "evolve_simplify",
description: "Simplify evolution experiences for a skill into smaller tasks",
- usage: "/evolve_simplify <skill_name> [--dry-run]",
- example: "/evolve_simplify pptx --dry-run",
+ usage: "/evolve_simplify <skill_name> [user_intent]",
+ example: "/evolve_simplify pptx merge duplicate export-failure records",
kind: CommandKind.BUILT_IN,
hidden: true,
takesArgs: true,
@@ -90,13 +90,13 @@ export function createEvolveSimplifyCommand(): SlashCommand {
makeItem(
ctx.sessionId,
"error",
- "usage: /evolve_simplify <skill_name> [--dry-run] - Provide the name of the skill",
+ "usage: /evolve_simplify <skill_name> [user_intent] - Provide the name of the skill",
),
);
return;
}
- // Forward all arguments to backend (including --dry-run if present)
+ // Forward all arguments to backend; trailing text is treated as cleanup intent.
const requestId = ctx.sendMessage(`/evolve_simplify ${args.trim()}`);
if (!requestId) {
ctx.addItem(
diff --git a/jiuwenswarm/server/runtime/agent_adapter/interface_deep.py b/jiuwenswarm/server/runtime/agent_adapter/interface_deep.py
index 4a30ad7142..37de556680 100644
--- a/jiuwenswarm/server/runtime/agent_adapter/interface_deep.py
+++ b/jiuwenswarm/server/runtime/agent_adapter/interface_deep.py
@@ -3813,7 +3813,7 @@ class JiuWenClawDeepAdapter:
# ------------------------------------------------------------------
async def _handle_evolve_command(self, query: str, session_id: str) -> dict[str, Any]:
- """/evolve [list | <skill_name> [<user_query>...]] handler using the active SDK path.
+ """/evolve [<skill_name> [<user_query>...]] handler using the active SDK path.
Uses SkillEvolutionRail.request_user_evolution to return structured
approval data directly. Passive/background evolution still uses the
@@ -3836,7 +3836,7 @@ class JiuWenClawDeepAdapter:
parts = query.split(maxsplit=1)
skill_arg = parts[1].strip() if len(parts) > 1 else ""
- # --- /evolve list (or bare /evolve) ---
+ # --- bare /evolve summary. "list" is retained for backward compatibility. ---
if not skill_arg or skill_arg == "list":
if not skill_names:
return {
@@ -3861,7 +3861,7 @@ class JiuWenClawDeepAdapter:
"output": (
f"在 skills_base_dir 下未找到 Skill '{skill_name}'。\n"
f"当前可用 Skill:{available}\n"
- f"可使用 /evolve list 查看所有记录。"
+ f"可使用 /evolve_list <skill_name> 查看指定 Skill 的经验库。"
),
"result_type": "error",
}