whip README

项目的 README,来自 github.com/context-labs/whip。合并为一个 markdown 文件:README.md。


WhipCode logo
WhipCode

A coding agent built for work that doesn’t fit in one context window.

Apache 2.0 license Desktop beta

Quickstart · What is this? · How it works · Benchmarks · Development

WhipCode Desktop with a conversation, three working subagents, and an execution trace timeline side by side

Quickstart

Download Desktop Beta — Apple Silicon · macOS 14 or newer.

Use a release built after the clean-project reset; old Desktop releases are not an upgrade path.

  1. Download whipcode-desktop-darwin-arm64.dmg, open it, and drag Whip Beta into Applications.
  2. Launch it and choose Set up this Mac if prompted. The app includes its matching backend; no separate CLI installation is needed.
  3. Connect a model provider, open your project, and describe what you want to do.

Bring an API key or use a supported subscription login. Provider access is separate from installing WhipCode. See providers and authentication.

Prefer the terminal? Install the standalone CLI on macOS or Linux:

curl -fsSL https://raw.githubusercontent.com/context-labs/whip/main/install.sh | sh
whipcode

For an exact version, use the release's install.sh command from its notes—no version environment variable is needed for releases with the two-script split. The companion latest.sh always selects stable v1+, never an alpha.

The new CLI track starts at v1.0.0-alpha.N. Prerelease installation is explicit; default stable installation becomes available with v1.0.0. Existing internal installs must follow the manual reset checklist, not upgrade in place.

Desktop-managed installations update through Desktop; standalone CLI installations use whipcode update. Setup and upgrades →

For the web client, start the daemon with whipcode daemon start, then run whipcode web. It opens your browser and stays running as a separate gateway; Ctrl+C stops web access, not daemon work. Ordinary daemon and Desktop startup open no web listener. See web access for --no-open, managed startup, and trusted-network configuration.

What is this?

WhipCode is an open-source coding agent with a Desktop app, terminal UI, and web client. A shared daemon owns the work, so closing a window doesn’t end the session.

How it works

  1. Describe the task. Give an agent a goal and the context it needs.
  2. Let it work. A recursive language model (RLM) loop uses short Starlark or JavaScript programs to inspect context, call tools, and delegate—not just a growing chat transcript.
  3. Inspect and steer. Follow the trace, send another instruction, or reconnect later. The daemon keeps session state independent of the UI.

Explore the runtime →

Benchmarks

WhipCode solved 20 of 30 tasks (66.7%) in a retained Frontier evaluation: 21 Terminal-Bench tasks and nine code-repository tasks.

Supplied Frontier comparison plotting pass rate against reported cost, including WhipCode, Codex, Claude Code, and other harnesses; methodology and cost limitations below

Read the comparison with context: providers and execution environments differ. The supplied chart’s $2.60 WhipCode point and cost-axis definition are not yet reconciled with the retained reports; this is not a matched cost comparison or an official leaderboard ranking. Results, sources, and limitations →

Development

Requires Go 1.27+, Node.js 24, and Task.

git clone --branch main https://github.com/context-labs/whip.git
cd whip
npm ci
task generate
task build

task generate prepares the ignored protocol artifacts and SDK. Rerun it after protocol changes or switching branches; rerun npm ci first when dependencies change. This builds locally without replacing an installed app or restarting its daemon. See the development and setup guide, Desktop guide, and contributor checks.

Documentation · Architecture · Frontend · Evaluations

License & contributing

Apache-2.0. Issues and pull requests are welcome—start with CONTRIBUTING.md.

whip (context-labs/whip)

正在搜索数据库…

这是什么?whip 是一个用 Go 编写的高速编码智能体框架:大语言模型在交互式的 bubbletea 终端会话中运行工具调用循环(bash、read、write、edit、subagent),帮你处理代码。
它和 opencode、codex 这类编码智能体有什么不同?它是一个单独的 Go 二进制文件,不需要任何运行时,配置也清晰易读。whip 从 pi、opencode、codex 和 exo 中汲取最好的思路,整合成一个立场鲜明的框架,而不是自己另搞一套模式。
怎么安装和启动?安装经过校验和验证的预编译二进制文件(Linux/macOS,x64/arm64),或者用 Go 1.27 或更新版本从源码构建,然后直接运行 whip 就行。按一次 ctrl+c 中断,按两次退出;以后可以用 whip update 升级。
需要 API 密钥吗?能用哪些模型?不需要运行时,也不用针对每个模型单独配置:任何兼容 OpenAI 的接口都可以作为提供商使用。whip 默认使用 inference.net 的模型,一条命令就能接入 OpenRouter 的全部模型目录,通过 /model 即可浏览。
有 Windows 版本吗?预编译二进制文件只提供 Linux 和 macOS(x64/arm64)版本,Windows 用户需要自己从源码编译,这要求安装 Go 1.27 或更新版本。
它为什么面向开源模型打造?whip 押注于开源模型将成为首选的未来。由于跟进开源模型的更新很难,它可以从每个提供商的目录实时发现模型,在模型选择器中展示新模型,并保留一个紧跟前沿的快速默认选项。
我可以用 ChatGPT/Codex 订阅代替 API 密钥吗?可以。运行 whip auth codex 并批准一次性代码,账户的 Codex 模型会立即出现在 /model 里。/usage 可以查看限流窗口,登录信息保存在 ~/.codex/auth.json,过期的令牌会在本地自动刷新。
怎么添加 MCP 服务器?在你的仓库里放一个 .mcp.json 文件,服务器就会自动出现——用 /mcp 可以查看已连接的服务器。浏览器和计算机操作工具的使用方法文档里也有说明。
智能体可以使用哪些工具?bash、read、write、edit 和 subagent。工具调用并行执行,所有输出都是流式的,后台 subagent 是经过编译器检查的 Go 原语(用 channel 而不是手写的 promise)。
whip 为什么这么快?速度是它的核心设计约束:它用 Go 编写,支持并行工具调用和完整流式输出,在你和模型之间只有一个循环,没有别的开销。
大小
68.2 MB
星标
963
时长
3个月
提交 · 90 天