字
字节笔记本
2026年6月3日
Whale:专为 DeepSeek 打造的终端 AI 编程 agent
API中转
¥120
Whale 是一个专为 DeepSeek 设计的终端优先 AI 编程 agent,使用 Go 语言编写,追求极致速度和低资源占用。
核心特性
DeepSeek 原生:专为 DeepSeek 的 100 万 token 长上下文、工具调用和成本效率优化,不做通用多模型封装。
持久会话:会话保持数天,回来继续上次上下文,支持搜索、分支和恢复。
多界面支持:TUI 交互式编码、CLI 一次性任务、headless 模式跑 CI,桌面版开发中。
工具与 MCP:读写文件、执行命令、搜索网页,接入 1000+ MCP 服务器。
Skills + Plugins:安装社区技能包(代码审查、Git 工作流等),或自己编写。
Dynamic Workflows:写 JavaScript 脚本编排多个 agent 并行工作,兼容 Claude Code 的工作流脚本。
快速安装
bash
# macOS
brew install usewhale/tap/whale
# Linux
curl -fsSL https://raw.githubusercontent.com/usewhale/DeepSeek-Code-Whale/main/scripts/install.sh | sh
# Windows PowerShell
irm https://raw.githubusercontent.com/usewhale/DeepSeek-Code-Whale/main/scripts/install.ps1 | iex
# 设置 DeepSeek API Key
whale setup
# 启动交互式 TUI
whaleDynamic Workflows 示例
js
const results = await parallel([
() => agent("Search for best practices in Go error handling"),
() => agent("Find common Go error handling mistakes"),
]);
return agent("Synthesize both findings into a concise guide");兼容 Claude Code 的工作流脚本,可以直接复用。
三种使用模式
| 命令 | 适用场景 |
|---|---|
whale(TUI) | 交互式编码、审查、迭代 |
whale ask "..."(CLI) | 一次性问答、快速代码审查 |
whale --headless | CI/CD、自动 PR 审查、定时任务 |
技术栈
Go 语言编写,依赖 Charmbracelet TUI 生态、QuickJS Go 绑定(工作流脚本引擎)、MCP Go SDK。项目使用 MIT 协议,GitHub 394 stars。
Whale 的定位很明确:不做 IDE 替代品,不做多模型大杂烩,就是 DeepSeek 的专用编码 agent。
分享: