scream-code 0.8.7 → 0.8.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,7 +3,11 @@
3
3
  </p>
4
4
 
5
5
  <p align="center">
6
- <strong>Scream Code 属于你的本地 AI 智能助手</strong>
6
+ <strong>Scream Code Your Local AI Agent Assistant</strong>
7
+ </p>
8
+
9
+ <p align="center">
10
+ <a href="#中文说明"><img src="https://img.shields.io/badge/点击查看中文版说明-blue?style=for-the-badge" alt="Chinese README"></a>
7
11
  </p>
8
12
 
9
13
  <p align="center">
@@ -20,7 +24,196 @@
20
24
 
21
25
  ---
22
26
 
23
- Scream Code 是一款省心的本地中文 AI Agent 助手。无需硬记代码,完全本地部署运行,无任何远程行为,高安全,用户直接用中/英文下达指令,vibe coding、写代码、查论文、改文件、清理电脑、查资料、制作研报、搜全网信息……你动嘴,它动手!
27
+ Scream Code is a hassle-free, locally deployable, all-in-one AI Agent assistant. No remote calls, high security — just tell it what you need in natural language (Chinese or English). Vibe coding, write code, search papers, edit files, clean your machine, research, generate reports, search the web... You speak, it acts!
28
+
29
+ ---
30
+
31
+ ## ✨ Core Features
32
+
33
+ <table>
34
+ <tr>
35
+ <td width="50%">
36
+ <h3>🎯 Goal Loop</h3>
37
+ <p>Not a useless loop — <strong>goal-driven autonomy</strong> with an independent judge Agent. Set a goal and it iterates automatically with budget control. No wasteful token-burning loops.</p>
38
+ </td>
39
+ <td width="50%">
40
+ <h3>🐺 Wolfpack Mode</h3>
41
+ <p><strong>Unlimited intelligent batch concurrency</strong> — multiple Agents collaborate in parallel. Built-in coder/explore/plan/verify/reviewer/oracle/writer sub-agents. No item limit.</p>
42
+ </td>
43
+ </tr>
44
+ <tr>
45
+ <td width="50%">
46
+ <h3>🧠 Persistent Memory</h3>
47
+ <p><strong>Structured SQL extraction from pain points</strong>, FTS5 full-text + Tag semantic + vector triple retrieval. Shared across sessions — the more you use it, the smarter it gets.</p>
48
+ </td>
49
+ <td width="50%">
50
+ <h3>📚 Local SAG Knowledge Base</h3>
51
+ <p><strong>Based on paper: https://arxiv.org/abs/2606.15971 — SAG knowledge base</strong> (dramatically improves multi-hop reasoning), visual graph, import your local knowledge anytime.</p>
52
+ </td>
53
+ </tr>
54
+ <tr>
55
+ <td width="50%">
56
+ <h3>🛡️ Efficient Lightweight Runtime</h3>
57
+ <p><strong>Enterprise-grade security</strong>, fully local deployment, highly extensible with system-level capabilities. Zero remote behavior.</p>
58
+ </td>
59
+ <td width="50%">
60
+ <h3>🔌 Multi-dimensional Extensions</h3>
61
+ <p><strong>MCP / Skills / API providers</strong> — all freely configurable. 130+ built-in providers, or add your own via <code>/config diy</code>.</p>
62
+ </td>
63
+ </tr>
64
+ <tr>
65
+ <td width="50%">
66
+ <h3>⚡️ Multi-Agent Orchestration</h3>
67
+ <p><strong>Enable multi-agent orchestration for sub-Agents with custom model configs.</strong> Let each model do what it does best.</p>
68
+ </td>
69
+ <td width="50%">
70
+ <h3>📱 Multi-channel Connectivity</h3>
71
+ <p>Connect via cc-connect to <strong>WeChat, Feishu, WeCom, DingTalk, Slack</strong> and more. Remotely control your Scream from any chat app.</p>
72
+ </td>
73
+ </tr>
74
+ </table>
75
+
76
+ ---
77
+
78
+ ## 🚀 Quick Start
79
+
80
+ ### Step 1: Install
81
+
82
+ Prerequisite: **Node.js >= 22**. Also recommended: **Git**.
83
+
84
+ **Recommended: npm install (all platforms)**
85
+
86
+ ```bash
87
+ npm install -g scream-code
88
+ ```
89
+
90
+ After installation, the `scream` command is added to PATH. First install takes about 2-5 minutes.
91
+
92
+ - Start TUI: `scream`
93
+ - Auto-permission mode: `scream --auto`
94
+ - Auto-approve mode: `scream -y`
95
+ - Switch language after startup: `/language`
96
+
97
+ ### Step 2: Configure AI Service
98
+
99
+ On first launch, if no model is configured, an interactive setup wizard (`/config`) starts automatically. Choose from built-in providers or use `/config diy` for custom APIs.
100
+
101
+ **Multiple models supported** — switch anytime with `/model`:
102
+
103
+ > Custom APIs supported (DeepSeek, OpenAI, Anthropic, MiniMax, Qwen, SiliconFlow, etc.) via `/config diy`.
104
+
105
+ After configuration, use `/model` to switch or remove models without restarting. Use `/model diy` to configure sub-Agent models.
106
+
107
+ ### Approval Panel
108
+
109
+ When it needs to modify files or run commands, an approval panel appears. Press number keys to select, Enter to confirm.
110
+
111
+ ---
112
+
113
+ ## 📖 Features
114
+
115
+ | Feature | Description |
116
+ |---------|-------------|
117
+ | 💬 **Conversational Interaction** | Describe what you need in natural language — it writes code, edits files, runs commands |
118
+ | 🔒 **Security First** | Must get approval before modifying files; `.env` and sensitive files are blocked by default |
119
+ | 🛡️ **Permission Engine** | Fine-grained control over read/write/execute permissions |
120
+ | ⚙️ **State Machine** | Prevents drift, enforces task granularity, reduces token waste |
121
+ | 🤔 **FusionPlan** | Runs 3 plans from different angles and fuses them into one actionable plan |
122
+ | 🧠 **Memory** | `/memory` — interactive memory notebook, shared across sessions, tag-based |
123
+ | 📚 **SAG Knowledge Base** | `/knowledge` — interactive knowledge base with vector import and visual graph |
124
+ | 💤 **Dream Cleanup** | `/dream` — periodically cleans duplicate and stale records (not available in auto mode) |
125
+ | 🎯 **Goal System** | `/goal` — autonomous goal loop with budget control (iterations/tokens/time) |
126
+ | 💾 **Session Recovery** | Interrupt anytime, resume later — conversation history auto-saved |
127
+ | 🔄 **Multiple Modes** | Interactive mode, silent mode, plan mode, background task mode |
128
+ | 🔌 **MCP Extensions** | Connect external tools (databases, browsers, APIs, etc.) |
129
+ | 🤖 **Multi-Agent Parallel** | Complex tasks are automatically decomposed into parallel sub-Agents |
130
+ | 🎨 **Skill Center** | Browse and install community skills, or create your own |
131
+ | 🐺 **Wolfpack** | Multi-file, multi-task concurrent processing with auto-approval, unlimited sub-Agent concurrency |
132
+ | 🌳 **Multi-Agent Orchestration** | `/config diy` — assign different models to different sub-Agents |
133
+
134
+ ---
135
+
136
+ ## 📱 cc-connect — Remote Control via Chat
137
+
138
+ Supports WeChat, Feishu, Slack, DingTalk, QQ, Telegram, and more. Install cc-connect after scream-code to control it remotely.
139
+
140
+ ### Step 1: Install
141
+
142
+ ```bash
143
+ npm install -g cc-connect
144
+ ```
145
+
146
+ ### Step 2: Configure Platform
147
+
148
+ Open scream-code, type `/cc-connect`, and follow the prompts to select your platform.
149
+
150
+ > ⚠️ **Note**: Do not reconfigure after initial setup — it will overwrite existing config.
151
+
152
+ ### Step 3: Start Daemon
153
+
154
+ Follow the steps to complete setup, then start the background daemon (scream-code can be closed while the daemon runs).
155
+
156
+ **Remote chat quick commands:**
157
+
158
+ | Command | Description |
159
+ |---------|-------------|
160
+ | `/new` | Create new session |
161
+ | `/bind setup` | Enable file transfer (PDF, images, etc.) |
162
+ | `/mode` | View available modes |
163
+ | `/mode yolo` | Auto-approve all tools |
164
+ | `/mode default` | Ask before each tool call |
165
+
166
+ ---
167
+
168
+ ## 💡 Inspiration & Thanks
169
+
170
+ Scream Code is a tool-oriented Agent framework I rebuilt from scratch based on my own usage habits and understanding of Agent systems. I started with Rust, but the maintenance overhead kept growing until I had to switch entirely to TypeScript. I've always believed that maximizing the model's own capabilities is the optimal path for Agent tools — in other words, I don't advocate excessive framework constraints, because model development will gradually reduce hallucinations.
171
+
172
+ The overall logic borrows from the Agent harness approach, while referencing design decisions from many excellent open-source projects. Scream no longer pursues feature stacking — it's a lightweight Agent foundation that stably and efficiently executes intent.
173
+
174
+ This project is completely free and open to use. Forks and modifications are welcome. Feedback, suggestions, and improvements are appreciated. I'll keep refining it within my capacity based on real-world usage.
175
+
176
+ Thanks to these excellent projects for inspiration: pi, pi-tui, gork, kimicli, Gemini, ohmypi, zero, and others.
177
+
178
+ ---
179
+
180
+ ## 🔗 Links
181
+
182
+ 🌐 **Website**: https://scream.chat
183
+
184
+ ---
185
+
186
+ ## ⭐ Star History
187
+
188
+ <a href="https://www-star-history.com/#LIUTod/scream-code&Date">
189
+ <picture>
190
+ <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=LIUTod/scream-code&type=Date&theme=dark" />
191
+ <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=LIUTod/scream-code&type=Date" />
192
+ <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=LIUTod/scream-code&type=Date" />
193
+ </picture>
194
+ </a>
195
+
196
+ ---
197
+
198
+ ## 📄 License
199
+
200
+ [MIT](LICENSE) © [LIUTod](https://github.com/LIUTod)
201
+
202
+ ---
203
+
204
+ <p align="center">
205
+ Made with ❤️ by <a href="https://github.com/LIUTod">LIUTod</a>
206
+ </p>
207
+
208
+ ---
209
+
210
+ <h2 id="中文说明">Scream Code 你的本地 Agent 智能助手</h2>
211
+
212
+ <p align="center">
213
+ <a href="#readme"><img src="https://img.shields.io/badge/README-English-blue?style=for-the-badge" alt="English README"></a>
214
+ </p>
215
+
216
+ Scream Code 是一款省心的可在本地部署的全能 AI Agent 助手。你无需硬记代码,无任何远程行为,高安全,用户直接用中/英文下达指令,vibe coding、写代码、查论文、改文件、清理电脑、查资料、制作研报、搜全网信息……你动嘴,它动手!
24
217
 
25
218
  ---
26
219
 
@@ -44,17 +237,17 @@ Scream Code 是一款省心的本地中文 AI Agent 助手。无需硬记代码
44
237
  </td>
45
238
  <td width="50%">
46
239
  <h3>📚 本地SAG图谱知识库</h3>
47
- <p><strong>基于论文:https://arxiv.org/abs/2606.15971 构建复现SAG知识库</strong>(大幅提高多跳推理能力),随时导入你的本地知识,让Agent更懂你</p>
240
+ <p><strong>基于论文:https://arxiv.org/abs/2606.15971 构建复现SAG知识库</strong>(大幅提高多跳推理能力),可视化图谱,随时导入你的本地知识,让Agent更懂你</p>
48
241
  </td>
49
242
  </tr>
50
243
  <tr>
51
244
  <td width="50%">
52
245
  <h3>🛡️ 效率级轻量底层</h3>
53
- <p><strong>企业级安全</strong>,本地部署,高度自由可拓展,系统级调用能力。完全本地运行,无任何远程行为。</p>
246
+ <p><strong>企业级安全</strong>,完全本地部署并运行,高度自由可拓展,系统级调用能力。无任何远程行为。</p>
54
247
  </td>
55
248
  <td width="50%">
56
249
  <h3>🔌 多维自定义拓展</h3>
57
- <p><strong>MCP / Skill / 模型商</strong> 均可自由DIY配置,拓展你Scream的能力,内设主流国内外模型商超130+,也可自由配置。</p>
250
+ <p><strong>MCP / Skill / api模型商</strong> 均可自由DIY配置,拓展你Scream的能力,内设主流国内外模型商超130+,也可自由配置。</p>
58
251
  </td>
59
252
  </tr>
60
253
  <tr>
@@ -64,7 +257,7 @@ Scream Code 是一款省心的本地中文 AI Agent 助手。无需硬记代码
64
257
  </td>
65
258
  <td width="50%">
66
259
  <h3>📱 多渠道互联</h3>
67
- <p>通过 CC 打通<strong>微信、飞书、企微、钉钉</strong>等平台,远程调用不用慌。</p>
260
+ <p>通过 cc-connect 打通<strong>微信、飞书、企微、钉钉、slack</strong>等平台,随时随地在App上远程调用你的scream。</p>
68
261
  </td>
69
262
  </tr>
70
263
  </table>
@@ -87,6 +280,7 @@ npm install -g scream-code
87
280
  TUI启动命令`scream`
88
281
  自动权限模式启动`scream --auto`
89
282
  自动批准模式启动`scream -y`
283
+ 启动后切换语言`/language`
90
284
 
91
285
  ### 第二步:启动并配置 AI 服务
92
286
 
@@ -103,7 +297,7 @@ TUI启动命令`scream`
103
297
 
104
298
  当它要修改文件或执行命令时,会弹出审批面板:
105
299
 
106
- 按数字键选择,回车确认。所有提示都是中文。
300
+ 按数字键选择,回车确认。
107
301
 
108
302
  ---
109
303
 
@@ -115,15 +309,18 @@ TUI启动命令`scream`
115
309
  | 🔒 **安全第一** | 修改文件前必须征得同意,`.env` 等敏感文件默认禁止操作 |
116
310
  | 🛡️ **权限引擎** | 精细控制它能做什么(读取/写入/执行),防止误操作 |
117
311
  | ⚙️ **状态机机制** | 防漂移,强化任务颗粒度,不出错,任务完成度高,降低 Token 消耗 |
312
+ | 🤔 **fusionplan** | 复杂需求规划时跑3个不同角度的方案并融合为真实可行的方案,提高方案正确率 |
118
313
  | 🧠 **记忆备忘录** | `/memory` 打开交互式记忆备忘录,跨会话共享,知识库tag分级 |
314
+ | 📚 **SAG知识库** | `/knowledge` 打开交互式知识库,配置导入向量,可视化知识图谱 |
119
315
  | 💤 **dream 整理** | `/dream` 定期整理重复和过时记录(auto模式下不可用,避免误删) |
120
316
  | 🎯 **目标系统** | `/goal` 开启自主目标循环,支持预算控制(轮次/Token/时间) |
121
317
  | 💾 **会话恢复** | 随时中断,随时继续,对话历史自动保存 |
122
318
  | 🔄 **多模式** | 交互模式、静默模式、计划模式、后台任务模式 |
123
- | 🔌 **MCP 扩展** | 连接外部工具(数据库、浏览器、API 等) |
124
- | 🤖 **多 Agent 并行** | 复杂任务自动拆解为多个子 Agent 同时执行 |
125
- | 🎨 **技能中心** | 内置多款技能可下载,用户也可以自行安装 skill 技能 |
319
+ | 🔌 **MCP扩展** | 连接外部工具(数据库、浏览器、API 等) |
320
+ | 🤖 **多Agent并行** | 复杂任务自动拆解为多个子 Agent 同时执行 |
321
+ | 🎨 **技能中心** | 搜罗多款技能可下载,用户也可以自行安装 skill 技能 |
126
322
  | 🐺 **wolfpack** | 群狼模式,适合多文件多任务同时处理,拥有自动审批权限,子 Agent 并发无上限 |
323
+ | 🌳 **多代理编排** | `/config diy` 自定义给子Agent代理配置不同的模型,让最合适的模型做最适合的工作|
127
324
 
128
325
  ---
129
326
 
@@ -161,40 +358,10 @@ npm install -g cc-connect
161
358
 
162
359
  ## 💡 项目灵感与感谢支持
163
360
 
164
- Scream 是我基于自身使用习惯与对 Agent 系统的理解,从零重构的一套工具型 Agent 框架。最早用 Rust 写,架构膨胀得厉害,最后成屎山了。经历了教训之后,彻底转向 TypeScript,也顺便做了大量减法。
165
-
166
- 重构之后,我把精力集中在三件事上:并行调度和状态机 + 记忆系统的收敛设计 + 最大化释放模型本身的能力上。整体逻辑借鉴了 Agent harness 的思路,同时也参考了不少优秀开源项目的设计取舍与实现细节。现在的 Scream 不再追求功能堆叠,而是一个能稳定、高效执行意图的轻量化 Agent 底座。
167
-
168
- 这个项目完全免费,开放使用,也欢迎反馈,并给出建议和改进。会持续根据实际使用场景继续打磨。
169
-
170
- 再次感谢其他优秀的项目给予灵感:pi、gork、kimicli、Gemini、ohmypi 等优秀项目。
171
-
172
- ---
173
-
174
- ## 🔗 入口
175
-
176
- 🌐 **官网**:https://scream.chat
177
-
178
- ---
179
-
180
- ## ⭐ Star History
361
+ Scream Code 是我基于自身使用习惯以及对 Agent 系统的理解,从零重构的一套工具型 Agent 框架。最早用 Rust 编写,但维护工程量越来越大,不得不彻底转向 TypeScript,我的始终认为,最大化释放模型本身的能力才是 Agent 工具未来发展的最优解,换句话说我并不提倡过度的框架约束,因为模型的发展会逐渐降低幻觉!
181
362
 
182
- <a href="https://www.star-history.com/#LIUTod/scream-code&Date">
183
- <picture>
184
- <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=LIUTod/scream-code&type=Date&theme=dark" />
185
- <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=LIUTod/scream-code&type=Date" />
186
- <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=LIUTod/scream-code&type=Date" />
187
- </picture>
188
- </a>
363
+ 另外 Scream Code 的整体逻辑借鉴了 Agent harness 的思路,同时也参考了不少优秀开源项目的设计取舍与实现细节。现在的 Scream 不再追求功能堆叠,而是一个能稳定、高效执行意图的轻量化 Agent 底座。
189
364
 
190
- ---
365
+ 这个项目完全免费,开放使用,欢迎魔改,也欢迎反馈,并给出建议和改进。我会在能力范围之内,持续根据实际使用场景继续打磨。
191
366
 
192
- ## 📄 License
193
-
194
- [MIT](LICENSE) © [LIUTod](https://github.com/LIUTod)
195
-
196
- ---
197
-
198
- <p align="center">
199
- Made with ❤️ by <a href="https://github.com/LIUTod">LIUTod</a>
200
- </p>
367
+ 再次感谢其他优秀的项目给予灵感:pi、pi-tui、gork、kimicli、Gemini、ohmypi、zero 等优秀项目。