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(jiuwenswarm): Update documents related to JiuwenSwarm
openJiuwen-botc4ff5d8f9c8b
diff --git a/docs/assets/images/jiuwenclaw_clear_session.png b/docs/assets/images/jiuwenswarm_clear_session.pngsimilarity index 100%rename from docs/assets/images/jiuwenclaw_clear_session.pngrename to docs/assets/images/jiuwenswarm_clear_session.pngdiff --git a/docs/assets/images/jiuwenclaw_config_api.png b/docs/assets/images/jiuwenswarm_config_api.pngsimilarity index 100%rename from docs/assets/images/jiuwenclaw_config_api.pngrename to docs/assets/images/jiuwenswarm_config_api.pngdiff --git a/docs/assets/images/jiuwenclaw_configuration_Info.png b/docs/assets/images/jiuwenswarm_configuration_Info.pngsimilarity index 100%rename from docs/assets/images/jiuwenclaw_configuration_Info.pngrename to docs/assets/images/jiuwenswarm_configuration_Info.pngdiff --git a/docs/assets/images/jiuwenclaw_delete_memory.png b/docs/assets/images/jiuwenswarm_delete_memory.pngsimilarity index 100%rename from docs/assets/images/jiuwenclaw_delete_memory.pngrename to docs/assets/images/jiuwenswarm_delete_memory.pngdiff --git a/docs/assets/images/jiuwenclaw_enable_wechat.png b/docs/assets/images/jiuwenswarm_enable_wechat.pngsimilarity index 100%rename from docs/assets/images/jiuwenclaw_enable_wechat.pngrename to docs/assets/images/jiuwenswarm_enable_wechat.pngdiff --git a/docs/assets/images/jiuwenclaw_example.png b/docs/assets/images/jiuwenswarm_example.pngsimilarity index 100%rename from docs/assets/images/jiuwenclaw_example.pngrename to docs/assets/images/jiuwenswarm_example.pngdiff --git a/docs/assets/images/jiuwenclaw_memory.png b/docs/assets/images/jiuwenswarm_memory.pngsimilarity index 100%rename from docs/assets/images/jiuwenclaw_memory.pngrename to docs/assets/images/jiuwenswarm_memory.pngdiff --git a/docs/assets/images/jiuwenclaw_new_session.png b/docs/assets/images/jiuwenswarm_new_session.pngsimilarity index 100%rename from docs/assets/images/jiuwenclaw_new_session.pngrename to docs/assets/images/jiuwenswarm_new_session.pngdiff --git a/docs/assets/images/jiuwenclaw_session_history.png b/docs/assets/images/jiuwenswarm_session_history.pngsimilarity index 100%rename from docs/assets/images/jiuwenclaw_session_history.pngrename to docs/assets/images/jiuwenswarm_session_history.pngdiff --git "a/docs/assets/images/jiuwenclaw\345\217\226\346\266\210.png" "b/docs/assets/images/jiuwenswarm\345\217\226\346\266\210.png"similarity index 100%rename from "docs/assets/images/jiuwenclaw\345\217\226\346\266\210.png"rename to "docs/assets/images/jiuwenswarm\345\217\226\346\266\210.png"diff --git "a/docs/assets/images/jiuwenclaw\345\244\204\347\220\206\344\270\255.png" "b/docs/assets/images/jiuwenswarm\345\244\204\347\220\206\344\270\255.png"similarity index 100%rename from "docs/assets/images/jiuwenclaw\345\244\204\347\220\206\344\270\255.png"rename to "docs/assets/images/jiuwenswarm\345\244\204\347\220\206\344\270\255.png"diff --git "a/docs/assets/images/jiuwenclaw\345\270\203\345\261\200\346\246\202\350\247\210.png" "b/docs/assets/images/jiuwenswarm\345\270\203\345\261\200\346\246\202\350\247\210.png"similarity index 100%rename from "docs/assets/images/jiuwenclaw\345\270\203\345\261\200\346\246\202\350\247\210.png"rename to "docs/assets/images/jiuwenswarm\345\270\203\345\261\200\346\246\202\350\247\210.png"diff --git "a/docs/assets/images/jiuwenclaw\346\211\247\350\241\214\346\250\241\345\274\217.png" "b/docs/assets/images/jiuwenswarm\346\211\247\350\241\214\346\250\241\345\274\217.png"similarity index 100%rename from "docs/assets/images/jiuwenclaw\346\211\247\350\241\214\346\250\241\345\274\217.png"rename to "docs/assets/images/jiuwenswarm\346\211\247\350\241\214\346\250\241\345\274\217.png"diff --git "a/docs/assets/images/jiuwenclaw\346\230\276\347\244\272\345\206\205\345\256\271.png" "b/docs/assets/images/jiuwenswarm\346\230\276\347\244\272\345\206\205\345\256\271.png"similarity index 100%rename from "docs/assets/images/jiuwenclaw\346\230\276\347\244\272\345\206\205\345\256\271.png"rename to "docs/assets/images/jiuwenswarm\346\230\276\347\244\272\345\206\205\345\256\271.png"diff --git "a/docs/assets/images/jiuwenclaw\346\232\202\345\201\234.png" "b/docs/assets/images/jiuwenswarm\346\232\202\345\201\234.png"similarity index 100%rename from "docs/assets/images/jiuwenclaw\346\232\202\345\201\234.png"rename to "docs/assets/images/jiuwenswarm\346\232\202\345\201\234.png"diff --git "a/docs/assets/images/jiuwenclaw\347\211\210\346\234\254\345\217\267.png" "b/docs/assets/images/jiuwenswarm\347\211\210\346\234\254\345\217\267.png"similarity index 100%rename from "docs/assets/images/jiuwenclaw\347\211\210\346\234\254\345\217\267.png"rename to "docs/assets/images/jiuwenswarm\347\211\210\346\234\254\345\217\267.png"diff --git "a/docs/assets/images/jiuwenclaw\350\276\205\345\212\251\344\277\241\346\201\257\345\261\225\347\244\272.png" "b/docs/assets/images/jiuwenswarm\350\276\205\345\212\251\344\277\241\346\201\257\345\261\225\347\244\272.png"similarity index 100%rename from "docs/assets/images/jiuwenclaw\350\276\205\345\212\251\344\277\241\346\201\257\345\261\225\347\244\272.png"rename to "docs/assets/images/jiuwenswarm\350\276\205\345\212\251\344\277\241\346\201\257\345\261\225\347\244\272.png"diff --git a/docs/en/A2A.md b/docs/en/A2A.mdindex eb50c71410..9d1d9f726e 100644--- a/docs/en/A2A.md+++ b/docs/en/A2A.md@@ -2,7 +2,7 @@This page explains the Gateway-side **A2A Server** (`A2AChannel`): implementation location, configuration, mapping to internal `Message`/E2A, and local verification commands. For outbound A2A (agent calling external services), see section 7.-> **Implementation**: `jiuwenclaw/channel/a2a_channel.py` (`A2AChannel` + `a2a-sdk`). **Entrypoint process**: `python -m jiuwenclaw.app_gateway` (registered and started in `jiuwenclaw/app_gateway.py`). In case of mismatch, source code is the source of truth.+> **Implementation**: `jiuwenswarm/channel/a2a_channel.py` (`A2AChannel` + `a2a-sdk`). **Entrypoint process**: `python -m jiuwenswarm.app_gateway` (registered and started in `jiuwenswarm/app_gateway.py`). In case of mismatch, source code is the source of truth.---@@ -11,10 +11,10 @@ This page explains the Gateway-side **A2A Server** (`A2AChannel`): implementatio| Location | Role ||------|------|| **docs/en/A2A.md** (this page) | Integration and dev debugging: modules, config, mapping, verification |-| `jiuwenclaw/channel/a2a_channel.py` | A2A HTTP service, `AgentCard`, request/response to `Message` conversion |-| `jiuwenclaw/app_gateway.py` | Env loading, `A2AChannel` construction, `channel_manager.register_channel` |-| `jiuwenclaw/gateway/message_handler.py` | Gateway↔AgentServer E2A exchange and internal `Message` orchestration |-| `jiuwenclaw/gateway/channel_manager.py` | Channel registration and `robot_messages` → `Channel.send` dispatch |+| `jiuwenswarm/channel/a2a_channel.py` | A2A HTTP service, `AgentCard`, request/response to `Message` conversion |+| `jiuwenswarm/app_gateway.py` | Env loading, `A2AChannel` construction, `channel_manager.register_channel` |+| `jiuwenswarm/gateway/message_handler.py` | Gateway↔AgentServer E2A exchange and internal `Message` orchestration |+| `jiuwenswarm/gateway/channel_manager.py` | Channel registration and `robot_messages` → `Channel.send` dispatch || [E2A-protocol.md](E2A-protocol.md) | Inner protocol between Gateway and AgentServer |---@@ -32,13 +32,13 @@ This page explains the Gateway-side **A2A Server** (`A2AChannel`): implementatio|------|-----|-----|-------------|| Bindings | `WEB_HOST` / `WEB_PORT` / `WEB_PATH` | `ACP_GATEWAY_*` | `A2A_SERVER_*` || Config source | Env + CLI (`--host`, etc.) | Env only | Env only |-| `.env` loading | `app_gateway` calls `load_dotenv(get_env_file())`, i.e. `~/.jiuwenclaw/config/.env` | same | same |+| `.env` loading | `app_gateway` calls `load_dotenv(get_env_file())`, i.e. `~/.jiuwenswarm/config/.env` | same | same |---## 3. Environment Variables (Gateway)-Set these in `~/.jiuwenclaw/config/.env` or process environment (read by `app_gateway.py`):+Set these in `~/.jiuwenswarm/config/.env` or process environment (read by `app_gateway.py`):| Variable | Default | Notes ||------|------|------|@@ -49,8 +49,8 @@ Set these in `~/.jiuwenclaw/config/.env` or process environment (read by `app_ga| `A2A_SERVER_PROTOCOL_VERSION` | `1.0.0` | written into `AgentCard.AgentInterface.protocol_version` || `A2A_SERVER_CARD_PATH` | `/.well-known/agent-card.json` | Agent Card path || `A2A_SERVER_EXTENDED_CARD_PATH` | `/agent/authenticatedExtendedCard` | Extended Card path |-| `A2A_SERVER_APP_NAME` | `JiuwenClaw Gateway A2A Server` | Agent Card `name` |-| `A2A_SERVER_APP_DESCRIPTION` | `A2A ingress for JiuwenClaw Gateway` | Agent Card `description` |+| `A2A_SERVER_APP_NAME` | `JiuwenSwarm Gateway A2A Server` | Agent Card `name` |+| `A2A_SERVER_APP_DESCRIPTION` | `A2A ingress for JiuwenSwarm Gateway` | Agent Card `description` || `A2A_SERVER_APP_VERSION` | `0.1.0` | Agent Card `version` |AgentServer connectivity still follows existing gateway config (for example `AGENT_SERVER_URL`) and is independent from the A2A listening endpoint.@@ -142,4 +142,4 @@ Start both AgentServer and Gateway, and ensure `A2A_SERVER_ENABLED=true`.## 9. Known Extension Points- Authentication, rate limit, timeout, and observability metrics are better enforced by gateway or upstream proxy, while keeping `A2AChannel` focused on protocol/message mapping.-- If `jiuwenclaw/resources/.env.template` does not include A2A/ACP keys, append them manually in local `.env` (consistent with section 2).+- If `jiuwenswarm/resources/.env.template` does not include A2A/ACP keys, append them manually in local `.env` (consistent with section 2).diff --git a/docs/en/ACP_Client_Config.md b/docs/en/ACP_Client_Config.mdindex 131e0314a6..583defe528 100644--- a/docs/en/ACP_Client_Config.md+++ b/docs/en/ACP_Client_Config.md@@ -1,9 +1,9 @@# Quick Start-JiuwenClaw supports connecting to the ACP client in VS Code.+JiuwenSwarm supports connecting to the ACP client in VS Code.Pre-installation Preparation- Environment Dependencies:- - Complete the installation of JiuwenClaw+ - Complete the installation of JiuwenSwarm- Configure the model in the web UI: Settings → Configuration → Model Configuration**Note: Users may complete installation and configuration based on their actual needs using the following methods.**@@ -20,26 +20,26 @@ For users who cloned the repository.-3. For `Name`, enter: `jiuwenclaw`.+3. For `Name`, enter: `jiuwenswarm`.4. For `Command`:- Windows: enter the absolute path to `<repo>/scripts/run_gateway_acp.cmd`- Linux / macOS: enter the absolute path to `<repo>/scripts/run_gateway_acp.sh`5. Leave `Config / Arguments` empty.-6. Start the main process in the terminal first: `python -m jiuwenclaw.app`-7. Connect to `jiuwenclaw` in the extension, then chat in the window.+6. Start the main process in the terminal first: `python -m jiuwenswarm.app`+7. Connect to `jiuwenswarm` in the extension, then chat in the window.> Note: The scripts use the `.venv` under the project root by default.# VS Code ACP Client Setup (pip install / Wheel)-For users who installed JiuwenClaw via `pip install jiuwenclaw`.+For users who installed JiuwenSwarm via `pip install jiuwenswarm`.1. Install the ACP Client extension from the marketplace. Search for `formulahendry.acp-client` and install it.2. In the extension, click the `+` button (`ACP: Add Agent Configuration`).-3. For `Name`, enter: `jiuwenclaw`.-4. For `Command`, enter: `jiuwenclaw-acp`+3. For `Name`, enter: `jiuwenswarm`.+4. For `Command`, enter: `jiuwenswarm-acp`5. Leave `Config / Arguments` empty.-6. Start the main process in the terminal first: `python -m jiuwenclaw.app`-7. Connect to `jiuwenclaw` in the extension, then chat in the window.+6. Start the main process in the terminal first: `python -m jiuwenswarm.app`+7. Connect to `jiuwenswarm` in the extension, then chat in the window.-> Note: `jiuwenclaw-acp` is a command-line entry point auto-generated by pip install, just like `jiuwenclaw-init` and `jiuwenclaw-start`. Make sure VS Code is running in the same virtual environment where jiuwenclaw is installed. If not, provide the full path instead, e.g. `C:\path\to\venv\Scripts\jiuwenclaw-acp.exe` on Windows, or `/path/to/venv/bin/jiuwenclaw-acp` on Linux/macOS.\ No newline at end of file+> Note: `jiuwenswarm-acp` is a command-line entry point auto-generated by pip install, just like `jiuwenswarm-init` and `jiuwenswarm-start`. Make sure VS Code is running in the same virtual environment where jiuwenswarm is installed. If not, provide the full path instead, e.g. `C:\path\to\venv\Scripts\jiuwenswarm-acp.exe` on Windows, or `/path/to/venv/bin/jiuwenswarm-acp` on Linux/macOS.\ No newline at end of filediff --git a/docs/en/Agent.md b/docs/en/Agent.mdindex 58d7cccaaa..2857c28f15 100644--- a/docs/en/Agent.md+++ b/docs/en/Agent.md@@ -1,15 +1,15 @@# Agent & workspace-`workspace` is JiuwenClaw’s runtime directory for agent memory, skills, session data, and configurable heartbeat tasks. On first run (via `init` or `app`), the bundled templates from `jiuwenclaw/resources/agent/` are copied to `~/.jiuwenclaw/agent/jiuwenclaw_workspace/`. Built-in skills live under `jiuwenclaw/resources/agent/jiuwenclaw_workspace/skills/` in the package; marketplace/installed skills are stored in the user workspace.+`workspace` is JiuwenSwarm’s runtime directory for agent memory, skills, session data, and configurable heartbeat tasks. In **source mode** it lives at the project root `workspace`; in **wheel install mode**, the bundled `workspace` is copied to `~/.jiuwenswarm/workspace` on first run.## Layout overview-The **installed** user workspace layout (`~/.jiuwenclaw/agent/jiuwenclaw_workspace/`):+The **installed** user workspace layout (`~/.jiuwenswarm/workspace/`):```-jiuwenclaw_workspace/+workspace/├── agent-data.json # Agent list metadata (generated by scripts/generate-agent-folders.js)├── skills_state.json # Skill install/market state (generated)├── AGENT.md # Agent identity (from AGENT_ZH.md or AGENT_EN.md at init)@@ -32,7 +32,7 @@ jiuwenclaw_workspace/└── heartbeat_<id>/ # Heartbeat sessions```-The **package template** for built-in skills lives at `jiuwenclaw/resources/agent/jiuwenclaw_workspace/skills/`. These are not copied to the user workspace on init (they are loaded directly from the package in source mode, or from `~/.jiuwenclaw/agent/jiuwenclaw_workspace/skills/` if explicitly installed).+The **package template** for built-in skills lives at `jiuwenswarm/resources/agent/workspace/skills/`. These are not copied to the user workspace on init (they are loaded directly from the package in source mode, or from `~/.jiuwenswarm/workspace/skills/` if explicitly installed).---@@ -42,7 +42,7 @@ Shipped with the package or source; you can use or edit as needed:| Path (in workspace) | Description ||------|-------------|-| `HEARTBEAT.md` | Heartbeat template (`jiuwenclaw/resources/agent/jiuwenclaw_workspace/HEARTBEAT_ZH.md` or `HEARTBEAT_EN.md`, copied by language at init). If present and valid, the agent reads it on each heartbeat; otherwise only `HEARTBEAT_OK` is returned. Editable in the web UI. |+| `HEARTBEAT.md` | Heartbeat template (`jiuwenswarm/resources/agent/workspace/HEARTBEAT_ZH.md` or `HEARTBEAT_EN.md`, copied by language at init). If present and valid, the agent reads it on each heartbeat; otherwise only `HEARTBEAT_OK` is returned. Editable in the web UI. || `SOUL.md` | Persona for system prompts. || `skills/` | Marketplace/installed skills. Each skill has `SKILL.md`, `prompts/`, `references/`, etc. || `skills/_marketplace/` | Marketplace clone cache; empty by default. |@@ -71,6 +71,6 @@ Created or updated at runtime:## Related configuration- **Skill root**: `skill_base_dir` in `config/config.yaml`, default `agent/skills`.-- **Memory workspace**: `~/.jiuwenclaw/agent/jiuwenclaw_workspace/` (`get_agent_workspace_dir()`).-- **Sessions**: `~/.jiuwenclaw/agent/jiuwenclaw_workspace/session/`, one subfolder per `session_id`.-- **SkillNet usage in Claw**: see [Skills.md §5](Skills.md#5-how-skills-installed-via-skillnet-are-used-in-claw).+- **Memory workspace**: `~/.jiuwenswarm/workspace/` (`get_agent_workspace_dir()`).+- **Sessions**: `~/.jiuwenswarm/workspace/session/`, one subfolder per `session_id`.+- **SkillNet usage in Swarm**: see [Skills.md §5](Skills.md#5-how-skills-installed-via-skillnet-are-used-in-claw).diff --git a/docs/en/Browser.md b/docs/en/Browser.mdindex 5c121fe319..b8cfde69cf 100644--- a/docs/en/Browser.md+++ b/docs/en/Browser.md@@ -38,7 +38,7 @@ Install Chrome first.### Step 2: Open the browser service panel-1. Open the JiuwenClaw web UI.+1. Open the JiuwenSwarm web UI.@@ -179,13 +179,13 @@ BROWSER_ALLOW_SHORT_TIMEOUT_OVERRIDE=0## 7. Code index### Frontend-- `jiuwenclaw/channels/web/frontend/src/components/BrowserPanel/index.tsx` — path, save, start service.+- `jiuwenswarm/channels/web/frontend/src/components/BrowserPanel/index.tsx` — path, save, start service.### Backend- `app.py` — `path.get`, `path.set`, `browser.start`, etc.-- `jiuwenclaw/agents/harness/common/tools/browser_start_client.py` — Chrome launch from `config.yaml`.-- `jiuwenclaw/agents/harness/common/tools/browser_tools.py` — MCP client, auto-start wrapper.-- `jiuwenclaw/agents/harness/common/tools/browser-move/src/playwright_runtime_mcp_server.py` — MCP server.+- `jiuwenswarm/agents/harness/common/tools/browser_start_client.py` — Chrome launch from `config.yaml`.+- `jiuwenswarm/agents/harness/common/tools/browser_tools.py` — MCP client, auto-start wrapper.+- `jiuwenswarm/agents/harness/common/tools/browser-move/src/playwright_runtime_mcp_server.py` — MCP server.- `.../playwright_runtime/runtime.py`, `service.py`, `agents.py`, `config.py` — runtime orchestration.### Configdiff --git a/docs/en/CLI.md b/docs/en/CLI.mdindex f10032a4d7..c2b028ea70 100644--- a/docs/en/CLI.md+++ b/docs/en/CLI.md@@ -1,6 +1,6 @@## CLI / channel control commands-JiuwenClaw supports **special prefix commands** to control sessions and modes. Common ones:+JiuwenSwarm supports **special prefix commands** to control sessions and modes. Common ones:- `/new_session`: start a new `session_id` for the current channel- `/mode plan`, `/mode fast`, `/mode team`, `/mode code`: switch the channel's working mode@@ -88,7 +88,7 @@ The Gateway will:### 3. TUI: `/workspace_dir` — workspace path for outbound requests-**Scope:** terminal UI (`jiuwenclaw-tui`) only; parsed locally, not by the Gateway control pipeline.+**Scope:** terminal UI (`jiuwenswarm-tui`) only; parsed locally, not by the Gateway control pipeline.**Behavior**@@ -99,7 +99,7 @@ The Gateway will:**Persistence**-- Stored as a single-line file: **`~/.jiuwenclaw/tui-workspace-dir`**.+- Stored as a single-line file: **`~/.jiuwenswarm/tui-workspace-dir`**.**Gateway / Agent**diff --git a/docs/en/Channels.md b/docs/en/Channels.mdindex 3bf5a8e759..56794b4987 100644--- a/docs/en/Channels.md+++ b/docs/en/Channels.md@@ -1,10 +1,10 @@# Channels — unified chat hub-**Channels** are how JiuwenClaw connects to chat platforms. **HarmonyOS Xiaoyi**, **Feishu (Lark)**, and more are supported, with more coming. You can talk to JiuwenClaw from **Feishu**, **Xiaoyi on Harmony devices**, and others.+**Channels** are how JiuwenSwarm connects to chat platforms. **HarmonyOS Xiaoyi**, **Feishu (Lark)**, and more are supported, with more coming. You can talk to JiuwenSwarm from **Feishu**, **Xiaoyi on Harmony devices**, and others.## Digital Avatar-JiuwenClaw supports **Group Digital Avatar** on **Feishu** and **WeCom** channels. When enabled, the bot acts as a designated user's "digital avatar" in group chats — it automatically identifies messages relevant to that user and replies on their behalf in first person. For personal action items such as to-dos and reminders, the avatar sends the reply as a private message to the user while posting a brief confirmation in the group. Irrelevant messages are filtered out automatically, saving Agent resources.+JiuwenSwarm supports **Group Digital Avatar** on **Feishu** and **WeCom** channels. When enabled, the bot acts as a designated user's "digital avatar" in group chats — it automatically identifies messages relevant to that user and replies on their behalf in first person. For personal action items such as to-dos and reminders, the avatar sends the reply as a private message to the user while posting a brief confirmation in the group. Irrelevant messages are filtered out automatically, saving Agent resources.This feature is disabled by default. See the configuration instructions under each channel below.@@ -12,7 +12,7 @@ Configure channels in either of two ways:* **Web UI (recommended)** — In the app, open **Agent** / **Channels**, then fill in the channel form.-* **Edit `config.yaml` manually** — Usually `~/.jiuwenclaw/config/config.yaml` (created on first `jiuwenclaw-start`). Set `enabled: true` and credentials; save to auto-reload without a full restart.+* **Edit `config.yaml` manually** — Usually `~/.jiuwenswarm/config/config.yaml` (created on first `jiuwenswarm-start`). Set `enabled: true` and credentials; save to auto-reload without a full restart.@@ -22,11 +22,11 @@ Configure channels in either of two ways:## 1. Create a Xiaoyi agent-Create a **JiuwenClaw-mode** agent on the [Xiaoyi Open Platform](https://developer.huawei.com/consumer/cn/hag/abilityportal/#/) to connect to your JiuwenClaw service.+Create a **JiuwenSwarm-mode** agent on the [Xiaoyi Open Platform](https://developer.huawei.com/consumer/cn/hag/abilityportal/#/) to connect to your JiuwenSwarm service.-Step 1: create a JiuwenClaw-mode agent.+Step 1: create a JiuwenSwarm-mode agent.@@ -60,11 +60,11 @@ Fill in the opening lines and click publish.## 2. Bind the channel-**Option A**: Paste **AK**, **SK**, and **agentId** from the platform into the Xiaoyi channel in JiuwenClaw, enable, and save.+**Option A**: Paste **AK**, **SK**, and **agentId** from the platform into the Xiaoyi channel in JiuwenSwarm, enable, and save.-**Option B**: Edit `~/.jiuwenclaw/config/config.yaml`:+**Option B**: Edit `~/.jiuwenswarm/config/config.yaml`:``````channels:@@ -77,7 +77,7 @@ channels:enabled: true``````-If the service is already running it reloads; otherwise run `jiuwenclaw-start`.+If the service is already running it reloads; otherwise run `jiuwenswarm-start`.## 3. Chat@@ -112,7 +112,7 @@ Option 2: On a Harmony phone, open the published agent in the Xiaoyi app.## 3. Save app credentials1. Open the Feishu bot admin.-2. Copy **App ID** and **App Secret** into JiuwenClaw’s Feishu channel, enable, and save.+2. Copy **App ID** and **App Secret** into JiuwenSwarm’s Feishu channel, enable, and save.@@ -153,7 +153,7 @@ Option 2: On a Harmony phone, open the published agent in the Xiaoyi app.-## 8. Enable Feishu channel in JiuwenClaw+## 8. Enable Feishu channel in JiuwenSwarmStart the web UI, open **Channels → Feishu**, enable, and paste **App ID** and **App Secret**.## 9. Enable Group Digital Avatar (optional)@@ -168,7 +168,7 @@ After completing the basic Feishu bot setup, you can enable the digital avatar f### Configuration steps-1. In the JiuwenClaw channel management page, open the Feishu channel settings and enable the **`group_digital_avatar`** toggle. Configure **`my_user_id`** and **`bot_name`**.+1. In the JiuwenSwarm channel management page, open the Feishu channel settings and enable the **`group_digital_avatar`** toggle. Configure **`my_user_id`** and **`bot_name`**.@@ -189,7 +189,7 @@ After completing the basic Feishu bot setup, you can enable the digital avatar f-You can also configure via `~/.jiuwenclaw/config/config.yaml`:+You can also configure via `~/.jiuwenswarm/config/config.yaml`:``````channels:@@ -240,11 +240,11 @@ permissions:## 10. Multiple Feishu bots (`feishu_enterprise`)-Use `channels.feishu_enterprise` when one JiuwenClaw instance must serve **multiple Feishu apps** (multiple bots).+Use `channels.feishu_enterprise` when one JiuwenSwarm instance must serve **multiple Feishu apps** (multiple bots).Each bot is a separate channel; `channel_id` looks like `feishu_enterprise:<app_id>`.-Configure only via `~/.jiuwenclaw/config/config.yaml`:+Configure only via `~/.jiuwenswarm/config/config.yaml`:``````channels:@@ -306,7 +306,7 @@ channels:### Step 2: App info-- Name, e.g. `JiuwenClaw`+- Name, e.g. `JiuwenSwarm`- Type: **Bot**@@ -347,11 +347,11 @@ Under **Permissions**, enable as needed, e.g.:> After publishing, search the bot name in DingTalk to add it to chats.-## 5. Configure DingTalk in JiuwenClaw+## 5. Configure DingTalk in JiuwenSwarmCopy **Client ID** and **Client Secret** from **Credentials**.-In JiuwenClaw **Channels → DingTalk**, enable and paste **client_id** / **client_secret**, then save.+In JiuwenSwarm **Channels → DingTalk**, enable and paste **client_id** / **client_secret**, then save.@@ -375,11 +375,11 @@ In JiuwenClaw **Channels → DingTalk**, enable and paste **client_id** / **clie-4. After creation, save **Bot ID** and **Secret** for JiuwenClaw.+4. After creation, save **Bot ID** and **Secret** for JiuwenSwarm.-## 2. Link JiuwenClaw+## 2. Link JiuwenSwarm-1. In JiuwenClaw, open **Channels** → **WeCom**.+1. In JiuwenSwarm, open **Channels** → **WeCom**.2. Enter **bot id** and **secret**, then save.@@ -410,12 +410,12 @@ After completing the basic WeCom bot setup, you can enable the digital avatar fe### Prerequisites-- WeCom bot has been created and linked to JiuwenClaw+- WeCom bot has been created and linked to JiuwenSwarm- Bot has been added to the target group: open WeCom, enter the group, tap add member → **Group bots** → **Smart bot**, and search for your app### Configuration steps-1. In the JiuwenClaw channel management page, open the WeCom channel settings and enable the **`group_digital_avatar`** toggle. Configure **`my_user_id`** and **`bot_name`**. Before enabling the digital avatar, you need to have a private chat with the robot once; otherwise, an error message `[AiBotSDK] [WARN] Reply ack error` will be reported.+1. In the JiuwenSwarm channel management page, open the WeCom channel settings and enable the **`group_digital_avatar`** toggle. Configure **`my_user_id`** and **`bot_name`**. Before enabling the digital avatar, you need to have a private chat with the robot once; otherwise, an error message `[AiBotSDK] [WARN] Reply ack error` will be reported.@@ -436,7 +436,7 @@ After completing the basic WeCom bot setup, you can enable the digital avatar fe-You can also configure via `~/.jiuwenclaw/config/config.yaml`:+You can also configure via `~/.jiuwenswarm/config/config.yaml`:``````channels:@@ -492,8 +492,8 @@ Step 2: send `/newbot` and follow prompts.You will set:-- **Display name** (e.g. `JiuwenClaw Bot`)-- **Username** (must end with `bot`, e.g. `jiuwenclaw_bot`)+- **Display name** (e.g. `JiuwenSwarm Bot`)+- **Username** (must end with `bot`, e.g. `jiuwenswarm_bot`)@@ -511,7 +511,7 @@ Open **Agent / Channels** → Telegram, paste **Bot Token**, enable, save.**Option B: `config.yaml`**-Edit `~/.jiuwenclaw/config/config.yaml`:+Edit `~/.jiuwenswarm/config/config.yaml`:``````channels:@@ -523,7 +523,7 @@ channels:enabled: true``````-Reload or start `jiuwenclaw-start`.+Reload or start `jiuwenswarm-start`.## 3. Options@@ -582,7 +582,7 @@ Discord is supported. Configure in **Channel management** or edit `config.yaml`.- `allow_from`- `enabled`-Example `~/.jiuwenclaw/config/config.yaml`:+Example `~/.jiuwenswarm/config/config.yaml`:``````channels:@@ -600,7 +600,7 @@ channels:1. Create a bot in the Discord Developer Portal; copy `bot_token`.2. Enable **Message Content Intent** for the bot.3. Invite the bot to the server with channel permissions.-4. Fill JiuwenClaw and set `enabled: true`.+4. Fill JiuwenSwarm and set `enabled: true`.## Fields@@ -634,9 +634,9 @@ channels:### Step 2: Connect via WeChat QR Scan-- In the latest JiuwenClaw frontend, go to **Channels** -> **WeChat**, enable WeChat configuration, and click **Save**. A QR code will be displayed.+- In the latest JiuwenSwarm frontend, go to **Channels** -> **WeChat**, enable WeChat configuration, and click **Save**. A QR code will be displayed.-+- On your phone, open WeChat and go to **+** -> **Start Scanning**, scan the QR code generated in the previous step to finish the connection.diff --git a/docs/en/Configuration.md b/docs/en/Configuration.mdindex 085c1734b3..6f3e548c90 100644--- a/docs/en/Configuration.md+++ b/docs/en/Configuration.md@@ -1,8 +1,8 @@# Configuration Information-JiuwenClaw configuration serves as the foundational setup for your interactions with the agent. Proper configuration allows you to connect to various model services, enable multimodal capabilities, integrate third-party services, and adjust system behavior parameters.+JiuwenSwarm configuration serves as the foundational setup for your interactions with the agent. Proper configuration allows you to connect to various model services, enable multimodal capabilities, integrate third-party services, and adjust system behavior parameters.-This document details each configuration option in the JiuwenClaw frontend panel to help you get started quickly and fully leverage the system's capabilities.+This document details each configuration option in the JiuwenSwarm frontend panel to help you get started quickly and fully leverage the system's capabilities.---@@ -27,11 +27,11 @@ The configuration panel contains the following main sections:## 2. Model Configuration-> Before using JiuwenClaw, you must obtain an API key from your chosen model provider. Visit the provider's official website and follow instructions to apply for an API key.+> Before using JiuwenSwarm, you must obtain an API key from your chosen model provider. Visit the provider's official website and follow instructions to apply for an API key.### 2.1 Supported Model Types-JiuwenClaw supports multiple model types to meet diverse scenario requirements:+JiuwenSwarm supports multiple model types to meet diverse scenario requirements:| Model Type | Purpose | Capability Requirements | Required || ---------------- | ----------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -------- |@@ -95,7 +95,7 @@ The first item in the list is the default model; you can drag to reorder or clic### 2.4 Multimodal Model Usage Examples-Once video, audio, or vision models are configured, JiuwenClaw enables corresponding multimodal features automatically.+Once video, audio, or vision models are configured, JiuwenSwarm enables corresponding multimodal features automatically.#### Video Model@@ -108,13 +108,13 @@ model: GLM-4.6V-Flash11model_provider: ZhiPu```-When you send a video file to JiuwenClaw, the system will invoke the video model for analysis:+When you send a video file to JiuwenSwarm, the system will invoke the video model for analysis:```User: Analyze this video and list the main scenes.[Attachment: meeting_recording.mp4]-JiuwenClaw: Based on video analysis, the main scenes are:+JiuwenSwarm: Based on video analysis, the main scenes are:1. Opening remarks (0:00–2:30)2. Project progress report (2:30–8:15)3. Issue discussion (8:15–12:00)@@ -140,7 +140,7 @@ When you send an audio file, the system will invoke the audio model for speech rUser: Transcribe this audio recording.[Attachment: voice_message.m4a]-JiuwenClaw: Transcription:+JiuwenSwarm: Transcription:"Project review meeting at 3 PM tomorrow in Conference Room B. Please prepare materials in advance..."```@@ -161,7 +161,7 @@ model_provider: ZhiPuUser: Extract data from the table in this image.[Attachment: data_chart.png]-JiuwenClaw: Extracted sales data:+JiuwenSwarm: Extracted sales data:- January: 1.2M- February: 1.35M- March: 1.48M@@ -186,7 +186,7 @@ When you request image generation, the system will invoke the image generation m```User: Generate an image of a beach at sunset.-JiuwenClaw: [Generated image]+JiuwenSwarm: [Generated image]Generated an image of a beach at sunset, golden sunlight sparkling on the shimmering sea...```@@ -194,7 +194,7 @@ Generated an image of a beach at sunset, golden sunlight sparkling on the shimme## 3. Embedding Configuration-Embedding models convert text into vector representations and form the core of JiuwenClaw's memory system for semantic retrieval.+Embedding models convert text into vector representations and form the core of JiuwenSwarm's memory system for semantic retrieval.### 3.1 Purpose@@ -243,7 +243,7 @@ This section mirrors **§1.4** and **§1.5** for readers who jump here first. Al## 5. Self-Evolution Configuration-Self-evolution controls the automatic improvement of JiuwenClaw's Skills.+Self-evolution controls the automatic improvement of JiuwenSwarm's Skills.diff --git a/docs/en/ContextCompression.md b/docs/en/ContextCompression.mdindex bfe6e1d50f..0b4d4777e2 100644--- a/docs/en/ContextCompression.md+++ b/docs/en/ContextCompression.md@@ -1,6 +1,6 @@# Context compression & offload-Long chats hit **context window limits**: the model slows, forgets early details, or makes mistakes on dense material. JiuwenClaw uses openJiuwen’s **context offload** to **archive bulky content** when counts or token thresholds are exceeded—like clearing a cluttered desk: large or secondary material is summarized and indexed with `[[OFFLOAD:...]]` markers so the active window stays focused.+Long chats hit **context window limits**: the model slows, forgets early details, or makes mistakes on dense material. JiuwenSwarm uses openJiuwen’s **context offload** to **archive bulky content** when counts or token thresholds are exceeded—like clearing a cluttered desk: large or secondary material is summarized and indexed with `[[OFFLOAD:...]]` markers so the active window stays focused.## Configuration (high level)diff --git a/docs/en/Discord.md b/docs/en/Discord.mdindex 5a923924d4..c1999900c0 100644--- a/docs/en/Discord.md+++ b/docs/en/Discord.md@@ -1,10 +1,10 @@# Discord Channel Setup-This guide walks through creating a Discord application and bot in the [Discord Developer Portal](https://discord.com/developers/applications), enabling the intents and install options JiuwenClaw needs, and wiring the bot into **Channel Management** in JiuwenClaw.+This guide walks through creating a Discord application and bot in the [Discord Developer Portal](https://discord.com/developers/applications), enabling the intents and install options JiuwenSwarm needs, and wiring the bot into **Channel Management** in JiuwenSwarm.## What This Repo Uses-- Python channel: `jiuwenclaw/channel/discord_channel.py` (discord.py)+- Python channel: `jiuwenswarm/channel/discord_channel.py` (discord.py)- Runtime config: `channels/discord` in your `config.yaml` (or the web UI **Channel Management** → Discord)The bot connects with your **Bot Token**, receives messages in configured guild channels and/or DMs (unless you turn off DMs), and can add a 👀 reaction while processing, similar to other channels.@@ -38,16 +38,16 @@ You will use this application for both **OAuth2 / installation** and the **Bot****Security**- Treat the token like a password. Anyone with it can control your bot.-- Paste it into JiuwenClaw’s Discord settings or `config.yaml`; do not commit it to git.+- Paste it into JiuwenSwarm’s Discord settings or `config.yaml`; do not commit it to git.- If it leaks, reset the token again in the same place.-You will map this value to **`bot_token`** in JiuwenClaw.+You will map this value to **`bot_token`** in JiuwenSwarm.---## 3. Enable Message Content Intent-JiuwenClaw reads the text of messages your bot receives. Discord requires an explicit privileged intent for that.+JiuwenSwarm reads the text of messages your bot receives. Discord requires an explicit privileged intent for that.1. Stay on the **Bot** page.2. Under **Privileged Gateway Intents**, turn on **MESSAGE CONTENT INTENT**.@@ -61,7 +61,7 @@ Without this, the bot may connect but will not see normal message text content.## 4. Guild install: scopes and bot permissions-Configure how the bot is installed into servers and what it can do there. Typical needs for JiuwenClaw:+Configure how the bot is installed into servers and what it can do there. Typical needs for JiuwenSwarm:- **Read** messages in the channels you care about- **Send** messages (replies)@@ -94,12 +94,12 @@ Copy the **generated URL** or **Install link** from the portal and open it in aAfter installation:-- For **server** use: place the bot in a channel JiuwenClaw will listen to (see `guild_id` / `channel_id` below).-- For **DM** use: users can open a private message with the bot (if not blocked by **`block_dm`** in JiuwenClaw).+- For **server** use: place the bot in a channel JiuwenSwarm will listen to (see `guild_id` / `channel_id` below).+- For **DM** use: users can open a private message with the bot (if not blocked by **`block_dm`** in JiuwenSwarm).----## 6. IDs you need for JiuwenClaw+## 6. IDs you need for JiuwenSwarm| Value | Where to find it ||--------|------------------|@@ -116,11 +116,11 @@ https://discord.com/channels/<guild_id>/<channel_id>----## 7. Configure Discord in JiuwenClaw (Channel Management)+## 7. Configure Discord in JiuwenSwarm (Channel Management)-Open the JiuwenClaw web UI → **Channel Management** → **Discord**, or edit:+Open the JiuwenSwarm web UI → **Channel Management** → **Discord**, or edit:-`~/.jiuwenclaw/config/config.yaml` (path may differ on your machine)+`~/.jiuwenswarm/config/config.yaml` (path may differ on your machine)Example:@@ -172,7 +172,7 @@ channels:### DMs not working- Perform **User install** in Discord.-- In JiuwenClaw, ensure **`block_dm`** is `false`.+- In JiuwenSwarm, ensure **`block_dm`** is `false`.- Users may need to open the bot’s profile and **Message** after installing.### LLM or downstream errorsdiff --git a/docs/en/DistributedTeam.md b/docs/en/DistributedTeam.mdindex 0691bfdbe5..1a85152333 100644--- a/docs/en/DistributedTeam.md+++ b/docs/en/DistributedTeam.md@@ -2,7 +2,7 @@This guide is for **development and integration testing**: how distributed Team (`team.runtime.mode=distributed` + `pyzmq`) maps to AgentServer / `TeamManager`, where config and code live, and how to run leader and teammate from two separate config roots for end-to-end verification. There is no separate runtime binary; the entry point remains the unified AgentServer.-The main config file is usually `~/.jiuwenclaw/config/config.yaml`. Override the directory with `JIUWENCLAW_CONFIG_DIR` (same as [Configuration](Configuration.md)).+The main config file is usually `~/.jiuwenswarm/config/config.yaml`. Override the directory with `JIUWENCLAW_CONFIG_DIR` (same as [Configuration](Configuration.md)).[中文版(Chinese)](../zh/分布式Team.md)@@ -15,9 +15,9 @@ The main config file is usually `~/.jiuwenclaw/config/config.yaml`. Override the| **Mode** | `team.runtime.mode`: `local \| distributed` || **Role** | `team.runtime.role`: `leader \| teammate` || **Transport** | `team.transport.type`: `inprocess \| pyzmq`; distributed setups typically use `pyzmq` |-| **Entry** | `TeamManager` (`jiuwenclaw/agents/harness/team/team_manager.py`): normalizes transport / identity before building `TeamAgentSpec` |-| **Loading** | `load_team_spec_dict()` (`jiuwenclaw/agents/harness/team/config_loader.py`): `name` / `display_name` compatibility for leader and `predefined_members` |-| **Sample** | `jiuwenclaw/resources/config.team.distributed.leader.yaml` / `config.team.distributed.teammate.yaml` (current role-specific templates) |+| **Entry** | `TeamManager` (`jiuwenswarm/agents/harness/team/team_manager.py`): normalizes transport / identity before building `TeamAgentSpec` |+| **Loading** | `load_team_spec_dict()` (`jiuwenswarm/agents/harness/team/config_loader.py`): `name` / `display_name` compatibility for leader and `predefined_members` |+| **Sample** | `jiuwenswarm/resources/config.team.distributed.leader.yaml` / `config.team.distributed.teammate.yaml` (current role-specific templates) |**Session semantics**: aligned with regular Team—**single active session** per process: creating a Team for a new session tears down other session Teams first. This document does not add a multi-session routing layer for distributed mode.@@ -33,7 +33,7 @@ Typical keys for distributed integration (templates: `config.team.distributed.le| `team.runtime.role` | Whether this process is `leader` or `teammate` || `team.runtime.member_name` | Default teammate identity; after bootstrap it adopts the member name dynamically requested by the leader || `team.transport.type` | `pyzmq` |-| `react.a2x_registry` | Teammates register idle nodes at startup; leaders reserve idle teammates from the registry before teaming. **The registry is not bundled with jiuwenclaw**: clone upstream [agent-protocol (`feature/Agentregistry`)](https://gitcode.com/openJiuwen/agent-protocol/tree/feature/Agentregistry) and deploy it as a separate service per that repo's instructions |+| `react.a2x_registry` | Teammates register idle nodes at startup; leaders reserve idle teammates from the registry before teaming. **The registry is not bundled with jiuwenswarm**: clone upstream [agent-protocol (`feature/Agentregistry`)](https://gitcode.com/openJiuwen/agent-protocol/tree/feature/Agentregistry) and deploy it as a separate service per that repo's instructions || `team.transport.params` | This process' `direct_addr` / `bootstrap_direct_addr`, `pubsub_*`, etc.; leaders do not need static teammate `known_peers` || `team.predefined_members` | Backward-compatible static member declaration; not required for current blank-teammate integration || `team.storage` | For multi-process setups, `connection_string` must point to a **shared** DB (e.g. the same sqlite path visible to all nodes) |@@ -137,12 +137,12 @@ The current implementation is explicitly split:The role templates in the repo are now **complete `config.yaml` files**. They include the base agent/model config, A2X registry config, the top-level `team` runtime marker, and the actual `modes.team.jiuwen_team` TeamAgentSpec config. For deployment, copy one template directly into the matching HOME config path; no manual merge with the default `config.yaml` is required.-- `jiuwenclaw/resources/config.team.distributed.leader.yaml`-- `jiuwenclaw/resources/config.team.distributed.teammate.yaml`+- `jiuwenswarm/resources/config.team.distributed.leader.yaml`+- `jiuwenswarm/resources/config.team.distributed.teammate.yaml`Suggested workflow:-1. Copy each complete template into the matching config root (`<LEADER_HOME>/.jiuwenclaw/config/config.yaml` and `<TEAMMATE_HOME>/.jiuwenclaw/config/config.yaml`).+1. Copy each complete template into the matching config root (`<LEADER_HOME>/.jiuwenswarm/config/config.yaml` and `<TEAMMATE_HOME>/.jiuwenswarm/config/config.yaml`).2. Adjust:- `react.a2x_registry.base_url` / `dataset` so leader and teammate use the same registry dataset.- teammate `team.transport.params.bootstrap_direct_addr` or `react.a2x_registry.endpoint` so the registry advertises a reachable address.@@ -155,14 +155,14 @@ Minimal ready-to-use copy commands for the complete templates:```bash# leader-mkdir -p "<LEADER_HOME>/.jiuwenclaw/config"-cp "<REPO_ROOT>/jiuwenclaw/resources/config.team.distributed.leader.yaml" \- "<LEADER_HOME>/.jiuwenclaw/config/config.yaml"+mkdir -p "<LEADER_HOME>/.jiuwenswarm/config"+cp "<REPO_ROOT>/jiuwenswarm/resources/config.team.distributed.leader.yaml" \+ "<LEADER_HOME>/.jiuwenswarm/config/config.yaml"# teammate-mkdir -p "<TEAMMATE_HOME>/.jiuwenclaw/config"-cp "<REPO_ROOT>/jiuwenclaw/resources/config.team.distributed.teammate.yaml" \- "<TEAMMATE_HOME>/.jiuwenclaw/config/config.yaml"+mkdir -p "<TEAMMATE_HOME>/.jiuwenswarm/config"+cp "<REPO_ROOT>/jiuwenswarm/resources/config.team.distributed.teammate.yaml" \+ "<TEAMMATE_HOME>/.jiuwenswarm/config/config.yaml"```---@@ -173,8 +173,8 @@ Use **two separate HOME trees** (or two `JIUWENCLAW_CONFIG_DIR` values) for leadPlaceholders:-- **Leader config dir**: `<LEADER_HOME>/.jiuwenclaw/config`-- **Teammate config dir**: `<TEAMMATE_HOME>/.jiuwenclaw/config`+- **Leader config dir**: `<LEADER_HOME>/.jiuwenswarm/config`+- **Teammate config dir**: `<TEAMMATE_HOME>/.jiuwenswarm/config`Both sides must agree on:@@ -190,7 +190,7 @@ Note: the distributed templates explicitly configure the team workspace root:team:workspace:enabled: true- root_path: ${JIUWEN_TEAM_WORKSPACE_ROOT:-/tmp/jiuwenclaw/shared_workspace/jiuwen_team}+ root_path: ${JIUWEN_TEAM_WORKSPACE_ROOT:-/tmp/jiuwenswarm/shared_workspace/jiuwen_team}version_control: false```@@ -200,8 +200,8 @@ NFS scripts, checks, and teardown: see `scripts/nfs/README.md`.Unless both sides explicitly configure a jointly visible workspace root, leader and teammate create local directories under their own HOME:-- `<LEADER_HOME>/.jiuwenclaw/.agent_teams/<team_name>/team-workspace`-- `<TEAMMATE_HOME>/.jiuwenclaw/.agent_teams/<team_name>/team-workspace`+- `<LEADER_HOME>/.jiuwenswarm/.agent_teams/<team_name>/team-workspace`+- `<TEAMMATE_HOME>/.jiuwenswarm/.agent_teams/<team_name>/team-workspace`These paths have the same shape but are not the same physical directory. If the leader must directly read files written by a teammate, configure a shared `team.workspace.root_path` or return results through messages, DB state, or file transfer tooling.@@ -217,7 +217,7 @@ Replace `<REPO_ROOT>`, `<LEADER_HOME>`, `<TEAMMATE_HOME>` with paths on your macRun the registry **as its own process**, separate from leader/teammate:-Follow the [agent-protocol Agent Team quick start](https://gitcode.com/openJiuwen/agent-protocol/blob/feature/Agentregistry/README_forAgentTeam.md). Since `0.1.6`, the default install is the lightweight Agent Team build: SDK, FastAPI, uvicorn, and a few small runtime dependencies only. The registry backend starts empty; it does not need preloaded data or LLM config. Teammate registration, leader lookup/reservation, and reservation leases are handled by the `jiuwenclaw` client-side integration.+Follow the [agent-protocol Agent Team quick start](https://gitcode.com/openJiuwen/agent-protocol/blob/feature/Agentregistry/README_forAgentTeam.md). Since `0.1.6`, the default install is the lightweight Agent Team build: SDK, FastAPI, uvicorn, and a few small runtime dependencies only. The registry backend starts empty; it does not need preloaded data or LLM config. Teammate registration, leader lookup/reservation, and reservation leases are handled by the `jiuwenswarm` client-side integration.Install (Python >= 3.10):@@ -259,7 +259,7 @@ GIT_AUTHOR_EMAIL="[email protected]" \GIT_COMMITTER_NAME="teambot" \GIT_COMMITTER_EMAIL="[email protected]" \AGENT_SERVER_PORT=28193 \-uv run python -m jiuwenclaw.server.app_agentserver+uv run python -m jiuwenswarm.server.app_agentserver```After startup, the teammate registers its `bootstrap_direct_addr` as a blank agent, for example `endpoint=tcp://127.0.0.1:28610`.@@ -275,7 +275,7 @@ GIT_COMMITTER_EMAIL="[email protected]" \AGENT_SERVER_PORT=28192 \GATEWAY_PORT=29101 \WEB_PORT=29100 \-uv run python -m jiuwenclaw.app+uv run python -m jiuwenswarm.app```Leader does not need a static teammate endpoint; `spawn_member` obtains an idle teammate through registry `reserve_blank_agents`.@@ -283,7 +283,7 @@ Leader does not need a static teammate endpoint; `spawn_member` obtains an idle### 6.4 Web UI (optional)```bash-cd "<REPO_ROOT>/jiuwenclaw/channels/web/frontend"+cd "<REPO_ROOT>/jiuwenswarm/channels/web/frontend"VITE_WS_BASE="ws://localhost:29100" npm run dev -- --host 0.0.0.0 --port 5173```diff --git a/docs/en/E2A-protocol.md b/docs/en/E2A-protocol.mdindex bf7bf4e909..d137372434 100644--- a/docs/en/E2A-protocol.md+++ b/docs/en/E2A-protocol.md@@ -1,6 +1,6 @@# E2A (Everything-to-Agent) Protocol-> **Implementation**: `jiuwenclaw/e2a/` (`models.py`, `adapters.py`, `constants.py`, `__init__.py`). **Version**: `E2A_PROTOCOL_VERSION` (default `1.0`). **On conflict**: treat the dataclass fields in `models.py` as the source of truth and update this document accordingly. Requests: `E2AEnvelope`; responses: `E2AResponse`.+> **Implementation**: `jiuwenclaw/common/e2a/` (`models.py`, `adapters.py`, `constants.py`, `__init__.py`). **Version**: `E2A_PROTOCOL_VERSION` (default `1.0`). **On conflict**: treat the dataclass fields in `models.py` as the source of truth and update this document accordingly. Requests: `E2AEnvelope`; responses: `E2AResponse`.> **中文版**:[../zh/E2A-protocol.md](../zh/E2A-protocol.md)---@@ -11,11 +11,10 @@|----------|------|| **docs/zh/E2A-protocol.md** | Same specification in Chinese || **docs/en/E2A-protocol.md** (this file) | Normative description, pitfalls, examples (English) |-| `jiuwenclaw/e2a/models.py` | Request `E2AEnvelope`, response `E2AResponse`, nested types; `from_dict` / `to_dict` |-| `jiuwenclaw/e2a/constants.py` | **`E2A_SOURCE_PROTOCOL_*`**, **`E2A_RESPONSE_KINDS`**, **`E2A_RESPONSE_STATUS_*`**, ACP method names and SessionUpdate strings (runtime: use tuples in code) |-| `jiuwenclaw/e2a/adapters.py` | ACP / A2A → E2A; E2A → ACP JSON-RPC; **`E2AResponse` → ACP / A2A projections** (§8) |-| `jiuwenclaw/e2a/__init__.py` | Public exports |-| `jiuwenclaw/e2a/ACP-reference.md` / `A2A-reference.md` | External protocol notes; **not** normative for E2A |+| `jiuwenclaw/common/e2a/models.py` | Request `E2AEnvelope`, response `E2AResponse`, nested types; `from_dict` / `to_dict` |+| `jiuwenclaw/common/e2a/constants.py` | **`E2A_SOURCE_PROTOCOL_*`**, **`E2A_RESPONSE_KINDS`**, **`E2A_RESPONSE_STATUS_*`**, ACP method names and SessionUpdate strings (runtime: use tuples in code) |+| `jiuwenclaw/common/e2a/adapters.py` | ACP / A2A → E2A; E2A → ACP JSON-RPC; **`E2AResponse` → ACP / A2A projections** (§8) |+| `jiuwenclaw/common/e2a/__init__.py` | Public exports |---@@ -126,7 +125,7 @@ Hand-built defaults use `source_protocol` = `e2a`. Legacy `binding` migrates to## 6. ACP strings in `constants.py` (bridge reference)-For ACP bridging and doc cross-check only; **at runtime** use tuples in `jiuwenclaw.e2a.constants`:+For ACP bridging and doc cross-check only; **at runtime** use tuples in `jiuwenclaw.common.e2a.constants`:- **`ACP_CLIENT_TO_AGENT_METHODS`**: client → Agent JSON-RPC method names- **`ACP_AGENT_TO_CLIENT_METHODS`**, **`ACP_NOTIFICATION_NAMES`**: downstream / notifications@@ -139,7 +138,7 @@ For ACP bridging and doc cross-check only; **at runtime** use tuples in `jiuwenc## 7. `merge_params_to_acp_prompt`-Python: `jiuwenclaw.e2a.merge_params_to_acp_prompt(envelope)`.+Python: `jiuwenclaw.common.e2a.merge_params_to_acp_prompt(envelope)`.If and only if **`method == "session/prompt"`**:@@ -386,4 +385,4 @@ Cross-reference: request log normalization in **`E2A-AgentRequest-log-migration.----*Maintained in sync with `jiuwenclaw/e2a/models.py` (`E2AEnvelope`, `E2AResponse`).*+*Maintained in sync with `jiuwenclaw/common/e2a/models.py` (`E2AEnvelope`, `E2AResponse`).*diff --git a/docs/en/Heartbeat.md b/docs/en/Heartbeat.mdindex 2a36241633..9fb590f897 100644--- a/docs/en/Heartbeat.md+++ b/docs/en/Heartbeat.md@@ -89,7 +89,7 @@ Open **Heartbeat** in the sidebar to:## 5. FAQ**Q: I edited `heartbeat` in `config.yaml` but nothing changed.**-A: Config is read at startup. If you use the web panel, it rewrites YAML and restarts the heartbeat service. If you edit YAML by hand, restart the app (e.g. `jiuwenclaw-web`).+A: Config is read at startup. If you use the web panel, it rewrites YAML and restarts the heartbeat service. If you edit YAML by hand, restart the app (e.g. `jiuwenswarm-web`).**Q: Heartbeats only during work hours?**A: Set `heartbeat.active_hours.start` / `end`, e.g. `09:00`–`18:00`.@@ -98,13 +98,13 @@ A: Set `heartbeat.active_hours.start` / `end`, e.g. `09:00`–`18:00`.A: Set `HEARTBEAT_TIMEOUT` (seconds). On timeout the beat is marked failed and a WARNING is logged.**Q: Where must `HEARTBEAT.md` live?**-A: At the DeepAgent workspace root: `~/.jiuwenclaw/agent/jiuwenclaw_workspace/HEARTBEAT.md` (in installed mode) or `jiuwenclaw/resources/agent/jiuwenclaw_workspace/HEARTBEAT.md` (in source mode). Otherwise it is treated as no custom tasks.+A: At the DeepAgent workspace root: `~/.jiuwenswarm/agent/jiuwenswarm_workspace/HEARTBEAT.md` (in installed mode) or `jiuwenswarm/resources/agent/jiuwenswarm_workspace/HEARTBEAT.md` (in source mode). Otherwise it is treated as no custom tasks.---## 6. Code index-- Service: `jiuwenclaw/gateway/heartbeat.py` (`GatewayHeartbeatService`, `HeartbeatConfig`).+- Service: `jiuwenswarm/gateway/heartbeat.py` (`GatewayHeartbeatService`, `HeartbeatConfig`).- Config: `config/config.py` (`update_heartbeat_in_config`); `app.py` builds `HeartbeatConfig` from YAML + env.-- Agent: `jiuwenclaw/server/runtime/agent_adapter/interface.py` reads `HEARTBEAT.md` when `request.params` indicates heartbeat.-- Web: `jiuwenclaw/channels/web/frontend/src/components/HeartbeatPanel/`, `heartbeat.get_conf` / `heartbeat.set_conf`, `heartbeat.relay`.+- Agent: `jiuwenswarm/server/runtime/agent_adapter/interface.py` reads `HEARTBEAT.md` when `request.params` indicates heartbeat.+- Web: `jiuwenswarm/channels/web/frontend/src/components/HeartbeatPanel/`, `heartbeat.get_conf` / `heartbeat.set_conf`, `heartbeat.relay`.diff --git a/docs/en/InstallGuide.md b/docs/en/InstallGuide.mdindex 973c66e933..6ee6ab90df 100644--- a/docs/en/InstallGuide.md+++ b/docs/en/InstallGuide.md@@ -1,12 +1,12 @@-# JiuwenClaw install guide+# JiuwenSwarm install guide-> **Important:** Finishing installation does not mean the app is ready to use. You must complete model configuration first. See [Configuration](https://gitcode.com/openJiuwen/jiuwenclaw/blob/develop/docs/en/Configuration.md) ([Chinese](https://gitcode.com/openJiuwen/jiuwenclaw/blob/develop/docs/zh/%E9%85%8D%E7%BD%AE%E4%BF%A1%E6%81%AF.md)) for model setup.+> **Important:** Finishing installation does not mean the app is ready to use. You must complete model configuration first. See [Configuration](https://gitcode.com/openJiuwen/jiuwenswarm/blob/develop/docs/en/Configuration.md) ([Chinese](https://gitcode.com/openJiuwen/jiuwenswarm/blob/develop/docs/zh/%E9%85%8D%E7%BD%AE%E4%BF%A1%E6%81%AF.md)) for model setup.---## Prerequisites-Before installing JiuwenClaw, make sure your system meets the following requirements:+Before installing JiuwenSwarm, make sure your system meets the following requirements:| Dependency | Version | Notes ||------------|---------|-------|@@ -43,28 +43,28 @@ git --version```bash# Create a virtual environment (recommended)-python -m venv jiuwenclaw-env+python -m venv jiuwenswarm-env# Activate the virtual environment# Windows:-jiuwenclaw-env\Scripts\activate+jiuwenswarm-env\Scripts\activate# macOS/Linux:-source jiuwenclaw-env/bin/activate+source jiuwenswarm-env/bin/activate-# Install JiuwenClaw-pip install jiuwenclaw+# Install JiuwenSwarm+pip install jiuwenswarm```#### 2. First launch```bash-# Initialize JiuwenClaw (first run)-jiuwenclaw-init-# Start JiuwenClaw-jiuwenclaw-start+# Initialize JiuwenSwarm (first run)+jiuwenswarm-init+# Start JiuwenSwarm+jiuwenswarm-start```-After the first start, the app creates the config directory `~/.jiuwenclaw/`.+After the first start, the app creates the config directory `~/.jiuwenswarm/`.#### 3. Post-start verification@@ -79,15 +79,15 @@ After a successful start, verify the installation:-> 💡 **Tip:** If the Web UI does not load, check `~/.jiuwenclaw/logs/` for errors.+> 💡 **Tip:** If the Web UI does not load, check `~/.jiuwenswarm/logs/` for errors.#### 4. Restarting the service-If you closed JiuwenClaw and want to run it again:+If you closed JiuwenSwarm and want to run it again:```bash# Start again-jiuwenclaw-start+jiuwenswarm-start```---@@ -108,10 +108,10 @@ uv --version```bash# Clone the repository-git clone https://gitcode.com/openJiuwen/jiuwenclaw.git+git clone https://gitcode.com/openJiuwen/jiuwenswarm.git# Enter project directory-cd jiuwenclaw+cd jiuwenswarm# Create venv and install dependencies with uvuv venv@@ -123,8 +123,8 @@ uv pip install -e .> ⚠️ **Important:** With a source (editable) install you must build the front end manually, or startup will fail with `dist directory not found`.```bash-# Enter front-end directory (repo root is jiuwenclaw)-cd jiuwenclaw/channels/web+# Enter front-end directory (repo root is jiuwenswarm)+cd jiuwenswarm/channels/web# Install front-end dependenciesnpm install@@ -134,9 +134,9 @@ npm run build# Copy build output into the user workspace# Windows:-xcopy /E /I dist %USERPROFILE%\.jiuwenclaw\channels\web\frontend\dist+xcopy /E /I dist %USERPROFILE%\.jiuwenswarm\channels\web\frontend\dist# macOS/Linux:-cp -r dist ~/.jiuwenclaw/channels/web/frontend/dist+cp -r dist ~/.jiuwenswarm/channels/web/frontend/dist# Back to repo rootcd ..@@ -146,7 +146,7 @@ cd ..- `uv pip install -e .` is an editable install that points at your source tree.- `web/dist` is ignored by `.gitignore` and is not shipped in the repo.-- You must build and copy artifacts to `~/.jiuwenclaw/channels/web/frontend/dist`.+- You must build and copy artifacts to `~/.jiuwenswarm/channels/web/frontend/dist`.#### 4. First launch@@ -157,10 +157,10 @@ cd ..# macOS/Linux:source .venv/bin/activate-# Initialize JiuwenClaw (first run)-jiuwenclaw-init+# Initialize JiuwenSwarm (first run)+jiuwenswarm-init# Start-jiuwenclaw-start+jiuwenswarm-start```#### 5. Post-start verification (same as Option 1)@@ -171,7 +171,7 @@ Use the checklist under [Post-start verification](#3-post-start-verification).```bash# After activating the virtual environment-jiuwenclaw-start+jiuwenswarm-start```---@@ -192,24 +192,24 @@ conda --version```bash# Create environment-conda create -n jiuwenclaw python=3.11+conda create -n jiuwenswarm python=3.11# Initialize conda (first time)conda init# After init, close the window and open a new session before activate# Activate environment-conda activate jiuwenclaw+conda activate jiuwenswarm```#### 3. Clone and install```bash# Clone the repository-git clone https://gitcode.com/openJiuwen/jiuwenclaw.git+git clone https://gitcode.com/openJiuwen/jiuwenswarm.git# Enter project directory-cd jiuwenclaw+cd jiuwenswarm# Install dependenciespip install -e .@@ -220,8 +220,8 @@ pip install -e .> ⚠️ **Important:** With a source (editable) install you must build the front end manually, or startup will fail with `dist directory not found`.```bash-# Enter front-end directory (repo root is jiuwenclaw)-cd jiuwenclaw/channels/web+# Enter front-end directory (repo root is jiuwenswarm)+cd jiuwenswarm/channels/web# Install front-end dependenciesnpm install@@ -231,9 +231,9 @@ npm run build# Copy build output into the user workspace# Windows:-xcopy /E /I dist %USERPROFILE%\.jiuwenclaw\channels\web\frontend\dist+xcopy /E /I dist %USERPROFILE%\.jiuwenswarm\channels\web\frontend\dist# macOS/Linux:-cp -r dist ~/.jiuwenclaw/channels/web/frontend/dist+cp -r dist ~/.jiuwenswarm/channels/web/frontend/dist# Back to repo rootcd ..@@ -243,15 +243,15 @@ cd ..- `pip install -e .` is an editable install that points at your source tree.- `web/dist` is ignored by `.gitignore` and is not shipped in the repo.-- You must build and copy artifacts to `~/.jiuwenclaw/channels/web/frontend/dist`.+- You must build and copy artifacts to `~/.jiuwenswarm/channels/web/frontend/dist`.#### 5. First launch```bash-# Initialize JiuwenClaw (first run)-jiuwenclaw-init+# Initialize JiuwenSwarm (first run)+jiuwenswarm-init# Start-jiuwenclaw-start+jiuwenswarm-start```#### 6. Post-start verification (same as Option 1)@@ -262,8 +262,8 @@ Use the checklist under [Post-start verification](#3-post-start-verification).```bash# Activate environment, then start-conda activate jiuwenclaw-jiuwenclaw-start+conda activate jiuwenswarm+jiuwenswarm-start```---@@ -284,14 +284,14 @@ jiuwenclaw-start```bash# Activate your virtual environment# Then upgrade-pip install --upgrade jiuwenclaw+pip install --upgrade jiuwenswarm```#### Source install upgrade```bash# Enter project directory-cd jiuwenclaw+cd jiuwenswarm# Pull latestgit pull@@ -300,15 +300,15 @@ git pullpip install -e .# Rebuild the front end (if it was updated)-cd jiuwenclaw/channels/web+cd jiuwenswarm/channels/webnpm installnpm run build# Copy build output# Windows:-xcopy /E /I dist %USERPROFILE%\.jiuwenclaw\channels\web\frontend\dist+xcopy /E /I dist %USERPROFILE%\.jiuwenswarm\channels\web\frontend\dist# macOS/Linux:-cp -r dist ~/.jiuwenclaw/channels/web/frontend/dist+cp -r dist ~/.jiuwenswarm/channels/web/frontend/distcd ..```@@ -325,20 +325,20 @@ cd ..```bash# Back up the whole config and data directory-xcopy "%USERPROFILE%\.jiuwenclaw" "%USERPROFILE%\.jiuwenclaw_backup" /E /I+xcopy "%USERPROFILE%\.jiuwenswarm" "%USERPROFILE%\.jiuwenswarm_backup" /E /I# Or with PowerShell (recommended)-Copy-Item -Path "$env:USERPROFILE\.jiuwenclaw" -Destination "$env:USERPROFILE\.jiuwenclaw_backup" -Recurse+Copy-Item -Path "$env:USERPROFILE\.jiuwenswarm" -Destination "$env:USERPROFILE\.jiuwenswarm_backup" -Recurse```**macOS/Linux:**```bash# Back up the whole config and data directory-cp -r ~/.jiuwenclaw ~/.jiuwenclaw_backup+cp -r ~/.jiuwenswarm ~/.jiuwenswarm_backup# Or with rsync (recommended; preserves permissions)-rsync -av ~/.jiuwenclaw ~/.jiuwenclaw_backup+rsync -av ~/.jiuwenswarm ~/.jiuwenswarm_backup```**What to back up:**@@ -354,11 +354,11 @@ rsync -av ~/.jiuwenclaw ~/.jiuwenclaw_backup#### 2. Perform the upgrade-Pick the steps that match how you installed JiuwenClaw:+Pick the steps that match how you installed JiuwenSwarm:##### pip install upgrade-Follow the same steps as [Routine version upgrade – pip install upgrade](#pip-install-upgrade) (activate your virtual environment, then run `pip install --upgrade jiuwenclaw`).+Follow the same steps as [Routine version upgrade – pip install upgrade](#pip-install-upgrade) (activate your virtual environment, then run `pip install --upgrade jiuwenswarm`).##### Source install upgrade@@ -375,7 +375,7 @@ After upgrading, migrate data so config and stores match the new version.cat docs/config_template.yaml# Or read the changelog-# https://gitcode.com/openJiuwen/jiuwenclaw/blob/develop/docs/CHANGELOG.md+# https://gitcode.com/openJiuwen/jiuwenswarm/blob/develop/docs/CHANGELOG.md```##### Step 2: Migrate configuration@@ -391,7 +391,7 @@ cat docs/config_template.yaml```bash# Back up the new default config- cp ~/.jiuwenclaw/config/config.yaml ~/.jiuwenclaw/config/config.yaml.new+ cp ~/.jiuwenswarm/config/config.yaml ~/.jiuwenswarm/config/config.yaml.new# Restore from backup (use with care)# Prefer diff/merge in an editor instead of blind overwrite@@ -412,20 +412,20 @@ Memory is usually backward compatible; still verify:```bash# Inspect memory layout-ls ~/.jiuwenclaw/agent/memory/+ls ~/.jiuwenswarm/agent/memory/# If something looks wrong, restore from backup-cp -r ~/.jiuwenclaw_backup/agent/memory/* ~/.jiuwenclaw/agent/memory/+cp -r ~/.jiuwenswarm_backup/agent/memory/* ~/.jiuwenswarm/agent/memory/```##### Step 4: Verify migration```bash# Start the service-jiuwenclaw-start+jiuwenswarm-start# Watch logs for config errors-# Logs: ~/.jiuwenclaw/logs/+# Logs: ~/.jiuwenswarm/logs/```**Migration checklist:**@@ -451,22 +451,22 @@ Install Node.js 18.x or newer.### Q: How do I check the installed version?```bash-jiuwenclaw --version+jiuwenswarm --version```### Q: How do I uninstall?```bash-pip uninstall jiuwenclaw+pip uninstall jiuwenswarm```---## Related links-- **Repository:** https://gitcode.com/openJiuwen/jiuwenclaw-- **Issues:** https://gitcode.com/openJiuwen/jiuwenclaw/issues-- **Docs:** https://gitcode.com/openJiuwen/jiuwenclaw/tree/develop/docs+- **Repository:** https://gitcode.com/openJiuwen/jiuwenswarm+- **Issues:** https://gitcode.com/openJiuwen/jiuwenswarm/issues+- **Docs:** https://gitcode.com/openJiuwen/jiuwenswarm/tree/develop/docs---diff --git a/docs/en/MCPConfiguration.md b/docs/en/MCPConfiguration.mdindex 48abae9d99..f4ea41415e 100644--- a/docs/en/MCPConfiguration.md+++ b/docs/en/MCPConfiguration.md@@ -1,6 +1,6 @@# MCP Server Configuration-JiuwenClaw supports connecting to external tool services via MCP (Model Context Protocol). MCP lets the Agent call tools provided by third-party services, extending its capabilities.+JiuwenSwarm supports connecting to external tool services via MCP (Model Context Protocol). MCP lets the Agent call tools provided by third-party services, extending its capabilities.---diff --git a/docs/en/Memory.md b/docs/en/Memory.mdindex 9c599a0e5f..fb64e61e60 100644--- a/docs/en/Memory.md+++ b/docs/en/Memory.md@@ -1,6 +1,6 @@# Memory-Memory gives JiuwenClaw **persistent, cross-session recall**: important facts are written to files and retrieved with semantic search (plus optional BM25).+Memory gives JiuwenSwarm **persistent, cross-session recall**: important facts are written to files and retrieved with semantic search (plus optional BM25).**External Memory Providers**, supporting third-party memory services (OpenJiuwen LTM, Mem0, OpenViking) or custom plugins.@@ -66,10 +66,10 @@ memory:| Provider | Description | Required Config ||----------|-------------|-----------------|-| `openjiuwen` | Local long-term memory (KV + Vector + DB) | None (uses default ~/.jiuwenclaw/memory/ltm) |+| `openjiuwen` | Local long-term memory (KV + Vector + DB) | None (uses default ~/.jiuwenswarm/memory/ltm) || `mem0` | Cloud fact extraction & semantic retrieval | `api_key` (from mem0.ai) || `openviking` | ByteDance context database | `endpoint`, `api_key` |-| `<plugin-name>` | Custom plugin | ~/.jiuwenclaw/plugins/memory/<name>/ |+| `<plugin-name>` | Custom plugin | ~/.jiuwenswarm/plugins/memory/<name>/ |#### External Memory Environment Variables@@ -151,7 +151,7 @@ Memory is plain Markdown; the agent uses file tools:## Dreaming: Sleep-Time Memory Consolidation-In addition to in-session writes by the agent, JiuwenClaw provides **Dreaming**: a sleep-time mechanism that periodically scans past sessions during idle time, calls an LLM to extract content worth keeping long-term, and writes the result to persistent memory files. Agent and Code modes share the same pipeline.+In addition to in-session writes by the agent, JiuwenSwarm provides **Dreaming**: a sleep-time mechanism that periodically scans past sessions during idle time, calls an LLM to extract content worth keeping long-term, and writes the result to persistent memory files. Agent and Code modes share the same pipeline.| Mode | Extraction target | Output ||------|-------------------|--------|diff --git a/docs/en/Modes.md b/docs/en/Modes.mdindex 5a30351f41..9a14653eb5 100644--- a/docs/en/Modes.md+++ b/docs/en/Modes.md@@ -1,6 +1,6 @@# Modes-JiuwenClaw supports multiple runtime modes, each with its own tool set, permission policy, and memory behavior. Users can switch modes during a conversation using the `/mode` command.+JiuwenSwarm supports multiple runtime modes, each with its own tool set, permission policy, and memory behavior. Users can switch modes during a conversation using the `/mode` command.---diff --git a/docs/en/MultiInstance.md b/docs/en/MultiInstance.mdindex 8b775f3719..b2dd76ba13 100644--- a/docs/en/MultiInstance.md+++ b/docs/en/MultiInstance.md@@ -1,6 +1,6 @@# Multi-Instance Operation-Run multiple independent JiuwenClaw instances on the same machine, each with isolated workspace, configuration, and ports.+Run multiple independent JiuwenSwarm instances on the same machine, each with isolated workspace, configuration, and ports.## Use Cases@@ -29,7 +29,7 @@ Each instance has independent:- Length: 1-64 characters- Allowed characters: letters, digits, underscore, hyphen- Cannot start with `.`-- Reserved names: `default`, `config`, `tmp`, `jiuwenclaw`, `all`+- Reserved names: `default`, `config`, `tmp`, `jiuwenswarm`, `all`---@@ -37,19 +37,19 @@ Each instance has independent:### instances.yaml-Location: `~/.jiuwenclaw/instances.yaml` (or repository root)+Location: `~/.jiuwenswarm/instances.yaml` (or repository root)```yamlinstances:dev:- workspace: ~/.jiuwenclaw_dev+ workspace: ~/.jiuwenswarm_devports:agent_server: 19092web: 20000gateway: 20001frontend: 6173prod:- workspace: ~/.jiuwenclaw_prod+ workspace: ~/.jiuwenswarm_prodports:agent_server: 20092web: 21000@@ -72,16 +72,16 @@ Default port = base port + instance index × 1000## Commands-### jiuwenclaw-init --name+### jiuwenswarm-init --nameCreate a named instance:```bash# Create dev instance-jiuwenclaw-init --name dev+jiuwenswarm-init --name dev# Create prod instance with specified workspace-jiuwenclaw-init --name prod --workspace ~/.jiuwenclaw_prod+jiuwenswarm-init --name prod --workspace ~/.jiuwenswarm_prod```This will:@@ -90,33 +90,33 @@ This will:3. Update `instances.yaml` configuration4. Allocate ports (auto or manual)-### jiuwenclaw-start Management Commands+### jiuwenswarm-start Management Commands```bash# List all instance statuses-jiuwenclaw-start --list+jiuwenswarm-start --list# Output example:# INSTANCE STATUS PID WORKSPACE PORTS# ---------------------------------------------------------------------------------# default running 12345 ~/.jiuwenclaw as:18092,w:19000,g:19001,f:5173-# dev stopped - ~/.jiuwenclaw_dev as:19092,w:20000,g:20001,f:6173-# prod stopped - ~/.jiuwenclaw_prod as:20092,w:21000,g:21001,f:7173+# default running 12345 ~/.jiuwenswarm as:18092,w:19000,g:19001,f:5173+# dev stopped - ~/.jiuwenswarm_dev as:19092,w:20000,g:20001,f:6173+# prod stopped - ~/.jiuwenswarm_prod as:20092,w:21000,g:21001,f:7173# Show specific instance details-jiuwenclaw-start --status dev+jiuwenswarm-start --status dev# Start named instance-jiuwenclaw-start --name dev-jiuwenclaw-start --name dev app # Start backend only-jiuwenclaw-start --name dev web # Start web service only+jiuwenswarm-start --name dev+jiuwenswarm-start --name dev app # Start backend only+jiuwenswarm-start --name dev web # Start web service only# Stop instance-jiuwenclaw-start --stop dev+jiuwenswarm-start --stop dev# Restart instance-jiuwenclaw-start --restart dev-jiuwenclaw-start --restart dev --mode app+jiuwenswarm-start --restart dev+jiuwenswarm-start --restart dev --mode app```---@@ -144,15 +144,15 @@ If lock conflict occurs during startup:| Variable | Description ||----------|-------------|-| `JIUWENCLAW_DATA_DIR` | Override data root directory (affects instances.yaml location) |+| `JIUWENSWARM_DATA_DIR` | Override data root directory (affects instances.yaml location) || `JIUWENCLAW_CONFIG_DIR` | Override configuration directory |Use `--dotenv` at startup to specify instance-specific config:```bash# Internal mechanism: bootstrap .env is auto-loaded when starting named instance-jiuwenclaw-start --name dev-# Equivalent to loading ~/.jiuwenclaw_dev/.env+jiuwenswarm-start --name dev+# Equivalent to loading ~/.jiuwenswarm_dev/.env```---@@ -177,7 +177,7 @@ Avoid port conflicts:```bash# Check port usage-jiuwenclaw-start --status dev+jiuwenswarm-start --status dev# System auto-detects and reports conflicts```@@ -200,7 +200,7 @@ MODEL_NAME="gpt-4"Instance workspace contains all Agent runtime data:```-~/.jiuwenclaw_dev/+~/.jiuwenswarm_dev/├── .env # Instance config├── .instance.pid # Process management├── .instance.lock # Startup lock@@ -221,13 +221,13 @@ Instance workspace contains all Agent runtime data:Manually remove workspace directory and instances.yaml entry:```bash-rm -rf ~/.jiuwenclaw_dev-# Edit ~/.jiuwenclaw/instances.yaml to remove corresponding entry+rm -rf ~/.jiuwenswarm_dev+# Edit ~/.jiuwenswarm/instances.yaml to remove corresponding entry```### Q: Difference between default and named instances?-- **Default instance**: Started without `--name`, uses `~/.jiuwenclaw/` workspace+- **Default instance**: Started without `--name`, uses `~/.jiuwenswarm/` workspace- **Named instance**: Specified via `--name`, uses independent workspace and ports### Q: Can instances share configuration?@@ -235,7 +235,7 @@ rm -rf ~/.jiuwenclaw_devYes. Reference shared config in instance `.env`:```bash-# ~/.jiuwenclaw_dev/.env-source ~/.jiuwenclaw/.env # Shared base config+# ~/.jiuwenswarm_dev/.env+source ~/.jiuwenswarm/.env # Shared base configMODEL_NAME="special-model" # Instance-specific override```\ No newline at end of filediff --git a/docs/en/PackExeGuide.md b/docs/en/PackExeGuide.mdindex aa613adb4a..c4e431f933 100644--- a/docs/en/PackExeGuide.md+++ b/docs/en/PackExeGuide.md@@ -15,7 +15,7 @@ This guide explains how to build a desktop app with **uv**, **PyInstaller**, and|------|------|| `scripts/jiuwenclaw.spec` | PyInstaller spec || `scripts/jiuwenclaw_exe_entry.py` | Exe entry (desktop mode + subcommands) |-| `jiuwenclaw/desktop_app.py` | pywebview window and local server |+| `jiuwenclaw/channels/desktop/desktop_app.py` | pywebview window and local server || `scripts/build-exe.ps1` | One-shot build (PowerShell) || `scripts/build-exe.bat` | One-shot build (batch) || `scripts/build-macos.sh` | macOS `.app` + `.dmg` |@@ -63,7 +63,7 @@ Static files land in `jiuwenclaw/channels/web/frontend/dist`.uv run pyinstaller scripts/jiuwenclaw.spec```-Output: `dist/jiuwenclaw/`, main binary `dist/jiuwenclaw/jiuwenclaw.exe`.+Output: `dist/jiuwenswarm/`, main binary `dist/jiuwenswarm/jiuwenswarm.exe`.## Using the Windows build@@ -72,35 +72,35 @@ Output: `dist/jiuwenclaw/`, main binary `dist/jiuwenclaw/jiuwenclaw.exe`.1. **Initialize** (required once):```bash- jiuwenclaw.exe init+ jiuwenswarm.exe init```- Creates `~/.jiuwenclaw` config and workspace.+ Creates `~/.jiuwenswarm` config and workspace.-2. **Configure**: edit `%USERPROFILE%\.jiuwenclaw\.env` (`API_KEY`, `MODEL_PROVIDER`, …).+2. **Configure**: edit `%USERPROFILE%\.jiuwenswarm\.env` (`API_KEY`, `MODEL_PROVIDER`, …).3. **Start**:```bash- jiuwenclaw.exe+ jiuwenswarm.exe```Starts backend + static UI in a borderless pywebview window (default `http://127.0.0.1:5173`); you usually do not open a separate browser.## Inno Setup notes-- Package the whole `dist/jiuwenclaw/` directory.-- Entry point: `dist/jiuwenclaw/jiuwenclaw.exe`.-- Run `jiuwenclaw.exe init` from the installer finish page if needed.-- User data lives under `%USERPROFILE%\.jiuwenclaw` — do not delete on uninstall by default.+- Package the whole `dist/jiuwenswarm/` directory.+- Entry point: `dist/jiuwenswarm/jiuwenswarm.exe`.+- Run `jiuwenswarm.exe init` from the installer finish page if needed.+- User data lives under `%USERPROFILE%\.jiuwenswarm` — do not delete on uninstall by default.- Share one `.ico` between `jiuwenclaw.spec` and Inno Setup if you add an icon.### Subcommands| Command | Role ||---------|------|-| `jiuwenclaw.exe` | Start desktop app |-| `jiuwenclaw.exe init` | Initialize workspace |+| `jiuwenswarm.exe` | Start desktop app |+| `jiuwenswarm.exe init` | Initialize workspace |## macOS@@ -109,7 +109,7 @@ chmod +x scripts/build-macos.sh./scripts/build-macos.sh```-Produces `dist/JiuwenClaw.app` and `dist/JiuwenClaw-<version>.dmg`.+Produces `dist/JiuwenSwarm.app` and `dist/JiuwenSwarm-<version>.dmg`.- Open the `.app` or mount the `.dmg` and drag to **Applications**.- Not codesigned/notarized — fine for local testing; for distribution add `.icns`, signing, and notarization.@@ -120,8 +120,8 @@ Produces `dist/JiuwenClaw.app` and `dist/JiuwenClaw-<version>.dmg`.- **Python**: Bundled by PyInstaller; end users do not install Python.- **pywebview**: Loads local `http://127.0.0.1:5173`.- **Node**: Only for building the React app; runtime uses static files.-- **Workspace**: Same as pip install — `~/.jiuwenclaw`.-- **Inno**: Ship the full `dist/jiuwenclaw/` tree, not a single exe only.+- **Workspace**: Same as pip install — `~/.jiuwenswarm`.+- **Inno**: Ship the full `dist/jiuwenswarm/` tree, not a single exe only.- **DMG**: Script may include an **Applications** shortcut for drag install.## Troubleshootingdiff --git a/docs/en/Page-Overview.md b/docs/en/Page-Overview.mdindex e30cec3e9b..ad17faae81 100644--- a/docs/en/Page-Overview.md+++ b/docs/en/Page-Overview.md@@ -1,4 +1,4 @@-# JiuwenClaw page overview (web)+# JiuwenSwarm page overview (web)> **Goal:** Help you understand the web UI structure, where features live, and how to interact with them. This is a foundation for deeper use.>@@ -8,7 +8,7 @@## Overall layout-The JiuwenClaw web app uses a classic three-column layout—common in professional tools and dev platforms—so information stays organized and actions are easy to reach.+The JiuwenSwarm web app uses a classic three-column layout—common in professional tools and dev platforms—so information stays organized and actions are easy to reach.### Layout at a glance@@ -18,7 +18,7 @@ The JiuwenClaw web app uses a classic three-column layout—common in profession| Main workspace | Center | Chat, task execution, controls || Right info panel | Right edge | Status, task list, system info |-+### Layout notes@@ -53,9 +53,9 @@ The left bar is the main entry to features.- **Where:** **bottom-left** of the nav-+-- **What:** current JiuwenClaw version+- **What:** current JiuwenSwarm version- **Why:** identify builds when reporting issues or checking compatibility> **Note:** Some advanced features need the right permissions or config.@@ -68,7 +68,7 @@ This is where most interaction happens.### 1. Chat view-The primary surface for talking to JiuwenClaw.+The primary surface for talking to JiuwenSwarm.**Input**@@ -80,11 +80,11 @@ The primary surface for talking to JiuwenClaw.- **AI reply:** final answer and intermediate steps when shown- **Tool calls:** tools the agent used and their results-+### 2. Execution modes-JiuwenClaw offers three execution modes. Pick the one that fits the task. Names in the app follow the UI (English strings are typically *Planning mode*, *Performance mode*, and *Cluster mode* in `en.json`).+JiuwenSwarm offers three execution modes. Pick the one that fits the task. Names in the app follow the UI (English strings are typically *Planning mode*, *Performance mode*, and *Cluster mode* in `en.json`).> **Scope of this page:** only switching modes **in the app**. It does not cover changing config files or environment variables; for that, see [Configuration](Configuration.md).@@ -99,7 +99,7 @@ JiuwenClaw offers three execution modes. Pick the one that fits the task. Names- Choose the mode in the **input area** of the main chat.- Modes change how the agent plans and runs; in **Cluster mode** you can usually see how work is split and parallel work (as the UI shows).-+### 3. Task control bar@@ -112,13 +112,13 @@ While a task is **running**, you can often **manually** control the current run| **Cancelled** | Stopped; the same user instruction will not continue | Usually nothing more for that run; you can send a new input |**Running (example)**-+**Paused (example)**-+**Cancelled (example)**-+---@@ -134,7 +134,7 @@ The right side shows system status and supporting context.| **Language** | UI language (e.g. Chinese / English) || **Theme** | Light / dark / system |-+### 2. Info paneldiff --git a/docs/en/Quickstart.md b/docs/en/Quickstart.mdindex f077e35b4d..4fc472dccb 100644--- a/docs/en/Quickstart.md+++ b/docs/en/Quickstart.md@@ -6,7 +6,7 @@### Prerequisites-Before installing JiuwenClaw, ensure your system meets the following requirements:+Before installing JiuwenSwarm, ensure your system meets the following requirements:| Dependency | Version | Description ||------------|---------|-------------|@@ -26,32 +26,32 @@ node --version```bash# Create virtual environment-python -m venv jiuwenclaw+python -m venv jiuwenswarm# Activate virtual environment# Windows:-jiuwenclaw\Scripts\activate+jiuwenswarm\Scripts\activate# Linux/Mac:-source jiuwenclaw/bin/activate+source jiuwenswarm/bin/activate-# Install JiuwenClaw-pip install jiuwenclaw+# Install JiuwenSwarm+pip install jiuwenswarm```## Start Service```bash# Initialize (first run)-jiuwenclaw-init+jiuwenswarm-init# Start service-jiuwenclaw-start+jiuwenswarm-start```After successful startup, the terminal will display backend service status:```-[INFO] Starting JiuwenClaw server...+[INFO] Starting JiuwenSwarm server...[INFO] API server running at http://localhost:8000[INFO] Web server running at http://localhost:5173```@@ -64,21 +64,21 @@ For remote access, run the following commands:```bash# Start web service-jiuwenclaw-web --host 0.0.0.0 --port <custom-port>+jiuwenswarm-web --host 0.0.0.0 --port <custom-port># Start backend service-jiuwenclaw-app+jiuwenswarm-app```## Configure ModelIn the left sidebar of the Web UI, find "Configuration" and enter the configuration page:-+Complete the following basic configuration, then click "Save" in the top right:-+**Configuration Items:**@@ -106,24 +106,24 @@ After filling in the configuration, click the "Test" button to verify model avaiIn the left sidebar of the Web UI, find "Chat" and enter your question to start:-+## Session ManagementClick the "+" button below to clear the current session and start a new one:-+Page display after clearing:-+**When to clear a session?**<<<<<<< HEAD- Navigate to the frontend directory `jiuwenclaw/channels/web/frontend` and install dependencies:+ Navigate to the frontend directory `jiuwenswarm/channels/web/frontend` and install dependencies:```bash- cd jiuwenclaw/channels/web/frontend+ cd jiuwenswarm/channels/web/frontendnpm install```=======@@ -146,7 +146,7 @@ Page display after clearing:## Clear Memory-When you need JiuwenClaw to forget all conversation history and user information, you can clear memory files.+When you need JiuwenSwarm to forget all conversation history and user information, you can clear memory files.> **⚠️ Risk Warning:** Clearing memory is **permanent**, deleted memory files **cannot be recovered**. Before proceeding, confirm:> - Whether important memories are backed up@@ -170,11 +170,11 @@ When you need JiuwenClaw to forget all conversation history and user informationMemory files are stored in `{workspace_dir}/memory/` directory:**Method 1: Delete via Agent**-Tell JiuwenClaw: "Please delete all memory files" or "Clear my memory", Agent will call file tools to delete files in the memory directory.-+Tell JiuwenSwarm: "Please delete all memory files" or "Clear my memory", Agent will call file tools to delete files in the memory directory.+**Method 2: Manual Delete**-Stop JiuwenClaw service, then directly delete all Markdown files in the `memory/` directory.-+Stop JiuwenSwarm service, then directly delete all Markdown files in the `memory/` directory.+> ⚠️ **Note**: Memory cannot be recovered after clearing, proceed with caution. Regularly backup important memory files.diff --git a/docs/en/Quickstart_tui.md b/docs/en/Quickstart_tui.mdindex 30873cb18b..c57550b902 100644--- a/docs/en/Quickstart_tui.md+++ b/docs/en/Quickstart_tui.md@@ -2,13 +2,13 @@> **⚠️ Version Sync**: This document should be kept in sync with [`docs/zh/Quickstart_tui.md`](../zh/Quickstart_tui.md). When updating one, please update the other.-JiuwenClaw provides two installation methods: `pip install` or `install from source`.+JiuwenSwarm provides two installation methods: `pip install` or `install from source`.## Prerequisites-- Download JiuwenClaw code:+- Download JiuwenSwarm code:```bash- git clone https://gitcode.com/openjiuwen/jiuwenclaw.git+ git clone https://gitcode.com/openjiuwen/jiuwenswarm.git```- Environment dependencies:- Python: >=3.11, <3.14@@ -20,45 +20,45 @@ JiuwenClaw provides two installation methods: `pip install` or `install from souSuitable for users who manage their own Python environment. Follow these steps:-- Create a virtual environment & install JiuwenClaw+- Create a virtual environment & install JiuwenSwarm```bash- # Create a virtual environment named jiuwenclaw- python -m venv jiuwenclaw+ # Create a virtual environment named jiuwenswarm+ python -m venv jiuwenswarm- # Activate the jiuwenclaw virtual environment on Windows- jiuwenclaw\Scripts\activate+ # Activate the jiuwenswarm virtual environment on Windows+ jiuwenswarm\Scripts\activate- # Activate the jiuwenclaw virtual environment on Mac+ # Activate the jiuwenswarm virtual environment on Macsource .venv/bin/activate- # Install JiuwenClaw- pip install jiuwenclaw+ # Install JiuwenSwarm+ pip install jiuwenswarm- # Install JiuwenClaw-tui- pip install jiuwenclaw-tui+ # Install JiuwenSwarm-tui+ pip install jiuwenswarm-tui```-- Initialize & start JiuwenClaw+- Initialize & start JiuwenSwarm```bash- # Initialize JiuwenClaw (first time setup)- jiuwenclaw-init+ # Initialize JiuwenSwarm (first time setup)+ jiuwenswarm-init- # Start JiuwenClaw- jiuwenclaw-start+ # Start JiuwenSwarm+ jiuwenswarm-start```-- start JiuwenClaw-tui+- start JiuwenSwarm-tui```bash- # Start JiuwenClaw- jiuwenclaw-tui+ # Start JiuwenSwarm+ jiuwenswarm-tui```## Method 2: Install from Source-Suitable for users who perform custom development or adaptation based on JiuwenClaw.+Suitable for users who perform custom development or adaptation based on JiuwenSwarm.### uv Installation@@ -70,27 +70,27 @@ Suitable for users who perform custom development or adaptation based on JiuwenC# or: uv venv --python=3.13```-- 激活 Jiuwenclaw 虚拟环境+- 激活 jiuwenswarm 虚拟环境```bash- # Activate the jiuwenclaw virtual environment on Windows- jiuwenclaw\Scripts\activate+ # Activate the jiuwenswarm virtual environment on Windows+ jiuwenswarm\Scripts\activate- # Activate the jiuwenclaw virtual environment on Mac+ # Activate the jiuwenswarm virtual environment on Macsource .venv/bin/activate```- Run uv sync- Navigate to the project root directory `jiuwenclaw/` and run:+ Navigate to the project root directory `jiuwenswarm/` and run:```bashuv sync```- Install frontend dependencies- Navigate to the frontend directory `jiuwenclaw/channels/web/frontend` and install dependencies:+ Navigate to the frontend directory `jiuwenswarm/channels/web/frontend` and install dependencies:```bash- cd jiuwenclaw/channels/web/frontend+ cd jiuwenswarm/channels/web/frontendnpm install```@@ -102,23 +102,23 @@ Suitable for users who perform custom development or adaptation based on JiuwenC```bashnpm run buildcd ../../- uv run jiuwenclaw-init- uv run jiuwenclaw-start+ uv run jiuwenswarm-init+ uv run jiuwenswarm-start```- Dynamic frontend service (suitable for development and debugging)```bashcd ../../- uv run jiuwenclaw-init- uv run jiuwenclaw-start dev+ uv run jiuwenswarm-init+ uv run jiuwenswarm-start dev```- After running, you can access the JiuwenClaw web UI.+ After running, you can access the JiuwenSwarm web UI.- Install TUI dependencies- Open one new erminal,navigate to the TUI directory `jiuwenclaw/channels/tui/frontend` and install dependencies:+ Open one new erminal,navigate to the TUI directory `jiuwenswarm/channels/tui/frontend` and install dependencies:```bash- cd jiuwenclaw/channels/tui/frontend+ cd jiuwenswarm/channels/tui/frontendnpm install```@@ -133,14 +133,14 @@ Suitable for users who perform custom development or adaptation based on JiuwenC- Create a virtual environment with `conda````bash# Create a virtual environment with Anaconda (supports any of 3.11, 3.12, 3.13)- conda create -n JiuwenClaw python=3.11- # or: conda create -n JiuwenClaw python=3.12- # or: conda create -n JiuwenClaw python=3.13+ conda create -n JiuwenSwarm python=3.11+ # or: conda create -n JiuwenSwarm python=3.12+ # or: conda create -n JiuwenSwarm python=3.13```- Install Python dependencies- Navigate to the project root directory `jiuwenclaw/` and run:+ Navigate to the project root directory `jiuwenswarm/` and run:```bash# Mode 1: Development installation (recommended, facilitates code modification)pip install -e .@@ -148,13 +148,13 @@ Suitable for users who perform custom development or adaptation based on JiuwenC# Mode 2: Regular installationpip install .```- **Note:** This installation method relies on the project's installable package (pyproject.toml) and will install `jiuwenclaw` itself by default.+ **Note:** This installation method relies on the project's installable package (pyproject.toml) and will install `jiuwenswarm` itself by default.- Install frontend dependencies- Navigate to the frontend directory `jiuwenclaw/channels/web/frontend` and install dependencies:+ Navigate to the frontend directory `jiuwenswarm/channels/web/frontend` and install dependencies:```bash- cd jiuwenclaw/channels/web/frontend+ cd jiuwenswarm/channels/web/frontendnpm install```@@ -166,24 +166,24 @@ Suitable for users who perform custom development or adaptation based on JiuwenC```bashnpm run buildcd ../../- jiuwenclaw-init- jiuwenclaw-start+ jiuwenswarm-init+ jiuwenswarm-start```- Dynamic frontend service (suitable for development and debugging)```bashcd ../../# Start directly (without using uv run)- jiuwenclaw-init- jiuwenclaw-start dev+ jiuwenswarm-init+ jiuwenswarm-start dev```- After running, you can access the JiuwenClaw web UI.+ After running, you can access the JiuwenSwarm web UI.- Install TUI dependencies- Open one new erminal,navigate to the TUI directory `jiuwenclaw/channels/tui/frontend` and install dependencies:+ Open one new erminal,navigate to the TUI directory `jiuwenswarm/channels/tui/frontend` and install dependencies:```bash- cd jiuwenclaw/channels/tui/frontend+ cd jiuwenswarm/channels/tui/frontendnpm install```diff --git a/docs/en/README.md b/docs/en/README.mdindex 80b491581a..55bd12e96e 100644--- a/docs/en/README.md+++ b/docs/en/README.md@@ -1,6 +1,6 @@# User guide-This section collects common usage notes and feature documentation for JiuwenClaw.+This section collects common usage notes and feature documentation for JiuwenSwarm.- Installation: [Install guide](InstallGuide.md)- Install and run from scratch: [Quick start](Quickstart.md) / [TUI mode](Quickstart_tui.md)@@ -38,5 +38,5 @@ Topic guides:Development practices:-- [JiuwenClaw Code Review Assistant](development-practices/JiuwenClaw-Code-Review-Assistant.md)-- [JiuwenClaw Daily Report Generator](development-practices/JiuwenClaw-Daily-Report-Generator.md)\ No newline at end of file+- [JiuwenSwarm Code Review Assistant](development-practices/JiuwenSwarm-Code-Review-Assistant.md)+- [JiuwenSwarm Daily Report Generator](development-practices/JiuwenSwarm-Daily-Report-Generator.md)\ No newline at end of filediff --git a/docs/en/SUMMARY.md b/docs/en/SUMMARY.mdindex b4462ca2ed..9adf51ab4c 100644--- a/docs/en/SUMMARY.md+++ b/docs/en/SUMMARY.md@@ -34,6 +34,6 @@- [ACP Plugin Usage](ACP_Client_Config.md)- [Windows auto-update design](WindowsAutoUpdateDesign.md)- [Development practices](development-practices/README.md)- - [Daily report generator practice](development-practices/JiuwenClaw-Daily-Report-Generator.md)- - [Code review assistant practice](development-practices/JiuwenClaw-Code-Review-Assistant.md)+ - [Daily report generator practice](development-practices/JiuwenSwarm-Daily-Report-Generator.md)+ - [Code review assistant practice](development-practices/JiuwenSwarm-Code-Review-Assistant.md)- [Linux NFS Shared Filesystem](../linux-agent-teams-shared-filesystem.md)\ No newline at end of filediff --git a/docs/en/ScheduledTasks.md b/docs/en/ScheduledTasks.mdindex b0ff3c65bd..def2183198 100644--- a/docs/en/ScheduledTasks.md+++ b/docs/en/ScheduledTasks.md@@ -1,6 +1,6 @@## Scheduled tasks (Cron)-How to create and manage a simple scheduled job in JiuwenClaw and push results to a channel (e.g. web, Feishu).+How to create and manage a simple scheduled job in JiuwenSwarm and push results to a channel (e.g. web, Feishu).---@@ -29,7 +29,7 @@ How to create and manage a simple scheduled job in JiuwenClaw and push results t-3. Save. Jobs are stored in `~/.jiuwenclaw/workspace/cron_jobs.json` and picked up by the scheduler.+3. Save. Jobs are stored in `~/.jiuwenswarm/workspace/cron_jobs.json` and picked up by the scheduler.---diff --git a/docs/en/SkillSelfEvolution.md b/docs/en/SkillSelfEvolution.mdindex 8332106462..eb76c1b971 100644--- a/docs/en/SkillSelfEvolution.md+++ b/docs/en/SkillSelfEvolution.md@@ -1,6 +1,6 @@# Skill self-evolution-Most agents **freeze** skills after deployment: tool errors become log lines; user corrections do not change behavior. JiuwenClaw uses the **openJiuwen evolution stack** with **`SkillCallOperator`** to unify skill reads/writes and evolution, plus **signal detection** that turns failures and user corrections into updates stored in **`evolutions.json`** and merged back into **`SKILL.md`** when appropriate.+Most agents **freeze** skills after deployment: tool errors become log lines; user corrections do not change behavior. JiuwenSwarm uses the **openJiuwen evolution stack** with **`SkillCallOperator`** to unify skill reads/writes and evolution, plus **signal detection** that turns failures and user corrections into updates stored in **`evolutions.json`** and merged back into **`SKILL.md`** when appropriate.## Core components@@ -170,7 +170,7 @@ Example:Location:```-~/.jiuwenclaw/workspace/agent/skills/<skill_name>/+~/.jiuwenswarm/workspace/agent/skills/<skill_name>/├── SKILL.md├── evolutions.json└── ...diff --git a/docs/en/Skills.md b/docs/en/Skills.mdindex 286b12733a..5af7e9a48f 100644--- a/docs/en/Skills.md+++ b/docs/en/Skills.md@@ -8,7 +8,7 @@**Definition:**-A Skill is a module that extends JiuwenClaw with specific capabilities. You can think of it as an **installable, manageable, reusable capability package**.+A Skill is a module that extends JiuwenSwarm with specific capabilities. You can think of it as an **installable, manageable, reusable capability package**.Like apps on a phone extend device capabilities, skills extend the agent’s capability boundaries.@@ -52,7 +52,7 @@ User request → agent identifies need → load matched skill → execute workfl**Skill sources:**-JiuwenClaw supports multiple sources:+JiuwenSwarm supports multiple sources:| Source | Description | Characteristics ||------|------|------|@@ -74,7 +74,7 @@ Whether skills come from built-in packages, SkillNet, ClawHub, third-party marke#### Built-in skills-Built-in skills are skill resources packaged with JiuwenClaw.+Built-in skills are skill resources packaged with JiuwenSwarm.1. **Install**@@ -195,7 +195,7 @@ Best for:Copy skill folder into:```text- C:\Users\<username>\.jiuwenclaw\service_default\agent_default\jiuwenclaw_workspace\skills\+ C:\Users\<username>\.jiuwenswarm\service_default\agent_default\jiuwenswarm_workspace\skills\```4. **Verify**@@ -313,7 +313,7 @@ The agent lists installed skill names, sources, versions, and related info.**Method 3: File path**```text-C:\Users\<username>\.jiuwenclaw\service_default\agent_default\jiuwenclaw_workspace\skills\+C:\Users\<username>\.jiuwenswarm\service_default\agent_default\jiuwenswarm_workspace\skills\```Each subfolder is one skill.@@ -547,7 +547,7 @@ Done:| Possible cause | Resolution ||----------|----------|-| Service not restarted | Restart JiuwenClaw |+| Service not restarted | Restart JiuwenSwarm || Wrong install path | Verify skill file path || Missing SKILL.md | Ensure skill folder has SKILL.md |@@ -614,7 +614,7 @@ my-custom-skill/**Core `SKILL.md` content:**-You can let JiuwenClaw help you generate it. **`YAML frontmatter` between the first `---` and second `---` declares metadata**; Markdown after the second `---` is the **skill body**—the instructions the Agent follows. Example:+You can let JiuwenSwarm help you generate it. **`YAML frontmatter` between the first `---` and second `---` declares metadata**; Markdown after the second `---` is the **skill body**—the instructions the Agent follows. Example:```markdown---@@ -652,9 +652,9 @@ When this skill is selected, follow the instructions below.#### Modify an existing skill-1. **Modify an existing skill through JiuwenClaw**+1. **Modify an existing skill through JiuwenSwarm**- Talk to JiuwenClaw directly, for example: "Help me optimize the xxx skill and add xxx capability."+ Talk to JiuwenSwarm directly, for example: "Help me optimize the xxx skill and add xxx capability."### Example: Optimize the weather skill by adding UV index display@@ -662,7 +662,7 @@ When this skill is selected, follow the instructions below.The output only includes basic items such as temperature, wind speed, precipitation probability, and clothing advice.-### Through chat with JiuwenClaw: "Optimize the weather skill and add UV intensity display", the skill is updated+### Through chat with JiuwenSwarm: "Optimize the weather skill and add UV intensity display", the skill is updated### After optimization@@ -673,6 +673,6 @@ When you call it again, the output includes not only temperature and wind speed,---*Document version: v1.0*-*Audience: JiuwenClaw users*+*Audience: JiuwenSwarm users**Last updated: 2026-05-11**Simplified Chinese: [技能](../zh/技能.md)*diff --git a/docs/en/SlashCommandArchitecture.md b/docs/en/SlashCommandArchitecture.mdindex d8c01e4065..6b73110cb7 100644--- a/docs/en/SlashCommandArchitecture.md+++ b/docs/en/SlashCommandArchitecture.md@@ -11,7 +11,7 @@ Slash-prefixed commands (`/`) are currently implemented in multiple places:- **Gateway**: `MessageHandler._handle_channel_control` handles `/new_session`, `/mode …`, etc. on controlled channels, deciding whether to **intercept and NOT forward to Agent**.- **IM Pipeline / Channels**: e.g. `gateway/im_pipeline/im_inbound.py` maintains its own control message set; Feishu/WeCom channels may have text-based checks that **diverge from the main logic**.-- **CLI TUI**: `jiuwenclaw/channels/tui/frontend/src/core/commands/` has a local registry; some commands call the backend via WebSocket, others are purely local.+- **CLI TUI**: `jiuwenswarm/channels/tui/frontend/src/core/commands/` has a local registry; some commands call the backend via WebSocket, others are purely local.Without clear layering and a single source of truth, the project risks: **semantic inconsistencies for the same command name, documentation-code drift, and duplicated parsing logic in new channels.**@@ -72,7 +72,7 @@ Without clear layering and a single source of truth, the project risks: **semant### 4.1 Module Location (Proposed)-- **Python side**: Implemented as `jiuwenclaw/gateway/slash_command.py` (controlled channel parsing, `CONTROL_MESSAGE_TEXTS`, first-batch command metadata `FIRST_BATCH_REGISTRY`). May evolve into `channel_control_slash.py` etc.+- **Python side**: Implemented as `jiuwenswarm/gateway/slash_command.py` (controlled channel parsing, `CONTROL_MESSAGE_TEXTS`, first-batch command metadata `FIRST_BATCH_REGISTRY`). May evolve into `channel_control_slash.py` etc.- **Data**: The set of controlled commands, match rules (exact / prefix / no-multi-line), metadata (description, whether to forward to Agent).- **Pure functions**: Given a channel type and user text, return a **structured decision** (not hit / hit & valid / hit & invalid). **No IO** in SSOT module (no `create_task` for notifications).- **Naming suggestion**: If only containing Category A, the module name should avoid suggesting "all product slashes", preventing future contributors from stuffing Category B logic into the Gateway.diff --git a/docs/en/SlashCommands.md b/docs/en/SlashCommands.mdindex 007173d127..e3af82d911 100644--- a/docs/en/SlashCommands.md+++ b/docs/en/SlashCommands.md@@ -24,7 +24,7 @@ Executed locally in the terminal UI, not through Gateway control pipeline.| `/workspace` | Manage trusted directories (see below) || `/teamskills` | TeamSkills Hub publish/delete (`publish`/`delete`) || `/export` | Export current conversation to file or clipboard (see below) |-| `/status` | Show jiuwenclaw status overview, usage, config (see below) |+| `/status` | Show jiuwenswarm status overview, usage, config (see below) || `/statusline` | Configure the TUI footer status bar with a custom command (see below) || `/permissions` | Manage tool permissions (`allow`/`ask`/`deny`) |@@ -72,7 +72,7 @@ Manages directories AI can access for file read, edit, and execute operations.#### Concepts-- **System default workspace**: Fixed path `~/.jiuwenclaw/agent/jiuwenclaw_workspace`, always available+- **System default workspace**: Fixed path `~/.jiuwenswarm/agent/jiuwenswarm_workspace`, always available- **Trusted directories (`trusted_dirs`)**: User-authorized accessible directories, managed by TUI, passed to backend Agent#### Control Logic@@ -332,7 +332,7 @@ Manage skills lifecycle: listing, installing, uninstalling, and marketplace sour- **Marketplace source**: A remote repository (typically a Git URL) that hosts available skills. Each source has a name, URL, and enabled/disabled state.- **Spec**: The install identifier format `<skill>@<marketplace>` used when installing from a marketplace; for builtin skills, omit `@` and the system auto-detects as `@builtin`.- **Local install**: Use `/skills install <path>` to install from a local directory (must contain `SKILL.md`) or remote archive URL; paths/URLs are auto-detected and routed to the local import flow.-- **Install location**: The directory where a skill is stored after installation (`~/.jiuwenclaw/agent/jiuwenclaw_workspace/skills/`).+- **Install location**: The directory where a skill is stored after installation (`~/.jiuwenswarm/agent/jiuwenswarm_workspace/skills/`).- **Source tag**: Each skill in the list is tagged with its source: `[builtin]` = builtin, `[local]` = imported, `[project]` or marketplace name = other.#### Grouped List Display@@ -429,7 +429,7 @@ Timestamp format: `YYYY-MM-DD-HHmmss`.### `/status` (Show Status)-Display jiuwenclaw runtime status: overview, usage statistics, or config editor.+Display jiuwenswarm runtime status: overview, usage statistics, or config editor.#### Usage@@ -517,7 +517,7 @@ The command receives the following JSON data on each execution:| `mode` | Current mode (`agent.plan` / `agent.fast` / `code.plan` / `code.normal` / `team`) || `model` | Current model name || `provider` | Model provider |-| `version` | jiuwenclaw version |+| `version` | jiuwenswarm version || `connection` | Connection status (`idle` / `connecting` / `connected` / `reconnecting` / `auth_failed`) || `theme` | Current theme name || `accent_color` | Current accent color name |@@ -589,7 +589,7 @@ Use the following template to write commands. `input=$(cat)` reads JSON into a v- **Timeout protection**: Individual executions timeout after 3 seconds; no impact on subsequent polls.- **Output limit**: Command output over 10KB is truncated; display width auto-fits the TUI terminal width.- **Failure silence**: Command execution failures don't show errors; previous successful output is kept or the bar hides.-- **Persistence**: Configuration is saved in `~/.jiuwenclaw-tui/config.json` under the `statusLine` field; restored on TUI restart.+- **Persistence**: Configuration is saved in `~/.jiuwenswarm-tui/config.json` under the `statusLine` field; restored on TUI restart.- **Alias**: `/sl`- **Windows adaptation**: The system automatically replaces `$(cat)` with reading from a temp file; the user's command format remains unchanged. Git Bash's `usr\bin` must be in the system PATH.diff --git a/docs/en/TaskMemory.md b/docs/en/TaskMemory.mdindex d274709dc9..579ca8891b 100644--- a/docs/en/TaskMemory.md+++ b/docs/en/TaskMemory.md@@ -1,6 +1,6 @@# Task Memory (Experience Memory)-Task Memory is JiuwenClaw's built-in experience system that allows the Agent to retrieve, record, and consolidate lessons from past tasks — avoiding repeated mistakes and reusing effective solutions in future tasks.+Task Memory is JiuwenSwarm's built-in experience system that allows the Agent to retrieve, record, and consolidate lessons from past tasks — avoiding repeated mistakes and reusing effective solutions in future tasks.---diff --git a/docs/en/TaskPlanning.md b/docs/en/TaskPlanning.mdindex 365d2d5695..73dd16540c 100644--- a/docs/en/TaskPlanning.md+++ b/docs/en/TaskPlanning.md@@ -1,6 +1,6 @@# Task planning-For long, shifting tasks, users need to **interrupt**, **insert new work**, and **merge outcomes** (e.g. finish December invoices, then add January and email a combined summary) without losing thread. JiuwenClaw’s **task planning** mode uses structured todo tools so the agent can break work down and adapt when requirements change.+For long, shifting tasks, users need to **interrupt**, **insert new work**, and **merge outcomes** (e.g. finish December invoices, then add January and email a combined summary) without losing thread. JiuwenSwarm’s **task planning** mode uses structured todo tools so the agent can break work down and adapt when requirements change.[Demo video](../assets/videos/todo.mp4)diff --git a/docs/en/ToolPermissionsSecurity.md b/docs/en/ToolPermissionsSecurity.mdindex 14faff9885..ee418f0dd7 100644--- a/docs/en/ToolPermissionsSecurity.md+++ b/docs/en/ToolPermissionsSecurity.md@@ -1,8 +1,8 @@# Tool Permissions & Security-This document explains how JiuwenClaw **tool call permissions** (`allow` / `ask` / `deny`) take effect, how they relate to **workspace-external paths**, **built-in security rules**, **user approval persistence**, and what the **CLI `/add-dir`** command changes in configuration.+This document explains how JiuwenSwarm **tool call permissions** (`allow` / `ask` / `deny`) take effect, how they relate to **workspace-external paths**, **built-in security rules**, **user approval persistence**, and what the **CLI `/add-dir`** command changes in configuration.-The main configuration file is typically `~/.jiuwenclaw/config/config.yaml`; you can override this via the `JIUWENCLAW_CONFIG_DIR` environment variable (consistent with [Configuration](Configuration.md)).+The main configuration file is typically `~/.jiuwenswarm/config/config.yaml`; you can override this via the `JIUWENCLAW_CONFIG_DIR` environment variable (consistent with [Configuration](Configuration.md)).---@@ -89,8 +89,8 @@ On the `check_permission` path, tiered results are typically computed **without*## 3. Built-in Security Rules `builtin_rules.yaml`-- **Package default**: `jiuwenclaw/resources/builtin_rules.yaml`.-- **User override**: A `builtin_rules.yaml` in the **same directory** as `config.yaml` (i.e. `JIUWENCLAW_CONFIG_DIR` or default `~/.jiuwenclaw/config/`) takes **priority** if it exists.+- **Package default**: `jiuwenswarm/resources/builtin_rules.yaml`.+- **User override**: A `builtin_rules.yaml` in the **same directory** as `config.yaml` (i.e. `JIUWENCLAW_CONFIG_DIR` or default `~/.jiuwenswarm/config/`) takes **priority** if it exists.Built-in rules mostly cover **shell high-risk commands** (deletion, formatting, download-and-execute, privilege escalation, etc.), some with explicit `action: deny`. User `rules` cannot override built-in denials (built-in deny returns first).@@ -139,10 +139,10 @@ If not using `tiered_policy`, typically **only** `external_directory` is updated| Module | Path ||--------|------|| Tiered policy | `openjiuwen.harness.security` (harness SDK) |-| Permissions persistence | `jiuwenclaw/agents/harness/common/rails/permissions/permissions_persist.py` |-| Owner scopes | `jiuwenclaw/agents/harness/common/rails/permissions/owner_scopes.py` |-| Tool permission RPC | `jiuwenclaw/agents/harness/common/rails/permissions/permissions_config_rpc.py` |-| Tool permission context | `jiuwenclaw/agents/harness/common/rails/permissions/tool_permission_context.py` |+| Permissions persistence | `jiuwenswarm/agents/harness/common/rails/permissions/permissions_persist.py` |+| Owner scopes | `jiuwenswarm/agents/harness/common/rails/permissions/owner_scopes.py` |+| Tool permission RPC | `jiuwenswarm/agents/harness/common/rails/permissions/permissions_config_rpc.py` |+| Tool permission context | `jiuwenswarm/agents/harness/common/rails/permissions/tool_permission_context.py` |---diff --git a/docs/en/WhatsApp.md b/docs/en/WhatsApp.mdindex 9135ca0cde..643356b826 100644--- a/docs/en/WhatsApp.md+++ b/docs/en/WhatsApp.md@@ -4,13 +4,13 @@ This guide describes the WhatsApp integration currently implemented in this repo## Architecture-JiuwenClaw does not talk to WhatsApp directly from Python.+JiuwenSwarm does not talk to WhatsApp directly from Python.`WhatsApp app` <-> `Baileys bridge (Node.js)` <-> `WhatsAppChannel (Python)`- Bridge WebSocket default: `ws://127.0.0.1:19600/ws`-- Bridge script: `jiuwenclaw/scripts/whatsapp-bridge.js`-- Python channel: `jiuwenclaw/channel/whatsapp_channel.py`+- Bridge script: `jiuwenswarm/scripts/whatsapp-bridge.js`+- Python channel: `jiuwenswarm/channel/whatsapp_channel.py`- Runtime config: `channels.whatsapp` in `config.yaml`## What This Repo Implements@@ -80,16 +80,16 @@ The distinction matters:## Prerequisites-- Python environment that can run `python -m jiuwenclaw.app`+- Python environment that can run `python -m jiuwenswarm.app`- Node.js 20+ and npm- A WhatsApp account with Linked Devices enabled## 1. Install Bridge Dependencies-Run inside the inner project folder that contains `jiuwenclaw/package.json`:+Run inside the inner project folder that contains `jiuwenswarm/package.json`:```powershell-cd C:\Users\chiak\OneDrive\Desktop\jiuwenclaw\jiuwenclaw+cd C:\Users\chiak\OneDrive\Desktop\jiuwenswarm\jiuwenswarmnpm install```@@ -103,7 +103,7 @@ npm install @whiskeysockets/baileys ws pino qrcode-terminalEdit your runtime config file:-`C:\Users\chiak\.jiuwenclaw\config\config.yaml`+`C:\Users\chiak\.jiuwenswarm\config\config.yaml`Under `channels:` use:@@ -115,7 +115,7 @@ Under `channels:` use:enable_streaming: trueauto_start_bridge: falsebridge_command: node scripts/whatsapp-bridge.js- bridge_workdir: C:/Users/chiak/OneDrive/Desktop/jiuwenclaw/jiuwenclaw+ bridge_workdir: C:/Users/chiak/OneDrive/Desktop/jiuwenswarm/jiuwenswarmenabled: true```@@ -134,7 +134,7 @@ Open two terminals unless you use `auto_start_bridge: true`.Terminal A, bridge:```powershell-cd C:\Users\chiak\OneDrive\Desktop\jiuwenclaw\jiuwenclaw+cd C:\Users\chiak\OneDrive\Desktop\jiuwenswarm\jiuwenswarmnpm run whatsapp:bridge```@@ -145,8 +145,8 @@ Expected line:Terminal B, app:```powershell-cd C:\Users\chiak\OneDrive\Desktop\jiuwenclaw-python -m jiuwenclaw.app+cd C:\Users\chiak\OneDrive\Desktop\jiuwenswarm+python -m jiuwenswarm.app```Expected behavior:@@ -167,7 +167,7 @@ Then scan the QR code from Terminal A.Auth state is stored at:-`jiuwenclaw/jiuwenclaw/workspace/.whatsapp-auth`+`jiuwenswarm/jiuwenswarm/workspace/.whatsapp-auth`If the account is already linked, QR may not appear.@@ -197,7 +197,7 @@ API_BASE=https://your-real-openai-compatible-endpoint/v1API_KEY=your-real-key```-Restart `python -m jiuwenclaw.app` after updating `.env`.+Restart `python -m jiuwenswarm.app` after updating `.env`.## Troubleshooting@@ -205,13 +205,13 @@ Restart `python -m jiuwenclaw.app` after updating `.env`.You ran `npm` in the wrong folder. Use:-`C:\Users\chiak\OneDrive\Desktop\jiuwenclaw\jiuwenclaw`+`C:\Users\chiak\OneDrive\Desktop\jiuwenswarm\jiuwenswarm`### Bridge starts but no QR1. Stop any old bridge processes that may still be holding the port or auth session.2. Delete auth state to force relinking:- `jiuwenclaw/jiuwenclaw/workspace/.whatsapp-auth`+ `jiuwenswarm/jiuwenswarm/workspace/.whatsapp-auth`3. Start the bridge again and wait for `QR received`.### App connects to bridge but cannot senddiff --git a/docs/en/WindowsAutoUpdateDesign.md b/docs/en/WindowsAutoUpdateDesign.mdindex 880d4f3bb5..51560d478d 100644--- a/docs/en/WindowsAutoUpdateDesign.md+++ b/docs/en/WindowsAutoUpdateDesign.md@@ -1,6 +1,6 @@# Windows Auto-Update Design-This document describes the minimum viable auto-update solution for JiuwenClaw on Windows desktop. The goal is to prioritize stability over seamless upgrades.+This document describes the minimum viable auto-update solution for JiuwenSwarm on Windows desktop. The goal is to prioritize stability over seamless upgrades.## Scope@@ -8,7 +8,7 @@ This document describes the minimum viable auto-update solution for JiuwenClaw o- Automatic update check on startup- Manual update check via the sidebar "Update" page- Update source: GitHub Releases-- Download artifact: Inno Setup installer `jiuwenclaw-setup-<version>.exe`+- Download artifact: Inno Setup installer `jiuwenswarm-setup-<version>.exe`- After download, an external helper script performs a silent install and restarts the application## Out of Scope@@ -25,7 +25,7 @@ This document describes the minimum viable auto-update solution for JiuwenClaw o2. The backend requests the GitHub Releases API for the latest release3. If a new version is found, it records the latest version, publish date, release notes, and installer download URL4. The user clicks "Download Update" on the Update page-5. The backend downloads the installer to `%USERPROFILE%\\.jiuwenclaw\\.updates` in the background+5. The backend downloads the installer to `%USERPROFILE%\\.jiuwenswarm\\.updates` in the background6. After download completes, the frontend calls the pywebview API to trigger installation7. The desktop process writes a temporary `cmd` helper script that waits for the current process to exit8. The helper runs the Inno Setup installer silently, then restarts the application@@ -53,10 +53,10 @@ Update settings are in the `updater` section of `config.yaml`:updater:enabled: truerepo_owner: CharlieZhao95- repo_name: jiuwenclaw+ repo_name: jiuwenswarmrelease_api_url: ""- asset_name_pattern: "jiuwenclaw-setup-{version}.exe"- sha256_name_pattern: "jiuwenclaw-setup-{version}.exe.sha256"+ asset_name_pattern: "jiuwenswarm-setup-{version}.exe"+ sha256_name_pattern: "jiuwenswarm-setup-{version}.exe.sha256"timeout_seconds: 20```@@ -94,4 +94,4 @@ When the desktop process receives an install request from the frontend:/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /CLOSEAPPLICATIONS```-4. After installation completes, it restarts `jiuwenclaw.exe`\ No newline at end of file+4. After installation completes, it restarts `jiuwenswarm.exe`\ No newline at end of filediff --git a/docs/en/developer_guide.md b/docs/en/developer_guide.mdindex c289282ed2..fb6408ea8a 100644--- a/docs/en/developer_guide.md+++ b/docs/en/developer_guide.md@@ -1,6 +1,6 @@# Developer Guide-This document is intended for developers of the JiuwenClaw project, covering how to set up a development environment from source and run tests.+This document is intended for developers of the JiuwenSwarm project, covering how to set up a development environment from source and run tests.## Prerequisites@@ -15,8 +15,8 @@ This document is intended for developers of the JiuwenClaw project, covering how## 1. Clone the Repository```bash-git clone <repository-url> jiuwenclaw-cd jiuwenclaw+git clone <repository-url> jiuwenswarm+cd jiuwenswarm```## 2. Set Up Development Environment with `uv`@@ -53,7 +53,7 @@ source .venv/bin/activate### Run uv Sync-Run the following command in the project root directory `jiuwenclaw/`:+Run the following command in the project root directory `jiuwenswarm/`:```bashuv sync@@ -89,8 +89,8 @@ Once the environment is set up, you can start developing the source code and tes### Project Structure Overview```-jiuwenclaw/-├── jiuwenclaw/ # Project source code+jiuwenswarm/+├── jiuwenswarm/ # Project source code├── tests/│ ├── unit_tests/ # Unit tests│ ├── system_tests/ # System tests@@ -121,8 +121,8 @@ After modifying code, you need to build and verify according to the type of chanAfter modifying backend Python code, run the following commands to reinitialize and start the service:```bash-uv run jiuwenclaw-init-uv run jiuwenclaw-start+uv run jiuwenswarm-init+uv run jiuwenswarm-start```#### Frontend Code Changes@@ -230,8 +230,8 @@ The project contains two independent wheel packages:| Package | Description | Config File ||---------|-------------|-------------|-| `jiuwenclaw` | Backend service main package (includes Web frontend build artifacts) | `pyproject.toml` |-| `jiuwenclaw-tui` | TUI terminal interface sidecar package (includes Bun-compiled native binaries) | `packages/jiuwenclaw-tui/pyproject.toml` |+| `jiuwenswarm` | Backend service main package (includes Web frontend build artifacts) | `pyproject.toml` |+| `jiuwenswarm-tui` | TUI terminal interface sidecar package (includes Bun-compiled native binaries) | `packages/jiuwenswarm-tui/pyproject.toml` |#### 6.1.1 Build All (Recommended)@@ -243,13 +243,13 @@ bash scripts/build.sh```The script will execute the following steps in order:-1. Build the Web frontend (runs `npm run build` in `jiuwenclaw/channels/web/frontend`)-2. Build the main package `jiuwenclaw.whl`-3. If `bun` is detected, continue to build the TUI native binary and `jiuwenclaw-tui.whl`+1. Build the Web frontend (runs `npm run build` in `jiuwenswarm/channels/web/frontend`)+2. Build the main package `jiuwenswarm.whl`+3. If `bun` is detected, continue to build the TUI native binary and `jiuwenswarm-tui.whl`Artifacts are output to two directories:-- `./dist/jiuwenclaw-<version>-py3-none-any.whl` (main package)-- `./packages/jiuwenclaw-tui/dist/jiuwenclaw_tui-<version>-<platform>.whl` (TUI sidecar package)+- `./dist/jiuwenswarm-<version>-py3-none-any.whl` (main package)+- `./packages/jiuwenswarm-tui/dist/jiuwenswarm_tui-<version>-<platform>.whl` (TUI sidecar package)### 6.2 Desktop EXE / DMG Packaging@@ -274,7 +274,7 @@ scripts\build-exe.bat.\scripts\build-exe.ps1```-Output: `dist\jiuwenclaw\jiuwenclaw.exe`+Output: `dist\jiuwenswarm\jiuwenswarm.exe`#### 6.2.3 macOS Packaging (DMG)@@ -285,7 +285,7 @@ bash scripts/build-macos.shThe script will execute the following steps in order:1. Install Python dependencies (`uv sync --extra dev`)2. Build the Web frontend (`npm run build`)-3. Package with PyInstaller to generate `JiuwenClaw.app`+3. Package with PyInstaller to generate `JiuwenSwarm.app`4. Create a DMG installer image using `hdiutil`-Output: `dist/JiuwenClaw-<version>.dmg`+Output: `dist/JiuwenSwarm-<version>.dmg`diff --git a/docs/en/development-practices/JiuwenClaw-Code-Review-Assistant.md b/docs/en/development-practices/JiuwenSwarm-Code-Review-Assistant.mdsimilarity index 97%rename from docs/en/development-practices/JiuwenClaw-Code-Review-Assistant.mdrename to docs/en/development-practices/JiuwenSwarm-Code-Review-Assistant.mdindex 5d9311da2e..1d1cb1d934 100644--- a/docs/en/development-practices/JiuwenClaw-Code-Review-Assistant.md+++ b/docs/en/development-practices/JiuwenSwarm-Code-Review-Assistant.md@@ -1,4 +1,4 @@-# Beyond Manual Code Review? Building an Automated Review Pipeline with JiuwenClaw+# Beyond Manual Code Review? Building an Automated Review Pipeline with JiuwenSwarm## Introduction — When “code quality” becomes part of daily development@@ -44,7 +44,7 @@ the following sections may offer a useful angle.| Item | Value || --- | --- |-| **Project path** | `D:\Download\jiuwenclaw` |+| **Project path** | `D:\Download\jiuwenswarm` || **OS** | Windows 10 || **Python** | 3.10+ || **Model service** | Zhipu AI (GLM-4.7) |@@ -64,7 +64,7 @@ the following sections may offer a useful angle.### Key file layout```plain-D:\Download\jiuwenclaw\+D:\Download\jiuwenswarm\├── .env # Environment variables├── workspace/│ └── agent/@@ -114,9 +114,9 @@ The worst misses are **security issues**: e.g. `os.system(user_input)` overlookeWith the assistant, Ruff (lint), Radon (complexity), and Bandit (security) run automatically; the engine computes quality, security, complexity, and style scores and returns an overall grade with suggestions.-### 1.3 Why JiuwenClaw’s skill system fits+### 1.3 Why JiuwenSwarm’s skill system fits-JiuwenClaw is an open Agent framework; its skill model fits code review tooling:+JiuwenSwarm is an open Agent framework; its skill model fits code review tooling:| Capability | Description || --- | --- |@@ -131,7 +131,7 @@ The main idea is **composability**: collection, static analysis, and reporting a### 2.1 Layered architecture-The code review skill lives in JiuwenClaw’s application layer and uses a classic three-tier layout:+The code review skill lives in JiuwenSwarm’s application layer and uses a classic three-tier layout:```┌─────────────────────────────────────────────────────────┐@@ -288,13 +288,13 @@ Review code in arbitrary Git repositories across multiple languages; detect secu### Review a remote Git repository```bash-cd D:/Download/jiuwenclaw && python workspace/agent/skills/code-review/run_review.py clone --url <repo-url>+cd D:/Download/jiuwenswarm && python workspace/agent/skills/code-review/run_review.py clone --url <repo-url>```### Review local code```bash-cd D:/Download/jiuwenclaw && python workspace/agent/skills/code-review/run_review.py local --path <path>+cd D:/Download/jiuwenswarm && python workspace/agent/skills/code-review/run_review.py local --path <path>```## Important limits@@ -1353,8 +1353,8 @@ class ReportGenerator:### 7.1 Environment variables> **This project uses the project-directory layout**: config lives under the repo:-> - Env file: `D:\Download\jiuwenclaw\.env`-> - Skills: `D:\Download\jiuwenclaw\workspace\agent\skills\`+> - Env file: `D:\Download\jiuwenswarm\.env`+> - Skills: `D:\Download\jiuwenswarm\workspace\agent\skills\`>> That keeps everything version-controlled for PRs.@@ -1376,9 +1376,9 @@ FEISHU_REVIEW_CHAT_ID=oc_xxxATOMGIT_TOKEN=xxx```-### 7.2 JiuwenClaw `config.yaml`+### 7.2 JiuwenSwarm `config.yaml`-> Config path: `D:\Download\jiuwenclaw\config\config.yaml`+> Config path: `D:\Download\jiuwenswarm\config\config.yaml````yamlreact:@@ -1452,11 +1452,11 @@ In `HEARTBEAT.md`, schedule periodic scans:| Method | Notes ||--------|------|| Feishu chat | Send review requests to the bot in private chat |-| Web UI | Send requests through the JiuwenClaw web app |+| Web UI | Send requests through the JiuwenSwarm web app |### 8.1 Feishu-Prerequisites: JiuwenClaw running, Feishu bot + WebSocket, `code-review` skill deployed.+Prerequisites: JiuwenSwarm running, Feishu bot + WebSocket, `code-review` skill deployed.Example message:@@ -1480,7 +1480,7 @@ You get streaming thought traces and intermediate steps — useful for debugging| Field | Value ||------|-------|| Review type | local |-| Target | `./jiuwenclaw` |+| Target | `./jiuwenswarm` || Review time | 2026-03-07 21:53 || Files scanned | 110 |@@ -1546,7 +1546,7 @@ You get streaming thought traces and intermediate steps — useful for debugging1. **Windows encoding** — Use `input=code.encode("utf-8")` instead of `text=True` for Ruff stdin.2. **Bandit and stdin** — Write a temp file, analyze, delete.3. **No AtomGit API** — Use `git clone`.-4. **Project-directory mode** — Default user workspace `C:\Users\<user>\.jiuwenclaw\` is awkward for VCS; point config at the repo instead.+4. **Project-directory mode** — Default user workspace `C:\Users\<user>\.jiuwenswarm\` is awkward for VCS; point config at the repo instead.5. **Skill paths** — With project mode, skills live under `...\workspace\agent\skills\code-review\`.6. **Max iterations** — Complex repos can hit `max_iterations` if the agent opens files one-by-one; follow the skill and use the right tools.7. **WebSocket size** — Huge reports exceed ~1MB; forbid returning the full file in `SKILL.md` and return summaries only.@@ -1570,4 +1570,4 @@ Building this review assistant clarified how to ship a practical analysis pipeli3. **Make reports actionable** — Say what to fix and how.4. **Keep architecture extensible** — New analyzers and formats plug in cleanly.-**Paths**: `D:\Download\jiuwenclaw\workspace\agent\skills\code-review\` — `SKILL.md`, entry `run_review.py`.+**Paths**: `D:\Download\jiuwenswarm\workspace\agent\skills\code-review\` — `SKILL.md`, entry `run_review.py`.diff --git a/docs/en/development-practices/JiuwenClaw-Daily-Report-Generator.md b/docs/en/development-practices/JiuwenSwarm-Daily-Report-Generator.mdsimilarity index 98%rename from docs/en/development-practices/JiuwenClaw-Daily-Report-Generator.mdrename to docs/en/development-practices/JiuwenSwarm-Daily-Report-Generator.mdindex 695d2d4aaf..fae8cd7967 100644--- a/docs/en/development-practices/JiuwenClaw-Daily-Report-Generator.md+++ b/docs/en/development-practices/JiuwenSwarm-Daily-Report-Generator.md@@ -1,4 +1,4 @@-# From Configuration to Architecture: Building the Advanced JiuwenClaw Daily Report Generator+# From Configuration to Architecture: Building the Advanced JiuwenSwarm Daily Report Generator## Introduction — When “daily report automation” meets real office work@@ -38,7 +38,7 @@ the sections below may help.| Item | Value || --- | --- |-| **Project path** | `D:\Download\jiuwenclaw` |+| **Project path** | `D:\Download\jiuwenswarm` || **OS** | Windows 10 || **Python** | 3.10+ || **Model** | ModelScope (`Qwen/Qwen3-235B-A22B-Instruct-2507`) |@@ -47,7 +47,7 @@ the sections below may help.| Source | Value || --- | --- |-| **Git repo** | `D:\Download\jiuwenclaw` (this project) |+| **Git repo** | `D:\Download\jiuwenswarm` (this project) || **Email** | `[email protected]` (NetEase 163 Email) || **Delivery** | Feishu (`cli_a92035b1823a9cd2`) || **Heartbeat window** | Daily 18:00–18:30 |@@ -55,7 +55,7 @@ the sections below may help.### Key paths```plain-D:\Download\jiuwenclaw\+D:\Download\jiuwenswarm\├── .env├── config/config.yaml # App config (heartbeat, Feishu)├── workspace/@@ -101,7 +101,7 @@ The **advanced daily report** skill aggregates multiple sources, runs analysis,With the advanced skill, Git, email stats, memory, and todos feed an engine that computes metrics and trends.-### 1.3 JiuwenClaw skills+### 1.3 JiuwenSwarm skills| Capability | Description || --- | --- |@@ -114,7 +114,7 @@ The payoff is **extensibility**: collection, analysis, and reporting stay separa## 2. Technical approach-### 2.1 Layering in JiuwenClaw+### 2.1 Layering in JiuwenSwarmThe advanced daily report skill sits in the application layer (see diagram in the original article).@@ -257,7 +257,7 @@ This skill collects data by running Python scripts (Git, mailbox, memory, todos)**What the scripts collect automatically:**-- **Git commits**: `git log` on repo `D:/Download/jiuwenclaw`+- **Git commits**: `git log` on repo `D:/Download/jiuwenswarm`- **Mailbox stats**: IMAP to `[email protected]` (requires mailbox authorization code)- **Memory**: daily files under `workspace/agent/memory/`- **Todos**: `todo.md` under `workspace/session/`@@ -268,19 +268,19 @@ When the user asks for a daily / weekly / monthly report, **run:**```bash# Today’s daily report (Git + todos + memory)-cd D:/Download/jiuwenclaw && python workspace/agent/skills/daily-report/run_report.py daily --save+cd D:/Download/jiuwenswarm && python workspace/agent/skills/daily-report/run_report.py daily --save# Daily report for a specific date-cd D:/Download/jiuwenclaw && python workspace/agent/skills/daily-report/run_report.py daily --date 2026-03-06 --save+cd D:/Download/jiuwenswarm && python workspace/agent/skills/daily-report/run_report.py daily --date 2026-03-06 --save# Weekly report (aggregate one week)-cd D:/Download/jiuwenclaw && python workspace/agent/skills/daily-report/run_report.py weekly --save+cd D:/Download/jiuwenswarm && python workspace/agent/skills/daily-report/run_report.py weekly --save# Monthly report (aggregate one month, incl. per-day Git stats)-cd D:/Download/jiuwenclaw && python workspace/agent/skills/daily-report/run_report.py monthly --save+cd D:/Download/jiuwenswarm && python workspace/agent/skills/daily-report/run_report.py monthly --save# Monthly report for a given month-cd D:/Download/jiuwenclaw && python workspace/agent/skills/daily-report/run_report.py monthly --year 2026 --month 3 --save+cd D:/Download/jiuwenswarm && python workspace/agent/skills/daily-report/run_report.py monthly --year 2026 --month 3 --save```### Execution steps@@ -305,7 +305,7 @@ cd D:/Download/jiuwenclaw && python workspace/agent/skills/daily-report/run_repo| Source | How | Where to configure ||--------|-----|--------------------|-| **Git** | `git log` | Repo path: `D:/Download/jiuwenclaw` |+| **Git** | `git log` | Repo path: `D:/Download/jiuwenswarm` || **NetEase** | IMAP | `.env`: `EMAIL_ADDRESS`, `EMAIL_TOKEN` || **Memory** | Read Markdown | `workspace/agent/memory/YYYY-MM-DD.md` || **Todos** | Parse `todo.md` | `workspace/session/*/todo.md` |@@ -377,7 +377,7 @@ Configure periodic runs in `HEARTBEAT.md`:Monitored repository (read automatically by scripts):```-Repo path: D:/Download/jiuwenclaw+Repo path: D:/Download/jiuwenswarm```The script uses `git log` to collect:@@ -1593,7 +1593,7 @@ This chapter integrates the complete implementation of the work analysis engine| Data source | Collection method | Configuration location || --- | --- | --- |-| **Git repository** | `git log` command | Repository path: `D:/Download/jiuwenclaw` |+| **Git repository** | `git log` command | Repository path: `D:/Download/jiuwenswarm` || **NetEase email** | IMAP protocol | `.env`: `EMAIL_ADDRESS`, `EMAIL_TOKEN` || **Memory system** | Read MD files | `workspace/agent/memory/YYYY-MM-DD.md` || **To-do items** | Parse todo.md | `workspace/session/*/todo.md` |@@ -1603,13 +1603,13 @@ This chapter integrates the complete implementation of the work analysis engine```bash# Generate daily report-cd D:/Download/jiuwenclaw && python workspace/agent/skills/daily-report/run_report.py daily --save+cd D:/Download/jiuwenswarm && python workspace/agent/skills/daily-report/run_report.py daily --save# Generate weekly report-cd D:/Download/jiuwenclaw && python workspace/agent/skills/daily-report/run_report.py weekly --save+cd D:/Download/jiuwenswarm && python workspace/agent/skills/daily-report/run_report.py weekly --save# Generate monthly report-cd D:/Download/jiuwenclaw && python workspace/agent/skills/daily-report/run_report.py monthly --save+cd D:/Download/jiuwenswarm && python workspace/agent/skills/daily-report/run_report.py monthly --save```### 5.3 Efficiency Metrics Data Structure@@ -2295,7 +2295,7 @@ PERPLEXITY_API_KEY=```markdown# Heartbeat tasks-In this file, configure tasks that JiuwenClaw needs to execute periodically.+In this file, configure tasks that JiuwenSwarm needs to execute periodically.---@@ -2359,7 +2359,7 @@ heartbeat:The Git repositories monitored by this project (the script will automatically read):```plain-Repository path: D:/Download/jiuwenclaw+Repository path: D:/Download/jiuwenswarm```**Collection method**:The script collects data through the `git log` command; no additional configuration is needed.@@ -2375,7 +2375,7 @@ Repository path: D:/Download/jiuwenclaw```bash# The git command executed internally by the script-git -C D:/Download/jiuwenclaw log --since="2026-03-07 00:00:00" --until="2026-03-07 23:59:59" --format="%H|%s|%an|%ai" --numstat+git -C D:/Download/jiuwenswarm log --since="2026-03-07 00:00:00" --until="2026-03-07 23:59:59" --format="%H|%s|%an|%ai" --numstat```**Multi-repository support**:If you need to monitor multiple repositories, expand `DataAggregator`:@@ -2383,8 +2383,8 @@ git -C D:/Download/jiuwenclaw log --since="2026-03-07 00:00:00" --until="2026-03```python# Example of extending configuration (needs to be implemented by yourself)git_repos:- - path: "D:/Download/jiuwenclaw"- name: "jiuwenclaw"+ - path: "D:/Download/jiuwenswarm"+ name: "jiuwenswarm"- path: "D:/Projects/another-repo"name: "another-project"```@@ -2430,7 +2430,7 @@ channels:### 7.1 Test Data Collector```bash# Test Git collection (collect commit records for the specified date)-cd D:\Download\jiuwenclaw+cd D:\Download\jiuwenswarmpython workspace/agent/skills/daily-report/run_report.py daily --date 2026-03-07# Test monthly report generation (collect data for the whole month)@@ -2555,7 +2555,7 @@ If you are also trying to build similar AI Agent applications, I hope this artic> **Let the AI Agent truly become an intelligent work assistant, starting with the advanced daily report generator.**>-> — JiuwenClaw Advanced daily report generator development practice+> — JiuwenSwarm Advanced daily report generator development practice---diff --git a/docs/en/development-practices/README.md b/docs/en/development-practices/README.mdindex 05f5d44b52..a9a43c1182 100644--- a/docs/en/development-practices/README.md+++ b/docs/en/development-practices/README.md@@ -1,8 +1,8 @@# Development practices-Long-form notes on designing and shipping JiuwenClaw skills in real projects.+Long-form notes on designing and shipping JiuwenSwarm skills in real projects.-- [JiuwenClaw Daily Report Generator](JiuwenClaw-Daily-Report-Generator.md) — Multi-source daily, weekly, and monthly reports with heartbeat and Feishu delivery.-- [JiuwenClaw Code Review Assistant](JiuwenClaw-Code-Review-Assistant.md) — Layered static analysis, scoring, and Markdown / Feishu reporting.+- [JiuwenSwarm Daily Report Generator](JiuwenSwarm-Daily-Report-Generator.md) — Multi-source daily, weekly, and monthly reports with heartbeat and Feishu delivery.+- [JiuwenSwarm Code Review Assistant](JiuwenSwarm-Code-Review-Assistant.md) — Layered static analysis, scoring, and Markdown / Feishu reporting.Chinese originals: `docs/zh/开发实践/`.diff --git a/docs/en/install.md b/docs/en/install.mdindex 1d0aab1301..3830d85856 100644--- a/docs/en/install.md+++ b/docs/en/install.md@@ -1,4 +1,4 @@-# JiuwenClaw installation guide+# JiuwenSwarm installation guide> **Important:** Finishing installation does not mean the app is ready to use. You must complete model configuration first. See [Configuration](#configuration) for model setup.@@ -6,7 +6,7 @@## Prerequisites-Before installing JiuwenClaw, make sure your system meets the following requirements:+Before installing JiuwenSwarm, make sure your system meets the following requirements:| Dependency | Version | Notes ||------------|---------|-------|@@ -46,46 +46,46 @@ git --version```bash# Create a virtual environment (recommended)-python -m venv jiuwenclaw-env+python -m venv jiuwenswarm-env# Activate the virtual environment# Windows:-jiuwenclaw-env\Scripts\activate+jiuwenswarm-env\Scripts\activate# macOS/Linux:-source jiuwenclaw-env/bin/activate+source jiuwenswarm-env/bin/activate-# Install JiuwenClaw-pip install jiuwenclaw+# Install JiuwenSwarm+pip install jiuwenswarm```#### 2. Use China mainland mirrors (recommended)```bash# Tsinghua mirror-pip install jiuwenclaw -i https://pypi.tuna.tsinghua.edu.cn/simple+pip install jiuwenswarm -i https://pypi.tuna.tsinghua.edu.cn/simple# Aliyun mirror-pip install jiuwenclaw -i https://mirrors.aliyun.com/pypi/simple/+pip install jiuwenswarm -i https://mirrors.aliyun.com/pypi/simple/```#### 3. First launch```bash-# Initialize JiuwenClaw (first run)-jiuwenclaw-init-# Start JiuwenClaw-jiuwenclaw-start+# Initialize JiuwenSwarm (first run)+jiuwenswarm-init+# Start JiuwenSwarm+jiuwenswarm-start```-After the first start, the app creates the config directory `~/.jiuwenclaw/`.+After the first start, the app creates the config directory `~/.jiuwenswarm/`.#### 4. Restarting the service-If you closed JiuwenClaw and want to run it again:+If you closed JiuwenSwarm and want to run it again:```bash# Start again-jiuwenclaw-start+jiuwenswarm-start```---@@ -106,10 +106,10 @@ curl -LsSf https://astral.sh/uv/install.sh | sh```bash# Clone the repository-git clone https://gitcode.com/openJiuwen/jiuwenclaw.git+git clone https://gitcode.com/openJiuwen/jiuwenswarm.git# Enter project directory-cd jiuwenclaw+cd jiuwenswarm# Create venv and install dependencies with uvuv venv@@ -122,7 +122,7 @@ uv pip install -e .```bash# Enter front-end directory-cd jiuwenclaw/channels/web+cd jiuwenswarm/channels/web# Install front-end dependenciesnpm install@@ -132,9 +132,9 @@ npm run build# Copy build output into the user workspace# Windows:-xcopy /E /I dist %USERPROFILE%\.jiuwenclaw\channels\web\frontend\dist+xcopy /E /I dist %USERPROFILE%\.jiuwenswarm\channels\web\frontend\dist# macOS/Linux:-cp -r dist ~/.jiuwenclaw/channels/web/frontend/dist+cp -r dist ~/.jiuwenswarm/channels/web/frontend/dist# Back to repo rootcd ..@@ -144,7 +144,7 @@ cd ..- `pip install -e .` / `uv pip install -e .` is an editable install that points at your source tree.- `web/dist` is ignored by `.gitignore` and is not shipped in the repo.-- You must build and copy artifacts to `~/.jiuwenclaw/channels/web/frontend/dist`.+- You must build and copy artifacts to `~/.jiuwenswarm/channels/web/frontend/dist`.#### 4. First launch@@ -155,17 +155,17 @@ cd ..# macOS/Linux:source .venv/bin/activate-# Initialize JiuwenClaw (first run)-jiuwenclaw-init+# Initialize JiuwenSwarm (first run)+jiuwenswarm-init# Start-jiuwenclaw-start+jiuwenswarm-start```#### 5. Restarting the service```bash# After activating the virtual environment-jiuwenclaw-start+jiuwenswarm-start```---@@ -222,24 +222,24 @@ conda init```bash# Create environment-conda create -n jiuwenclaw python=3.11+conda create -n jiuwenswarm python=3.11# Initialize conda (first time)conda init# After init, close the window and open a new session before activate# Activate environment-conda activate jiuwenclaw+conda activate jiuwenswarm```#### 3. Clone and install```bash# Clone the repository-git clone https://gitcode.com/openJiuwen/jiuwenclaw.git+git clone https://gitcode.com/openJiuwen/jiuwenswarm.git# Enter project directory-cd jiuwenclaw+cd jiuwenswarm# Install dependenciespip install -e .@@ -251,7 +251,7 @@ pip install -e .```bash# Enter front-end directory-cd jiuwenclaw/channels/web+cd jiuwenswarm/channels/web# Install front-end dependenciesnpm install@@ -261,9 +261,9 @@ npm run build# Copy build output into the user workspace# Windows:-xcopy /E /I dist %USERPROFILE%\.jiuwenclaw\channels\web\frontend\dist+xcopy /E /I dist %USERPROFILE%\.jiuwenswarm\channels\web\frontend\dist# macOS/Linux:-cp -r dist ~/.jiuwenclaw/channels/web/frontend/dist+cp -r dist ~/.jiuwenswarm/channels/web/frontend/dist# Back to repo rootcd ..@@ -273,23 +273,23 @@ cd ..- `pip install -e .` is an editable install that points at your source tree.- `web/dist` is ignored by `.gitignore` and is not shipped in the repo.-- You must build and copy artifacts to `~/.jiuwenclaw/channels/web/frontend/dist`.+- You must build and copy artifacts to `~/.jiuwenswarm/channels/web/frontend/dist`.#### 5. First launch```bash-# Initialize JiuwenClaw (first run)-jiuwenclaw-init+# Initialize JiuwenSwarm (first run)+jiuwenswarm-init# Start-jiuwenclaw-start+jiuwenswarm-start```#### 6. Restarting the service```bash# Activate environment, then start-conda activate jiuwenclaw-jiuwenclaw-start+conda activate jiuwenswarm+jiuwenswarm-start```---@@ -310,14 +310,14 @@ jiuwenclaw-start```bash# Activate your virtual environment# Then upgrade-pip install --upgrade jiuwenclaw+pip install --upgrade jiuwenswarm```#### Source install upgrade```bash# Enter project directory-cd jiuwenclaw+cd jiuwenswarm# Pull latestgit pull@@ -326,15 +326,15 @@ git pullpip install -e .# Rebuild the front end (when it changed)-cd jiuwenclaw/channels/web+cd jiuwenswarm/channels/webnpm installnpm run build# Copy build output# Windows:-xcopy /E /I dist %USERPROFILE%\.jiuwenclaw\channels\web\frontend\dist+xcopy /E /I dist %USERPROFILE%\.jiuwenswarm\channels\web\frontend\dist# macOS/Linux:-cp -r dist ~/.jiuwenclaw/channels/web/frontend/dist+cp -r dist ~/.jiuwenswarm/channels/web/frontend/distcd ..```@@ -351,20 +351,20 @@ cd ..```bash# Back up the whole config and data directory-xcopy "%USERPROFILE%\.jiuwenclaw" "%USERPROFILE%\.jiuwenclaw_backup" /E /I+xcopy "%USERPROFILE%\.jiuwenswarm" "%USERPROFILE%\.jiuwenswarm_backup" /E /I# Or with PowerShell (recommended)-Copy-Item -Path "$env:USERPROFILE\.jiuwenclaw" -Destination "$env:USERPROFILE\.jiuwenclaw_backup" -Recurse+Copy-Item -Path "$env:USERPROFILE\.jiuwenswarm" -Destination "$env:USERPROFILE\.jiuwenswarm_backup" -Recurse```**macOS/Linux:**```bash# Back up the whole config and data directory-cp -r ~/.jiuwenclaw ~/.jiuwenclaw_backup+cp -r ~/.jiuwenswarm ~/.jiuwenswarm_backup# Or with rsync (recommended; preserves permissions)-rsync -av ~/.jiuwenclaw ~/.jiuwenclaw_backup+rsync -av ~/.jiuwenswarm ~/.jiuwenswarm_backup```**What to back up:**@@ -380,7 +380,7 @@ rsync -av ~/.jiuwenclaw ~/.jiuwenclaw_backup#### 2. Perform the upgrade-Pick the steps that match how you installed JiuwenClaw:+Pick the steps that match how you installed JiuwenSwarm:##### pip install upgrade@@ -389,12 +389,12 @@ Same as [Routine version upgrade – pip install upgrade](#pip-install-upgrade):```bash# Activate virtual environment# Windows:-jiuwenclaw-env\Scripts\activate+jiuwenswarm-env\Scripts\activate# macOS/Linux:-source jiuwenclaw-env/bin/activate+source jiuwenswarm-env/bin/activate# Upgrade-pip install --upgrade jiuwenclaw+pip install --upgrade jiuwenswarm```##### Source install upgrade@@ -403,7 +403,7 @@ Same as [Routine version upgrade – source install upgrade](#source-install-upg```bash# Enter project directory-cd jiuwenclaw+cd jiuwenswarm# Pull latestgit pull@@ -423,7 +423,7 @@ After upgrading, migrate data so config and stores match the new version.cat docs/config_template.yaml# Or read the changelog-# https://gitcode.com/openJiuwen/jiuwenclaw/blob/develop/docs/CHANGELOG.md+# https://gitcode.com/openJiuwen/jiuwenswarm/blob/develop/docs/CHANGELOG.md```##### Step 2: Migrate configuration@@ -439,7 +439,7 @@ cat docs/config_template.yaml```bash# Back up the new default config- cp ~/.jiuwenclaw/config/config.yaml ~/.jiuwenclaw/config/config.yaml.new+ cp ~/.jiuwenswarm/config/config.yaml ~/.jiuwenswarm/config/config.yaml.new# Restore from backup (use with care)# Prefer diff/merge in an editor instead of blind overwrite@@ -460,20 +460,20 @@ Memory is usually backward compatible; still verify:```bash# Inspect memory layout-ls ~/.jiuwenclaw/agent/memory/+ls ~/.jiuwenswarm/agent/memory/# If something looks wrong, restore from backup-cp -r ~/.jiuwenclaw_backup/agent/memory/* ~/.jiuwenclaw/agent/memory/+cp -r ~/.jiuwenswarm_backup/agent/memory/* ~/.jiuwenswarm/agent/memory/```##### Step 4: Verify migration```bash# Start the service-jiuwenclaw-start+jiuwenswarm-start# Watch logs for config errors-# Logs: ~/.jiuwenclaw/logs/+# Logs: ~/.jiuwenswarm/logs/```**Migration checklist:**@@ -490,11 +490,11 @@ jiuwenclaw-startAfter installation, configure models before normal use. Files live under:-- **Config directory:** `~/.jiuwenclaw/config/`+- **Config directory:** `~/.jiuwenswarm/config/`- **Main file:** `config.yaml`- **Environment:** `.env`-For details see the [configuration guide](https://gitcode.com/openJiuwen/jiuwenclaw/blob/develop/docs/en/Configuration.md) ([Chinese](https://gitcode.com/openJiuwen/jiuwenclaw/blob/develop/docs/zh/%E9%85%8D%E7%BD%AE%E4%BF%A1%E6%81%AF.md)).+For details see the [configuration guide](https://gitcode.com/openJiuwen/jiuwenswarm/blob/develop/docs/en/Configuration.md) ([Chinese](https://gitcode.com/openJiuwen/jiuwenswarm/blob/develop/docs/zh/%E9%85%8D%E7%BD%AE%E4%BF%A1%E6%81%AF.md)).## FAQ@@ -510,13 +510,13 @@ Install Node.js 18.x or newer.### Q: How do I check the installed version?```bash-jiuwenclaw --version+jiuwenswarm --version```### Q: How do I uninstall?```bash-pip uninstall jiuwenclaw+pip uninstall jiuwenswarm```---@@ -524,9 +524,9 @@ pip uninstall jiuwenclaw## Related links- **Web UI (page overview):** [Page-Overview.md](Page-Overview.md)([简体中文版](../zh/页面概览.md))-- **Repository:** https://gitcode.com/openJiuwen/jiuwenclaw-- **Issues:** https://gitcode.com/openJiuwen/jiuwenclaw/issues-- **Docs:** https://gitcode.com/openJiuwen/jiuwenclaw/tree/develop/docs+- **Repository:** https://gitcode.com/openJiuwen/jiuwenswarm+- **Issues:** https://gitcode.com/openJiuwen/jiuwenswarm/issues+- **Docs:** https://gitcode.com/openJiuwen/jiuwenswarm/tree/develop/docs---diff --git a/docs/zh/A2A.md b/docs/zh/A2A.mdindex 0a17e6a339..bffc7d288a 100644--- a/docs/zh/A2A.md+++ b/docs/zh/A2A.md@@ -2,7 +2,7 @@本文说明 Gateway 侧 **A2A Server**(`A2AChannel`)的实现位置、配置方式、与内部 `Message`/E2A 的对应关系及本地验证命令;出站 A2A(Agent 调外部)见 §7。-> **实现**:`jiuwenclaw/channel/a2a_channel.py`(`A2AChannel` + `a2a-sdk`)。**入口进程**:`python -m jiuwenclaw.app_gateway`(`jiuwenclaw/app_gateway.py` 中注册并启动)。**冲突时**:以源码为准,并回头修正本文。+> **实现**:`jiuwenswarm/channel/a2a_channel.py`(`A2AChannel` + `a2a-sdk`)。**入口进程**:`python -m jiuwenswarm.app_gateway`(`jiuwenswarm/app_gateway.py` 中注册并启动)。**冲突时**:以源码为准,并回头修正本文。---@@ -11,10 +11,10 @@| 位置 | 角色 ||------|------|| **docs/zh/A2A.md**(本文) | 接入与开发联调:模块、配置、映射、验证 |-| `jiuwenclaw/channel/a2a_channel.py` | A2A HTTP 服务、`AgentCard`、请求/响应与 `Message` 互转 |-| `jiuwenclaw/app_gateway.py` | 环境变量读取、`A2AChannel` 构造与 `channel_manager.register_channel` |-| `jiuwenclaw/gateway/message_handler.py` | 与 AgentServer 的 E2A 收发、内部 `Message` 编排 |-| `jiuwenclaw/gateway/channel_manager.py` | 频道注册与 `robot_messages` → `Channel.send` 派发 |+| `jiuwenswarm/channel/a2a_channel.py` | A2A HTTP 服务、`AgentCard`、请求/响应与 `Message` 互转 |+| `jiuwenswarm/app_gateway.py` | 环境变量读取、`A2AChannel` 构造与 `channel_manager.register_channel` |+| `jiuwenswarm/gateway/message_handler.py` | 与 AgentServer 的 E2A 收发、内部 `Message` 编排 |+| `jiuwenswarm/gateway/channel_manager.py` | 频道注册与 `robot_messages` → `Channel.send` 派发 || [E2A-protocol.md](E2A-protocol.md) | Gateway↔AgentServer 内层协议 |---@@ -32,13 +32,13 @@|------|-----|-----|-------------|| 绑定 | `WEB_HOST` / `WEB_PORT` / `WEB_PATH` | `ACP_GATEWAY_*` | `A2A_SERVER_*` || 配置来源 | 环境变量 + CLI(`--host` 等) | 仅环境变量 | 仅环境变量 |-| `.env` | `app_gateway` 启动时 `load_dotenv(get_env_file())`,即 `~/.jiuwenclaw/config/.env` | 同上 | 同上 |+| `.env` | `app_gateway` 启动时 `load_dotenv(get_env_file())`,即 `~/.jiuwenswarm/config/.env` | 同上 | 同上 |---## 3. 环境变量(Gateway)-在 `~/.jiuwenclaw/config/.env` 或进程环境中设置(`app_gateway.py` 读取):+在 `~/.jiuwenswarm/config/.env` 或进程环境中设置(`app_gateway.py` 读取):| 变量 | 默认 | 说明 ||------|------|------|@@ -49,8 +49,8 @@| `A2A_SERVER_PROTOCOL_VERSION` | `1.0.0` | 写入 `AgentCard` 的 `AgentInterface.protocol_version` || `A2A_SERVER_CARD_PATH` | `/.well-known/agent-card.json` | Agent Card 对外路径 || `A2A_SERVER_EXTENDED_CARD_PATH` | `/agent/authenticatedExtendedCard` | Extended Card 对外路径 |-| `A2A_SERVER_APP_NAME` | `JiuwenClaw Gateway A2A Server` | Agent Card `name` |-| `A2A_SERVER_APP_DESCRIPTION` | `A2A ingress for JiuwenClaw Gateway` | Agent Card `description` |+| `A2A_SERVER_APP_NAME` | `JiuwenSwarm Gateway A2A Server` | Agent Card `name` |+| `A2A_SERVER_APP_DESCRIPTION` | `A2A ingress for JiuwenSwarm Gateway` | Agent Card `description` || `A2A_SERVER_APP_VERSION` | `0.1.0` | Agent Card `version` |AgentServer 连接仍由网关既有逻辑配置(例如 `AGENT_SERVER_URL` 等),与 A2A 监听端口独立。@@ -142,4 +142,4 @@ curl -sS -N -X POST "http://127.0.0.1:${A2A_SERVER_PORT:-19100}${A2A_SERVER_PATH## 9. 已知扩展点- 鉴权、限流、超时与观测指标:由网关或前置代理统一补强时,保持 `A2AChannel` 只做协议与消息映射为宜。-- `jiuwenclaw/resources/.env.template` 未预置 A2A/ACP 键时,可在本地 `.env` 手工追加(与 §2 一致)。+- `jiuwenswarm/resources/.env.template` 未预置 A2A/ACP 键时,可在本地 `.env` 手工追加(与 §2 一致)。diff --git "a/docs/zh/ACP\346\217\222\344\273\266\344\275\277\347\224\250.md" "b/docs/zh/ACP\346\217\222\344\273\266\344\275\277\347\224\250.md"index 6e724f1db4..2259d5f577 100644--- "a/docs/zh/ACP\346\217\222\344\273\266\344\275\277\347\224\250.md"+++ "b/docs/zh/ACP\346\217\222\344\273\266\344\275\277\347\224\250.md"@@ -1,6 +1,6 @@# ACP 快速启动-本文将介绍如何在本机启动 `jiuwenclaw` 主进程,并通过 VS Code ACP Client 连接使用。+本文将介绍如何在本机启动 `jiuwenswarm` 主进程,并通过 VS Code ACP Client 连接使用。## 前置要求@@ -17,8 +17,8 @@ ACP 依赖本地 Gateway,**必须先启动主进程,再在 VS Code 中连接顺序如下:-1. 安装 `jiuwenclaw`-2. 执行 `jiuwenclaw-init`+1. 安装 `jiuwenswarm`+2. 执行 `jiuwenswarm-init`3. 配置大模型相关信息4. 启动主进程5. 在 VS Code 中配置 ACP Agent@@ -50,24 +50,24 @@ uv sync### 2. 初始化```bash-jiuwenclaw-init+jiuwenswarm-init```### 3. 配置大模型信息-执行 `jiuwenclaw-init` 后,需要按项目要求**配置大模型相关信息**,否则 Agent 无法正常推理。配置方法参考: [配置方法](配置信息.md)+执行 `jiuwenswarm-init` 后,需要按项目要求**配置大模型相关信息**,否则 Agent 无法正常推理。配置方法参考: [配置方法](配置信息.md)### 4. 启动主进程```bash-python -m jiuwenclaw.app+python -m jiuwenswarm.app```### 5. 在 VS Code 中配置 ACP在 ACP Client 插件中执行 **ACP: Add Agent Configuration**,然后填写:-* **Name**:`jiuwenclaw`+* **Name**:`jiuwenswarm`* **Command**:* Windows:`<repo>/scripts/run_gateway_acp.cmd`@@ -81,7 +81,7 @@ python -m jiuwenclaw.app### 6. 建立连接-完成上述配置后,在 ACP Client 中连接 jiuwenclaw Agent 即可开始使用。+完成上述配置后,在 ACP Client 中连接 jiuwenswarm Agent 即可开始使用。@@ -102,40 +102,40 @@ python -m venv .venv# Linux / macOSsource .venv/bin/activate-pip install jiuwenclaw+pip install jiuwenswarm```### 2. 初始化```bash-jiuwenclaw-init+jiuwenswarm-init```### 3. 配置大模型信息-执行 `jiuwenclaw-init` 后,需要按项目要求**配置大模型相关信息**,否则 Agent 无法正常推理。配置方法参考: [配置方法](配置信息.md)+执行 `jiuwenswarm-init` 后,需要按项目要求**配置大模型相关信息**,否则 Agent 无法正常推理。配置方法参考: [配置方法](配置信息.md)### 4. 启动主进程```bash-python -m jiuwenclaw.app+python -m jiuwenswarm.app```### 5. 在 VS Code 中配置 ACP在 ACP Client 插件中执行 **ACP: Add Agent Configuration**,然后填写:-* **Name**:`jiuwenclaw`-* **Command**:`jiuwenclaw-acp`+* **Name**:`jiuwenswarm`+* **Command**:`jiuwenswarm-acp`* **Config / Arguments**:留空-> 说明:`jiuwenclaw-acp` 是 pip install 后自动生成的命令,与 `jiuwenclaw-init`、`jiuwenclaw-start` 同级。需确保 VS Code 在已安装 jiuwenclaw 的虚拟环境中运行,否则需填写完整路径,例如 Windows:`C:\path\to\venv\Scripts\jiuwenclaw-acp.exe`,Linux / macOS:`/path/to/venv/bin/jiuwenclaw-acp`。+> 说明:`jiuwenswarm-acp` 是 pip install 后自动生成的命令,与 `jiuwenswarm-init`、`jiuwenswarm-start` 同级。需确保 VS Code 在已安装 jiuwenswarm 的虚拟环境中运行,否则需填写完整路径,例如 Windows:`C:\path\to\venv\Scripts\jiuwenswarm-acp.exe`,Linux / macOS:`/path/to/venv/bin/jiuwenswarm-acp`。### 6. 建立连接-完成上述配置后,在 ACP Client 中连接 jiuwenclaw Agent 即可开始使用。+完成上述配置后,在 ACP Client 中连接 jiuwenswarm Agent 即可开始使用。diff --git a/docs/zh/Discord.md b/docs/zh/Discord.mdindex d8a16aa40f..5a6ba7bab0 100644--- a/docs/zh/Discord.md+++ b/docs/zh/Discord.md@@ -1,10 +1,10 @@# Discord 频道接入说明-本文说明如何在 [Discord 开发者平台](https://discord.com/developers/applications) 创建应用与 Bot、开启所需 Intent 与安装方式,并在 JiuwenClaw 的**频道管理**中完成配置。+本文说明如何在 [Discord 开发者平台](https://discord.com/developers/applications) 创建应用与 Bot、开启所需 Intent 与安装方式,并在 JiuwenSwarm 的**频道管理**中完成配置。## 本仓库中的实现-- Python 频道:`jiuwenclaw/channel/discord_channel.py`(基于 discord.py)+- Python 频道:`jiuwenswarm/channel/discord_channel.py`(基于 discord.py)- 运行时配置:`config.yaml` 中的 `channels/discord`,或通过 Web 端 **频道管理** → Discord 保存Bot 使用 **Bot Token** 登录,可在配置的服务器频道与/或私信(DM)中收发消息(也可通过 `block_dm` 关闭私信)。处理过程中会对用户消息尝试添加 👀 反应,与其它频道行为一致。@@ -38,16 +38,16 @@ Bot 使用 **Bot Token** 登录,可在配置的服务器频道与/或私信(**安全提示**- Token 等同于密码,泄露后他人可操控你的 Bot。-- 仅填入 JiuwenClaw 的 Discord 配置或 `config.yaml`,勿提交到代码仓。+- 仅填入 JiuwenSwarm 的 Discord 配置或 `config.yaml`,勿提交到代码仓。- 若怀疑泄露,在同一位置再次 **Reset Token**。-该值对应 JiuwenClaw 中的 **`bot_token`**。+该值对应 JiuwenSwarm 中的 **`bot_token`**。---## 3. 开启 Message Content Intent-JiuwenClaw 需要读取用户消息的**文本内容**。Discord 要求通过「特权网关 Intent」显式开启。+JiuwenSwarm 需要读取用户消息的**文本内容**。Discord 要求通过「特权网关 Intent」显式开启。1. 仍在 **Bot** 页面。2. 在 **Privileged Gateway Intents** 中打开 **MESSAGE CONTENT INTENT**。@@ -61,7 +61,7 @@ JiuwenClaw 需要读取用户消息的**文本内容**。Discord 要求通过「## 4. 服务器安装:权限范围与 Bot 权限-配置 Bot 被安装进服务器后的能力。JiuwenClaw 典型需要:+配置 Bot 被安装进服务器后的能力。JiuwenSwarm 典型需要:- 在目标频道**读取**消息- **发送**消息(回复用户)@@ -94,12 +94,12 @@ JiuwenClaw 需要读取用户消息的**文本内容**。Discord 要求通过「安装完成后:-- **服务器场景**:将 Bot 放入 JiuwenClaw 要监听的频道(见下文 `guild_id` / `channel_id`)。-- **私信场景**:用户可与 Bot 打开私聊(除非在 JiuwenClaw 中开启 **`block_dm`**)。+- **服务器场景**:将 Bot 放入 JiuwenSwarm 要监听的频道(见下文 `guild_id` / `channel_id`)。+- **私信场景**:用户可与 Bot 打开私聊(除非在 JiuwenSwarm 中开启 **`block_dm`**)。----## 6. JiuwenClaw 需要的 ID+## 6. JiuwenSwarm 需要的 ID| 配置项 | 获取方式 ||--------|----------|@@ -116,11 +116,11 @@ https://discord.com/channels/<guild_id>/<channel_id>----## 7. 在 JiuwenClaw 频道管理中配置+## 7. 在 JiuwenSwarm 频道管理中配置在 Web 端打开 **频道管理** → **Discord** 填写并保存,或直接编辑:-`~/.jiuwenclaw/config/config.yaml`(路径因环境可能不同)+`~/.jiuwenswarm/config/config.yaml`(路径因环境可能不同)示例:@@ -172,7 +172,7 @@ channels:### 私信不可用- 若需用户私信使用,需要在Discord进行 **User install**。-- JiuwenClaw 中确认 **`block_dm`** 为 `false`。+- JiuwenSwarm 中确认 **`block_dm`** 为 `false`。- 用户安装后通常需在 Bot 资料页选择 **发消息** 打开 DM。### 模型或下游 API 报错diff --git a/docs/zh/E2A-protocol.md b/docs/zh/E2A-protocol.mdindex 528b0ea71f..45901bcb01 100644--- a/docs/zh/E2A-protocol.md+++ b/docs/zh/E2A-protocol.md@@ -1,6 +1,6 @@# E2A(Everything-to-Agent)协议说明-> **实现**:`jiuwenclaw/e2a/`(`models.py`、`adapters.py`、`constants.py`、`__init__.py`)。**版本**:`E2A_PROTOCOL_VERSION`(默认 `1.0`)。**冲突时**:以 `models.py` 中 dataclass 字段为最终实现源,并回头修正本文。请求:`E2AEnvelope`;响应:`E2AResponse`。+> **实现**:`jiuwenclaw/common/e2a/`(`models.py`、`adapters.py`、`constants.py`、`__init__.py`)。**版本**:`E2A_PROTOCOL_VERSION`(默认 `1.0`)。**冲突时**:以 `models.py` 中 dataclass 字段为最终实现源,并回头修正本文。请求:`E2AEnvelope`;响应:`E2AResponse`。> **English**:[../en/E2A-protocol.md](../en/E2A-protocol.md)---@@ -11,11 +11,10 @@|------|------|| **docs/zh/E2A-protocol.md**(本文,中文) | 规范说明、易混点、示例 || **docs/en/E2A-protocol.md** | 同上,英文版 |-| `jiuwenclaw/e2a/models.py` | 请求 `E2AEnvelope`、响应 `E2AResponse` 与子结构;`from_dict` / `to_dict` |-| `jiuwenclaw/e2a/constants.py` | **`E2A_SOURCE_PROTOCOL_*`**、**`E2A_RESPONSE_KINDS`**、**`E2A_RESPONSE_STATUS_*`**、ACP 方法名与 SessionUpdate 字符串(运行时以元组为准) |-| `jiuwenclaw/e2a/adapters.py` | ACP / A2A → E2A;E2A → ACP JSON-RPC;**`E2AResponse` → ACP / A2A 投影**(见 §8) |-| `jiuwenclaw/e2a/__init__.py` | 对外导出 |-| `jiuwenclaw/e2a/ACP-reference.md` / `A2A-reference.md` | 外部协议阅读笔记,**非** E2A 规范性来源 |+| `jiuwenclaw/common/e2a/models.py` | 请求 `E2AEnvelope`、响应 `E2AResponse` 与子结构;`from_dict` / `to_dict` |+| `jiuwenclaw/common/e2a/constants.py` | **`E2A_SOURCE_PROTOCOL_*`**、**`E2A_RESPONSE_KINDS`**、**`E2A_RESPONSE_STATUS_*`**、ACP 方法名与 SessionUpdate 字符串(运行时以元组为准) |+| `jiuwenclaw/common/e2a/adapters.py` | ACP / A2A → E2A;E2A → ACP JSON-RPC;**`E2AResponse` → ACP / A2A 投影**(见 §8) |+| `jiuwenclaw/common/e2a/__init__.py` | 对外导出 |---@@ -126,7 +125,7 @@## 6. `constants.py` 中的 ACP 字符串(桥接参考)-以下**仅**用于 ACP 桥接或文档对照,**运行时**以 `jiuwenclaw.e2a.constants` 中元组为准:+以下**仅**用于 ACP 桥接或文档对照,**运行时**以 `jiuwenclaw.common.e2a.constants` 中元组为准:- **`ACP_CLIENT_TO_AGENT_METHODS`**:客户端 → Agent 的 JSON-RPC method 名- **`ACP_AGENT_TO_CLIENT_METHODS`**、**`ACP_NOTIFICATION_NAMES`**:下行 / 通知@@ -139,7 +138,7 @@## 7. `merge_params_to_acp_prompt`-Python:`jiuwenclaw.e2a.merge_params_to_acp_prompt(envelope)`。+Python:`jiuwenclaw.common.e2a.merge_params_to_acp_prompt(envelope)`。当且仅当 **`method == "session/prompt"`** 时:@@ -386,4 +385,4 @@ Agent → 网关 → 客户端的**每一条**出站记录(含流式多帧)----*本文与 `jiuwenclaw/e2a/models.py`(`E2AEnvelope`、`E2AResponse`)同步维护。*+*本文与 `jiuwenclaw/common/e2a/models.py`(`E2AEnvelope`、`E2AResponse`)同步维护。*diff --git "a/docs/zh/MCP\351\205\215\347\275\256.md" "b/docs/zh/MCP\351\205\215\347\275\256.md"index 71ff5b0b60..ab843a4b5f 100644--- "a/docs/zh/MCP\351\205\215\347\275\256.md"+++ "b/docs/zh/MCP\351\205\215\347\275\256.md"@@ -1,6 +1,6 @@# MCP 服务配置-JiuwenClaw 支持通过 MCP(Model Context Protocol)接入外部工具服务。MCP 使 Agent 可以调用由第三方提供的工具,扩展能力范围。+JiuwenSwarm 支持通过 MCP(Model Context Protocol)接入外部工具服务。MCP 使 Agent 可以调用由第三方提供的工具,扩展能力范围。---diff --git a/docs/zh/Quickstart.md b/docs/zh/Quickstart.mdindex 629fef3b71..44ca5192fb 100644--- a/docs/zh/Quickstart.md+++ b/docs/zh/Quickstart.md@@ -6,7 +6,7 @@### 环境要求-在安装 JiuwenClaw 之前,请确保您的系统满足以下要求:+在安装 JiuwenSwarm 之前,请确保您的系统满足以下要求:| 依赖项 | 版本要求 | 说明 ||--------|----------|------|@@ -26,32 +26,32 @@ node --version```bash# 创建虚拟环境-python -m venv jiuwenclaw+python -m venv jiuwenswarm# 激活虚拟环境# Windows:-jiuwenclaw\Scripts\activate+jiuwenswarm\Scripts\activate# Linux/Mac:-source jiuwenclaw/bin/activate+source jiuwenswarm/bin/activate-# 安装 JiuwenClaw-pip install jiuwenclaw+# 安装 JiuwenSwarm+pip install jiuwenswarm```## 启动服务```bash# 初始化(首次运行)-jiuwenclaw-init+jiuwenswarm-init# 启动服务-jiuwenclaw-start+jiuwenswarm-start```启动成功后,终端会显示后端服务运行状态:```-[INFO] Starting JiuwenClaw server...+[INFO] Starting JiuwenSwarm server...[INFO] API server running at http://localhost:8000[INFO] Web server running at http://localhost:5173```@@ -59,7 +59,7 @@ jiuwenclaw-start当看到类似上述提示时,表示服务已启动,在浏览器中访问 `http://localhost:5173` 即可使用。<<<<<<< HEAD-适合基于JiuwenClaw进行二次开发适配的用户。+适合基于JiuwenSwarm进行二次开发适配的用户。### `uv`方式安装- 使用`uv`新建虚拟环境@@ -72,16 +72,16 @@ jiuwenclaw-start- 执行uv同步操作- 进入项目根目录`jiuwenclaw/`执行:+ 进入项目根目录`jiuwenswarm/`执行:```bashuv sync```- 安装前端依赖- 进入前端目录 jiuwenclaw/channels/web/frontend 安装依赖:+ 进入前端目录 jiuwenswarm/channels/web/frontend 安装依赖:```bash- cd jiuwenclaw/channels/web/frontend+ cd jiuwenswarm/channels/web/frontendnpm install```@@ -92,30 +92,30 @@ jiuwenclaw-start```bashnpm run buildcd ../../- uv run jiuwenclaw-init- uv run jiuwenclaw-start+ uv run jiuwenswarm-init+ uv run jiuwenswarm-start```- 动态运行前端服务(适合开发调试)```bashcd ../../- uv run jiuwenclaw-init- uv run jiuwenclaw-start dev+ uv run jiuwenswarm-init+ uv run jiuwenswarm-start dev```- 运行完成后即可在网页前端访问JiuwenClaw服务。+ 运行完成后即可在网页前端访问JiuwenSwarm服务。### `conda`方式安装- 使用`conda`新建虚拟环境```bash# 使用Anaconda新建虚拟环境(支持 3.11、3.12、3.13 任一版本)- conda create -n JiuwenClaw python=3.11- # 或 conda create -n JiuwenClaw python=3.12- # 或 conda create -n JiuwenClaw python=3.13+ conda create -n JiuwenSwarm python=3.11+ # 或 conda create -n JiuwenSwarm python=3.12+ # 或 conda create -n JiuwenSwarm python=3.13```- 安装python依赖- 进入项目根目录`jiuwenclaw/`执行:+ 进入项目根目录`jiuwenswarm/`执行:```bash# 模式1:开发模式安装(推荐,便于修改代码)pip install -e .@@ -123,13 +123,13 @@ jiuwenclaw-start# 模式2:普通安装pip install .```- **注意:** 该安装方式依赖项目的可安装包(pyproject.toml),同时会默认安装`jiuwenclaw`自己。+ **注意:** 该安装方式依赖项目的可安装包(pyproject.toml),同时会默认安装`jiuwenswarm`自己。- 安装前端依赖- 进入前端目录 jiuwenclaw/channels/web/frontend 安装依赖:+ 进入前端目录 jiuwenswarm/channels/web/frontend 安装依赖:```bash- cd jiuwenclaw/channels/web/frontend+ cd jiuwenswarm/channels/web/frontendnpm install```@@ -140,19 +140,19 @@ jiuwenclaw-start```bashnpm run buildcd ../../- jiuwenclaw-init- jiuwenclaw-start+ jiuwenswarm-init+ jiuwenswarm-start```- 动态运行前端服务(适合开发调试)```bashcd ../../# 直接启动(不使用 uv run)- jiuwenclaw-init- jiuwenclaw-start dev+ jiuwenswarm-init+ jiuwenswarm-start dev```- 运行完成后即可在网页前端访问JiuwenClaw服务。+ 运行完成后即可在网页前端访问JiuwenSwarm服务。---@@ -163,8 +163,8 @@ jiuwenclaw-start| 方式 | 说明 ||------|-------------------------------------------|| **Web前端** | 启动服务后访问 `http://localhost:5173`,通过浏览器直接对话 |-| **小艺频道** | 华为手机用户可直接唤醒小艺,与JiuwenClaw对话 |-| **飞书频道** | 完成渠道配置后,在飞书中与JiuwenClaw畅聊 |+| **小艺频道** | 华为手机用户可直接唤醒小艺,与JiuwenSwarm对话 |+| **飞书频道** | 完成渠道配置后,在飞书中与JiuwenSwarm畅聊 |#### 2️⃣ 配置模型@@ -174,21 +174,21 @@ jiuwenclaw-start```bash# 启动 Web 服务-jiuwenclaw-web --host 0.0.0.0 --port <custom-port>+jiuwenswarm-web --host 0.0.0.0 --port <custom-port># 启动后端服务-jiuwenclaw-app+jiuwenswarm-app```## 配置模型在 Web 页面左侧找到「配置信息」,进入配置页面:-+完善以下基本配置,完成后点击右上角「保存」:-+**配置项说明:**@@ -216,17 +216,17 @@ jiuwenclaw-app在 Web 页面左侧找到「对话」,输入问题即可开始:-+## 会话管理点击下方的「+」号,可清空当前会话并开启新会话:-+清理后页面显示:-+**什么时候需要清空会话?**@@ -248,7 +248,7 @@ jiuwenclaw-app## 清空记忆-当你需要让 JiuwenClaw 忘记之前的所有对话历史和用户信息时,可以清空记忆文件。+当你需要让 JiuwenSwarm 忘记之前的所有对话历史和用户信息时,可以清空记忆文件。> **⚠️ 风险提示:** 清空记忆是**永久性操作**,删除的记忆文件**无法恢复**。操作前请确认:> - 重要记忆是否已备份@@ -272,11 +272,11 @@ jiuwenclaw-app记忆文件存储在 `{workspace_dir}/memory/` 目录下:**方式一:通过 Agent 删除**-直接告诉 JiuwenClaw:"请删除所有记忆文件" 或 "清空我的记忆",Agent 会调用文件工具删除 memory 目录下的文件。-+直接告诉 JiuwenSwarm:"请删除所有记忆文件" 或 "清空我的记忆",Agent 会调用文件工具删除 memory 目录下的文件。+**方式二:手动删除**-停止 JiuwenClaw 服务后,直接删除 `memory/` 目录下的所有 Markdown 文件即可。-+停止 JiuwenSwarm 服务后,直接删除 `memory/` 目录下的所有 Markdown 文件即可。+> ⚠️ **注意**:清空记忆后无法恢复,请谨慎操作。建议定期备份重要的记忆文件。diff --git a/docs/zh/Quickstart_tui.md b/docs/zh/Quickstart_tui.mdindex a16ac9d6c2..6037e30c70 100644--- a/docs/zh/Quickstart_tui.md+++ b/docs/zh/Quickstart_tui.md@@ -2,14 +2,14 @@> **⚠️ 版本同步**: 本文档应与英文版 [`docs/en/Quickstart_tui.md`](../en/Quickstart_tui.md) 保持同步。更新一版时请同时更新另一版。-JiuwenClaw提供两种安装方式:`pip安装`或`源码安装`。+JiuwenSwarm提供两种安装方式:`pip安装`或`源码安装`。更完整的终端命令、Slash 指令与 Code 模式说明见 **[TUI 使用指南](TUI使用指南.md)**。安装前准备:-- JiuwenClaw代码下载+- JiuwenSwarm代码下载```bash- git clone https://gitcode.com/openjiuwen/jiuwenclaw.git+ git clone https://gitcode.com/openjiuwen/jiuwenswarm.git```- 环境依赖:- python:>=3.11,<3.14@@ -20,44 +20,44 @@ JiuwenClaw提供两种安装方式:`pip安装`或`源码安装`。## **方式一:pip安装**适合自行管理Python环境的用户。具体操作如下:-- 创建虚拟环境 & 安装 jiuwenclaw 项目+- 创建虚拟环境 & 安装 jiuwenswarm 项目```bash- # 创建名为 Jiuwenclaw 的虚拟环境- python -m venv jiuwenclaw+ # 创建名为 jiuwenswarm 的虚拟环境+ python -m venv jiuwenswarm- # Windows 激活 Jiuwenclaw 虚拟环境- jiuwenclaw\Scripts\activate+ # Windows 激活 jiuwenswarm 虚拟环境+ jiuwenswarm\Scripts\activate- # Mac 激活 Jiuwenclaw 虚拟环境+ # Mac 激活 jiuwenswarm 虚拟环境source .venv/bin/activate- # 安装 Jiuwenclaw- pip install jiuwenclaw+ # 安装 jiuwenswarm+ pip install jiuwenswarm- # 安装 Jiuwenclaw-tui- pip install jiuwenclaw-tui+ # 安装 jiuwenswarm-tui+ pip install jiuwenswarm-tui```-- 初始化 & 启动 jiuwenclaw 项目+- 初始化 & 启动 jiuwenswarm 项目```bash- # 初始化 JiuwenClaw (首次启动)- jiuwenclaw-init+ # 初始化 JiuwenSwarm (首次启动)+ jiuwenswarm-init- # 启动 JiuwenClaw- jiuwenclaw-start+ # 启动 JiuwenSwarm+ jiuwenswarm-start```-- 启动 jiuwenclaw-tui 项目+- 启动 jiuwenswarm-tui 项目```bash- # 另打开终端界面,启动 JiuwenClaw-tui- jiuwenclaw-tui+ # 另打开终端界面,启动 JiuwenSwarm-tui+ jiuwenswarm-tui```## **方式二:源码运行**-适合基于JiuwenClaw进行二次开发适配的用户。+适合基于JiuwenSwarm进行二次开发适配的用户。### `uv`方式安装- 使用`uv`新建虚拟环境@@ -68,27 +68,27 @@ JiuwenClaw提供两种安装方式:`pip安装`或`源码安装`。# 或 uv venv --python=3.13```-- 激活 Jiuwenclaw 虚拟环境+- 激活 jiuwenswarm 虚拟环境```bash- # Windows 激活 Jiuwenclaw 虚拟环境- jiuwenclaw\Scripts\activate+ # Windows 激活 jiuwenswarm 虚拟环境+ jiuwenswarm\Scripts\activate- # Mac 激活 Jiuwenclaw 虚拟环境+ # Mac 激活 jiuwenswarm 虚拟环境source .venv/bin/activate```- 执行uv同步操作- 进入项目根目录`jiuwenclaw/`执行:+ 进入项目根目录`jiuwenswarm/`执行:```bashuv sync```- 安装前端依赖- 进入前端目录 jiuwenclaw/channels/web/frontend 安装依赖:+ 进入前端目录 jiuwenswarm/channels/web/frontend 安装依赖:```bash- cd jiuwenclaw/channels/web/frontend+ cd jiuwenswarm/channels/web/frontendnpm install```@@ -99,23 +99,23 @@ JiuwenClaw提供两种安装方式:`pip安装`或`源码安装`。```bashnpm run buildcd ../../- uv run jiuwenclaw-init- uv run jiuwenclaw-start+ uv run jiuwenswarm-init+ uv run jiuwenswarm-start```- 动态运行前端服务(适合生开发调试)```bashcd ../../- uv run jiuwenclaw-init- uv run jiuwenclaw-start dev+ uv run jiuwenswarm-init+ uv run jiuwenswarm-start dev```- 运行完成后即可在网页前端访问JiuwenClaw服务。+ 运行完成后即可在网页前端访问JiuwenSwarm服务。- 安装TUI依赖- 另外打开新终端界面,进入TUI目录 jiuwenclaw/channels/tui/frontend 安装依赖:+ 另外打开新终端界面,进入TUI目录 jiuwenswarm/channels/tui/frontend 安装依赖:```bash- cd jiuwenclaw/channels/tui/frontend+ cd jiuwenswarm/channels/tui/frontendnpm install```@@ -129,13 +129,13 @@ JiuwenClaw提供两种安装方式:`pip安装`或`源码安装`。- 使用`conda`新建虚拟环境```bash# 使用Anaconda新建虚拟环境(支持 3.11、3.12、3.13 任一版本)- conda create -n JiuwenClaw python=3.11- # 或 conda create -n JiuwenClaw python=3.12- # 或 conda create -n JiuwenClaw python=3.13+ conda create -n JiuwenSwarm python=3.11+ # 或 conda create -n JiuwenSwarm python=3.12+ # 或 conda create -n JiuwenSwarm python=3.13```- 安装python依赖- 进入项目根目录`jiuwenclaw/`执行:+ 进入项目根目录`jiuwenswarm/`执行:```bash# 模式1:开发模式安装(推荐,便于修改代码)pip install -e .@@ -143,13 +143,13 @@ JiuwenClaw提供两种安装方式:`pip安装`或`源码安装`。# 模式2:普通安装pip install .```- **注意:** 该安装方式依赖项目的可安装包(pyproject.toml),同时会默认安装`jiuwenclaw`自己。+ **注意:** 该安装方式依赖项目的可安装包(pyproject.toml),同时会默认安装`jiuwenswarm`自己。- 安装前端依赖- 进入前端目录 jiuwenclaw/channels/web/frontend 安装依赖:+ 进入前端目录 jiuwenswarm/channels/web/frontend 安装依赖:```bash- cd jiuwenclaw/channels/web/frontend+ cd jiuwenswarm/channels/web/frontendnpm install```@@ -160,24 +160,24 @@ JiuwenClaw提供两种安装方式:`pip安装`或`源码安装`。```bashnpm run buildcd ../../- jiuwenclaw-init- jiuwenclaw-start+ jiuwenswarm-init+ jiuwenswarm-start```- 动态运行前端服务(适合生开发调试)```bashcd ../../# 直接启动(不使用 uv run)- jiuwenclaw-init- jiuwenclaw-start dev+ jiuwenswarm-init+ jiuwenswarm-start dev```- 运行完成后即可在网页前端访问JiuwenClaw服务。+ 运行完成后即可在网页前端访问JiuwenSwarm服务。- 安装TUI依赖- 另外打开新终端界面,进入TUI目录 jiuwenclaw/channels/tui/frontend 安装依赖:+ 另外打开新终端界面,进入TUI目录 jiuwenswarm/channels/tui/frontend 安装依赖:```bash- cd jiuwenclaw/channels/tui/frontend+ cd jiuwenswarm/channels/tui/frontendnpm install```diff --git a/docs/zh/README.md b/docs/zh/README.mdindex 5949a8c822..c6fee184d8 100644--- a/docs/zh/README.md+++ b/docs/zh/README.md@@ -1,6 +1,6 @@# 使用指南-这里汇总 JiuwenClaw 的常用使用说明与功能文档。+这里汇总 JiuwenSwarm 的常用使用说明与功能文档。- 从零开始安装与启动:见 [安装指南](安装指南.md)- 从零开始安装与启动:见 [快速开始](Quickstart.md) / [TUI 模式](Quickstart_tui.md);终端命令与 Code 模式详解见 [TUI 使用指南](TUI使用指南.md)@@ -38,5 +38,5 @@开发实践:-- [JiuwenClaw 代码审查助手](开发实践/JiuwenClaw代码审查助手开发实践.md)-- [JiuwenClaw 日报生成器](开发实践/JiuwenClaw日报生成器开发实践.md)\ No newline at end of file+- [JiuwenSwarm 代码审查助手](开发实践/JiuwenSwarm代码审查助手开发实践.md)+- [JiuwenSwarm 日报生成器](开发实践/JiuwenSwarm日报生成器开发实践.md)\ No newline at end of filediff --git a/docs/zh/SLASH_COMMAND_ARCHITECTURE.md b/docs/zh/SLASH_COMMAND_ARCHITECTURE.mdindex f0dbfcfd70..911466667e 100644--- a/docs/zh/SLASH_COMMAND_ARCHITECTURE.md+++ b/docs/zh/SLASH_COMMAND_ARCHITECTURE.md@@ -11,7 +11,7 @@- **Gateway**:`MessageHandler._handle_channel_control` 处理受控通道上的 `/new_session`、`/mode …` 等,并决定是否**拦截、不转发 Agent**。- **IM 管线 / 各 Channel**:例如 `gateway/im_pipeline/im_inbound.py` 中的控制消息集合、飞书/企业微信等通道内的文本判断,可能与主逻辑**集合不一致**。-- **CLI TUI**:`jiuwenclaw/channels/tui/frontend/src/core/commands/` 下本地注册表,部分命令通过 WebSocket 调用后端,部分纯本地。+- **CLI TUI**:`jiuwenswarm/channels/tui/frontend/src/core/commands/` 下本地注册表,部分命令通过 WebSocket 调用后端,部分纯本地。若不建立明确分层与单一数据源,会出现:**同名命令语义不一致、文档与代码漂移、新通道重复实现解析规则**。@@ -72,7 +72,7 @@### 4.1 模块位置(建议)-- **Python 侧**:已实现为 `jiuwenclaw/gateway/slash_command.py`(受控通道解析、`CONTROL_MESSAGE_TEXTS`、第一批命令元数据 `FIRST_BATCH_REGISTRY`)。亦可按演进拆分为 `channel_control_slash.py` 等。原建议职责为:+- **Python 侧**:已实现为 `jiuwenswarm/gateway/slash_command.py`(受控通道解析、`CONTROL_MESSAGE_TEXTS`、第一批命令元数据 `FIRST_BATCH_REGISTRY`)。亦可按演进拆分为 `channel_control_slash.py` 等。原建议职责为:- **数据**:受控命令的集合、匹配规则(精确 / 前缀 / 禁止多行等)、元数据(说明、是否转发 Agent)。- **纯函数**:给定通道类型与用户文本,返回**结构化判定结果**(未命中 / 命中且合法 / 命中但非法),**不**直接做 IO(不在这里 `create_task` 发通知)。- **命名建议**:若仅包含 A 类,模块名应避免被误解为「全站所有 slash」,以免后续贡献者把 B 类逻辑塞入 Gateway。diff --git a/docs/zh/SUMMARY.md b/docs/zh/SUMMARY.mdindex 65318beb28..33aeae5553 100644--- a/docs/zh/SUMMARY.md+++ b/docs/zh/SUMMARY.md@@ -37,6 +37,6 @@- [ACP 插件使用](ACP插件使用.md)- [Windows 自动更新设计](windows自动更新设计.md)- [开发实践](开发实践/README.md)- - [日报生成器开发实践](开发实践/JiuwenClaw日报生成器开发实践.md)- - [代码审查助手开发实践](开发实践/JiuwenClaw代码审查助手开发实践.md)+ - [日报生成器开发实践](开发实践/JiuwenSwarm日报生成器开发实践.md)+ - [代码审查助手开发实践](开发实践/JiuwenSwarm代码审查助手开发实践.md)- [Linux NFS 共享文件系统](../linux-agent-teams-shared-filesystem.md)\ No newline at end of filediff --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 a18f84cace..44a4856e59 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"@@ -2,15 +2,15 @@Agent 系统普遍存在一个问题:能力定义一旦写好,就基本不会再变了。工具调用出错,记录一条日志;用户反馈说理解有误,下次还是同样的逻辑。能力的上限,从部署那天就已经固定了。-JiuwenClaw 基于 **openJiuwen 自演进框架**,以 `SkillCallOperator` 算子统一管理所有 Skills 的读写与演进分发。在此基础上,系统内置了一套演进信号检测机制,持续监听执行过程和对话内容,将真实使用中遇到的问题转化为 Skills 的改进输入。+JiuwenSwarm 基于 **openJiuwen 自演进框架**,以 `SkillCallOperator` 算子统一管理所有 Skills 的读写与演进分发。在此基础上,系统内置了一套演进信号检测机制,持续监听执行过程和对话内容,将真实使用中遇到的问题转化为 Skills 的改进输入。## 核心组件### SkillCallOperator-SkillCallOperator 是 JiuwenClaw 基于 openJiuwen 框架实现的 Operator 算子,负责 Skills 的统一管理。+SkillCallOperator 是 JiuwenSwarm 基于 openJiuwen 框架实现的 Operator 算子,负责 Skills 的统一管理。-作为 JiuwenClaw 与 Skills 交互的核心入口,它承担以下职责:+作为 JiuwenSwarm 与 Skills 交互的核心入口,它承担以下职责:- 读取 Skill 定义(SKILL.md)- 执行 Skill 指令- 自动加载 Skill 积累的演进经验@@ -19,7 +19,7 @@ SkillCallOperator 是 JiuwenClaw 基于 openJiuwen 框架实现的 Operator 算### SkillOptimizer-SkillOptimizer 是 JiuwenClaw 基于 openJiuwen 框架实现的 Optimizer 优化器,负责驱动整个 Skill 演进流程。+SkillOptimizer 是 JiuwenSwarm 基于 openJiuwen 框架实现的 Optimizer 优化器,负责驱动整个 Skill 演进流程。它的核心工作包括:1. **接收信号**:从 SignalDetector 接收异常信号,理解当前 Skill 遇到了什么问题@@ -187,7 +187,7 @@ User: 不对,我说的是查询上海不是北京## 如何使用-使用 JiuwenClaw 时,你可以通过以下方式与 Skill 演进功能交互:+使用 JiuwenSwarm 时,你可以通过以下方式与 Skill 演进功能交互:### 自演进配置开关@@ -240,7 +240,7 @@ skill 自动演进功能通过在配置信息中开启自演进配置项 `evolut**目录位置:**```-~/.jiuwenclaw/workspace/agent/skills/<skill_name>/+~/.jiuwenswarm/workspace/agent/skills/<skill_name>/├── SKILL.md # Skill 源文档├── evolutions.json # 演进经验记录 ← 在这里编辑└── ...diff --git "a/docs/zh/Slash\345\221\275\344\273\244\350\241\250.md" "b/docs/zh/Slash\345\221\275\344\273\244\350\241\250.md"index 651a2a92c2..035ecbf282 100644--- "a/docs/zh/Slash\345\221\275\344\273\244\350\241\250.md"+++ "b/docs/zh/Slash\345\221\275\344\273\244\350\241\250.md"@@ -24,7 +24,7 @@| `/workspace` | 管理可信目录(见下文) || `/teamskills` | TeamSkills 管理(`init/validate/pack/info/search/list/install/uninstall/config/publish/delete`) || `/export` | 导出当前会话到文件或剪贴板(见下文) |-| `/status` | 查看 jiuwenclaw 运行状态概览、用量统计、配置编辑(见下文) |+| `/status` | 查看 jiuwenswarm 运行状态概览、用量统计、配置编辑(见下文) || `/statusline` | 配置 TUI 底部状态栏的自定义命令(见下文) || `/permissions` | 管理工具权限(`allow`/`ask`/`deny`) |@@ -72,7 +72,7 @@#### 概念说明-- **系统默认工作空间(workspace)**:固定路径 `~/.jiuwenclaw/agent/jiuwenclaw_workspace`,始终可用+- **系统默认工作空间(workspace)**:固定路径 `~/.jiuwenswarm/agent/jiuwenswarm_workspace`,始终可用- **可信目录(trusted_dirs)**:用户授权的可访问目录,由 TUI 管理,传递给后端 Agent#### 控制逻辑@@ -81,7 +81,7 @@- 选择「信任」:将当前目录添加为可信目录- 选择「不信任」:仅使用默认工作空间-2. **会话级管理**:可信目录会持久化到./jiuwenclaw-tui/config.json文件里+2. **会话级管理**:可信目录会持久化到./jiuwenswarm-tui/config.json文件里3. **后端传递**:TUI 通过请求参数 `trusted_dirs` 传递可信目录列表,Agent 据此限制文件操作范围@@ -354,7 +354,7 @@- **市场源(Marketplace source)**:托管可用技能的远程仓库(通常为 Git URL),每个源包含名称、URL 和启用/禁用状态。- **规格标识(Spec)**:从市场源安装时使用的标识格式 `<技能名>@<市场源名>`;内置技能安装时可不带 `@`,自动识别为 `@builtin`。- **本地安装(Local install)**:通过 `/skills install <path>` 将本地目录(需包含 `SKILL.md`)或远程归档 URL 安装为自定义技能;路径/URL 会自动识别并走本地导入流程。-- **安装位置(Install location)**:技能安装后的存储目录(`~/.jiuwenclaw/agent/jiuwenclaw_workspace/skills/`)。+- **安装位置(Install location)**:技能安装后的存储目录(`~/.jiuwenswarm/agent/jiuwenswarm_workspace/skills/`)。- **来源标签(Source tag)**:列表中每项技能标注来源,`[builtin]` 表示内置、`[local]` 表示本地导入、`[project]` 或市场源名表示其他来源。#### 列表分组展示@@ -446,7 +446,7 @@### `/status`(查看运行状态)-显示 jiuwenclaw 运行状态概览、用量统计或配置编辑界面。+显示 jiuwenswarm 运行状态概览、用量统计或配置编辑界面。#### 子命令@@ -528,7 +528,7 @@| `mode` | 当前模式(`agent.plan` / `agent.fast` / `code.plan` / `code.normal` / `team`) || `model` | 当前模型名称 || `provider` | 模型提供商 |-| `version` | jiuwenclaw 版本号 |+| `version` | jiuwenswarm 版本号 || `connection` | 连接状态(`idle` / `connecting` / `connected` / `reconnecting` / `auth_failed`) || `theme` | 当前主题名 || `accent_color` | 当前强调色名 |@@ -600,7 +600,7 @@- **超时保护**:单次执行超时 3 秒后自动终止,不影响后续轮询。- **输出限制**:命令输出超过 10KB 时截断;显示宽度自动适配 TUI 终端宽度。- **故障静默**:命令执行失败时不显示错误,保持上一次成功输出或隐藏状态栏。-- **持久化**:配置保存在 `~/.jiuwenclaw-tui/config.json` 的 `statusLine` 字段,重启 TUI 后自动恢复。+- **持久化**:配置保存在 `~/.jiuwenswarm-tui/config.json` 的 `statusLine` 字段,重启 TUI 后自动恢复。- **别名**:`/sl`- **Windows 适配**:系统自动将 `$(cat)` 替换为读取临时文件,用户命令格式不变;需确保 Git Bash 的 `usr\bin` 在系统 PATH 中。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 ff0f9ac86d..d5f5ad6c75 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"@@ -1,7 +1,7 @@-# JiuwenClaw TUI 使用指南+# JiuwenSwarm TUI 使用指南-> 本文档面向 **JiuwenClaw 终端界面(`jiuwenclaw-tui` / `jiuwenclaw-cli`)** 用户,结构与 [Claude Code CLI 参考](https://code.claude.com/docs/zh-CN/cli-reference) 类似:先列 **CLI 启动参数**,再列 **Slash 命令**,接着是 **工具参考** 与 **交互模式**,并对 **Code 模式** 做重点说明。-> 行为以仓库代码为准:`jiuwenclaw/cli/src/index.ts`、`jiuwenclaw/cli/src/core/commands/registry.ts` 及各 `builtins/*.ts`。+> 本文档面向 **JiuwenSwarm 终端界面(`jiuwenswarm-tui` / `jiuwenswarm-cli`)** 用户,结构与 [Claude Code CLI 参考](https://code.claude.com/docs/zh-CN/cli-reference) 类似:先列 **CLI 启动参数**,再列 **Slash 命令**,接着是 **工具参考** 与 **交互模式**,并对 **Code 模式** 做重点说明。+> 行为以仓库代码为准:`jiuwenswarm/cli/src/index.ts`、`jiuwenswarm/cli/src/core/commands/registry.ts` 及各 `builtins/*.ts`。---@@ -18,21 +18,21 @@| 方式 | 说明 ||------|------|-| `jiuwenclaw-tui` | 通过 `jiuwenclaw-tui` PyPI 包启动时,由包装器拉起对应平台的二进制(见 `packages/jiuwenclaw-tui`)。 |-| `jiuwenclaw-cli` | 源码/开发路径下,在 `jiuwenclaw/cli` 执行 `npm run dev` 或 `npm run start` 后使用 `jiuwenclaw-cli`(见 `package.json` 的 `bin`)。 |+| `jiuwenswarm-tui` | 通过 `jiuwenswarm-tui` PyPI 包启动时,由包装器拉起对应平台的二进制(见 `packages/jiuwenswarm-tui`)。 |+| `jiuwenswarm-cli` | 源码/开发路径下,在 `jiuwenswarm/cli` 执行 `npm run dev` 或 `npm run start` 后使用 `jiuwenswarm-cli`(见 `package.json` 的 `bin`)。 |-以下 **命令行标志** 由 `jiuwenclaw/cli/src/index.ts` 中的 `parseArgs` 定义:+以下 **命令行标志** 由 `jiuwenswarm/cli/src/index.ts` 中的 `parseArgs` 定义:| 标志 | 说明 | 默认值 | 示例 ||------|------|--------|------|-| `--url <url>` | Gateway 的 CLI WebSocket 地址 | `ws://127.0.0.1:19001/tui` | `jiuwenclaw-cli --url ws://192.168.1.10:19001/tui` |-| `--session <id>` | 启动时恢复指定会话 ID | 无 | `jiuwenclaw-cli --session abc-123` |-| `--token <token>` | 鉴权令牌(若 Gateway 需要) | 空字符串 | `jiuwenclaw-cli --token YOUR_TOKEN` |-| `-h`, `--help` | 打印帮助并退出 | - | `jiuwenclaw-cli -h` |+| `--url <url>` | Gateway 的 CLI WebSocket 地址 | `ws://127.0.0.1:19001/tui` | `jiuwenswarm-cli --url ws://192.168.1.10:19001/tui` |+| `--session <id>` | 启动时恢复指定会话 ID | 无 | `jiuwenswarm-cli --session abc-123` |+| `--token <token>` | 鉴权令牌(若 Gateway 需要) | 空字符串 | `jiuwenswarm-cli --token YOUR_TOKEN` |+| `-h`, `--help` | 打印帮助并退出 | - | `jiuwenswarm-cli -h` |### 启动后界面-- **欢迎区**:ASCII 标题、版本、当前 Provider / Model / Mode;窄终端下为精简布局(`jiuwenclaw/cli/src/ui/welcome.ts`)。+- **欢迎区**:ASCII 标题、版本、当前 Provider / Model / Mode;窄终端下为精简布局(`jiuwenswarm/cli/src/ui/welcome.ts`)。- **连接提示**:未连上后端时会提示检查 Gateway 或 `--url`;鉴权失败时提示检查 `--token`。- **ripgrep 提示**:若本机未安装 `rg`,会提示安装以优化文件搜索。@@ -49,7 +49,7 @@当前 **已注册** 的顶层命令来自 `createBuiltinCommands()`(`registry.ts`),按名称排序如下表。-> **与文档 [Slash命令表.md](Slash命令表.md) 的差异**:`jiuwenclaw/cli/src/core/commands/builtins/` 下另有 **`switch.ts`(`/switch`)**、**`cancel.ts`(`/cancel`)**、**`new.ts`(`/new` 独立建会话)**、**`sessions.ts`(会话列表 RPC)** 等实现,但 **当前 `registry.ts` 未注册**这些顶层命令,输入后会得到 `Unknown command`。中断任务请优先使用 **`Ctrl+C`**(第一次中断,连按两次退出)。Gateway 侧受控指令仍以 `jiuwenclaw/gateway/slash_command.py` 与 Slash命令表为准。+> **与文档 [Slash命令表.md](Slash命令表.md) 的差异**:`jiuwenswarm/cli/src/core/commands/builtins/` 下另有 **`switch.ts`(`/switch`)**、**`cancel.ts`(`/cancel`)**、**`new.ts`(`/new` 独立建会话)**、**`sessions.ts`(会话列表 RPC)** 等实现,但 **当前 `registry.ts` 未注册**这些顶层命令,输入后会得到 `Unknown command`。中断任务请优先使用 **`Ctrl+C`**(第一次中断,连按两次退出)。Gateway 侧受控指令仍以 `jiuwenswarm/gateway/slash_command.py` 与 Slash命令表为准。### 命令总表@@ -107,7 +107,7 @@#### `/workspace`(可信目录)-- 系统默认工作空间:`~/.jiuwenclaw/agent/jiuwenclaw_workspace`(始终可用)。+- 系统默认工作空间:`~/.jiuwenswarm/agent/jiuwenswarm_workspace`(始终可用)。- `add`:默认路径为当前工作目录;成功后会 `command.add_dir` 同步到服务端并 `remember: true`。- `set`:重置为单个可信目录;若已有列表会二次确认。- 详见 [Slash命令表.md](Slash命令表.md) 的 `/workspace` 小节。@@ -370,9 +370,9 @@| 问题 | 建议 ||------|------|-| `jiuwenclaw-cli requires an interactive TTY` | 在真实终端中运行,勿用管道代替 |+| `jiuwenswarm-cli requires an interactive TTY` | 在真实终端中运行,勿用管道代替 || `Authentication failed` | 检查 `--token` |-| `Backend unavailable` | 启动 `jiuwenclaw-gateway` 或修正 `--url` |+| `Backend unavailable` | 启动 `jiuwenswarm-gateway` 或修正 `--url` || `Unknown command: /xxx` | 该构建未注册该命令;用 `/help` 查看当前可用列表,或对照本文「命令总表」与 `registry.ts` || `/copy` 失败 | 当前系统无剪贴板集成;Linux 需常见剪贴板工具 |diff --git a/docs/zh/assets/jiuwenclaw_enable_wechat.png b/docs/zh/assets/jiuwenswarm_enable_wechat.pngsimilarity index 100%rename from docs/zh/assets/jiuwenclaw_enable_wechat.pngrename to docs/zh/assets/jiuwenswarm_enable_wechat.pngdiff --git a/docs/zh/developer_guide.md b/docs/zh/developer_guide.mdindex 5cea8d2939..4b2ad917d0 100644--- a/docs/zh/developer_guide.md+++ b/docs/zh/developer_guide.md@@ -1,6 +1,6 @@# 开发者指南-本文档面向 JiuwenClaw 项目的开发者,介绍如何从源码搭建开发环境并运行测试。+本文档面向 JiuwenSwarm 项目的开发者,介绍如何从源码搭建开发环境并运行测试。## 环境要求@@ -15,8 +15,8 @@## 1. 克隆项目```bash-git clone <repository-url> jiuwenclaw-cd jiuwenclaw+git clone <repository-url> jiuwenswarm+cd jiuwenswarm```## 2. 使用 `uv` 搭建开发环境@@ -53,7 +53,7 @@ source .venv/bin/activate### 执行 uv 同步操作-在项目根目录 `jiuwenclaw/` 执行:+在项目根目录 `jiuwenswarm/` 执行:```bashuv sync@@ -89,8 +89,8 @@ bun --version### 项目结构概览```-jiuwenclaw/-├── jiuwenclaw/ # 项目源码+jiuwenswarm/+├── jiuwenswarm/ # 项目源码├── tests/│ ├── unit_tests/ # 单元测试│ ├── system_tests/ # 系统测试@@ -121,8 +121,8 @@ uv add --dev pytest-cov pytest-asyncio修改后端 Python 代码后,执行以下命令重新初始化并启动服务:```bash-uv run jiuwenclaw-init-uv run jiuwenclaw-start+uv run jiuwenswarm-init+uv run jiuwenswarm-start```#### 前端代码修改@@ -230,8 +230,8 @@ node --version| 包名 | 说明 | 配置文件 ||------|------|----------|-| `jiuwenclaw` | 后端服务主包(含 Web 前端构建产物) | `pyproject.toml` |-| `jiuwenclaw-tui` | TUI 终端界面 sidecar 包(含 Bun 编译的原生二进制) | `packages/jiuwenclaw-tui/pyproject.toml` |+| `jiuwenswarm` | 后端服务主包(含 Web 前端构建产物) | `pyproject.toml` |+| `jiuwenswarm-tui` | TUI 终端界面 sidecar 包(含 Bun 编译的原生二进制) | `packages/jiuwenswarm-tui/pyproject.toml` |#### 6.1.1 一键构建全部(推荐)@@ -243,13 +243,13 @@ bash scripts/build.sh```该脚本会依次执行:-1. 编译 Web 前端(`jiuwenclaw/channels/web/frontend` 目录下执行 `npm run build`)-2. 构建主包 `jiuwenclaw.whl`-3. 如果检测到 `bun` 命令,继续构建 TUI 原生二进制和 `jiuwenclaw-tui.whl`+1. 编译 Web 前端(`jiuwenswarm/channels/web/frontend` 目录下执行 `npm run build`)+2. 构建主包 `jiuwenswarm.whl`+3. 如果检测到 `bun` 命令,继续构建 TUI 原生二进制和 `jiuwenswarm-tui.whl`产物输出到两个目录:-- `./dist/jiuwenclaw-<version>-py3-none-any.whl`(主包)-- `./packages/jiuwenclaw-tui/dist/jiuwenclaw_tui-<version>-<platform>.whl`(TUI sidecar 包)+- `./dist/jiuwenswarm-<version>-py3-none-any.whl`(主包)+- `./packages/jiuwenswarm-tui/dist/jiuwenswarm_tui-<version>-<platform>.whl`(TUI sidecar 包)### 6.2 桌面版 EXE / DMG 打包@@ -274,7 +274,7 @@ scripts\build-exe.bat.\scripts\build-exe.ps1```-产物目录:`dist\jiuwenclaw\jiuwenclaw.exe`+产物目录:`dist\jiuwenswarm\jiuwenswarm.exe`#### 6.2.3 macOS 平台打包(DMG)@@ -285,7 +285,7 @@ bash scripts/build-macos.sh该脚本会依次执行:1. 安装 Python 依赖(`uv sync --extra dev`)2. 编译 Web 前端(`npm run build`)-3. PyInstaller 打包生成 `JiuwenClaw.app`+3. PyInstaller 打包生成 `JiuwenSwarm.app`4. 使用 `hdiutil` 创建 DMG 安装镜像-产物:`dist/JiuwenClaw-<version>.dmg`+产物:`dist/JiuwenSwarm-<version>.dmg`diff --git a/docs/zh/whatsapp.md b/docs/zh/whatsapp.mdindex b74dd81b18..3776d5fdce 100644--- a/docs/zh/whatsapp.md+++ b/docs/zh/whatsapp.md@@ -4,13 +4,13 @@## 架构-JiuwenClaw 的 Python 代码不会直接连接 WhatsApp。+JiuwenSwarm 的 Python 代码不会直接连接 WhatsApp。`WhatsApp 客户端` <-> `Baileys bridge(Node.js)` <-> `WhatsAppChannel(Python)`- Bridge WebSocket 默认地址:`ws://127.0.0.1:19600/ws`-- Bridge 脚本:`jiuwenclaw/scripts/whatsapp-bridge.js`-- Python 频道实现:`jiuwenclaw/channel/whatsapp_channel.py`+- Bridge 脚本:`jiuwenswarm/scripts/whatsapp-bridge.js`+- Python 频道实现:`jiuwenswarm/channel/whatsapp_channel.py`- 运行时配置位置:`config.yaml` 里的 `channels.whatsapp`## 当前仓库已经实现的能力@@ -80,16 +80,16 @@ Python 侧当前会追踪这些状态:## 前置要求-- 可运行 `python -m jiuwenclaw.app` 的 Python 环境+- 可运行 `python -m jiuwenswarm.app` 的 Python 环境- Node.js 20+ 和 npm- 已开通 Linked Devices 的 WhatsApp 账号## 1. 安装 Bridge 依赖-在内层项目目录执行,也就是包含 `jiuwenclaw/package.json` 的目录:+在内层项目目录执行,也就是包含 `jiuwenswarm/package.json` 的目录:```powershell-cd C:\Users\chiak\OneDrive\Desktop\jiuwenclaw\jiuwenclaw+cd C:\Users\chiak\OneDrive\Desktop\jiuwenswarm\jiuwenswarmnpm install```@@ -103,7 +103,7 @@ npm install @whiskeysockets/baileys ws pino qrcode-terminal编辑运行时配置文件:-`C:\Users\chiak\.jiuwenclaw\config\config.yaml`+`C:\Users\chiak\.jiuwenswarm\config\config.yaml`在 `channels:` 下添加或确认如下配置:@@ -115,7 +115,7 @@ npm install @whiskeysockets/baileys ws pino qrcode-terminalenable_streaming: trueauto_start_bridge: falsebridge_command: node scripts/whatsapp-bridge.js- bridge_workdir: C:/Users/chiak/OneDrive/Desktop/jiuwenclaw/jiuwenclaw+ bridge_workdir: C:/Users/chiak/OneDrive/Desktop/jiuwenswarm/jiuwenswarmenabled: true```@@ -134,7 +134,7 @@ npm install @whiskeysockets/baileys ws pino qrcode-terminal终端 A,启动 bridge:```powershell-cd C:\Users\chiak\OneDrive\Desktop\jiuwenclaw\jiuwenclaw+cd C:\Users\chiak\OneDrive\Desktop\jiuwenswarm\jiuwenswarmnpm run whatsapp:bridge```@@ -145,8 +145,8 @@ npm run whatsapp:bridge终端 B,启动应用:```powershell-cd C:\Users\chiak\OneDrive\Desktop\jiuwenclaw-python -m jiuwenclaw.app+cd C:\Users\chiak\OneDrive\Desktop\jiuwenswarm+python -m jiuwenswarm.app```预期行为:@@ -167,7 +167,7 @@ python -m jiuwenclaw.app认证状态会保存在:-`jiuwenclaw/jiuwenclaw/workspace/.whatsapp-auth`+`jiuwenswarm/jiuwenswarm/workspace/.whatsapp-auth`如果账号已经绑定,可能不会再次出现二维码,这是正常现象。@@ -197,7 +197,7 @@ API_BASE=https://your-real-openai-compatible-endpoint/v1API_KEY=your-real-key```-更新 `.env` 后重启 `python -m jiuwenclaw.app`。+更新 `.env` 后重启 `python -m jiuwenswarm.app`。## 故障排查@@ -205,13 +205,13 @@ API_KEY=your-real-key说明你在错误目录执行了 `npm`。请使用:-`C:\Users\chiak\OneDrive\Desktop\jiuwenclaw\jiuwenclaw`+`C:\Users\chiak\OneDrive\Desktop\jiuwenswarm\jiuwenswarm`### Bridge 启动了但没有二维码1. 先停止旧的 bridge 进程,避免端口或旧会话冲突。2. 删除认证目录,强制重新绑定:- `jiuwenclaw/jiuwenclaw/workspace/.whatsapp-auth`+ `jiuwenswarm/jiuwenswarm/workspace/.whatsapp-auth`3. 重新启动 bridge,等待出现 `QR received`。### App 能连上 bridge,但发不出消息diff --git "a/docs/zh/windows\350\207\252\345\212\250\346\233\264\346\226\260\350\256\276\350\256\241.md" "b/docs/zh/windows\350\207\252\345\212\250\346\233\264\346\226\260\350\256\276\350\256\241.md"index 5596b100a7..780ffdbd78 100644--- "a/docs/zh/windows\350\207\252\345\212\250\346\233\264\346\226\260\350\256\276\350\256\241.md"+++ "b/docs/zh/windows\350\207\252\345\212\250\346\233\264\346\226\260\350\256\276\350\256\241.md"@@ -1,6 +1,6 @@# Windows 自动更新设计-本文档描述 JiuwenClaw 在 Windows 桌面版上的最小可用自动更新方案。目标是优先保证稳定性,而不是追求无感升级。+本文档描述 JiuwenSwarm 在 Windows 桌面版上的最小可用自动更新方案。目标是优先保证稳定性,而不是追求无感升级。## 目标范围@@ -8,7 +8,7 @@- 启动时自动检查一次更新- 用户可在左侧栏 `更新` 页面手动检查更新- 更新源直接使用 GitHub Release-- 下载产物为 Inno Setup 安装包 `jiuwenclaw-setup-<version>.exe`+- 下载产物为 Inno Setup 安装包 `jiuwenswarm-setup-<version>.exe`- 下载完成后由外部 helper 脚本静默安装并重启应用## 不做的能力@@ -25,7 +25,7 @@2. 后端请求 GitHub Releases API 获取最新 release3. 若发现新版本,则记录最新版本、发布时间、说明和安装包下载地址4. 用户在 `更新` 页点击 `下载更新`-5. 后端后台下载安装包到 `%USERPROFILE%\\.jiuwenclaw\\.updates`+5. 后端后台下载安装包到 `%USERPROFILE%\\.jiuwenswarm\\.updates`6. 下载完成后,前端调用 pywebview API 触发安装7. 桌面进程写入临时 `cmd` helper,等待当前进程退出8. helper 静默执行 Inno Setup 安装包,然后重启应用@@ -53,10 +53,10 @@ https://api.github.com/repos/{owner}/{repo}/releases/latestupdater:enabled: truerepo_owner: CharlieZhao95- repo_name: jiuwenclaw+ repo_name: jiuwenswarmrelease_api_url: ""- asset_name_pattern: "jiuwenclaw-setup-{version}.exe"- sha256_name_pattern: "jiuwenclaw-setup-{version}.exe.sha256"+ asset_name_pattern: "jiuwenswarm-setup-{version}.exe"+ sha256_name_pattern: "jiuwenswarm-setup-{version}.exe.sha256"timeout_seconds: 20```@@ -94,4 +94,4 @@ updater:/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /CLOSEAPPLICATIONS```-4. 安装完成后重新启动 `jiuwenclaw.exe`+4. 安装完成后重新启动 `jiuwenswarm.exe`diff --git "a/docs/zh/\344\270\212\344\270\213\346\226\207\345\216\213\347\274\251\345\215\270\350\275\275.md" "b/docs/zh/\344\270\212\344\270\213\346\226\207\345\216\213\347\274\251\345\215\270\350\275\275.md"index d214778503..b8a8b0a085 100644--- "a/docs/zh/\344\270\212\344\270\213\346\226\207\345\216\213\347\274\251\345\215\270\350\275\275.md"+++ "b/docs/zh/\344\270\212\344\270\213\346\226\207\345\216\213\347\274\251\345\215\270\350\275\275.md"@@ -2,11 +2,11 @@在日常使用智能体的过程中,随着对话轮次的增加,用户往往会遇到一个典型问题:AI的“记忆力”似乎逐渐下降——响应变慢、忽略早期信息,甚至在处理财务账单等关键内容时出现错误。其根本原因在于技术层面的一个核心瓶颈:**上下文窗口的容量限制**。如同人类短期记忆的局限性,AI在单轮对话中可承载的信息量也是有限的。-为此,JiuwenClaw 引入了基于 openJiuwen 的 **上下文卸载(Context Offload)机制**。其设计理念可以类比为“办公桌整理”:当桌面文件(消息数量)或纸张厚度(Token数量)超出预设阈值时,系统将自动识别并归档那些“大而次要”的内容,仅保留一份简要索引,从而为当前任务腾出更多“注意力”。这使得即便面对长时间的财务对账或数据分析任务,AI也能保持高度专注与连贯性。+为此,JiuwenSwarm 引入了基于 openJiuwen 的 **上下文卸载(Context Offload)机制**。其设计理念可以类比为“办公桌整理”:当桌面文件(消息数量)或纸张厚度(Token数量)超出预设阈值时,系统将自动识别并归档那些“大而次要”的内容,仅保留一份简要索引,从而为当前任务腾出更多“注意力”。这使得即便面对长时间的财务对账或数据分析任务,AI也能保持高度专注与连贯性。## 如何配置上下文卸载机制?-为使系统能够灵活应对多样化的对话场景,JiuwenClaw 提供了一套可动态调整的“上下文管理策略”,核心配置参数包括:+为使系统能够灵活应对多样化的对话场景,JiuwenSwarm 提供了一套可动态调整的“上下文管理策略”,核心配置参数包括:| 参数 | 说明 || :--- | :--- |@@ -18,4 +18,4 @@[演示视频](../assets/videos/compression.mp4)-通过这一动态上下文管理机制,JiuwenClaw 实现了对 AI 上下文的智能调控——既保障关键信息(如财务账单、合同条款)不丢失,也有效排除冗余数据的干扰,确保长对话始终保持高效与连贯。无论是跨多日的项目跟进,还是反复核对的数据分析任务,JiuwenClaw 的上下文瘦身机制都将为每一次交互提供稳定、流畅的体验。+通过这一动态上下文管理机制,JiuwenSwarm 实现了对 AI 上下文的智能调控——既保障关键信息(如财务账单、合同条款)不丢失,也有效排除冗余数据的干扰,确保长对话始终保持高效与连贯。无论是跨多日的项目跟进,还是反复核对的数据分析任务,JiuwenSwarm 的上下文瘦身机制都将为每一次交互提供稳定、流畅的体验。diff --git "a/docs/zh/\344\273\273\345\212\241\350\247\204\345\210\222.md" "b/docs/zh/\344\273\273\345\212\241\350\247\204\345\210\222.md"index c0a49d517f..09f00f25f9 100644--- "a/docs/zh/\344\273\273\345\212\241\350\247\204\345\210\222.md"+++ "b/docs/zh/\344\273\273\345\212\241\350\247\204\345\210\222.md"@@ -2,7 +2,7 @@在人工智能应用日益复杂的今天,如何让智能体在处理长序列任务时保持目标清晰、执行有序,已成为提升人机协作效率的核心命题。试想这样一个典型场景:**智能体正在协助用户处理12月的发票,此时用户突然想起1月的发票也需要处理,并希望将两份合并后统一发送一封通知邮件。用户期望的是能够动态打断当前流程,基于新需求插入1月发票任务,而不是让新任务在队列中排队等待重复执行。**-为应对这类瞬息万变的动态需求,JiuwenClaw 引入了**任务规划模式**。它通过一套体系化的待办事项工具,赋予智能体结构化的任务拆解与动态管理能力,使其从“单线执行者”蜕变为“灵活的协作者”。+为应对这类瞬息万变的动态需求,JiuwenSwarm 引入了**任务规划模式**。它通过一套体系化的待办事项工具,赋予智能体结构化的任务拆解与动态管理能力,使其从“单线执行者”蜕变为“灵活的协作者”。[演示视频](../assets/videos/todo.mp4)@@ -10,11 +10,11 @@该模式的核心逻辑在于:当用户提出模糊或复杂的请求时,智能体会自动将其解析为一系列可执行的子任务,并通过内置的待办工具进行系统性记录。在执行过程中,每完成一个子任务,智能体都会实时更新其状态,确保任务进度始终清晰可控。-更为关键的是,JiuwenClaw 支持**用户的动态干预**——无论是追加新需求,还是在现有任务序列中插入紧急事项,系统均可借助 **openJiuwen 的智能体中断恢复与任务调度能力**进行灵活响应,确保整体任务流的连贯性与可控性,让用户始终掌握主导权。+更为关键的是,JiuwenSwarm 支持**用户的动态干预**——无论是追加新需求,还是在现有任务序列中插入紧急事项,系统均可借助 **openJiuwen 的智能体中断恢复与任务调度能力**进行灵活响应,确保整体任务流的连贯性与可控性,让用户始终掌握主导权。## 工具赋能:一套完整的待办事项工具包-JiuwenClaw 提供了一套覆盖任务管理全流程的工具包(`TodoToolkit`),任务以 Markdown 形式持久化至 `workspace/session/{session_id}/todo.md`,按会话隔离,支持并发安全读写。+JiuwenSwarm 提供了一套覆盖任务管理全流程的工具包(`TodoToolkit`),任务以 Markdown 形式持久化至 `workspace/session/{session_id}/todo.md`,按会话隔离,支持并发安全读写。### 工具一览@@ -43,7 +43,7 @@ JiuwenClaw 提供了一套覆盖任务管理全流程的工具包(`TodoToolkit4. 取消或作废某任务 → 调用 `todo_remove`5. 随时调用 `todo_list` 掌握全局进度-借助这套工具,JiuwenClaw 有效解决了智能体在处理长周期、多步骤任务时常见的**目标丢失与执行断层问题**,让人机协作更加顺畅、高效。无论是日常事务管理,还是复杂业务流程的自动化推进,JiuwenClaw 的任务规划模式都将成为您不可或缺的智能助手。+借助这套工具,JiuwenSwarm 有效解决了智能体在处理长周期、多步骤任务时常见的**目标丢失与执行断层问题**,让人机协作更加顺畅、高效。无论是日常事务管理,还是复杂业务流程的自动化推进,JiuwenSwarm 的任务规划模式都将成为您不可或缺的智能助手。用户可以在对话页面自行选择是否开启任务规划能力,当前聊天会默认开启任务规划,若关闭,则变更为经典的ReAct执行模式。\ No newline at end of filediff --git "a/docs/zh/\345\210\206\345\270\203\345\274\217Team.md" "b/docs/zh/\345\210\206\345\270\203\345\274\217Team.md"index f0e91bf55a..158e29e34c 100644--- "a/docs/zh/\345\210\206\345\270\203\345\274\217Team.md"+++ "b/docs/zh/\345\210\206\345\270\203\345\274\217Team.md"@@ -33,7 +33,7 @@ English: [Distributed Team](../en/DistributedTeam.md)| `team.runtime.role` | 本进程是 `leader` 还是 `teammate` || `team.runtime.member_name` | teammate 侧默认身份;被 bootstrap 后会接管为 leader 动态请求的成员名 || `team.transport.type` | `pyzmq` |-| `react.a2x_registry` | teammate 启动时注册空闲节点;leader 组队时从注册中心预约空闲 teammate。**注册中心不是 jiuwenclaw 内置组件**,须从上游 [agent-protocol(feature/Agentregistry)](https://gitcode.com/openJiuwen/agent-protocol/tree/feature/Agentregistry) 单独拉取并按该仓说明独立部署 |+| `react.a2x_registry` | teammate 启动时注册空闲节点;leader 组队时从注册中心预约空闲 teammate。**注册中心不是 jiuwenswarm 内置组件**,须从上游 [agent-protocol(feature/Agentregistry)](https://gitcode.com/openJiuwen/agent-protocol/tree/feature/Agentregistry) 单独拉取并按该仓说明独立部署 || `team.transport.params` | 本进程的 `direct_addr` / `bootstrap_direct_addr`、`pubsub_*` 等;leader 不需要预置 teammate 的 `known_peers` || `team.predefined_members` | 兼容旧静态成员声明;当前 blank teammate 联调不要求 leader 配置该项 || `team.storage` | 多进程场景下 `connection_string` 需指向 **各方可见的同一 DB**(当前推荐 PostgreSQL) |@@ -137,8 +137,8 @@ team:仓库内分角色模板已经是**完整 `config.yaml`**,包含基础 agent/model 配置、A2X 注册中心配置、顶层 `team` 运行时标记,以及 `modes.team.jiuwen_team` 的实际 TeamAgentSpec 配置。部署时可以直接复制为各自工作区下的配置文件,不需要再和默认 `config.yaml` 手工合并。-- `jiuwenclaw/resources/config.team.distributed.leader.yaml`-- `jiuwenclaw/resources/config.team.distributed.teammate.yaml`+- `jiuwenswarm/resources/config.team.distributed.leader.yaml`+- `jiuwenswarm/resources/config.team.distributed.teammate.yaml`用法(建议):@@ -190,7 +190,7 @@ cp "<REPO_ROOT>/jiuwenclaw/resources/config.team.distributed.teammate.yaml" \team:workspace:enabled: true- root_path: ${JIUWEN_TEAM_WORKSPACE_ROOT:-/tmp/jiuwenclaw/shared_workspace/jiuwen_team}+ root_path: ${JIUWEN_TEAM_WORKSPACE_ROOT:-/tmp/jiuwenswarm/shared_workspace/jiuwen_team}version_control: false```@@ -243,7 +243,7 @@ winget install -e --id PostgreSQL.PostgreSQL.16注册中心进程与 Leader/Teammate **分离部署**:请从上游代码仓拉取并在独立环境中运行。-参考 [agent-protocol 的 Agent Team 快速启动说明](https://gitcode.com/openJiuwen/agent-protocol/blob/feature/Agentregistry/README_forAgentTeam.md)。`0.1.6` 起默认安装就是 Agent Team 精简版,只包含 SDK、FastAPI、uvicorn 等轻量依赖;注册中心服务端无需预置数据,也不需要配置 LLM。teammate 注册、leader 查询/预约、reservation lease 都由 `jiuwenclaw` 客户端逻辑完成。+参考 [agent-protocol 的 Agent Team 快速启动说明](https://gitcode.com/openJiuwen/agent-protocol/blob/feature/Agentregistry/README_forAgentTeam.md)。`0.1.6` 起默认安装就是 Agent Team 精简版,只包含 SDK、FastAPI、uvicorn 等轻量依赖;注册中心服务端无需预置数据,也不需要配置 LLM。teammate 注册、leader 查询/预约、reservation lease 都由 `jiuwenswarm` 客户端逻辑完成。安装(要求 Python >= 3.10):@@ -303,7 +303,7 @@ GIT_COMMITTER_EMAIL="[email protected]" \AGENT_SERVER_PORT=28192 \GATEWAY_PORT=29101 \WEB_PORT=29100 \-uv run python -m jiuwenclaw.app+uv run python -m jiuwenswarm.app```Leader 不需要配置 teammate 的静态 endpoint;`spawn_member` 时会从注册中心 `reserve_blank_agents` 取得空闲 teammate。@@ -311,7 +311,7 @@ Leader 不需要配置 teammate 的静态 endpoint;`spawn_member` 时会从注### 6.4 Web 前端(可选)```bash-cd "<REPO_ROOT>/jiuwenclaw/channels/web/frontend"+cd "<REPO_ROOT>/jiuwenswarm/channels/web/frontend"VITE_API_BASE="http://localhost:29100" \VITE_WS_BASE="ws://localhost:29100" \npm run dev -- --host 0.0.0.0 --port 5173diff --git "a/docs/zh/\345\215\225\346\234\272\345\244\232\345\256\236\344\276\213\350\277\220\350\241\214.md" "b/docs/zh/\345\215\225\346\234\272\345\244\232\345\256\236\344\276\213\350\277\220\350\241\214.md"index 214212a759..de30b05adb 100644--- "a/docs/zh/\345\215\225\346\234\272\345\244\232\345\256\236\344\276\213\350\277\220\350\241\214.md"+++ "b/docs/zh/\345\215\225\346\234\272\345\244\232\345\256\236\344\276\213\350\277\220\350\241\214.md"@@ -1,6 +1,6 @@# 单机多实例运行-支持在同一台机器上运行多个独立的 JiuwenClaw 实例,每个实例拥有独立的工作区、配置和端口。+支持在同一台机器上运行多个独立的 JiuwenSwarm 实例,每个实例拥有独立的工作区、配置和端口。## 适用场景@@ -29,7 +29,7 @@- 长度:1-64 字符- 允许字符:字母、数字、下划线、连字符- 禁止以 `.` 开头-- 保留名称:`default`、`config`、`tmp`、`jiuwenclaw`、`all`+- 保留名称:`default`、`config`、`tmp`、`jiuwenswarm`、`all`---@@ -37,19 +37,19 @@### instances.yaml-位置:`~/.jiuwenclaw/instances.yaml`(或仓库根目录)+位置:`~/.jiuwenswarm/instances.yaml`(或仓库根目录)```yamlinstances:dev:- workspace: ~/.jiuwenclaw_dev+ workspace: ~/.jiuwenswarm_devports:agent_server: 19092web: 20000gateway: 20001frontend: 6173prod:- workspace: ~/.jiuwenclaw_prod+ workspace: ~/.jiuwenswarm_prodports:agent_server: 20092web: 21000@@ -72,16 +72,16 @@ instances:## 命令使用-### jiuwenclaw-init --name+### jiuwenswarm-init --name创建命名实例:```bash# 创建 dev 实例-jiuwenclaw-init --name dev+jiuwenswarm-init --name dev# 创建 prod 实例(指定工作区)-jiuwenclaw-init --name prod --workspace ~/.jiuwenclaw_prod+jiuwenswarm-init --name prod --workspace ~/.jiuwenswarm_prod```执行后会:@@ -90,33 +90,33 @@ jiuwenclaw-init --name prod --workspace ~/.jiuwenclaw_prod3. 更新 `instances.yaml` 配置4. 分配端口(自动或手动指定)-### jiuwenclaw-start 管理命令+### jiuwenswarm-start 管理命令```bash# 列出所有实例状态-jiuwenclaw-start --list+jiuwenswarm-start --list# 输出示例:# INSTANCE STATUS PID WORKSPACE PORTS# ---------------------------------------------------------------------------------# default running 12345 ~/.jiuwenclaw as:18092,w:19000,g:19001,f:5173-# dev stopped - ~/.jiuwenclaw_dev as:19092,w:20000,g:20001,f:6173-# prod stopped - ~/.jiuwenclaw_prod as:20092,w:21000,g:21001,f:7173+# default running 12345 ~/.jiuwenswarm as:18092,w:19000,g:19001,f:5173+# dev stopped - ~/.jiuwenswarm_dev as:19092,w:20000,g:20001,f:6173+# prod stopped - ~/.jiuwenswarm_prod as:20092,w:21000,g:21001,f:7173# 查看指定实例详情-jiuwenclaw-start --status dev+jiuwenswarm-start --status dev# 启动命名实例-jiuwenclaw-start --name dev-jiuwenclaw-start --name dev app # 仅启动后端-jiuwenclaw-start --name dev web # 仅启动 Web 服务+jiuwenswarm-start --name dev+jiuwenswarm-start --name dev app # 仅启动后端+jiuwenswarm-start --name dev web # 仅启动 Web 服务# 停止实例-jiuwenclaw-start --stop dev+jiuwenswarm-start --stop dev# 重启实例-jiuwenclaw-start --restart dev-jiuwenclaw-start --restart dev app --mode app+jiuwenswarm-start --restart dev+jiuwenswarm-start --restart dev app --mode app```---@@ -144,15 +144,15 @@ jiuwenclaw-start --restart dev app --mode app| 变量 | 说明 ||------|------|-| `JIUWENCLAW_DATA_DIR` | 覆盖数据根目录(影响 instances.yaml 位置) |+| `JIUWENSWARM_DATA_DIR` | 覆盖数据根目录(影响 instances.yaml 位置) || `JIUWENCLAW_CONFIG_DIR` | 覆盖配置目录 |启动时可通过 `--dotenv` 指定实例专属配置:```bash# 内部机制:启动命名实例时自动加载 bootstrap .env-jiuwenclaw-start --name dev-# 等价于加载 ~/.jiuwenclaw_dev/.env+jiuwenswarm-start --name dev+# 等价于加载 ~/.jiuwenswarm_dev/.env```---@@ -177,7 +177,7 @@ jiuwenclaw-start --name dev```bash# 检查端口占用-jiuwenclaw-start --status dev+jiuwenswarm-start --status dev# 系统会自动检测并报告冲突```@@ -200,7 +200,7 @@ MODEL_NAME="gpt-4"实例工作区包含 Agent 所有运行数据:```-~/.jiuwenclaw_dev/+~/.jiuwenswarm_dev/├── .env # 实例配置├── .instance.pid # 进程管理├── .instance.lock # 启动锁@@ -221,13 +221,13 @@ MODEL_NAME="gpt-4"手动删除工作区目录和 instances.yaml 条目:```bash-rm -rf ~/.jiuwenclaw_dev-# 编辑 ~/.jiuwenclaw/instances.yaml 移除对应条目+rm -rf ~/.jiuwenswarm_dev+# 编辑 ~/.jiuwenswarm/instances.yaml 移除对应条目```### Q: 默认实例与命名实例的区别?-- **默认实例**:无 `--name` 参数启动,使用 `~/.jiuwenclaw/` 工作区+- **默认实例**:无 `--name` 参数启动,使用 `~/.jiuwenswarm/` 工作区- **命名实例**:通过 `--name` 指定,使用独立工作区和端口### Q: 多实例能否共享配置?@@ -235,7 +235,7 @@ rm -rf ~/.jiuwenclaw_dev可以。在实例 `.env` 中引用共享配置:```bash-# ~/.jiuwenclaw_dev/.env-source ~/.jiuwenclaw/.env # 共享基础配置+# ~/.jiuwenswarm_dev/.env+source ~/.jiuwenswarm/.env # 共享基础配置MODEL_NAME="special-model" # 实例专属覆盖```\ No newline at end of filediff --git "a/docs/zh/\345\221\275\344\273\244\350\241\214\346\214\207\344\273\244.md" "b/docs/zh/\345\221\275\344\273\244\350\241\214\346\214\207\344\273\244.md"index 74e871cda2..86fe16dd43 100644--- "a/docs/zh/\345\221\275\344\273\244\350\241\214\346\214\207\344\273\244.md"+++ "b/docs/zh/\345\221\275\344\273\244\350\241\214\346\214\207\344\273\244.md"@@ -1,6 +1,6 @@## 命令行 / 通道控制指令说明-JiuwenClaw 支持通过「特殊前缀指令」控制会话和模式,最常用的是:+JiuwenSwarm 支持通过「特殊前缀指令」控制会话和模式,最常用的是:- `/new_session`:为当前通道切换到一个全新的 `session_id`- `/mode`:切换当前通道的工作模式(`plan` / `fast` / `code` / `team`)diff --git "a/docs/zh/\345\256\211\350\243\205\346\214\207\345\215\227.md" "b/docs/zh/\345\256\211\350\243\205\346\214\207\345\215\227.md"index ed37af7525..da2eae30e0 100644--- "a/docs/zh/\345\256\211\350\243\205\346\214\207\345\215\227.md"+++ "b/docs/zh/\345\256\211\350\243\205\346\214\207\345\215\227.md"@@ -1,12 +1,12 @@-# JiuwenClaw 安装指南+# JiuwenSwarm 安装指南-> **重要提醒:** 安装完成并不代表直接可用,需要先完成模型配置。请参考[配置信息](https://gitcode.com/openJiuwen/jiuwenclaw/blob/develop/docs/zh/%E9%85%8D%E7%BD%AE%E4%BF%A1%E6%81%AF.md)进行模型配置+> **重要提醒:** 安装完成并不代表直接可用,需要先完成模型配置。请参考[配置信息](https://gitcode.com/openJiuwen/jiuwenswarm/blob/develop/docs/zh/%E9%85%8D%E7%BD%AE%E4%BF%A1%E6%81%AF.md)进行模型配置---## 安装前准备-在安装 JiuwenClaw 之前,请确保您的系统满足以下要求:+在安装 JiuwenSwarm 之前,请确保您的系统满足以下要求:| 依赖项 | 版本要求 | 说明 ||--------|----------|------|@@ -43,36 +43,36 @@ git --version```bash# 创建虚拟环境(推荐)-python -m venv jiuwenclaw-env+python -m venv jiuwenswarm-env# 激活虚拟环境# Windows:-jiuwenclaw-env\Scripts\activate+jiuwenswarm-env\Scripts\activate# macOS/Linux:-source jiuwenclaw-env/bin/activate+source jiuwenswarm-env/bin/activate-# 安装 JiuwenClaw+# 安装 JiuwenSwarm## 方式一:默认安装-pip install jiuwenclaw+pip install jiuwenswarm## 方式二:使用国内镜像源(推荐)# 清华源-pip install jiuwenclaw -i https://pypi.tuna.tsinghua.edu.cn/simple+pip install jiuwenswarm -i https://pypi.tuna.tsinghua.edu.cn/simple# 阿里源-pip install jiuwenclaw -i https://mirrors.aliyun.com/pypi/simple/+pip install jiuwenswarm -i https://mirrors.aliyun.com/pypi/simple/```#### 2. 首次启动```bash-# 初始化 JiuwenClaw(首次启动)-jiuwenclaw-init-# 启动 JiuwenClaw-jiuwenclaw-start+# 初始化 JiuwenSwarm(首次启动)+jiuwenswarm-init+# 启动 JiuwenSwarm+jiuwenswarm-start```-首次启动后,系统会自动创建配置目录 `~/.jiuwenclaw/`。+首次启动后,系统会自动创建配置目录 `~/.jiuwenswarm/`。#### 3. 启动后验证@@ -87,15 +87,15 @@ jiuwenclaw-start-> 💡 **提示**:如果 Web 页面无法访问,请检查日志文件 `~/.jiuwenclaw/logs/` 是否有错误信息。+> 💡 **提示**:如果 Web 页面无法访问,请检查日志文件 `~/.jiuwenswarm/logs/` 是否有错误信息。#### 4. 重新启动服务-如果关闭 JiuwenClaw 后需要再次使用:+如果关闭 JiuwenSwarm 后需要再次使用:```bash# 再次启动-jiuwenclaw-start+jiuwenswarm-start```---@@ -117,10 +117,10 @@ uv --version```bash# 克隆代码仓库-git clone https://gitcode.com/openJiuwen/jiuwenclaw.git+git clone https://gitcode.com/openJiuwen/jiuwenswarm.git# 进入项目目录-cd jiuwenclaw+cd jiuwenswarm# 使用 uv 创建虚拟环境并安装依赖uv venv@@ -133,7 +133,7 @@ uv pip install -e .```bash# 进入前端目录-cd jiuwenclaw\channels\web\frontend+cd jiuwenswarm\channels\web\frontend# 安装前端依赖npm install@@ -143,9 +143,9 @@ npm run build# 复制构建产物到用户工作区# Windows:-xcopy /E /I dist %USERPROFILE%\.jiuwenclaw\channels\web\frontend\dist+xcopy /E /I dist %USERPROFILE%\.jiuwenswarm\channels\web\frontend\dist# macOS/Linux:-cp -r dist ~/.jiuwenclaw/channels/web/frontend/dist+cp -r dist ~/.jiuwenswarm/channels/web/frontend/dist# 返回项目根目录cd ..\..@@ -154,7 +154,7 @@ cd ..\..**说明**:- `pip install -e .` 是 editable install,直接指向源码目录- 源码中 `web/dist` 被 `.gitignore` 忽略,不包含构建产物-- 需要手动构建并复制到 `~/.jiuwenclaw/channels/web/frontend/dist`+- 需要手动构建并复制到 `~/.jiuwenswarm/channels/web/frontend/dist`#### 4. 首次启动@@ -165,10 +165,10 @@ cd ..\..# macOS/Linux:source .venv/bin/activate-# 初始化 JiuwenClaw(首次启动)-jiuwenclaw-init+# 初始化 JiuwenSwarm(首次启动)+jiuwenswarm-init# 启动-jiuwenclaw-start+jiuwenswarm-start```#### 5. 启动后验证@@ -179,7 +179,7 @@ jiuwenclaw-start```bash# 激活虚拟环境后启动-jiuwenclaw-start+jiuwenswarm-start```---@@ -200,24 +200,24 @@ conda --version```bash# 创建虚拟环境-conda create -n jiuwenclaw python=3.11+conda create -n jiuwenswarm python=3.11# 初始化环境(首次)conda init# 初始化之后,关闭窗口。再重新打开会话执行激活命令# 激活环境-conda activate jiuwenclaw+conda activate jiuwenswarm```#### 3. 克隆并安装```bash# 克隆代码仓库-git clone https://gitcode.com/openJiuwen/jiuwenclaw.git+git clone https://gitcode.com/openJiuwen/jiuwenswarm.git# 进入项目目录-cd jiuwenclaw+cd jiuwenswarm# 安装依赖pip install -e .@@ -229,7 +229,7 @@ pip install -e .```bash# 进入前端目录-cd jiuwenclaw\channels\web\frontend+cd jiuwenswarm\channels\web\frontend# 安装前端依赖npm install@@ -239,9 +239,9 @@ npm run build# 复制构建产物到用户工作区# Windows:-xcopy /E /I dist %USERPROFILE%\.jiuwenclaw\channels\web\frontend\dist+xcopy /E /I dist %USERPROFILE%\.jiuwenswarm\channels\web\frontend\dist# macOS/Linux:-cp -r dist ~/.jiuwenclaw/channels/web/frontend/dist+cp -r dist ~/.jiuwenswarm/channels/web/frontend/dist# 返回项目根目录cd ..\..@@ -250,15 +250,15 @@ cd ..\..**说明**:- `pip install -e .` 是 editable install,直接指向源码目录- 源码中 `web/dist` 被 `.gitignore` 忽略,不包含构建产物-- 需要手动构建并复制到 `~/.jiuwenclaw/channels/web/frontend/dist`+- 需要手动构建并复制到 `~/.jiuwenswarm/channels/web/frontend/dist`#### 5. 首次启动```bash-# 初始化 JiuwenClaw(首次启动)-jiuwenclaw-init+# 初始化 JiuwenSwarm(首次启动)+jiuwenswarm-init# 启动-jiuwenclaw-start+jiuwenswarm-start```#### 6. 启动后验证@@ -269,8 +269,8 @@ jiuwenclaw-start```bash# 激活环境后启动-conda activate jiuwenclaw-jiuwenclaw-start+conda activate jiuwenswarm+jiuwenswarm-start```---@@ -291,14 +291,14 @@ jiuwenclaw-start```bash# 激活虚拟环境# 然后执行升级-pip install --upgrade jiuwenclaw+pip install --upgrade jiuwenswarm```#### 源码安装升级```bash# 进入项目目录-cd jiuwenclaw+cd jiuwenswarm# 拉取最新代码git pull@@ -307,15 +307,15 @@ git pullpip install -e .# 重新构建前端(如有更新)-cd jiuwenclaw\channels\web\frontend+cd jiuwenswarm\channels\web\frontendnpm installnpm run build# 复制构建产物# Windows:-xcopy /E /I dist %USERPROFILE%\.jiuwenclaw\channels\web\frontend\dist+xcopy /E /I dist %USERPROFILE%\.jiuwenswarm\channels\web\frontend\dist# macOS/Linux:-cp -r dist ~/.jiuwenclaw/channels/web/frontend/dist+cp -r dist ~/.jiuwenswarm/channels/web/frontend/distcd ..\..```@@ -332,20 +332,20 @@ cd ..\..```bash# 备份整个配置和数据目录-xcopy "%USERPROFILE%\.jiuwenclaw" "%USERPROFILE%\.jiuwenclaw_backup" /E /I+xcopy "%USERPROFILE%\.jiuwenswarm" "%USERPROFILE%\.jiuwenswarm_backup" /E /I# 或使用 PowerShell(推荐)-Copy-Item -Path "$env:USERPROFILE\.jiuwenclaw" -Destination "$env:USERPROFILE\.jiuwenclaw_backup" -Recurse+Copy-Item -Path "$env:USERPROFILE\.jiuwenswarm" -Destination "$env:USERPROFILE\.jiuwenswarm_backup" -Recurse```**macOS/Linux 系统:**```bash# 备份整个配置和数据目录-cp -r ~/.jiuwenclaw ~/.jiuwenclaw_backup+cp -r ~/.jiuwenswarm ~/.jiuwenswarm_backup# 或使用 rsync(推荐,保留权限和属性)-rsync -av ~/.jiuwenclaw ~/.jiuwenclaw_backup+rsync -av ~/.jiuwenswarm ~/.jiuwenswarm_backup```**备份内容说明:**@@ -382,7 +382,7 @@ rsync -av ~/.jiuwenclaw ~/.jiuwenclaw_backupcat docs/config_template.yaml# 或查看配置变更日志-# https://gitcode.com/openJiuwen/jiuwenclaw/blob/develop/docs/CHANGELOG.md+# https://gitcode.com/openJiuwen/jiuwenswarm/blob/develop/docs/CHANGELOG.md```##### 步骤二:配置文件迁移@@ -398,7 +398,7 @@ cat docs/config_template.yaml```bash# 备份新版本的默认配置- cp ~/.jiuwenclaw/config/config.yaml ~/.jiuwenclaw/config/config.yaml.new+ cp ~/.jiuwenswarm/config/config.yaml ~/.jiuwenswarm/config/config.yaml.new# 从备份恢复旧配置(谨慎操作)# 建议使用文本编辑器对比合并,而非直接覆盖@@ -419,20 +419,20 @@ cat docs/config_template.yaml```bash# 检查记忆目录结构-ls ~/.jiuwenclaw/agent/memory/+ls ~/.jiuwenswarm/agent/memory/# 如有异常,可从备份恢复-cp -r ~/.jiuwenclaw_backup/agent/memory/* ~/.jiuwenclaw/agent/memory/+cp -r ~/.jiuwenswarm_backup/agent/memory/* ~/.jiuwenswarm/agent/memory/```##### 步骤四:验证迁移结果```bash# 启动服务-jiuwenclaw-start+jiuwenswarm-start# 检查日志是否有配置错误-# 日志位置:~/.jiuwenclaw/logs/+# 日志位置:~/.jiuwenswarm/logs/```**迁移检查清单:**@@ -458,22 +458,22 @@ jiuwenclaw-start### Q: 如何查看当前版本?```bash-pip show jiuwenclaw+pip show jiuwenswarm```### Q: 如何卸载?```bash-pip uninstall jiuwenclaw+pip uninstall jiuwenswarm```---## 相关链接-- **代码仓库:** https://gitcode.com/openJiuwen/jiuwenclaw-- **问题反馈:** https://gitcode.com/openJiuwen/jiuwenclaw/issues-- **文档中心:** https://gitcode.com/openJiuwen/jiuwenclaw/tree/develop/docs+- **代码仓库:** https://gitcode.com/openJiuwen/jiuwenswarm+- **问题反馈:** https://gitcode.com/openJiuwen/jiuwenswarm/issues+- **文档中心:** https://gitcode.com/openJiuwen/jiuwenswarm/tree/develop/docs---diff --git "a/docs/zh/\345\256\232\346\227\266\344\273\273\345\212\241.md" "b/docs/zh/\345\256\232\346\227\266\344\273\273\345\212\241.md"index aa5942e5d3..3c7e52cd12 100644--- "a/docs/zh/\345\256\232\346\227\266\344\273\273\345\212\241.md"+++ "b/docs/zh/\345\256\232\346\227\266\344\273\273\345\212\241.md"@@ -1,6 +1,6 @@## 定时任务(Cron)快速上手-本文介绍如何在 JiuwenClaw 中创建和管理一个最简单的定时任务,并让它按固定时间把结果推送到指定频道(如 Web、飞书)。+本文介绍如何在 JiuwenSwarm 中创建和管理一个最简单的定时任务,并让它按固定时间把结果推送到指定频道(如 Web、飞书)。---@@ -31,7 +31,7 @@- **wake_offset_seconds(提前秒数,可选)**:默认 300,表示提前 5 分钟唤醒 Agent 做准备。-3. 保存后,任务会写入 `~/.jiuwenclaw/workspace/cron_jobs.json`,调度器自动生效。+3. 保存后,任务会写入 `~/.jiuwenswarm/workspace/cron_jobs.json`,调度器自动生效。---diff --git "a/docs/zh/\345\267\245\345\205\267\346\235\203\351\231\220\344\270\216\345\256\211\345\205\250\351\230\262\346\212\244.md" "b/docs/zh/\345\267\245\345\205\267\346\235\203\351\231\220\344\270\216\345\256\211\345\205\250\351\230\262\346\212\244.md"index 3081d1b3d1..98684118f6 100644--- "a/docs/zh/\345\267\245\345\205\267\346\235\203\351\231\220\344\270\216\345\256\211\345\205\250\351\230\262\346\212\244.md"+++ "b/docs/zh/\345\267\245\345\205\267\346\235\203\351\231\220\344\270\216\345\256\211\345\205\250\351\230\262\346\212\244.md"@@ -1,8 +1,8 @@# 工具权限与安全防护-本文说明 JiuwenClaw **工具调用权限**(`allow` / `ask` / `deny`)如何生效、与 **workspace 外路径**、**内置安全规则**、**用户审批持久化** 的关系,以及 **CLI `/add-dir`** 会改哪些配置。+本文说明 JiuwenSwarm **工具调用权限**(`allow` / `ask` / `deny`)如何生效、与 **workspace 外路径**、**内置安全规则**、**用户审批持久化** 的关系,以及 **CLI `/add-dir`** 会改哪些配置。-配置主文件一般为 `~/.jiuwenclaw/config/config.yaml`;可通过环境变量 `JIUWENCLAW_CONFIG_DIR` 指向其它目录(与 [配置说明](配置信息.md) 一致)。+配置主文件一般为 `~/.jiuwenswarm/config/config.yaml`;可通过环境变量 `JIUWENCLAW_CONFIG_DIR` 指向其它目录(与 [配置说明](配置信息.md) 一致)。---@@ -23,7 +23,7 @@## 2. 分层策略(`tiered_policy`)下,一次工具调用如何定级-以下对应 `evaluate_tiered_policy()`(`jiuwenclaw/agentserver/permissions/tiered_policy.py`)的**真实分支顺序**。参数指本次的 `tool_name` 与 `tool_args`(如 bash 的 `command`、读文件的 `path` 等)。+以下对应 `evaluate_tiered_policy()`(`jiuwenswarm/agentserver/permissions/tiered_policy.py`)的**真实分支顺序**。参数指本次的 `tool_name` 与 `tool_args`(如 bash 的 `command`、读文件的 `path` 等)。### 2.1 准备:`permission_mode` 与 `severity`@@ -92,8 +92,8 @@## 3. 内置安全规则 `builtin_rules.yaml`-- **包内默认**:`jiuwenclaw/resources/builtin_rules.yaml`。-- **用户覆盖**:与 `config.yaml` **同目录**下的 `builtin_rules.yaml`(即 `JIUWENCLAW_CONFIG_DIR` 或默认 `~/.jiuwenclaw/config/`),若存在则**优先加载**。+- **包内默认**:`jiuwenswarm/resources/builtin_rules.yaml`。+- **用户覆盖**:与 `config.yaml` **同目录**下的 `builtin_rules.yaml`(即 `JIUWENCLAW_CONFIG_DIR` 或默认 `~/.jiuwenswarm/config/`),若存在则**优先加载**。内置规则多为 **shell 高危命令**(删除、格式化、下载执行、提权等),部分条目带显式 `action: deny`。用户 `rules` 不能覆盖内置的 deny(内置 deny 先返回)。@@ -142,11 +142,11 @@| 模块 | 路径 || --------------- | ----------------------------------------------------------------------------------- |-| 分层策略 | `jiuwenclaw/agentserver/permissions/tiered_policy.py` |-| 外部目录检查 | `jiuwenclaw/agentserver/permissions/checker.py`(`ExternalDirectoryChecker`) |-| 持久化 / `add_dir` | `jiuwenclaw/agentserver/permissions/patterns.py`(`persist_cli_trusted_directory` 等) |-| 引擎合并 | `jiuwenclaw/agentserver/permissions/core.py` |-| WebSocket 命令 | `jiuwenclaw/agentserver/agent_ws_server.py`(`_handle_command_add_dir`) |+| 分层策略 | `jiuwenswarm/agentserver/permissions/tiered_policy.py` |+| 外部目录检查 | `jiuwenswarm/agentserver/permissions/checker.py`(`ExternalDirectoryChecker`) |+| 持久化 / `add_dir` | `jiuwenswarm/agentserver/permissions/patterns.py`(`persist_cli_trusted_directory` 等) |+| 引擎合并 | `jiuwenswarm/agentserver/permissions/core.py` |+| WebSocket 命令 | `jiuwenswarm/agentserver/agent_ws_server.py`(`_handle_command_add_dir`) |---diff --git "a/docs/zh/\345\274\200\345\217\221\345\256\236\350\267\265/JiuwenClaw\344\273\243\347\240\201\345\256\241\346\237\245\345\212\251\346\211\213\345\274\200\345\217\221\345\256\236\350\267\265.md" "b/docs/zh/\345\274\200\345\217\221\345\256\236\350\267\265/JiuwenSwarm\344\273\243\347\240\201\345\256\241\346\237\245\345\212\251\346\211\213\345\274\200\345\217\221\345\256\236\350\267\265.md"similarity index 96%rename from "docs/zh/\345\274\200\345\217\221\345\256\236\350\267\265/JiuwenClaw\344\273\243\347\240\201\345\256\241\346\237\245\345\212\251\346\211\213\345\274\200\345\217\221\345\256\236\350\267\265.md"rename to "docs/zh/\345\274\200\345\217\221\345\256\236\350\267\265/JiuwenSwarm\344\273\243\347\240\201\345\256\241\346\237\245\345\212\251\346\211\213\345\274\200\345\217\221\345\256\236\350\267\265.md"index 9ef88c1fa0..e74369ba0a 100644--- "a/docs/zh/\345\274\200\345\217\221\345\256\236\350\267\265/JiuwenClaw\344\273\243\347\240\201\345\256\241\346\237\245\345\212\251\346\211\213\345\274\200\345\217\221\345\256\236\350\267\265.md"+++ "b/docs/zh/\345\274\200\345\217\221\345\256\236\350\267\265/JiuwenSwarm\344\273\243\347\240\201\345\256\241\346\237\245\345\212\251\346\211\213\345\274\200\345\217\221\345\256\236\350\267\265.md"@@ -1,4 +1,4 @@-# 告别人工 Code Review?用 JiuwenClaw 构建自动化审查流水线+# 告别人工 Code Review?用 JiuwenSwarm 构建自动化审查流水线## 引言|当"代码质量"真正走进日常开发流程@@ -45,7 +45,7 @@| 项目 | 配置值 || --- | --- |-| **项目路径** | `D:\Download\jiuwenclaw` |+| **项目路径** | `D:\Download\jiuwenswarm` || **操作系统** | Windows 10 || **Python** | 3.10+ || **模型服务** | 智谱AI (GLM-4.7) |@@ -65,7 +65,7 @@### 核心文件位置```plain-D:\Download\jiuwenclaw\+D:\Download\jiuwenswarm\├── .env # 环境变量配置├── workspace/│ └── agent/@@ -118,9 +118,9 @@ D:\Download\jiuwenclaw\用了代码审查助手之后,这些问题确实解决了很多。系统会自动运行 Ruff(Lint)、Radon(复杂度)、Bandit(安全)三个工具,然后通过评分引擎计算质量分、安全分、复杂度分、风格分,最终给出综合评分和改进建议。-### 1.3 JiuwenClaw 技能系统的优势+### 1.3 JiuwenSwarm 技能系统的优势-JiuwenClaw 是一个开源的 Agent 开发框架,其技能系统非常适合构建代码审查工具:+JiuwenSwarm 是一个开源的 Agent 开发框架,其技能系统非常适合构建代码审查工具:| 能力 | 说明 || --- | --- |@@ -135,7 +135,7 @@ JiuwenClaw 是一个开源的 Agent 开发框架,其技能系统非常适合### 2.1 分层架构设计-代码审查助手采用经典的三层架构,在 JiuwenClaw 的 Application Layer(应用层):+代码审查助手采用经典的三层架构,在 JiuwenSwarm 的 Application Layer(应用层):```┌─────────────────────────────────────────────────────────┐@@ -294,13 +294,13 @@ allowed_tools: [bash, read_file, write_file]### 审查远程 Git 仓库```bash-cd D:/Download/jiuwenclaw && python workspace/agent/skills/code-review/run_review.py clone --url <仓库地址>+cd D:/Download/jiuwenswarm && python workspace/agent/skills/code-review/run_review.py clone --url <仓库地址>```### 审查本地代码```bash-cd D:/Download/jiuwenclaw && python workspace/agent/skills/code-review/run_review.py local --path <路径>+cd D:/Download/jiuwenswarm && python workspace/agent/skills/code-review/run_review.py local --path <路径>```## ⚠️ 重要限制@@ -1423,8 +1423,8 @@ class ReportGenerator:### 7.1 环境变量配置> **本项目采用项目目录模式**,所有配置文件位于项目目录:-> - 配置文件:`D:\Download\jiuwenclaw\.env`-> - 技能目录:`D:\Download\jiuwenclaw\workspace\agent\skills\`+> - 配置文件:`D:\Download\jiuwenswarm\.env`+> - 技能目录:`D:\Download\jiuwenswarm\workspace\agent\skills\`>> 这样可以随项目版本控制,方便提交 PR。@@ -1464,12 +1464,12 @@ FEISHU_REVIEW_CHAT_ID=oc_xxxATOMGIT_TOKEN=xxx```-### 7.2 JiuwenClaw 配置文件+### 7.2 JiuwenSwarm 配置文件> **本项目采用项目目录模式**,配置文件位于:-> `D:\Download\jiuwenclaw\config\config.yaml`+> `D:\Download\jiuwenswarm\config\config.yaml`-JiuwenClaw 配置文件内容:+JiuwenSwarm 配置文件内容:```yamlreact:@@ -1562,14 +1562,14 @@ pip install lark-oapi| 测试方式 | 说明 ||--------|------|| 飞书对话 | 通过飞书私聊机器人发送审查请求 |-| Web 对话 | 通过 JiuwenClaw Web 界面发送审查请求 |+| Web 对话 | 通过 JiuwenSwarm Web 界面发送审查请求 |### 8.1 飞书对话测试-JiuwenClaw 作为远程智能管家,支持通过飞书与机器人对话进行代码审查。+JiuwenSwarm 作为远程智能管家,支持通过飞书与机器人对话进行代码审查。**前提条件:**-1. 启动 JiuwenClaw 服务+1. 启动 JiuwenSwarm 服务2. 配置飞书机器人并建立 WebSocket 长连接3. code-review 技能已部署到项目目录@@ -1601,10 +1601,10 @@ https://atomgit.com/openJiuwen/deepsearch 对这个仓库进行审查### 8.2 Web 对话测试-JiuwenClaw 提供 Web 界面,可以直接在浏览器中与 Agent 对话进行代码审查。+JiuwenSwarm 提供 Web 界面,可以直接在浏览器中与 Agent 对话进行代码审查。**前提条件:**-1. 启动 JiuwenClaw Web 服务:`python start_services.py web`+1. 启动 JiuwenSwarm Web 服务:`python start_services.py web`2. 访问 Web 界面(默认 http://localhost:8000)3. code-review 技能已部署到项目目录@@ -1639,7 +1639,7 @@ Agent 会按照技能指引执行审查流程,返回包含评分、问题列| 属性 | 值 ||------|-----|| 审查类型 | local |-| 目标 | `./jiuwenclaw` |+| 目标 | `./jiuwenswarm` || 审查时间 | 2026-03-07 21:53 || 扫描文件 | 110 |@@ -1715,30 +1715,30 @@ Agent 会按照技能指引执行审查流程,返回包含评分、问题列解决:改用 git clone 方式获取代码4. **切换到项目目录模式**- 背景:JiuwenClaw 默认优先使用用户工作区 `C:\Users\<用户名>\.jiuwenclaw\`,但这不利于项目版本控制+ 背景:JiuwenSwarm 默认优先使用用户工作区 `C:\Users\<用户名>\.jiuwenswarm\`,但这不利于项目版本控制解决:删除用户工作区的 config 目录,让系统回退到项目目录模式```bash# 备份并删除用户工作区 config 目录- mv "C:/Users/Lenovo/.jiuwenclaw/config" "C:/Users/Lenovo/.jiuwenclaw/config.bak"+ mv "C:/Users/Lenovo/.jiuwenswarm/config" "C:/Users/Lenovo/.jiuwenswarm/config.bak"# 复制 config 到项目目录- mkdir -p "D:/Download/jiuwenclaw/config"- cp "C:/Users/Lenovo/.jiuwenclaw/config.bak/config.py" "D:/Download/jiuwenclaw/config/"- cp "C:/Users/Lenovo/.jiuwenclaw/config.bak/config.yaml" "D:/Download/jiuwenclaw/config/"+ mkdir -p "D:/Download/jiuwenswarm/config"+ cp "C:/Users/Lenovo/.jiuwenswarm/config.bak/config.py" "D:/Download/jiuwenswarm/config/"+ cp "C:/Users/Lenovo/.jiuwenswarm/config.bak/config.yaml" "D:/Download/jiuwenswarm/config/"```**切换后的路径:**| 项目 | 路径 ||------|------|- | 配置文件 | `D:\Download\jiuwenclaw\config\` |- | 环境变量 | `D:\Download\jiuwenclaw\.env` |- | 技能目录 | `D:\Download\jiuwenclaw\workspace\agent\skills\` |- | 报告目录 | `D:\Download\jiuwenclaw\workspace\agent\reports\` |+ | 配置文件 | `D:\Download\jiuwenswarm\config\` |+ | 环境变量 | `D:\Download\jiuwenswarm\.env` |+ | 技能目录 | `D:\Download\jiuwenswarm\workspace\agent\skills\` |+ | 报告目录 | `D:\Download\jiuwenswarm\workspace\agent\reports\` |5. **技能文件路径**本项目采用项目目录模式,技能直接放在项目目录即可:- `D:\Download\jiuwenclaw\workspace\agent\skills\code-review\`+ `D:\Download\jiuwenswarm\workspace\agent\skills\code-review\`6. **Agent 迭代次数超限**问题:复杂任务达到 max_iterations (100) 后未完成@@ -1777,11 +1777,11 @@ Agent 会按照技能指引执行审查流程,返回包含评分、问题列npm install -g eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin# Java - 下载 Checkstyle JAR 到 tools 目录- mkdir -p D:/Download/jiuwenclaw/tools- curl -L "https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.12.5/checkstyle-10.12.5-all.jar" -o D:/Download/jiuwenclaw/tools/checkstyle.jar+ mkdir -p D:/Download/jiuwenswarm/tools+ curl -L "https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.12.5/checkstyle-10.12.5-all.jar" -o D:/Download/jiuwenswarm/tools/checkstyle.jar# 配置环境变量 (.env)- CHECKSTYLE_HOME=D:/Download/jiuwenclaw/tools+ CHECKSTYLE_HOME=D:/Download/jiuwenswarm/tools```### 9.3 扩展方向@@ -1820,7 +1820,7 @@ Agent 会按照技能指引执行审查流程,返回包含评分、问题列----**项目地址**:`D:\Download\jiuwenclaw\workspace\agent\skills\code-review\`+**项目地址**:`D:\Download\jiuwenswarm\workspace\agent\skills\code-review\`**技能文档**:`SKILL.md`diff --git "a/docs/zh/\345\274\200\345\217\221\345\256\236\350\267\265/JiuwenClaw\346\227\245\346\212\245\347\224\237\346\210\220\345\231\250\345\274\200\345\217\221\345\256\236\350\267\265.md" "b/docs/zh/\345\274\200\345\217\221\345\256\236\350\267\265/JiuwenSwarm\346\227\245\346\212\245\347\224\237\346\210\220\345\231\250\345\274\200\345\217\221\345\256\236\350\267\265.md"similarity index 98%rename from "docs/zh/\345\274\200\345\217\221\345\256\236\350\267\265/JiuwenClaw\346\227\245\346\212\245\347\224\237\346\210\220\345\231\250\345\274\200\345\217\221\345\256\236\350\267\265.md"rename to "docs/zh/\345\274\200\345\217\221\345\256\236\350\267\265/JiuwenSwarm\346\227\245\346\212\245\347\224\237\346\210\220\345\231\250\345\274\200\345\217\221\345\256\236\350\267\265.md"index 534a24f715..6c168cbf50 100644--- "a/docs/zh/\345\274\200\345\217\221\345\256\236\350\267\265/JiuwenClaw\346\227\245\346\212\245\347\224\237\346\210\220\345\231\250\345\274\200\345\217\221\345\256\236\350\267\265.md"+++ "b/docs/zh/\345\274\200\345\217\221\345\256\236\350\267\265/JiuwenSwarm\346\227\245\346\212\245\347\224\237\346\210\220\345\231\250\345\274\200\345\217\221\345\256\236\350\267\265.md"@@ -1,4 +1,4 @@-# 从基础配置到架构设计:JiuwenClaw 进阶版日报生成器开发实践+# 从基础配置到架构设计:JiuwenSwarm 进阶版日报生成器开发实践## 引言|当"日报自动化"真正走进日常工作场景过去一年,AI Agent 的能力被讨论得很多。从简单的问答到复杂的工作流编排,看起来 AI 已经无所不能。但当我们真正把 Agent 带到日常办公场景时,会发现一个很现实的问题:@@ -36,7 +36,7 @@### 实际运行环境| 项目 | 配置值 || --- | --- |-| **项目路径** | `D:\Download\jiuwenclaw` |+| **项目路径** | `D:\Download\jiuwenswarm` || **操作系统** | Windows 10 || **Python** | 3.10+ || **模型服务** | ModelScope (Qwen/Qwen3-235B-A22B-Instruct-2507) |@@ -45,7 +45,7 @@### 实际数据源配置| 数据源 | 配置值 || --- | --- |-| **Git 仓库** | `D:\Download\jiuwenclaw` (当前项目) |+| **Git 仓库** | `D:\Download\jiuwenswarm` (当前项目) || **邮箱** | `[email protected]` (网易163邮箱) || **推送渠道** | 飞书 (`cli_a92035b1823a9cd2`) || **心跳时间** | 每天 18:00-18:30 |@@ -53,7 +53,7 @@### 核心文件位置```plain-D:\Download\jiuwenclaw\+D:\Download\jiuwenswarm\├── .env # 环境变量配置├── config/config.yaml # 应用配置(心跳、飞书频道)├── workspace/@@ -107,8 +107,8 @@ D:\Download\jiuwenclaw\用了进阶版日报生成器之后,这些问题确实解决了很多。系统会自动采集 Git 提交、邮件统计、记忆记录、待办事项,然后通过工作分析引擎计算效率指标,生成趋势对比,给出工作建议。-### 1.3 JiuwenClaw 的技能系统特性-JiuwenClaw 是一个开源的 Agent 开发框架,其技能系统支持:+### 1.3 JiuwenSwarm 的技能系统特性+JiuwenSwarm 是一个开源的 Agent 开发框架,其技能系统支持:| 能力 | 说明 || --- | --- |@@ -121,8 +121,8 @@ JiuwenClaw 是一个开源的 Agent 开发框架,其技能系统支持:这个框架的价值在哪?简单说就是**能力可扩展**。通过模块化设计,我们可以把数据采集、工作分析、报告生成分别封装,形成清晰的责任边界。## 二、技术方案-### 2.1 JiuwenClaw 的分层设计-JiuwenClaw 是分层架构的,我们的进阶版日报生成器在 Application Layer(应用层):+### 2.1 JiuwenSwarm 的分层设计+JiuwenSwarm 是分层架构的,我们的进阶版日报生成器在 Application Layer(应用层):<!-- 这是一张图片,ocr 内容为:APPLICATION LAYER 应用层 V2.0 L1 ADVANCED-DAILY-REPORT SKILL REACTAGENT 高级版 ORCHESTRATION LAYER 编排层 L2 CHANNELMANAGER MESSAGEHANDLER HEARTBEAT EXECUTION LAYER 执行层 FILETOOLS MEMORYTOOLS TODOTOOLKIT FOUNDATIONLAYER 基础层 L4 目 PROMPTS MEMORY RETRIEVAL TOOLS LLM INFRASTRUCTURE LAYER 基础设施层 L5 新增 新增 IMAP FILESTORAGE WEBCHANNEL FEISHCHANNEL GIT ADVANCED DAILYREPORT ARCHITECTURE -->@@ -269,7 +269,7 @@ daily-report/**必须使用 `bash` 工具执行脚本**,而不是直接回复用户。**脚本会自动采集以下数据**:-- **Git 提交记录**:通过 `git log` 命令读取 `D:/Download/jiuwenclaw` 仓库的提交历史+- **Git 提交记录**:通过 `git log` 命令读取 `D:/Download/jiuwenswarm` 仓库的提交历史- **邮箱邮件统计**:通过 IMAP 协议连接 `[email protected]` 读取邮件统计(需要邮箱授权码)- **记忆系统**:读取 `workspace/agent/memory/` 目录下的每日记忆文件- **待办事项**:读取 `workspace/session/` 目录下的 todo.md 文件@@ -280,19 +280,19 @@ daily-report/```bash# 生成今日日报(包含Git提交、待办任务、记忆数据)-cd D:/Download/jiuwenclaw && python workspace/agent/skills/daily-report/run_report.py daily --save+cd D:/Download/jiuwenswarm && python workspace/agent/skills/daily-report/run_report.py daily --save# 生成指定日期日报-cd D:/Download/jiuwenclaw && python workspace/agent/skills/daily-report/run_report.py daily --date 2026-03-06 --save+cd D:/Download/jiuwenswarm && python workspace/agent/skills/daily-report/run_report.py daily --date 2026-03-06 --save# 生成周报(聚合一周数据)-cd D:/Download/jiuwenclaw && python workspace/agent/skills/daily-report/run_report.py weekly --save+cd D:/Download/jiuwenswarm && python workspace/agent/skills/daily-report/run_report.py weekly --save# 生成月报(聚合一月数据,包含每日Git提交统计)-cd D:/Download/jiuwenclaw && python workspace/agent/skills/daily-report/run_report.py monthly --save+cd D:/Download/jiuwenswarm && python workspace/agent/skills/daily-report/run_report.py monthly --save# 生成月报(指定月份)-cd D:/Download/jiuwenclaw && python workspace/agent/skills/daily-report/run_report.py monthly --year 2026 --month 3 --save+cd D:/Download/jiuwenswarm && python workspace/agent/skills/daily-report/run_report.py monthly --year 2026 --month 3 --save```### 执行步骤@@ -317,7 +317,7 @@ cd D:/Download/jiuwenclaw && python workspace/agent/skills/daily-report/run_repo| 数据源 | 采集方式 | 配置位置 ||--------|----------|----------|-| **Git 仓库** | `git log` 命令 | 仓库路径: `D:/Download/jiuwenclaw` |+| **Git 仓库** | `git log` 命令 | 仓库路径: `D:/Download/jiuwenswarm` || **网易邮箱** | IMAP 协议 | `.env`: `EMAIL_ADDRESS`, `EMAIL_TOKEN` || **记忆系统** | 读取 MD 文件 | `workspace/agent/memory/YYYY-MM-DD.md` || **待办事项** | 解析 todo.md | `workspace/session/*/todo.md` |@@ -389,7 +389,7 @@ cd D:/Download/jiuwenclaw && python workspace/agent/skills/daily-report/run_repo本项目监控的 Git 仓库(脚本会自动读取):```-仓库路径: D:/Download/jiuwenclaw+仓库路径: D:/Download/jiuwenswarm```脚本通过 `git log` 命令采集以下数据:@@ -1608,7 +1608,7 @@ class DataAggregator:| 数据源 | 采集方式 | 配置位置 || --- | --- | --- |-| **Git 仓库** | `git log` 命令 | 仓库路径: `D:/Download/jiuwenclaw` |+| **Git 仓库** | `git log` 命令 | 仓库路径: `D:/Download/jiuwenswarm` || **网易邮箱** | IMAP 协议 | `.env`: `EMAIL_ADDRESS`, `EMAIL_TOKEN` || **记忆系统** | 读取 MD 文件 | `workspace/agent/memory/YYYY-MM-DD.md` || **待办事项** | 解析 todo.md | `workspace/session/*/todo.md` |@@ -1619,13 +1619,13 @@ class DataAggregator:```bash# 生成日报-cd D:/Download/jiuwenclaw && python workspace/agent/skills/daily-report/run_report.py daily --save+cd D:/Download/jiuwenswarm && python workspace/agent/skills/daily-report/run_report.py daily --save# 生成周报-cd D:/Download/jiuwenclaw && python workspace/agent/skills/daily-report/run_report.py weekly --save+cd D:/Download/jiuwenswarm && python workspace/agent/skills/daily-report/run_report.py weekly --save# 生成月报-cd D:/Download/jiuwenclaw && python workspace/agent/skills/daily-report/run_report.py monthly --save+cd D:/Download/jiuwenswarm && python workspace/agent/skills/daily-report/run_report.py monthly --save```### 5.3 效率指标数据结构@@ -2311,7 +2311,7 @@ PERPLEXITY_API_KEY=```markdown# 心跳任务-在此文件中配置需要 JiuwenClaw 周期性执行的任务。+在此文件中配置需要 JiuwenSwarm 周期性执行的任务。---@@ -2375,7 +2375,7 @@ heartbeat:本项目监控的 Git 仓库(脚本会自动读取):```plain-仓库路径: D:/Download/jiuwenclaw+仓库路径: D:/Download/jiuwenswarm```**采集方式**:脚本通过 `git log` 命令采集数据,无需额外配置。@@ -2391,7 +2391,7 @@ heartbeat:```bash# 脚本内部执行的 git 命令-git -C D:/Download/jiuwenclaw log --since="2026-03-07 00:00:00" --until="2026-03-07 23:59:59" --format="%H|%s|%an|%ai" --numstat+git -C D:/Download/jiuwenswarm log --since="2026-03-07 00:00:00" --until="2026-03-07 23:59:59" --format="%H|%s|%an|%ai" --numstat```**多仓库支持**:如需监控多个仓库,可扩展 `DataAggregator`:@@ -2399,8 +2399,8 @@ git -C D:/Download/jiuwenclaw log --since="2026-03-07 00:00:00" --until="2026-03```python# 扩展配置示例(需自行实现)git_repos:- - path: "D:/Download/jiuwenclaw"- name: "jiuwenclaw"+ - path: "D:/Download/jiuwenswarm"+ name: "jiuwenswarm"- path: "D:/Projects/another-repo"name: "another-project"```@@ -2446,7 +2446,7 @@ channels:### 7.1 测试数据采集器```bash# 测试 Git 采集(采集指定日期的提交记录)-cd D:\Download\jiuwenclaw+cd D:\Download\jiuwenswarmpython workspace/agent/skills/daily-report/run_report.py daily --date 2026-03-07# 测试月报生成(采集整月数据)@@ -2571,7 +2571,7 @@ git commit -m "feat: 添加日报生成器完整功能> **让 AI Agent 真正成为智能工作助手,从进阶版日报生成器开始。**>-> — JiuwenClaw 进阶版日报生成器开发实践+> — JiuwenSwarm 进阶版日报生成器开发实践---diff --git "a/docs/zh/\345\274\200\345\217\221\345\256\236\350\267\265/README.md" "b/docs/zh/\345\274\200\345\217\221\345\256\236\350\267\265/README.md"index ea60c79ef3..c228e77090 100644--- "a/docs/zh/\345\274\200\345\217\221\345\256\236\350\267\265/README.md"+++ "b/docs/zh/\345\274\200\345\217\221\345\256\236\350\267\265/README.md"@@ -1,8 +1,8 @@# 开发实践-基于 JiuwenClaw 的真实项目开发实践记录。+基于 JiuwenSwarm 的真实项目开发实践记录。-- [JiuwenClaw 日报生成器开发实践](JiuwenClaw日报生成器开发实践.md) — 多源日报/周报/月报,集成心跳与飞书推送。-- [JiuwenClaw 代码审查助手开发实践](JiuwenClaw代码审查助手开发实践.md) — 分层静态分析、评分与 Markdown / 飞书报告。+- [JiuwenSwarm 日报生成器开发实践](JiuwenSwarm日报生成器开发实践.md) — 多源日报/周报/月报,集成心跳与飞书推送。+- [JiuwenSwarm 代码审查助手开发实践](JiuwenSwarm代码审查助手开发实践.md) — 分层静态分析、评分与 Markdown / 飞书报告。英文版: `docs/en/development-practices/`。\ No newline at end of filediff --git "a/docs/zh/\345\277\203\350\267\263.md" "b/docs/zh/\345\277\203\350\267\263.md"index f097fbbd75..6fc31a1617 100644--- "a/docs/zh/\345\277\203\350\267\263.md"+++ "b/docs/zh/\345\277\203\350\267\263.md"@@ -89,7 +89,7 @@ Web 端左侧导航进入 **心跳** 面板,可:## 5. 常见问题**Q:修改了 `config/config.yaml` 的 heartbeat 段,为何没生效?**-A:应用启动时读取配置;若通过前端「心跳」面板修改,会写回 YAML 并自动重启心跳服务。若直接改 YAML,需重启整个应用(如重启 jiuwenclaw-web)后新配置才会生效。+A:应用启动时读取配置;若通过前端「心跳」面板修改,会写回 YAML 并自动重启心跳服务。若直接改 YAML,需重启整个应用(如重启 jiuwenswarm-web)后新配置才会生效。**Q:如何只在工作时间发心跳?**A:在 `heartbeat.active_hours` 中设置 `start` / `end`,例如 `start: 09:00`、`end: 18:00`,则仅在 09:00–18:00 之间发送心跳。@@ -98,14 +98,14 @@ A:在 `heartbeat.active_hours` 中设置 `start` / `end`,例如 `start: 09:0A:可设置环境变量 `HEARTBEAT_TIMEOUT`(秒)。超时后本次心跳记为失败,会在日志中打 WARNING**Q:HEARTBEAT.md 放在哪里?**-A:必须放在 DeepAgent workspace 根目录下:`~/.jiuwenclaw/agent/jiuwenclaw_workspace/HEARTBEAT.md`(安装模式)或 `jiuwenclaw/resources/agent/jiuwenclaw_workspace/HEARTBEAT.md`(源码模式)。否则会被视为「无自定义任务」,仅返回 `HEARTBEAT_OK`。+A:必须放在 DeepAgent workspace 根目录下:`~/.jiuwenswarm/agent/jiuwenswarm_workspace/HEARTBEAT.md`(安装模式)或 `jiuwenswarm/resources/agent/jiuwenswarm_workspace/HEARTBEAT.md`(源码模式)。否则会被视为「无自定义任务」,仅返回 `HEARTBEAT_OK`。---## 6. 相关代码与配置索引-- 心跳服务实现:`jiuwenclaw/gateway/heartbeat.py`(`GatewayHeartbeatService`、`HeartbeatConfig`)。+- 心跳服务实现:`jiuwenswarm/gateway/heartbeat.py`(`GatewayHeartbeatService`、`HeartbeatConfig`)。- 配置读取与写回:`config/config.py` 的 `update_heartbeat_in_config`;应用启动时在 `app.py` 中从 `config/config.yaml` 的 `heartbeat` 段及环境变量构建 `HeartbeatConfig`。-- Agent 侧 HEARTBEAT.md 处理:`jiuwenclaw/server/runtime/agent_adapter/interface.py` 中根据 `request.params` 的 `heartbeat` 键读取 `HEARTBEAT.md` 并触发任务。-- 前端:`jiuwenclaw/channels/web/frontend/src/components/HeartbeatPanel/`、`heartbeat.get_conf` / `heartbeat.set_conf`、`heartbeat.relay` 事件。+- Agent 侧 HEARTBEAT.md 处理:`jiuwenswarm/server/runtime/agent_adapter/interface.py` 中根据 `request.params` 的 `heartbeat` 键读取 `HEARTBEAT.md` 并触发任务。+- 前端:`jiuwenswarm/channels/web/frontend/src/components/HeartbeatPanel/`、`heartbeat.get_conf` / `heartbeat.set_conf`、`heartbeat.relay` 事件。diff --git "a/docs/zh/\346\211\223\345\214\205exe\346\214\207\345\215\227.md" "b/docs/zh/\346\211\223\345\214\205exe\346\214\207\345\215\227.md"index 169087cc29..a38e05d566 100644--- "a/docs/zh/\346\211\223\345\214\205exe\346\214\207\345\215\227.md"+++ "b/docs/zh/\346\211\223\345\214\205exe\346\214\207\345\215\227.md"@@ -1,6 +1,6 @@-# JiuwenClaw 桌面打包指南+# JiuwenSwarm 桌面打包指南-本文档说明如何使用 uv + PyInstaller + pywebview 将 JiuwenClaw 打包成桌面应用。当前支持 Windows `onedir` 分发目录和 macOS `.app + .dmg`。+本文档说明如何使用 uv + PyInstaller + pywebview 将 JiuwenSwarm 打包成桌面应用。当前支持 Windows `onedir` 分发目录和 macOS `.app + .dmg`。## 前置要求@@ -17,7 +17,7 @@|------|------|| `scripts/jiuwenclaw.spec` | PyInstaller 打包配置 || `scripts/jiuwenclaw_exe_entry.py` | exe 入口脚本(桌面模式 + 子命令分发) |-| `jiuwenclaw/desktop_app.py` | pywebview 桌面窗口与本地服务编排 |+| `jiuwenclaw/channels/desktop/desktop_app.py` | pywebview 桌面窗口与本地服务编排 || `scripts/build-exe.ps1` | 一键打包脚本(PowerShell) || `scripts/build-exe.bat` | 一键打包脚本(批处理) || `scripts/build-macos.sh` | macOS `.app + .dmg` 构建脚本 |@@ -46,7 +46,7 @@# Windows (PowerShell): irm https://astral.sh/uv/install.ps1 | iex# 进入项目目录-cd e:\Projects\jiuwenclaw_9980+cd e:\Projects\jiuwenswarm_9980# 安装项目依赖(含 PyInstaller 开发依赖)uv sync --extra dev --upgrade-package openjiuwen@@ -73,7 +73,7 @@ cd ../..uv run pyinstaller scripts/jiuwenclaw.spec```-成功后,桌面版位于 `dist/jiuwenclaw/`,主程序为 `dist/jiuwenclaw/jiuwenclaw.exe`。+成功后,桌面版位于 `dist/jiuwenswarm/`,主程序为 `dist/jiuwenswarm/jiuwenswarm.exe`。## 使用打包后的 Windows 桌面版@@ -81,35 +81,35 @@ uv run pyinstaller scripts/jiuwenclaw.spec1. **初始化工作区**(首次必须执行):```bash- jiuwenclaw.exe init+ jiuwenswarm.exe init```- 会在 `~/.jiuwenclaw` 创建配置和工作区。+ 会在 `~/.jiuwenswarm` 创建配置和工作区。2. **编辑配置**:- - 打开 `%USERPROFILE%\.jiuwenclaw\.env`+ - 打开 `%USERPROFILE%\.jiuwenswarm\.env`- 填写 `API_KEY`、`MODEL_PROVIDER` 等3. **启动应用**:```bash- jiuwenclaw.exe+ jiuwenswarm.exe```4. 应用会启动本地后端与静态前端,并由 pywebview 直接打开桌面窗口;默认不需要再手动打开浏览器。## 给 Inno Setup 的产物约定-- 安装源目录使用整个 `dist/jiuwenclaw/`-- 主程序入口使用 `dist/jiuwenclaw/jiuwenclaw.exe`-- 首次初始化可由安装完成页触发 `jiuwenclaw.exe init`-- 用户配置与运行数据位于 `%USERPROFILE%\.jiuwenclaw`,卸载时通常不建议默认删除+- 安装源目录使用整个 `dist/jiuwenswarm/`+- 主程序入口使用 `dist/jiuwenswarm/jiuwenswarm.exe`+- 首次初始化可由安装完成页触发 `jiuwenswarm.exe init`+- 用户配置与运行数据位于 `%USERPROFILE%\.jiuwenswarm`,卸载时通常不建议默认删除- 若后续增加应用图标,请同时给 `scripts/jiuwenclaw.spec` 和 Inno Setup 脚本引用同一份 `.ico`### 子命令| 命令 | 说明 ||------|------|-| `jiuwenclaw.exe` | 启动桌面应用 |-| `jiuwenclaw.exe init` | 初始化工作区(首次使用) |+| `jiuwenswarm.exe` | 启动桌面应用 |+| `jiuwenswarm.exe init` | 初始化工作区(首次使用) |## macOS 打包步骤@@ -120,18 +120,18 @@ chmod +x scripts/build-macos.sh./scripts/build-macos.sh```-脚本会自动完成:安装依赖 → 构建前端 → 使用 PyInstaller 生成 `JiuwenClaw.app` → 生成 `JiuwenClaw-<version>.dmg`。+脚本会自动完成:安装依赖 → 构建前端 → 使用 PyInstaller 生成 `JiuwenSwarm.app` → 生成 `JiuwenSwarm-<version>.dmg`。生成后的产物:-- `dist/JiuwenClaw.app`-- `dist/JiuwenClaw-<version>.dmg`+- `dist/JiuwenSwarm.app`+- `dist/JiuwenSwarm-<version>.dmg`验证方式:-1. 双击 `dist/JiuwenClaw.app`-2. 或挂载 `dist/JiuwenClaw-<version>.dmg`-3. 将 `JiuwenClaw.app` 拖到 `Applications`+1. 双击 `dist/JiuwenSwarm.app`+2. 或挂载 `dist/JiuwenSwarm-<version>.dmg`+3. 将 `JiuwenSwarm.app` 拖到 `Applications`注意事项:@@ -144,8 +144,8 @@ chmod +x scripts/build-macos.sh- **Python 运行时**:PyInstaller 将 Python 解释器及依赖打包进桌面分发目录,目标机器无需安装 Python。- **桌面窗口**:pywebview 负责加载本地 `http://127.0.0.1:5173` 页面。- **Node.js**:前端在构建阶段用 Node 编译,运行时只使用静态文件。-- **工作区路径**:与 pip 安装一致,使用 `~/.jiuwenclaw` 作为配置与工作区根目录。-- **安装包制作**:后续使用 Inno Setup 时,请将整个 `dist/jiuwenclaw/` 目录作为安装源,而不是只取单个 exe。+- **工作区路径**:与 pip 安装一致,使用 `~/.jiuwenswarm` 作为配置与工作区根目录。+- **安装包制作**:后续使用 Inno Setup 时,请将整个 `dist/jiuwenswarm/` 目录作为安装源,而不是只取单个 exe。- **macOS DMG**:当前脚本会在 DMG 中附带 `Applications` 快捷方式,方便拖拽安装。## 常见问题diff --git "a/docs/zh/\346\212\200\350\203\275.md" "b/docs/zh/\346\212\200\350\203\275.md"index 4245beb32f..54ad6819cf 100644--- "a/docs/zh/\346\212\200\350\203\275.md"+++ "b/docs/zh/\346\212\200\350\203\275.md"@@ -7,7 +7,7 @@**定义:**-技能(Skill)是给 JiuwenClaw 补充特定能力的模块,可理解为**可安装、可管理、可复用的能力包**。+技能(Skill)是给 JiuwenSwarm 补充特定能力的模块,可理解为**可安装、可管理、可复用的能力包**。就像手机上的 App 扩展了手机的功能,技能扩展了智能体的能力边界。@@ -51,7 +51,7 @@**技能来源:**-JiuwenClaw 支持多种技能来源:+JiuwenSwarm 支持多种技能来源:| 来源 | 说明 | 特点 ||------|------|------|@@ -73,7 +73,7 @@ JiuwenClaw 支持多种技能来源:#### 内置技能-内置技能指打包在 JiuwenClaw 中的技能资源。+内置技能指打包在 JiuwenSwarm 中的技能资源。1. **安装**@@ -191,7 +191,7 @@ Marketplace 不是统一官方商店,而是社区贡献的技能源集合。将技能文件夹复制到:```- C:\Users\<用户名>\.jiuwenclaw\service_default\agent_default\jiuwenclaw_workspace\skills\+ C:\Users\<用户名>\.jiuwenswarm\service_default\agent_default\jiuwenswarm_workspace\skills\```4. **确认生效**@@ -311,7 +311,7 @@ Marketplace 不是统一官方商店,而是社区贡献的技能源集合。直接打开文件夹:```-C:\Users\<用户名>\.jiuwenclaw\service_default\agent_default\jiuwenclaw_workspace\skills\+C:\Users\<用户名>\.jiuwenswarm\service_default\agent_default\jiuwenswarm_workspace\skills\```每个子文件夹对应一个技能。@@ -540,7 +540,7 @@ C:\Users\<用户名>\.jiuwenclaw\service_default\agent_default\jiuwenclaw_worksp| 可能原因 | 解决方案 ||----------|----------|-| 未重启服务 | 重启 JiuwenClaw 服务 |+| 未重启服务 | 重启 JiuwenSwarm 服务 || 安装路径错误 | 确认技能文件在正确目录 || SKILL.md 缺失 | 确认技能包含 SKILL.md 文件 |@@ -607,7 +607,7 @@ my-custom-skill/**SKILL.md 核心内容:**-你可以通过 JiuwenClaw 帮助你生成;**推荐使用 `YAML frontmatter`(置于首个 `---` 与第二个 `---` 之间)声明元数据**,其后的 Markdown 为**技能正文**,即 Agent 执行时的操作说明。完整示例如下:+你可以通过 JiuwenSwarm 帮助你生成;**推荐使用 `YAML frontmatter`(置于首个 `---` 与第二个 `---` 之间)声明元数据**,其后的 Markdown 为**技能正文**,即 Agent 执行时的操作说明。完整示例如下:```markdown---@@ -666,5 +666,5 @@ allowed_tools: [webSearch, readFile]---*文档版本:v1.0*-*适用对象:JiuwenClaw 用户*+*适用对象:JiuwenSwarm 用户**最后更新:2026-05-11*diff --git "a/docs/zh/\346\231\272\350\203\275\344\275\223.md" "b/docs/zh/\346\231\272\350\203\275\344\275\223.md"index 5f8cd05e8f..006355294c 100644--- "a/docs/zh/\346\231\272\350\203\275\344\275\223.md"+++ "b/docs/zh/\346\231\272\350\203\275\344\275\223.md"@@ -1,15 +1,15 @@# 智能体-`workspace` 是 JiuwenClaw 的运行时工作目录,存放 Agent 的记忆、技能、会话数据及用户可配置的心跳任务。首次运行时(通过 `init` 或 `app`),`jiuwenclaw/resources/agent/` 下的模板会被复制到 `~/.jiuwenclaw/agent/jiuwenclaw_workspace/`。内置技能位于包内的 `jiuwenclaw/resources/agent/jiuwenclaw_workspace/skills/`;市场/安装的技能存储在用户 workspace 下。+`workspace` 是 JiuwenSwarm 的运行时工作目录,存放 Agent 的记忆、技能、会话数据及用户可配置的心跳任务。首次运行时(通过 `init` 或 `app`),`jiuwenswarm/resources/agent/` 下的模板会被复制到 `~/.jiuwenswarm/agent/jiuwenswarm_workspace/`。内置技能位于包内的 `jiuwenswarm/resources/agent/jiuwenswarm_workspace/skills/`;市场/安装的技能存储在用户 workspace 下。## 目录结构总览-**用户 workspace**(`~/.jiuwenclaw/agent/jiuwenclaw_workspace/`):+**用户 workspace**(`~/.jiuwenswarm/agent/jiuwenswarm_workspace/`):```-jiuwenclaw_workspace/+jiuwenswarm_workspace/├── agent-data.json # Agent 列表元数据(由 scripts/generate-agent-folders.js 动态生成)├── skills_state.json # Skill 安装/市场状态(动态生成)├── AGENT.md # Agent 身份描述(init 时从 AGENT_ZH.md 或 AGENT_EN.md 复制)@@ -32,7 +32,7 @@ jiuwenclaw_workspace/└── heartbeat_<id>/ # 心跳任务会话```-内置技能模板位于 `jiuwenclaw/resources/agent/jiuwenclaw_workspace/skills/`。这些内置技能不会在 init 时复制到用户 workspace(源码模式下直接从包内加载)。+内置技能模板位于 `jiuwenswarm/resources/agent/jiuwenswarm_workspace/skills/`。这些内置技能不会在 init 时复制到用户 workspace(源码模式下直接从包内加载)。---@@ -42,7 +42,7 @@ jiuwenclaw_workspace/| 路径(workspace 下) | 说明 ||------|------|-| `HEARTBEAT.md` | 心跳任务模板(包内 `jiuwenclaw/resources/agent/jiuwenclaw_workspace/HEARTBEAT_ZH.md` 或 `HEARTBEAT_EN.md`,初始化时按所选语言复制)。若存在且内容有效,Agent 会按心跳间隔读取并执行;否则仅返回 `HEARTBEAT_OK`。用户可在 Web 端编辑。 |+| `HEARTBEAT.md` | 心跳任务模板(包内 `jiuwenswarm/resources/agent/jiuwenswarm_workspace/HEARTBEAT_ZH.md` 或 `HEARTBEAT_EN.md`,初始化时按所选语言复制)。若存在且内容有效,Agent 会按心跳间隔读取并执行;否则仅返回 `HEARTBEAT_OK`。用户可在 Web 端编辑。 || `SOUL.md` | Agent 灵魂/人格描述,用于系统提示词。 || `skills/` | 市场/安装的技能。每个技能包含 `SKILL.md`、`prompts/`、`references/` 等。 || `skills/_marketplace/` | 技能市场仓库克隆目录,预置为空。 |@@ -71,6 +71,6 @@ jiuwenclaw_workspace/## 相关配置- **Skill 根目录**:`config/config.yaml` 中 `skill_base_dir` 默认为 `agent/skills`。-- **记忆工作目录**:`~/.jiuwenclaw/agent/jiuwenclaw_workspace/`(`get_agent_workspace_dir()`)。-- **会话目录**:`~/.jiuwenclaw/agent/jiuwenclaw_workspace/session/`,每个 `session_id` 对应一个子目录。+- **记忆工作目录**:`~/.jiuwenswarm/agent/jiuwenswarm_workspace/`(`get_agent_workspace_dir()`)。+- **会话目录**:`~/.jiuwenswarm/agent/jiuwenswarm_workspace/session/`,每个 `session_id` 对应一个子目录。- **SkillNet 与技能在 Claw 中的使用方式**:详见 [技能.md](技能.md#5-skillnet-安装的技能在-claw-中如何被使用)。diff --git "a/docs/zh/\346\250\241\345\274\217\347\263\273\347\273\237.md" "b/docs/zh/\346\250\241\345\274\217\347\263\273\347\273\237.md"index 12e0b304ff..6be215ccdd 100644--- "a/docs/zh/\346\250\241\345\274\217\347\263\273\347\273\237.md"+++ "b/docs/zh/\346\250\241\345\274\217\347\263\273\347\273\237.md"@@ -1,6 +1,6 @@# 模式系统(Modes)-JiuwenClaw 支持多种运行模式,不同模式对应不同的工具集、权限策略和记忆行为。用户可通过 `/mode` 命令在对话中切换。+JiuwenSwarm 支持多种运行模式,不同模式对应不同的工具集、权限策略和记忆行为。用户可通过 `/mode` 命令在对话中切换。---diff --git "a/docs/zh/\346\265\217\350\247\210\345\231\250.md" "b/docs/zh/\346\265\217\350\247\210\345\231\250.md"index 33958186f7..e113ba8c3f 100644--- "a/docs/zh/\346\265\217\350\247\210\345\231\250.md"+++ "b/docs/zh/\346\265\217\350\247\210\345\231\250.md"@@ -1,7 +1,7 @@# 浏览器工具说明## 1. 简介-浏览器工具是 JiuwenClaw 中用于驱动真实浏览器完成网页任务的一套能力。它适合处理需要表单填写、页面点击、文件上传、网页检索等场景。+浏览器工具是 JiuwenSwarm 中用于驱动真实浏览器完成网页任务的一套能力。它适合处理需要表单填写、页面点击、文件上传、网页检索等场景。从使用方式上看,用户先在前端页面中配置本机 Chrome 路径并启动浏览器服务。系统会拉起一个可被授权的 Chrome 浏览器实例;后续在任务需要时,Agent 会连接并操控这个浏览器完成操作。@@ -45,7 +45,7 @@### 步骤 2:打开前端的“浏览器服务”面板-1. 打开 JiuwenClaw 前端页面。+1. 打开 JiuwenSwarm 前端页面。@@ -262,7 +262,7 @@ BROWSER_ALLOW_SHORT_TIMEOUT_OVERRIDE=0下面这些文件是浏览器工具链路中最重要的入口。### 前端-- `jiuwenclaw/channels/web/frontend/src/components/BrowserPanel/index.tsx`+- `jiuwenswarm/channels/web/frontend/src/components/BrowserPanel/index.tsx`- 前端浏览器服务面板- 负责读取路径、保存路径、触发“启动浏览器服务”@@ -271,24 +271,24 @@ BROWSER_ALLOW_SHORT_TIMEOUT_OVERRIDE=0- 提供 `path.get`、`path.set`、`browser.start` 等前端调用入口### Chrome 启动脚本-- `jiuwenclaw/agentserver/tools/browser_start_client.py`+- `jiuwenswarm/agentserver/tools/browser_start_client.py`- 读取 `config/config.yaml` 中的 `browser.*` 配置- 启动带远程调试能力的 Chrome### 浏览器 MCP 接入-- `jiuwenclaw/agentserver/tools/browser_tools.py`+- `jiuwenswarm/agentserver/tools/browser_tools.py`- 浏览器 MCP wrapper 的接入、自动拉起、client patch、配置构建### 浏览器运行时-- `jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime_mcp_server.py`+- `jiuwenswarm/agentserver/tools/browser-move/src/playwright_runtime_mcp_server.py`- 浏览器 runtime 的 MCP server 入口-- `jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/runtime.py`+- `jiuwenswarm/agentserver/tools/browser-move/src/playwright_runtime/runtime.py`- 浏览器 runtime 编排层-- `jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/service.py`+- `jiuwenswarm/agentserver/tools/browser-move/src/playwright_runtime/service.py`- 浏览器任务执行、session 复用、timeout guardrails-- `jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/agents.py`+- `jiuwenswarm/agentserver/tools/browser-move/src/playwright_runtime/agents.py`- 主编排 agent 与浏览器 worker agent 的提示词和构造逻辑-- `jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/config.py`+- `jiuwenswarm/agentserver/tools/browser-move/src/playwright_runtime/config.py`- Playwright MCP 与浏览器运行时配置解析### 配置文件diff --git "a/docs/zh/\347\273\217\351\252\214\350\256\260\345\277\206.md" "b/docs/zh/\347\273\217\351\252\214\350\256\260\345\277\206.md"index 6f78287a53..89a94d5320 100644--- "a/docs/zh/\347\273\217\351\252\214\350\256\260\345\277\206.md"+++ "b/docs/zh/\347\273\217\351\252\214\350\256\260\345\277\206.md"@@ -1,6 +1,6 @@# 经验记忆(Task Memory)-经验记忆是 JiuwenClaw 的内建任务经验系统,使 Agent 能够从历史任务中检索、记录和沉淀经验教训,从而在后续任务中避免重复错误、复用有效方案。+经验记忆是 JiuwenSwarm 的内建任务经验系统,使 Agent 能够从历史任务中检索、记录和沉淀经验教训,从而在后续任务中避免重复错误、复用有效方案。---diff --git "a/docs/zh/\350\256\260\345\277\206.md" "b/docs/zh/\350\256\260\345\277\206.md"index dd9af67ce0..3ad6365712 100644--- "a/docs/zh/\350\256\260\345\277\206.md"+++ "b/docs/zh/\350\256\260\345\277\206.md"@@ -1,6 +1,6 @@# 记忆系统-记忆系统让 JiuwenClaw 拥有跨对话的持久记忆能力,自动将关键信息写入文件长期保存,配合语义检索随时召回。+记忆系统让 JiuwenSwarm 拥有跨对话的持久记忆能力,自动将关键信息写入文件长期保存,配合语义检索随时召回。**外接记忆 Providers**,支持接入第三方记忆服务(OpenJiuwen LTM、Mem0、OpenViking)或自定义插件。@@ -66,10 +66,10 @@ memory:| Provider | 说明 | 必要配置 ||----------|------|----------|-| `openjiuwen` | 本地长期记忆(KV + 向量 + DB) | 无(使用默认路径 ~/.jiuwenclaw/memory/ltm) |+| `openjiuwen` | 本地长期记忆(KV + 向量 + DB) | 无(使用默认路径 ~/.jiuwenswarm/memory/ltm) || `mem0` | 云端事实抽取与语义检索 | `api_key`(从 mem0.ai 获取) || `openviking` | 字节上下文数据库 | `endpoint`, `api_key` |-| `<plugin-name>` | 自定义插件 | ~/.jiuwenclaw/plugins/memory/<name>/ |+| `<plugin-name>` | 自定义插件 | ~/.jiuwenswarm/plugins/memory/<name>/ |#### 外接记忆环境变量@@ -144,7 +144,7 @@ LLM 调用复用 `models.default`,无需额外模型配置。## 记忆写入触发-在与用户交互过程中,JiuwenClaw 会根据需要自动触发记忆写入,将关键信息写入记忆文件长期保存。+在与用户交互过程中,JiuwenSwarm 会根据需要自动触发记忆写入,将关键信息写入记忆文件长期保存。| 信息类型 | 写入目标 | 操作方式 | 示例 ||----------|----------|----------|------|@@ -252,7 +252,7 @@ Query ──► FTS5 Search ──────────────┘## Dreaming 睡时记忆整理-除了 Agent 在对话中即时写入外,JiuwenClaw 还提供 **Dreaming** 机制:闲时周期性扫描历史会话,调用 LLM 提取值得长期保留的内容,自动写入长期记忆文件。Agent 与 Code 两种模式共用同一管道。+除了 Agent 在对话中即时写入外,JiuwenSwarm 还提供 **Dreaming** 机制:闲时周期性扫描历史会话,调用 LLM 提取值得长期保留的内容,自动写入长期记忆文件。Agent 与 Code 两种模式共用同一管道。| 模式 | 抽取目标 | 输出文件 ||------|----------|----------|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 667fbf7341..85235b1e55 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"@@ -1,8 +1,8 @@# 配置信息-JiuwenClaw 的配置信息是您与智能体交互的基础设置。通过合理的配置,您可以连接不同的模型服务、启用多模态能力、配置第三方服务,以及调整系统行为参数。+JiuwenSwarm 的配置信息是您与智能体交互的基础设置。通过合理的配置,您可以连接不同的模型服务、启用多模态能力、配置第三方服务,以及调整系统行为参数。-本文档将详细介绍 JiuwenClaw 前端配置面板中的各项配置,帮助您快速上手并充分发挥系统能力。+本文档将详细介绍 JiuwenSwarm 前端配置面板中的各项配置,帮助您快速上手并充分发挥系统能力。---@@ -27,11 +27,11 @@ JiuwenClaw 的配置信息是您与智能体交互的基础设置。通过合理## 二、模型配置-> 在使用 JiuwenClaw 之前,您需要先向模型提供商申请 API 密钥。请访问相应提供商的官网,按照指引申请 API 密钥。+> 在使用 JiuwenSwarm 之前,您需要先向模型提供商申请 API 密钥。请访问相应提供商的官网,按照指引申请 API 密钥。### 2.1 支持配置的模型-JiuwenClaw 支持配置多种类型的模型,以满足不同场景的需求:+JiuwenSwarm 支持配置多种类型的模型,以满足不同场景的需求:| 模型类型 | 作用 | 能力要求 | 是否必选 || ------------ | ------------------------------------------------------ | -------------------------------------------------------- | -------- |@@ -95,19 +95,19 @@ model_provider: OpenAI### 2.3 多模态模型效果展示-当您配置了视频、音频或视觉模型后,JiuwenClaw 将自动启用相应的多模态能力。以下是各模型的应用场景示例:+当您配置了视频、音频或视觉模型后,JiuwenSwarm 将自动启用相应的多模态能力。以下是各模型的应用场景示例:#### 视频模型应用以 **GLM-4.6V-Flash11** 视频理解 API 为例:-当您向 JiuwenClaw 发送视频文件并提问时,系统会调用视频模型进行分析:+当您向 JiuwenSwarm 发送视频文件并提问时,系统会调用视频模型进行分析:```用户:请分析这个视频,告诉我视频中有哪些主要场景?[发送视频文件:meeting_recording.mp4]-JiuwenClaw:根据视频分析,该视频包含以下主要场景:+JiuwenSwarm:根据视频分析,该视频包含以下主要场景:1. 会议室开场介绍(0:00-2:30)2. 项目进度汇报(2:30-8:15)3. 问题讨论环节(8:15-12:00)@@ -126,7 +126,7 @@ JiuwenClaw:根据视频分析,该视频包含以下主要场景:用户:请帮我转录这段录音的内容[发送音频文件:voice_message.m4a]-JiuwenClaw:转录结果如下:+JiuwenSwarm:转录结果如下:"明天下午三点在会议室B开项目评审会,请各位提前准备好相关材料..."```@@ -142,7 +142,7 @@ JiuwenClaw:转录结果如下:用户:这张图片中的表格数据是什么?[发送图片:data_chart.png]-JiuwenClaw:根据图像分析,这是一个销售数据统计表:+JiuwenSwarm:根据图像分析,这是一个销售数据统计表:- 一月销售额:120万- 二月销售额:135万- 三月销售额:148万@@ -155,7 +155,7 @@ JiuwenClaw:根据图像分析,这是一个销售数据统计表:## 三、Embed 配置-Embed(嵌入)模型用于将文本转换为向量表示,是 JiuwenClaw 记忆系统实现语义检索的核心组件。+Embed(嵌入)模型用于将文本转换为向量表示,是 JiuwenSwarm 记忆系统实现语义检索的核心组件。### 3.1 作用说明@@ -197,7 +197,7 @@ Embed 模型的主要作用:## 五、自演进配置-自演进配置控制 JiuwenClaw 的 Skills 自动改进能力。+自演进配置控制 JiuwenSwarm 的 Skills 自动改进能力。diff --git "a/docs/zh/\351\241\265\351\235\242\346\246\202\350\247\210.md" "b/docs/zh/\351\241\265\351\235\242\346\246\202\350\247\210.md"index a691483416..c4706cb798 100644--- "a/docs/zh/\351\241\265\351\235\242\346\246\202\350\247\210.md"+++ "b/docs/zh/\351\241\265\351\235\242\346\246\202\350\247\210.md"@@ -1,6 +1,6 @@-# JiuwenClaw 页面概览+# JiuwenSwarm 页面概览-> **目标**:帮助读者全面了解 JiuwenClaw 网页端的页面结构、功能布局和交互方式,为后续深入使用打下基础。+> **目标**:帮助读者全面了解 JiuwenSwarm 网页端的页面结构、功能布局和交互方式,为后续深入使用打下基础。>> **英文版:** [Page-Overview(English)](../en/Page-Overview.md)@@ -8,7 +8,7 @@## 整体布局-JiuwenClaw 网页端采用经典的三栏布局,这种设计在许多专业工具和开发平台中广泛使用,能够高效地组织信息并提供便捷的操作入口。+JiuwenSwarm 网页端采用经典的三栏布局,这种设计在许多专业工具和开发平台中广泛使用,能够高效地组织信息并提供便捷的操作入口。### 布局概览@@ -18,7 +18,7 @@ JiuwenClaw 网页端采用经典的三栏布局,这种设计在许多专业工| 中间主工作区 | 页面中央 | 对话交互、任务执行、状态控制 || 右侧信息面板 | 页面右侧 | 状态显示、任务列表、系统信息 |-+### 布局特点@@ -32,7 +32,7 @@ JiuwenClaw 网页端采用经典的三栏布局,这种设计在许多专业工## 左侧导航栏-左侧导航栏是 JiuwenClaw 的功能入口中心,包含所有主要功能的访问入口。+左侧导航栏是 JiuwenSwarm 的功能入口中心,包含所有主要功能的访问入口。### 功能菜单@@ -52,8 +52,8 @@ JiuwenClaw 网页端采用经典的三栏布局,这种设计在许多专业工### 版本信息- **位置**:导航栏**左下角**--- **显示内容**:当前 JiuwenClaw 版本号++- **显示内容**:当前 JiuwenSwarm 版本号- **作用**:便于确认系统版本,排查兼容性问题> **注意**:部分高级功能可能需要特定权限或配置才能使用。@@ -62,11 +62,11 @@ JiuwenClaw 网页端采用经典的三栏布局,这种设计在许多专业工## 中间主工作区-中间主工作区是用户与 JiuwenClaw 进行交互的核心区域,大部分操作都在这里完成。+中间主工作区是用户与 JiuwenSwarm 进行交互的核心区域,大部分操作都在这里完成。### 1. 对话聊天页面-这是主要的人机交互界面,用于与 JiuwenClaw 进行对话。+这是主要的人机交互界面,用于与 JiuwenSwarm 进行对话。**输入方式**:- 文本输入:直接在输入框中输入文字@@ -75,11 +75,11 @@ JiuwenClaw 网页端采用经典的三栏布局,这种设计在许多专业工- 对话历史:显示完整的对话记录- AI 回复:包含 AI 的最终回答和中间处理过程- 工具调用:显示 AI 调用的工具和执行结果-+### 2. 执行模式-JiuwenClaw 支持三种执行模式,用户可根据任务特点选择:+JiuwenSwarm 支持三种执行模式,用户可根据任务特点选择:| 模式 | 运行方式 | 适用场景 ||------|----------|----------|@@ -93,7 +93,7 @@ JiuwenClaw 支持三种执行模式,用户可根据任务特点选择:- 在**对话输入区域**选择执行模式;- 不同模式会改变智能体的规划与执行方式;在「集群模式」下,你通常能看到**分工/并行** 相关过程(以 UI 实际展示为准)。-+### 3. 任务控制栏@@ -107,11 +107,11 @@ JiuwenClaw 支持三种执行模式,用户可根据任务特点选择:| **取消** | 已停止,不再继续同一条用户指令下的执行 | 一般无需再对同一次执行做操作;可发起新的用户输入 |**处理中示例**-+**暂停示例**-+**取消示例**-+---@@ -127,7 +127,7 @@ JiuwenClaw 支持三种执行模式,用户可根据任务特点选择:| **语言切换** | 切换界面语言(中文/英文等) || **显示模式** | 切换显示模式(亮色/暗色/系统跟随主题) |-+### 2. 信息面板diff --git "a/docs/zh/\351\242\221\351\201\223.md" "b/docs/zh/\351\242\221\351\201\223.md"index 8cf89f2db2..f75174aa61 100644--- "a/docs/zh/\351\242\221\351\201\223.md"+++ "b/docs/zh/\351\242\221\351\201\223.md"@@ -4,22 +4,22 @@### 什么是频道?-**频道(Channel)** 是 JiuwenClaw 的消息接入层,作为统一的消息中枢,负责连接各种外部聊天平台(如飞书、钉钉、企业微信、Telegram 等)。它实现了以下核心功能:+**频道(Channel)** 是 JiuwenSwarm 的消息接入层,作为统一的消息中枢,负责连接各种外部聊天平台(如飞书、钉钉、企业微信、Telegram 等)。它实现了以下核心功能:| 能力 | 说明 ||------|------|-| **消息接入** | 接收来自不同平台的消息,统一格式后送入 JiuwenClaw 处理 |-| **多端同步** | 同一套 JiuwenClaw 服务可同时接入多个平台,消息互通 |+| **消息接入** | 接收来自不同平台的消息,统一格式后送入 JiuwenSwarm 处理 |+| **多端同步** | 同一套 JiuwenSwarm 服务可同时接入多个平台,消息互通 || **身份识别** | 为每个平台的用户建立唯一标识,维护独立的对话上下文 || **安全隔离** | 不同频道的消息流相互隔离,支持白名单、权限控制等 |### 简介-JiuwenClaw 的**频道**,是您与不同聊天平台对话的**渠道**。JiuwenClaw 已经实现了**鸿蒙小艺、飞书**等 channel 的无缝接入,并持续拓展至更多元渠道。可以直接在通过 **飞书**、**鸿蒙生态终端的小艺 app** 应用直接与 JiuweClaw 对话。+JiuwenSwarm 的**频道**,是您与不同聊天平台对话的**渠道**。JiuwenSwarm 已经实现了**鸿蒙小艺、飞书**等 channel 的无缝接入,并持续拓展至更多元渠道。可以直接在通过 **飞书**、**鸿蒙生态终端的小艺 app** 应用直接与 JiuweClaw 对话。### 数字分身-JiuwenClaw 在**飞书**和**企业微信**频道中支持**群聊数字分身**功能。开启后,机器人将在群聊中作为指定用户的"数字分身"运作——自动识别群聊中与该用户相关的消息并代为回复,以该用户的第一人称口吻进行对话。对于待办、提醒等个人行动类回复,数字分身会自动私发给用户本人,同时在群内补发一条简短确认。无关消息则自动过滤,不消耗 Agent 资源。+JiuwenSwarm 在**飞书**和**企业微信**频道中支持**群聊数字分身**功能。开启后,机器人将在群聊中作为指定用户的"数字分身"运作——自动识别群聊中与该用户相关的消息并代为回复,以该用户的第一人称口吻进行对话。对于待办、提醒等个人行动类回复,数字分身会自动私发给用户本人,同时在群内补发一条简短确认。无关消息则自动过滤,不消耗 Agent 资源。该功能默认关闭,开启方式详见下方各频道的配置说明。@@ -27,9 +27,9 @@ JiuwenClaw 在**飞书**和**企业微信**频道中支持**群聊数字分身**配置频道有两种方式:-- **网页配置**(推荐)— 在 JiuwenClaw 前端页面,点击 `智能体` / `频道`卡片,在频道管理模块,填写相关配置。+- **网页配置**(推荐)— 在 JiuwenSwarm 前端页面,点击 `智能体` / `频道`卡片,在频道管理模块,填写相关配置。-- **手动编辑 `config.yaml`** — 默认在 `~/.jiuwenclaw/config.yaml` (由首次 `jiuwenclaw-start` 启动时自动生成),将需要的频道设 `enabled: true` 并填好鉴权信息;保存后自动重载,无需重启。+- **手动编辑 `config.yaml`** — 默认在 `~/.jiuwenswarm/config.yaml` (由首次 `jiuwenswarm-start` 启动时自动生成),将需要的频道设 `enabled: true` 并填好鉴权信息;保存后自动重载,无需重启。---@@ -41,11 +41,11 @@ JiuwenClaw 在**飞书**和**企业微信**频道中支持**群聊数字分身**#### 1. 创建小艺智能体-通过在 [小艺开放平台 ](https://developer.huawei.com/consumer/cn/hag/abilityportal/#/)创建 JiuwenClaw 模式的智能体,即可与 JiuwenClaw 服务无缝接入。+通过在 [小艺开放平台 ](https://developer.huawei.com/consumer/cn/hag/abilityportal/#/)创建 JiuwenSwarm 模式的智能体,即可与 JiuwenSwarm 服务无缝接入。-### 第一步:创建 JiuwenClaw 模式的智能体+### 第一步:创建 JiuwenSwarm 模式的智能体@@ -79,7 +79,7 @@ JiuwenClaw 在**飞书**和**企业微信**频道中支持**群聊数字分身**### 第四步:启用 push 通知(可选)-点击开启触发器,填写名称后保存,将 apiID 填写至 jiuwenclaw 中:+点击开启触发器,填写名称后保存,将 apiID 填写至 jiuwenswarm 中:@@ -91,13 +91,13 @@ JiuwenClaw 在**飞书**和**企业微信**频道中支持**群聊数字分身**### 方式一:网页配置-将小艺开放平台获取到的 **ak、sk、agentId** 信息,填写至 JiuwenClaw 的小艺频道,开启使用,点击保存即可开启对话。如开启了 push 可以填入 api_id(选填):+将小艺开放平台获取到的 **ak、sk、agentId** 信息,填写至 JiuwenSwarm 的小艺频道,开启使用,点击保存即可开启对话。如开启了 push 可以填入 api_id(选填):### 方式二:修改配置文件-编辑 `~/.jiuwenclaw/config/config.yaml`:+编辑 `~/.jiuwenswarm/config/config.yaml`:``````yamlchannels:@@ -112,7 +112,7 @@ channels:enabled: true``````-保存后若服务已运行会自动重载,未运行可以执行 `jiuwenclaw-start` 启动服务。+保存后若服务已运行会自动重载,未运行可以执行 `jiuwenswarm-start` 启动服务。@@ -152,7 +152,7 @@ channels:1. 进入飞书机器人管理后台-2. 记录 App ID 与 App Secret 配置到 JiuwenClaw 飞书频道,点击 enabled 并保存生效+2. 记录 App ID 与 App Secret 配置到 JiuwenSwarm 飞书频道,点击 enabled 并保存生效@@ -221,7 +221,7 @@ channels:### 配置步骤-1. 在 JiuwenClaw 频道管理页面,进入飞书频道配置,启用 **`group_digital_avatar`** 开关,并配置 **`my_user_id`** 和 **`bot_name`**。+1. 在 JiuwenSwarm 频道管理页面,进入飞书频道配置,启用 **`group_digital_avatar`** 开关,并配置 **`my_user_id`** 和 **`bot_name`**。@@ -242,7 +242,7 @@ channels:-也可以通过编辑 `~/.jiuwenclaw/config/config.yaml` 来配置:+也可以通过编辑 `~/.jiuwenswarm/config/config.yaml` 来配置:``````yamlchannels:@@ -288,16 +288,16 @@ permissions:| `group_digital_avatar` | 是否启用群聊数字分身功能。开启后机器人将作为指定用户的数字分身在群聊中活动,智能判断群聊消息是否与该用户相关,自动过滤无关消息、改写相关消息,并对待办/提醒等个人行动类回复自动私发给目标用户,同时在群内补一条简短确认 || `my_user_id` | 开启数字分身时**必填**:数字分身对应用户的飞书 open_id(如 `ou_xxx`),未配置则数字分身功能不生效 || `bot_name` | 机器人在群聊中的名称,用于 @ 提及识别 |-| `enable_memory` | 是否启用群聊记忆功能。开启后 JiuwenClaw 在群聊中可读取及搜索本地记忆文件 |+| `enable_memory` | 是否启用群聊记忆功能。开启后 JiuwenSwarm 在群聊中可读取及搜索本地记忆文件 || `owner_scopes` | 数字分身工具权限配置,按 `channel_id` + `user_id` 维度控制各工具的权限。支持 `allow`(允许)、`deny`(拒绝),`ask`(需确认)在数字分身模式下会自动降级为 `deny`。推荐通过网页端配置 |#### 10. 飞书多 Bot(`feishu_enterprise`)-当一个团队需要在同一套 JiuwenClaw 服务中接入多个飞书应用(多个 Bot)时,可使用 `channels.feishu_enterprise`。+当一个团队需要在同一套 JiuwenSwarm 服务中接入多个飞书应用(多个 Bot)时,可使用 `channels.feishu_enterprise`。每个 bot 会以独立 channel 运行,channel_id 格式为:`feishu_enterprise:<app_id>`。-当前多 bot 仅支持手动编辑 `~/.jiuwenclaw/config/config.yaml`:+当前多 bot 仅支持手动编辑 `~/.jiuwenswarm/config/config.yaml`:``````yamlchannels:@@ -361,7 +361,7 @@ channels:### 步骤 2:填写应用信息-- 应用名称:如 `JiuwenClaw`+- 应用名称:如 `JiuwenSwarm`- 应用类型:**机器人**@@ -370,7 +370,7 @@ channels:- 创建成功后,进入应用详情页- 点击 **应用能力 → 机器人 → 开启机器人配置**-- 填写机器人名称(如 `JiuwenClaw`)、机器人简介(≤10 字)等信息+- 填写机器人名称(如 `JiuwenSwarm`)、机器人简介(≤10 字)等信息@@ -411,7 +411,7 @@ channels:从**凭证与基础信息**获取应用凭证 **Client ID** 和 **Client Secret** 。-**JiuwenClaw**服务页面,在"频道-钉钉"中打开 Enabled 开关,并配置 client_id 与 client_secret 并保存:+**JiuwenSwarm**服务页面,在"频道-钉钉"中打开 Enabled 开关,并配置 client_id 与 client_secret 并保存:@@ -437,11 +437,11 @@ channels:-4. 配置完成后,页面将自动生成并展示 **Bot ID** 和 **Secret** ,妥善保存该信息(后续关联 JiuwenClaw 需使用)+4. 配置完成后,页面将自动生成并展示 **Bot ID** 和 **Secret** ,妥善保存该信息(后续关联 JiuwenSwarm 需使用)-#### 2. 关联 JiuwenClaw+#### 2. 关联 JiuwenSwarm-1. 进入 JiuwenClaw 页面,选择"频道",在频道页面选择 "企业微信"。+1. 进入 JiuwenSwarm 页面,选择"频道",在频道页面选择 "企业微信"。2. 输入步骤一保存的 botId 以及 secret。然后点击保存即可。@@ -473,12 +473,12 @@ channels:### 前提条件-- 已完成企业微信机器人创建并关联 JiuwenClaw+- 已完成企业微信机器人创建并关联 JiuwenSwarm- 已将机器人添加到目标群聊:打开企业微信,进入群组,点击添加成员 -> **群机器人** -> **智能机器人**,搜索你创建的应用名称并添加### 配置步骤-1. 在 JiuwenClaw 频道管理页面,进入企业微信频道配置,启用 **`group_digital_avatar`** 开关,并配置 **`my_user_id`** 和 **`bot_name`**。启用数字分身前需要与机器人私聊一次,否则会报错 `[AiBotSDK] [WARN] Reply ack error`+1. 在 JiuwenSwarm 频道管理页面,进入企业微信频道配置,启用 **`group_digital_avatar`** 开关,并配置 **`my_user_id`** 和 **`bot_name`**。启用数字分身前需要与机器人私聊一次,否则会报错 `[AiBotSDK] [WARN] Reply ack error`@@ -499,7 +499,7 @@ channels:-也可以通过编辑 `~/.jiuwenclaw/config/config.yaml` 来配置:+也可以通过编辑 `~/.jiuwenswarm/config/config.yaml` 来配置:``````yamlchannels:@@ -538,7 +538,7 @@ permissions:| `group_digital_avatar` | 是否启用群聊数字分身功能。开启后机器人将作为指定用户的数字分身在群聊中活动,智能判断群聊消息是否与该用户相关,自动过滤无关消息、改写相关消息,并对待办/提醒等个人行动类回复自动私发给目标用户,同时在群内补一条简短确认 || `my_user_id` | 开启数字分身时**必填**:数字分身对应用户的企业微信账号,未配置则数字分身功能不生效 || `bot_name` | 可选:机器人在群聊中的名称,用于 @ 提及识别 |-| `enable_memory` | 是否启用群聊记忆功能。开启后 JiuwenClaw 在群聊中可读取及搜索本地记忆文件,群聊中不写入记忆 |+| `enable_memory` | 是否启用群聊记忆功能。开启后 JiuwenSwarm 在群聊中可读取及搜索本地记忆文件,群聊中不写入记忆 || `owner_scopes` | 数字分身工具权限配置,按 `channel_id` + `user_id` 维度控制各工具的权限。支持 `allow`(允许)、`deny`(拒绝),`ask`(需确认)在数字分身模式下会自动降级为 `deny`。推荐通过网页端配置 |@@ -556,8 +556,8 @@ permissions:**第二步:** 发送 `/newbot` 命令,按提示输入机器人名称和用户名BotFather 会依次要求你输入:-- **机器人显示名称**(如 `JiuwenClaw Bot`)-- **机器人用户名**(必须以 `bot` 结尾,如 `jiuwenclaw_bot`)+- **机器人显示名称**(如 `JiuwenSwarm Bot`)+- **机器人用户名**(必须以 `bot` 结尾,如 `jiuwenswarm_bot`)@@ -571,13 +571,13 @@ BotFather 会依次要求你输入:### 方式一:网页配置(推荐)-在 JiuwenClaw 前端页面,点击 **`智能体` / `频道`** 卡片,在 Telegram 频道模块中填入 Bot Token,开启使用,点击保存即可。+在 JiuwenSwarm 前端页面,点击 **`智能体` / `频道`** 卡片,在 Telegram 频道模块中填入 Bot Token,开启使用,点击保存即可。### 方式二:修改 `config.yaml`-编辑 `~/.jiuwenclaw/config/config.yaml`:+编辑 `~/.jiuwenswarm/config/config.yaml`:``````yamlchannels:@@ -593,7 +593,7 @@ channels:enabled: true``````-保存后若服务已运行会自动重载,未运行可以执行 `jiuwenclaw-start` 启动服务。+保存后若服务已运行会自动重载,未运行可以执行 `jiuwenswarm-start` 启动服务。#### 3. 配置说明@@ -663,7 +663,7 @@ channels:- `allow_from`- `enabled`-可在 `~/.jiuwenclaw/config/config.yaml` 中按如下方式配置:+可在 `~/.jiuwenswarm/config/config.yaml` 中按如下方式配置:``````yamlchannels:@@ -682,7 +682,7 @@ channels:1. 在 Discord Developer Portal 创建 Bot,获取 `bot_token`2. 在 Bot 页签开启 **Message Content Intent**3. 将机器人邀请进目标服务器并赋予读写频道权限-4. 在 JiuwenClaw 里填入配置并启用 `enabled: true`+4. 在 JiuwenSwarm 里填入配置并启用 `enabled: true`#### 字段说明@@ -722,9 +722,9 @@ channels:### 步骤 2:微信扫码接入-- 打开最新版本的 JiuwenClaw 前端,点击「频道」->「微信」,启用微信配置功能并点击保存。页面会出现**二维码**+- 打开最新版本的 JiuwenSwarm 前端,点击「频道」->「微信」,启用微信配置功能并点击保存。页面会出现**二维码**-+- 打开手机微信,通过右上角「+」->「扫一扫」,扫描上一步骤生成的二维码,继续连接即可完成接入