模型可以是任何人的。 智能体应当属于你。
Codewhale 是一个运行在终端里的开源编程智能体,用 Rust 编写。它支持任意模型,可以把一项任务分给多个智能体,而且它的每一行代码都任你阅读。
curl -fsSL https://codewhale.net/install.sh | sh
版本 0.10.4 已发布,无需账号。阅读代码
Note Connected: deepseek ▏ Model: deepseek-flash ▏ Endpoint: api.deepseek.com ▎ Add a --json flag to ls.py so the tests pass, then run the tests. ✓ ▷ read done · Reading ls.py ✓ ▷ read done · Reading test_ls.py ⢴⠤⡂ ⠺⠒⠅ ⠺⠒⠅ ⠐⠗⠕ ⠠⡦⡢ ⢀⠤⠒⠒⠢⢄ ⠂ ⠐⠥⠤⢤⡤⠤⠤ ⠠ ⠁ ˚ ⠱⠪⠕⠂ ⠜⠪⠕⠂ ⠜⠪⠕⠂ ⠪⠪⠕⠂ · ⠐⠕⠭⠒ ⠕⠪⠕⠂ ⠂ ╭──────────────────────────────────────────────────────────────────────────────────────────────────╮│❯ Type a follow-up… ││ [·] │╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ● accept edits Shift+Tab to change working 2s Esc to interrupt Continuing — tool results deepseek-flash · thinking: high context 1% $0.0011 ttft 939ms 59 avg tok/s cache 19%
▎ Add a --json flag to ls.py so the tests pass… │… Thought › │ │ │● Now I'll add the flag: │ │ │✓ ◆ patch done · Updated ls.py · +11 -3 │ --- a/ls.py │ +++ b/ls.py │ @@ -1,10 +1,18 @@ ┃ 1 - import sys ┃ 1 + import argparse ┃ 2 + import json ┃ 2 3 ┃ 3 4 NAMES = ["alpha", "beta"] ┃ 4 5 ┃ 5 6 def main(): ┃ 6 - for n in NAMES: ┃ 7 - print(n) ┃ 7 + parser = ┃ argparse.ArgumentParser() ┃ ▏ +13 diff lines · ⌥V change ┃╭──────────────────────────────────────────────╮│❯ Type a follow-up… ││ [·] │╰──────────────────────────────────────────────╯ ● accept edits Esc to interrupt Continuing deepseek-flash context 1% $0.0003
Note Connected: deepseek ┃▏ Model: deepseek-flash ┃▏ Endpoint: api.deepseek.com ┃ ┃ ┃ ┃▎ Add a --json flag to ls.py so the tests pass, then run the tests. ┃ ┃ ┃ ┃✓ ▷ read done · Reading ls.py ┃✓ ▷ read done · Reading test_ls.py ┃ ┃ ┃… Thought › ┃ │ │✓ ◆ patch done · Updated ls.py · +4 -0 │ --- a/ls.py │ +++ b/ls.py │ @@ -1,8 +1,12 @@ ╭─╮│ 1 + import json │↓││ 1 2 import sys ╰─╯│┃ ⛯ Run python3 -m unittest -v test_ls.py 2>&1 Shift+Tab Permissions ✓ Allow [▾ m] ✕ Deny [d]╭──────────────────────────────────────────────────────────────────────────────────────────────────╮│❯ Type a follow-up… ││ [·] │╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ● accept edits needs you 21s deepseek-flash · thinking: high context 1% $0.0014 ttft 765ms 96 avg tok/s cache 72%
▏ Endpoint: api.deepseek.com │ ┃ ┃ ┃▎ Add a --json flag to ls.py so the tests ┃▏ pass, then run the tests. ┃ ┃ ┃ ┃● I'll start by reading both files. ┃ ┃ ┃✓ ▷ read done · Reading ls.py │✓ ▷ read done · Reading test_ls.py │ │ │… Thought › │ │ │● Now I'll add the flag: │ ╭─╮│ │↓││✓ ◆ patch done · Updated ls.py · +11 -3 ╰─╯│┃ ⛯ Run python3 -m ... Allow [▾ m] Deny [d]╭──────────────────────────────────────────────╮│❯ Type a follow-up… ││ [·] │╰──────────────────────────────────────────────╯ ● accept edits needs you 9s Approve or deny… deepseek-flash context 1% $0.0004
▎ Add a --json flag to ls.py so the tests pass, then run the tests. │… Thought › │ │ │✓ ◆ patch done · Updated ls.py · +4 -0 │ --- a/ls.py │ +++ b/ls.py │ @@ -1,8 +1,12 @@ │ 1 + import json ┃ 1 2 import sys ┃ 2 3 ┃ 3 4 NAMES = ["alpha", "beta"] ┃ 4 5 ┃ 5 6 def main(): ┃ 7 + if "--json" in sys.argv[1:]: ┃ 8 + print(json.dumps(NAMES)) ┃ 9 + return ┃ 6 10 for n in NAMES: ┃ 7 11 print(n) ┃ ▏ +1 diff lines · ⌥V change ┃● Run the ls tests · waiting for approval ┃ ▏ $ python3 -m unittest -v test_ls.py 2>&1 ┃┃ ⛯ Run python3 -m unittest -v test_ls.py 2>&1 Shift+Tab Permissions ✓ Allow [▾ m] ✕ Deny [d]╭──────────────────────────────────────────────────────────────────────────────────────────────────╮│❯ Type a follow-up… ││ [·] │╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ● accept edits needs you 25s deepseek-flash · thinking: high context 1% $0.0014 ttft 765ms 96 avg tok/s cache 72%
▎ Add a --json flag to ls.py so the tests pass… --- a/ls.py │ +++ b/ls.py │ @@ -1,10 +1,18 @@ │ 1 - import sys │ 1 + import argparse │ 2 + import json │ 2 3 │ 3 4 NAMES = ["alpha", "beta"] │ 4 5 │ 5 6 def main(): │ 6 - for n in NAMES: │ 7 - print(n) │ 7 + parser = ┃ argparse.ArgumentParser() ┃ ▏ +13 diff lines · ⌥V change ┃ ┃ ┃… Thought › ┃ ┃ ┃● Run unittest suite · waiting for approval ┃ ▏ $ python3 -m unittest -v test_ls.py 2>&1 ┃┃ ⛯ Run python3 -m ... Allow [▾ m] Deny [d]╭──────────────────────────────────────────────╮│❯ Type a follow-up… ││ [·] │╰──────────────────────────────────────────────╯ ● accept edits Approve or deny… deepseek-flash context 1% $0.0004
▎ Add a --json flag to ls.py so the tests pass, then run the tests. ▏ test_json (test_ls.LsTest.test_json) ... ok │ ▏ … (+2 lines) · ⌥V output │ ▏ Ran 2 tests in 0.050s │ ▏ OK │ │ │─ ✓ Allowed in this conversation · python3 -m unittest -v test_ls.py 2>&1 │ │ │● Added --json to ls.py and both tests pass. │▏ ┃▏ Change (ls.py): ┃▏ - main() checks sys.argv[1:] for --json; if present it prints json.dumps(NAMES) and returns, ┃▏ otherwise the original line-by-line output is unchanged. ┃▏ ┃▏ Verification — python3 -m unittest -v test_ls.py: ┃ test_json (test_ls.LsTest.test_json) ... ok ┃ test_plain (test_ls.LsTest.test_plain) ... ok ┃ Ran 2 tests in 0.050s ┃ OK ┃▏ ┃▏ That's the narrowest change matching the test's expectations (["alpha", "beta"] as a JSON ┃▏ array). ┃╭──────────────────────────────────────────────────────────────────────────────────────────────────╮│❯ Type a message… ││ [·] │╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ● accept edits Shift+Tab to change deepseek-flash · thinking: high context 1% $0.0015 ttft 820ms 97 avg tok/s cache 79%
▎ Add a --json flag to ls.py so the tests pass… │ │✓ Run unittest suite │ ▏ $ python3 -m unittest -v test_ls.py 2>&1 │ ▏ test_json │ ▏ … (+5 lines) · ⌥V output │ ▏ Ran 2 tests in 0.073s │ ▏ OK │ │ │─ ✓ Allowed in this conversation · python3 -m …│ │ ┃● Done. Both tests pass. ┃▏ ┃▏ Changed: ls.py — added --json via argparse; ┃▏ JSON mode prints json.dumps(NAMES), plain ┃▏ mode unchanged. Dropped the now-unused ┃▏ import sys. ┃▏ ┃▏ Verified: python3 -m unittest -v test_ls.py ┃▏ → 2 tests run, both ok (test_plain, ┃▏ test_json), OK. ┃╭──────────────────────────────────────────────╮│❯ Type a message… ││ [·] │╰──────────────────────────────────────────────╯ ● accept edits Shift+Tab to change deepseek-flash context 1% $0.0005
与实时模型的真实会话:通过 DeepSeek API 调用 deepseek-flash。修改由模型写出,修改和测试运行都如画面所示真实发生。录制于 0.10.3 开发版构建。
“提示”和“结果”两帧显示了模型名称和审批模式。
任何模型都可以通过你的智能体工作。
使用内置提供商、任意 OpenAI 兼容端点,或你自己机器上的模型,并且可以在两轮对话之间更换模型。Codewhale 在你的仓库中运行,无需账号,而 codewhale web 让你在自己机器上的浏览器里使用它。
│ Filter: deepseek-flash▏ (5/2272) │ │ ────────────────────────────────────────────────── │ │ ▸ Model: deepseek-flash │ │ Model Provider Context │ │ ▸ ◆ deepseek-flash DeepSeek 1.05M │ │ ◆ deepseek-flash Deep…lias) 1.05M │ │ ◆ deepseek-flash Deep… API) 1.05M │ │ ◆ accounts…flash-latest Fire…ks AI 1M │ │ ◆ ~deepsee…flash-latest OpenRouter 1.05M │ │ │
│ Filter: deepseek-flash▏ (5/2272) │ │ ────────────────────────────────────────── │ │ ▸ Model: deepseek-flash │ │ Model Provider Context │ │ ▸ ◆ deepseek-flash DeepSeek 1.05M │ │ ◆ deepseek-flash Dee…ias) 1.05M │ │ ◆ deepseek-flash Dee…API) 1.05M │ │ ◆ account…sh-latest Fir…s AI 1M │ │ ◆ ~deepse…sh-latest Ope…uter 1.05M │ │ │
你的智能体对你负责。
由你决定 Codewhale 可以在不询问的情况下做什么,它的命令可以在 macOS 和 Linux 上的沙箱中运行。每次会话都会留下一份回执,记录它修改的文件、运行的命令,以及每一步由谁批准。
▏ │▏ Changed 1 file (+4 −0) · ran 1 command · 1 │▏ approved by you · 1 ran without asking │▏ │▏ Tokens: 36834 in · 466 out · 37300 total · 4 │▏ provider calls (35840 cache read, 24 reasoning) │▏ Cost, as /cost reports it: │▏ Session Cost: │▏ ───────────────────────────── │▏ Estimated total: $0.0005 │▏ Based on audited provider-reported usage and │▏ published rates. │▏ Breakdown (components sum to the total above): │▏ Parent turns: $0.0005 │▏ This is an estimate, not a bill: it is computed │▏ locally from provider-reported token usage and │▏ published rates, and can differ from your │▏ invoice. │▏ Covered: 4 of 4 money-metered turn(s) priced. │▏ Pricing sources used: provider_docs. │▏ Audited routes (redacted): │▏ provider=deepseek identity=deepseek │▏ model=deepseek-flash surface=first-party-payg ┃▏ endpoint_ ┃▏ fp=812b1f7c4a8b1af438d207c4d010794296f83296c29dcd ┃▏ 10b8b6dd22f64c79db billing_mode=metered ┃▏ currency=usd+cny ┃▏ ┃▏ 1. edited ls.py (+4 −0) ┃▏ 2. ran python3 -m unittest -v test_ls.py 2>&1; ┃▏ echo "EXIT=$?" · approved by you ┃
▏ 1 approved by you · 1 ran without asking │▏ │▏ Tokens: 37016 in · 475 out · 37491 total │▏ · 4 provider calls (36224 cache read, 34 │▏ reasoning) │▏ Cost, as /cost reports it: │▏ Session Cost: │▏ ───────────────────────────── │▏ Estimated total: $0.0005 │▏ Based on audited provider-reported usage │▏ and published rates. │▏ Breakdown (components sum to the total │▏ above): │▏ Parent turns: $0.0005 │▏ This is an estimate, not a bill: it is │▏ computed locally from provider-reported │▏ token usage and published rates, and can │▏ differ from your invoice. │▏ Covered: 4 of 4 money-metered turn(s) │▏ priced. │▏ Pricing sources used: provider_docs. │▏ Audited routes (redacted): │▏ provider=deepseek identity=deepseek │▏ model=deepseek-flash │▏ surface=first-party-payg endpoint_ │▏ fp=812b1f7c4a8b1af438d207c4d010794296f832 │▏ 96c29dcd10b8b6dd22f64c79db billing_ │▏ mode=metered currency=usd+cny ┃▏ ┃▏ 1. edited ls.py (+11 −3) ┃▏ 2. ran python3 -m unittest -v test_ls.py ┃▏ 2>&1 · approved by you ┃
多个智能体可以与你共同完成一项任务。
Codewhale 把一项工作分给多个智能体,各有探索者、实施者和审查者等角色,你可以查看、检查并停止其中每一个。Fleet 会保存一份账本,所以重启之后,运行可以接着继续。
explore- 阅读代码并梳理关键部分,不修改文件。
implement- 用最小的改动完成一项具体修改。
reviewer- 阅读一处修改,并按严重程度评定发现的问题,不修改文件。
这是你的智能体将要去的地方。
Codewhale 正在成为横跨你的终端、桌面应用、浏览器和云端计算机的统一环境,全部由同一个引擎驱动,所以你的工作可以在它们之间转移,并始终属于你。下面每个部分都说明了它今天所处的状态。
- 一个引擎
- 终端应用 已发布 在 macOS、Linux 或 Windows 上安装,然后在任意仓库中运行
codewhale。 - 本地浏览器客户端 已发布 运行
codewhale web,即可在浏览器中阅读对话、发送任务并回应审批;它随终端一起提供,无需账号。 - 多个智能体共同完成一项任务 已发布 子智能体、Fleet 和工作流让多个智能体各司其职,共同完成一项任务。
- 桌面应用 开发中,暂无下载 我们正在基于同一个引擎构建桌面应用,目前还没有公开下载。
- 云端计算机 仅限邀请 云端计算机仅限邀请,我们正在构建它们,让会话可以在云端的一台机器上持续工作。
- 跨越它们的同一个会话 建设中 我们正在构建同一个会话,它会随你从终端到桌面、浏览器和云端,并且自始至终都属于你。
一个引擎
- 终端应用已发布在 macOS、Linux 或 Windows 上安装,然后在任意仓库中运行
codewhale。 - 本地浏览器客户端已发布运行
codewhale web,即可在浏览器中阅读对话、发送任务并回应审批;它随终端一起提供,无需账号。 - 多个智能体共同完成一项任务已发布子智能体、Fleet 和工作流让多个智能体各司其职,共同完成一项任务。
- 桌面应用开发中,暂无下载我们正在基于同一个引擎构建桌面应用,目前还没有公开下载。
- 云端计算机仅限邀请云端计算机仅限邀请,我们正在构建它们,让会话可以在云端的一台机器上持续工作。
- 跨越它们的同一个会话建设中我们正在构建同一个会话,它会随你从终端到桌面、浏览器和云端,并且自始至终都属于你。


Codewhale 由使用它的人公开构建。
它起初是一个只支持一种模型的开源终端工具,后来成为数以百计、使用多种语言的人共同构建的项目。你可以阅读它的代码、修改它,或让它自己解释自己。
444位贡献者
过去 30 天内有 20 个 GitHub 账号的 pull request 被合并。 截至 2026年11月11日
luochen211chore: remove unreferenced code and stale dead_code allows
SamhandsomeLeefeat: drive Responses behavior from a dialect profile
Lstarsky0fix(tui): attach every line range when one file is mentioned twice
zhuowpfeat(transport): allow an optional host policy on model HTTP clients
gaordfix(engine): stop reporting provider timeouts as "after 0ns"
asto18089feat(tasks): pause the task wall clock for answerable human waits
SparkofSpikefix(net): go direct when a local proxy disappears
Felixkw12feat(providers): add Opper as a bundled descriptor row
今天就让你的智能体属于你。
安装 Codewhale,并在一个仓库中使用你已有的模型密钥,或你自己电脑上的模型来运行它。你无需账号,codewhale update 会让它保持最新。
curl -fsSL https://codewhale.net/install.sh | sh
版本 0.10.4 已发布,无需账号。阅读代码