Scream Code — Your Local AI Agent Assistant
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!
|
Not a useless loop — goal-driven autonomy with an independent judge Agent. Set a goal and it iterates automatically with budget control. No wasteful token-burning loops. |
Unlimited intelligent batch concurrency — multiple Agents collaborate in parallel. Built-in coder/explore/plan/verify/reviewer/oracle/writer sub-agents. No item limit. |
|
Structured SQL extraction from pain points, FTS5 full-text + Tag semantic + vector triple retrieval. Shared across sessions — the more you use it, the smarter it gets. |
Based on paper: https://arxiv.org/abs/2606.15971 — SAG knowledge base (dramatically improves multi-hop reasoning), visual graph, import your local knowledge anytime. |
|
Enterprise-grade security, fully local deployment, highly extensible with system-level capabilities. Zero remote behavior. |
MCP / Skills / API providers — all freely configurable. 130+ built-in providers, or add your own via |
|
Enable multi-agent orchestration for sub-Agents with custom model configs. Let each model do what it does best. |
Connect via cc-connect to WeChat, Feishu, WeCom, DingTalk, Slack and more. Remotely control your Scream from any chat app. |
Prerequisite: Node.js >= 22. Also recommended: Git.
Recommended: npm install (all platforms)
npm install -g scream-codeAfter installation, the scream command is added to PATH. First install takes about 2-5 minutes.
- Start TUI:
scream - Start Web UI:
scream web - Auto-permission mode:
scream --auto - Auto-approve mode:
scream -y - Switch language after startup:
/language
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.
Multiple models supported — switch anytime with /model:
Custom APIs supported (DeepSeek, OpenAI, Anthropic, MiniMax, Qwen, SiliconFlow, etc.) via
/config diy.
After configuration, use /model to switch or remove models without restarting. Use /model diy to configure sub-Agent models.
When it needs to modify files or run commands, an approval panel appears. Press number keys to select, Enter to confirm.
| Feature | Description |
|---|---|
| 💬 Conversational Interaction | Describe what you need in natural language — it writes code, edits files, runs commands |
| 🌐 Web UI | scream web — browser-based chat with multi-session, model switching, and full TUI parity |
| 🔒 Security First | Must get approval before modifying files; .env and sensitive files are blocked by default |
| 🛡️ Permission Engine | Fine-grained control over read/write/execute permissions |
| ⚙️ State Machine | Prevents drift, enforces task granularity, reduces token waste |
| 🤔 FusionPlan | Runs 3 plans from different angles and fuses them into one actionable plan |
| 🧠 Memory | /memory — interactive memory notebook, shared across sessions, tag-based |
| 📚 SAG Knowledge Base | /knowledge — interactive knowledge base with vector import and visual graph |
| 💤 Dream Cleanup | /dream — periodically cleans duplicate and stale records (not available in auto mode) |
| 🎯 Goal System | /goal — autonomous goal loop with budget control (iterations/tokens/time) |
| 💾 Session Recovery | Interrupt anytime, resume later — conversation history auto-saved |
| 🔄 Multiple Modes | Interactive mode, silent mode, plan mode, background task mode |
| 🔌 MCP Extensions | Connect external tools (databases, browsers, APIs, etc.) |
| 🤖 Multi-Agent Parallel | Complex tasks are automatically decomposed into parallel sub-Agents |
| 🎨 Skill Center | Browse and install community skills, or create your own |
| 🐺 Wolfpack | Multi-file, multi-task concurrent processing with auto-approval, unlimited sub-Agent concurrency |
| 🌳 Multi-Agent Orchestration | /config diy — assign different models to different sub-Agents |
Launch the web interface with scream web — no terminal required. Full TUI parity in your browser.
scream web # Start on default port 3210
scream web --port 3222 # Custom port
scream web -y # Auto-approve mode
scream web --auto # Auto permission mode
scream web --no-open # Don't auto-open browserFeatures:
- 💬 Full chat experience — same agent-core as TUI, zero feature loss
- 📂 Multi-session — sidebar with create/switch/delete/export, persistent across restarts
- 🔄 Model switching — click model pill to switch models and thinking levels
- ⌨️ Slash commands —
/compact/auto/yes/plan/fork/title/status/usage/btwand more - 🎨 Themes — light/dark/system with smooth transitions
- 📱 Mobile responsive — works on phones and tablets
- 🔒 Local only — binds to 127.0.0.1, no external access
Supports WeChat, Feishu, Slack, DingTalk, QQ, Telegram, and more. Install cc-connect after scream-code to control it remotely.
npm install -g cc-connectOpen scream-code, type /cc-connect, and follow the prompts to select your platform.
⚠️ Note: Do not reconfigure after initial setup — it will overwrite existing config.
Follow the steps to complete setup, then start the background daemon (scream-code can be closed while the daemon runs).
cc-connect remote chat quick commands (only the following are supported):
| Command | Description |
|---|---|
/new |
Overwrite and create new session |
/current |
View current session status |
/mode [name] |
Switch mode |
/reasoning [level] |
View or switch reasoning effort |
/stop |
Stop current execution |
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.
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.
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.
Thanks to these excellent projects for inspiration: pi, pi-tui, gork, kimicli, Gemini, ohmypi, zero, and others.
🌐 Website: https://scream.chat
Made with ❤️ by LIUTod
Scream Code 是一款省心的可在本地部署的全能 AI Agent 助手。你无需硬记代码,无任何远程行为,高安全,用户直接用中/英文下达指令,vibe coding、写代码、查论文、改文件、清理电脑、查资料、制作研报、搜全网信息……你动嘴,它动手!
|
非无效loop,目标自主驱动,裁判Agent独立裁决目标达成。设定目标后自动多轮迭代执行,支持预算控制。拒绝浪费Token式无效Loop循环 |
无限制智能批量并发多Agent协同,并行处理大项目任务。内置coder/explore/plan/verify/reviewer/oracle/writer 等多种子 Agent,精准识别任务类型,item 数量无上限。 |
|
痛点记忆结构化SQL提取,FTS5全文+Tag语义+向量三重检索不漂移。跨会话共享,越用越懂你。 |
基于论文:https://arxiv.org/abs/2606.15971 构建复现SAG知识库(大幅提高多跳推理能力),可视化图谱,随时导入你的本地知识,让Agent更懂你 |
|
企业级安全,完全本地部署并运行,高度自由可拓展,系统级调用能力。无任何远程行为。 |
MCP / Skill / api模型商 均可自由DIY配置,拓展你Scream的能力,内设主流国内外模型商超130+,也可自由配置。 |
|
支持为子Agent开启多代理编排模式,可自定义配置子Agent模型。让不同模型,去做自己最擅长的工作。 |
通过 cc-connect 打通微信、飞书、企微、钉钉、slack等平台,随时随地在App上远程调用你的scream。 |
前置条件:Node.js >= 22 建议同步安装 Git。
推荐:npm 安装(全平台通用)更新安装都是这个指令
npm install -g scream-code安装完成后,scream 命令自动加入 PATH。首次安装约需 2-5 分钟。
TUI启动命令scream
Web网页端启动命令scream web
自动权限模式启动scream --auto
自动批准模式启动scream -y
启动后切换语言/language
首次启动时,如果检测到没有配置模型,会自动进入交互式配置向导(/config),可选择市面模型商一键配置
(/config diy) 支持自定义追加配置。按提示输入 API 地址、密钥、模型型号即可完成配置。
支持多个模型(配置好后可用 /model 随时切换):
支持自定义 API(DeepSeek、OpenAI、Anthropic、MiniMax、通义千问、硅基流动等(
/config diy)需要输入隐藏指令)。
配置完成后,在交互模式下输入 /model 即可切换模型或删除模型,无需重启(/model diy)可以单独设置子Agent模型配置。
当它要修改文件或执行命令时,会弹出审批面板:
按数字键选择,回车确认。
| 功能 | 说明 |
|---|---|
| 💬 对话式交互 | 用自然语言描述需求,它自动写代码、改文件、跑命令 |
| 🌐 Web网页端 | scream web 启动浏览器聊天,支持多会话、模型切换,与TUI功能对齐 |
| 🔒 安全第一 | 修改文件前必须征得同意,.env 等敏感文件默认禁止操作 |
| 🛡️ 权限引擎 | 精细控制它能做什么(读取/写入/执行),防止误操作 |
| ⚙️ 状态机机制 | 防漂移,强化任务颗粒度,不出错,任务完成度高,降低 Token 消耗 |
| 🤔 fusionplan | 复杂需求规划时跑3个不同角度的方案并融合为真实可行的方案,提高方案正确率 |
| 🧠 记忆备忘录 | /memory 打开交互式记忆备忘录,跨会话共享,知识库tag分级 |
| 📚 SAG知识库 | /knowledge 打开交互式知识库,配置导入向量,可视化知识图谱 |
| 💤 dream 整理 | /dream 定期整理重复和过时记录(auto模式下不可用,避免误删) |
| 🎯 目标系统 | /goal 开启自主目标循环,支持预算控制(轮次/Token/时间) |
| 💾 会话恢复 | 随时中断,随时继续,对话历史自动保存 |
| 🔄 多模式 | 交互模式、静默模式、计划模式、后台任务模式 |
| 🔌 MCP扩展 | 连接外部工具(数据库、浏览器、API 等) |
| 🤖 多Agent并行 | 复杂任务自动拆解为多个子 Agent 同时执行 |
| 🎨 技能中心 | 搜罗多款技能可下载,用户也可以自行安装 skill 技能 |
| 🐺 wolfpack | 群狼模式,适合多文件多任务同时处理,拥有自动审批权限,子 Agent 并发无上限 |
| 🌳 多代理编排 | /config diy 自定义给子Agent代理配置不同的模型,让最合适的模型做最适合的工作 |
输入 scream web 启动网页端,无需终端,浏览器里直接使用。功能与TUI完全对齐。
scream web # 默认端口 3210
scream web --port 3222 # 自定义端口
scream web -y # 自动批准模式
scream web --auto # 自动权限模式
scream web --no-open # 不自动打开浏览器功能特性:
- 💬 完整聊天体验 — 与TUI共用同一套 agent-core,功能零损失
- 📂 多会话管理 — 左侧栏新建/切换/删除/导出会话,重启后自动恢复
- 🔄 模型切换 — 点击模型标签即可切换模型和思考强度
- ⌨️ 斜杠命令 —
/compact/auto/yes/plan/fork/title/status/usage/btw等 - 🎨 主题切换 — 亮色/暗色/跟随系统,平滑过渡
- 📱 移动端适配 — 手机平板也能用
- 🔒 仅本地访问 — 绑定 127.0.0.1,外部无法访问
支持微信、飞书、Slack、钉钉、QQ、Telegram 等,你可以在安装 scream-code 后一键安装 cc-connect 来控制你的 screamcode。
npm install -g cc-connect打开 screamcode,输入 /cc-connect 按照提示选择你要接入的平台。
⚠️ 注意:配置完毕后不要再次配置,否则会覆盖原有配置。
按照步骤完成配置与链接后,输入命令启动后台守护进程(关闭 screamcode 也可在后台聊天)。
cc-connect远程聊天常用快捷指令(仅支持以下指令):
| 指令 | 说明 |
|---|---|
/new |
覆盖并创建新会话 |
/current |
查看当前会话状态 |
/mode [名称] |
切换模式 |
/reasoning [等级] |
查看或切换推理强度 |
/stop |
停止当前执行 |
Scream Code 是我基于自身使用习惯以及对 Agent 系统的理解,从零重构的一套工具型 Agent 框架。最早用 Rust 编写,但维护工程量越来越大,不得不彻底转向 TypeScript,我的始终认为,最大化释放模型本身的能力才是 Agent 工具未来发展的最优解,换句话说我并不提倡过度的框架约束,因为模型的发展会逐渐降低幻觉!
另外 Scream Code 的整体逻辑借鉴了 Agent harness 的思路,同时也参考了不少优秀开源项目的设计取舍与实现细节。现在的 Scream 不再追求功能堆叠,而是一个能稳定、高效执行意图的轻量化 Agent 底座。
这个项目完全免费,开放使用,欢迎魔改,也欢迎反馈,并给出建议和改进。我会在能力范围之内,持续根据实际使用场景继续打磨。
再次感谢其他优秀的项目给予灵感:pi、pi-tui、gork、kimicli、Gemini、ohmypi、zero 等优秀项目。
