The model can be anyone's. The agent should be yours.
Codewhale is an open-source coding agent for your terminal, written in Rust. It works with any model, can split one task across several agents, and every line of it is yours to read.
curl -fsSL https://codewhale.net/install.sh | sh
Version 0.10.4 is released, and it needs no account.Read the code
▎ Add a --json flag to ls.py so the tests pass, then run python3 -m unittest -v test_ls.py. ⠁ ⠈ ⢀ ⠐ ⠐⠗⠪ ⠐⠗⠪ ⠠⡦⢔ ⠄ ⡀ ⠺⠪⠂ ⢴⢔⠄ ⡤⢤ ⡀ ⠈⡹⢹⠁ ⠐ ⠐⠁⠃ ° ˚ ⠐⡤⣒⠤ ⡰⢔⡢⠄ ⠐ ⢀⠦⣒⠤ ⠐⠕⠭⠒ ⠐⠕⠭⠒ ⠨⠒⠭⠒ · ╭──────────────────────────────────────────────────────────────────────────────────────────────────╮│❯ Type a follow-up… ││ [·] │╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ● accept edits Shift+Tab to change Esc to interrupt Ollama · qwen3:4b · thinking: auto context 1%
▎ Add a --json flag to ls.py so the tests ▏ pass, then run python3 -m unittest -v ▏ test_ls.py. ⠁ ⠁ ⡤⢤ ⠈⢹⢉⠇ ⠊⠊ ° ⠈⠖⠭⠒ ⠕⠪⠕⠂ ⠪⠪⠕⠂ ╭──────────────────────────────────────────────╮│❯ Type a follow-up… ││ [·] │╰──────────────────────────────────────────────╯ ● accept edits working 1s Esc to interrupt qwen3:4b context 7%
▎ Add a --json flag to ls.py so the tests pass, then run python3 -m unittest -v test_ls.py. … Thought for 1m 07s › │ │ │✓ ◆ patch done · Updated ls.py · +12 -5 │ --- a/ls.py │ +++ b/ls.py │ @@ -1,12 +1,19 @@ │ 1 1 import sys ┃ 2 + import argparse ┃ 2 3 ┃ 3 4 NAMES = ["alpha", "beta"] ┃ 4 - ┃ 5 5 ┃ 6 6 def main(): ┃ 7 - for name in NAMES: ┃ 8 - print(name) ┃ 9 - ┃ 7 + parser = argparse.ArgumentParser() ┃ ▏ +14 diff lines · ⌥V change ┃ ┃ ┃… Thinking… ┃╎ Okay, let's see what I need to do here. The user wants me to ▎ ┃╭──────────────────────────────────────────────────────────────────────────────────────────────────╮│❯ Type a follow-up… ││ [·] │╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ● accept edits Shift+Tab to change thinking 1m 30s Esc to interrupt Ollama · qwen3:4b · thinking: auto context 25% ttft 4.1s 61 avg tok/s cache 0%
▎ Add a --json flag to ls.py so the tests pass… │✓ ▷ read done · Reading ls.py │ │ │… Thought for 1m 10s › │ │ ┃✓ ◆ patch done · Updated ls.py · +7 -5 ┃ --- a/ls.py ┃ +++ b/ls.py ┃ @@ -1,12 +1,14 @@ ┃ 1 1 import sys ┃ 2 + import json ┃ 2 3 ┃ 3 4 NAMES = ["alpha", "beta"] ┃ 4 - ┃ 5 5 ┃ 6 6 def main(): ┃ 7 - for name in NAMES: ┃ 8 - print(name) ┃ 9 - ┃ 7 + if len(sys.argv) > 1 and ┃ ▏ +10 diff lines · ⌥V change ┃╭──────────────────────────────────────────────╮│❯ Type a follow-up… ││ [·] │╰──────────────────────────────────────────────╯ ● accept edits working 1m 20s qwen3:4b context 24% ttft 418ms
▎ Add a --json flag to ls.py so the tests pass, then run python3 -m unittest -v test_ls.py. ✓ ◆ patch done · Updated ls.py · +12 -5 │ --- a/ls.py │ +++ b/ls.py │ @@ -1,12 +1,19 @@ │ 1 1 import sys │ 2 + import argparse │ 2 3 │ 3 4 NAMES = ["alpha", "beta"] │ 4 - ┃ 5 5 ┃ 6 6 def main(): ┃ 7 - for name in NAMES: ┃ 8 - print(name) ┃ 9 - ┃ 7 + parser = argparse.ArgumentParser() ┃ ▏ +14 diff lines · ⌥V change ┃ ┃ ┃… Thought for 18s › ┃ ┃ ┃● $ python3 -m unittest -v test_ls.py · waiting for approval ┃┃ ⛯ Run python3 -m unittest -v test_ls.py Shift+Tab Permissions ✓ Allow [▾ m] ✕ Deny [d]╭──────────────────────────────────────────────────────────────────────────────────────────────────╮│❯ Type a follow-up… ││ [·] │╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ● accept edits needs you 1m 48s Approve or deny 'bash' to continue Ollama · qwen3:4b · thinking: auto context 29% ttft 2.9s 62 avg tok/s cache 0%
▎ Add a --json flag to ls.py so the tests pass… ✓ ◆ patch done · Updated ls.py · +7 -5 │ --- a/ls.py │ +++ b/ls.py │ @@ -1,12 +1,14 @@ │ 1 1 import sys │ 2 + import json │ 2 3 │ 3 4 NAMES = ["alpha", "beta"] │ 4 - │ 5 5 ┃ 6 6 def main(): ┃ 7 - for name in NAMES: ┃ 8 - print(name) ┃ 9 - ┃ 7 + if len(sys.argv) > 1 and ┃ ▏ +10 diff lines · ⌥V change ┃ ┃ ┃… Thought for 6s › ┃ ┃ ┃● $ python3 -m unit... · waiting for approval ┃┃ ⛯ Run python3 -m ... Allow [▾ m] Deny [d]╭──────────────────────────────────────────────╮│❯ Type a follow-up… ││ [·] │╰──────────────────────────────────────────────╯ ● accept edits needs you 1m 27s Approve… qwen3:4b context 25% ttft 473ms
▎ Add a --json flag to ls.py so the tests pass, then run python3 -m unittest -v test_ls.py. │… Thought for 18s › │… Thought for 11s › │ │ │✓ $ python3 -m unittest -v test_ls.py │ ▏ test_json (test_ls.LsTest.test_json) ... ok │ ▏ … (+2 lines) · ⌥V output │ ▏ Ran 2 tests in 0.078s │ ▏ OK │ │ │─ ✓ Allowed once · python3 -m unittest -v test_ls.py │ │ ┃… Thought for 2s › ┃ ┃ ┃● The tests now pass successfully. Final output shows both tests (test_json and test_plain) ran ┃▏ without failures. The change to ls.py correctly handles the --json flag by outputting the list ┃▏ of names directly in JSON format, matching the expected behavior in test_ls.py. ┃▏ ┃▏ No further changes needed. Work completed. ┃╭──────────────────────────────────────────────────────────────────────────────────────────────────╮│❯ Type a message… ││ [·] │╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ● accept edits Shift+Tab to change worked 2m 25s Ollama · qwen3:4b · thinking: auto context 38% ttft 1.6s 64 avg tok/s cache 0%
▎ Add a --json flag to ls.py so the tests pass… │ │─ ✓ Allowed once · python3 -m unittest -v test…│ │ │… Thought for 3s › │ │ │● The tests now pass successfully after adding │▏ the --json flag to ls.py. The updated script │▏ correctly handles the flag and both test │▏ cases verify proper behavior: ┃▏ ┃▏ - test_json outputs JSON (["alpha", "beta"]) ┃▏ - test_plain outputs plain names (alpha, ┃▏ beta) ┃▏ ┃▏ Final change verified: ┃▏ ✅ ls.py now supports --json flag (249 ┃ ▏ bytes, added json module and flag handling) ┃▏ ┃▏ No further work required. The tests run ┃▏ cleanly as confirmed by the output. ┃╭──────────────────────────────────────────────╮│❯ Type a message… ││ [·] │╰──────────────────────────────────────────────╯ ● accept edits Shift+Tab to change qwen3:4b context 27% ttft 404ms
A real session with a live model, deepseek-flash through DeepSeek’s API: the model wrote the edit, and the edit and the test run happened as shown. Recorded on a 0.10.3 development build.
The Prompt and Result frames show the model name and the approval mode.
Any model can work through your agent.
Use a built-in provider, any OpenAI-compatible endpoint or a model on your own machine, and change models between turns. Codewhale runs in your repository with no account, and codewhale web lets you work with it in your browser on your own machine.
│ ▸ qwen3:4b Ollama 32K █ │ │ ◆ qwen3-14b Alib…tudio 131K │ │ │ ◆ qwen3-235b-a22b Alib…tudio 131K │ │ │ ◆ qwen3-23…2b-instruct Conc…trate 262K │ │ │ ◆ qwen3-23…struct-2507 Alib…tudio 262K │ │ │ ◆ qwen3-23…inking-2507 Alib…tudio 262K │ │ │ ◆ qwen3-30b Conc…trate 40K │ │ │ ◆ qwen3-30b-a3b Alib…tudio 131K │ │ │ ◆ qwen3-30…3b-instruct Conc…trate 262K │ │ │ ◆ qwen3-30…struct-2507 Alib…tudio 262K │ │
│ ▸ qwen3:4b Ollama 32K █ │ │ ◆ qwen3-14b Ali…udio 131K │ │ │ ◆ qwen3-235b-a22b Ali…udio 131K │ │ │ ◆ qwen3-…-instruct Con…rate 262K │ │ │ ◆ qwen3-…ruct-2507 Ali…udio 262K │ │ │ ◆ qwen3-…king-2507 Ali…udio 262K │ │ │ ◆ qwen3-30b Con…rate 40K │ │ │ ◆ qwen3-30b-a3b Ali…udio 131K │ │ │ ◆ qwen3-…-instruct Con…rate 262K │ │ │ ◆ qwen3-…ruct-2507 Ali…udio 262K │ │
Your agent answers to you.
You decide what Codewhale may do without asking, and its commands can run in a sandbox on macOS and Linux. Every session leaves a receipt of the files it changed, the commands it ran and who approved each step.
▏ │▏ session 7346ae76-ca97-40f8-8b60-ccd7cb4e288c · │▏ /Volumes/VIXinSSD/CW/tmp/v0.10.4-capture/repo-56 │▏ · qwen3:4b │▏ │▏ Changed 1 file (+6 −4) · ran 1 command · 1 │▏ approved by you · 1 ran without asking │▏ │▏ Tokens: 29677 in · 7644 out · 37321 total · 4 │▏ provider calls │▏ Cost, as /cost reports it: │▏ Session Cost: │▏ ───────────────────────────── │▏ Estimated total: unknown │▏ No turn has an authoritative price in the │▏ selected currency. │▏ 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: 0 of 0 money-metered turn(s) priced. │▏ Audited routes (redacted): │▏ provider=ollama identity=ollama model=qwen3:4b │▏ surface=local-no-bill endpoint_ ┃▏ fp=89caf70a6a58a082c8bd16cc0a4ad72d0a2ab0a8d0f495 ┃▏ 421057ebb5ce6460ee billing_mode=local ┃▏ currency=unpriced ┃▏ ┃▏ 1. edited ls.py (+6 −4) ┃▏ 2. ran python3 -m unittest -v test_ls.py · ┃▏ approved by you ┃
▏ approved by you · 1 ran without asking │▏ │▏ Tokens: 29773 in · 6331 out · 36104 total │▏ · 4 provider calls │▏ Cost, as /cost reports it: │▏ Session Cost: │▏ ───────────────────────────── │▏ Estimated total: unknown │▏ No turn has an authoritative price in the │▏ selected currency. │▏ 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: 0 of 0 money-metered turn(s) │▏ priced. │▏ Audited routes (redacted): │▏ provider=ollama identity=ollama │▏ model=qwen3:4b surface=local-no-bill │▏ endpoint_ │▏ fp=89caf70a6a58a082c8bd16cc0a4ad72d0a2ab0 │▏ a8d0f495421057ebb5ce6460ee billing_ │▏ mode=local currency=unpriced │▏ │▏ 1. wrote │▏ /Volumes/VIXinSSD/CW/tmp/v0.10.4-captu │▏ re/repo-48/ls.py ┃▏ 2. ran python3 -m unittest -v test_ls.py ┃▏ · approved by you ┃▏ ┃▏ Not recorded: ┃▏ - Exit codes: calls that saved no ┃
Several agents can share one task with you.
Codewhale splits a job across agents with roles such as explorer, implementer and reviewer, and you can watch, inspect and stop each one. A Fleet keeps a ledger, so a run can pick up again after a restart.
explore- Reads the code and maps what matters, without changing files.
implement- Makes one specific change with the smallest edit.
reviewer- Reads a change and grades what it finds by severity, without changing files.
Here is where your agent is going.
Codewhale is becoming one environment across your terminal, a desktop app, the browser and cloud computers, all run by one engine, so your work can move between them and stay yours. Each part below says where it stands today.
- One engine
- Terminal app Released Install it on macOS, Linux or Windows and run
codewhalein any repository. - Local browser client Released Run
codewhale webto read the conversation, send a task and answer approvals in your browser; it comes with the terminal and needs no account. - Many agents on one task Released Sub-agents, Fleets and workflows let several agents share one task, each with its own role.
- Desktop app Released
- Cloud computers Invite-only Cloud computers are invite-only, and we are building them so a session can keep working on a machine in the cloud.
- One session across them Being built We are building one session that goes with you from the terminal to the desktop, the browser and the cloud, and stays yours the whole way.
One engine
- Terminal appReleasedInstall it on macOS, Linux or Windows and run
codewhalein any repository. - Local browser clientReleasedRun
codewhale webto read the conversation, send a task and answer approvals in your browser; it comes with the terminal and needs no account. - Many agents on one taskReleasedSub-agents, Fleets and workflows let several agents share one task, each with its own role.
- Desktop appReleased
- Cloud computersInvite-onlyCloud computers are invite-only, and we are building them so a session can keep working on a machine in the cloud.
- One session across themBeing builtWe are building one session that goes with you from the terminal to the desktop, the browser and the cloud, and stays yours the whole way.


Codewhale is built in the open by the people who use it.
It began as an open-source terminal tool for one model and became a project that hundreds of people in many languages build together. You can read its code, change it, or ask it to explain itself.
448contributors
20 GitHub accounts had pull requests merged in the last 30 days. As of Nov 11, 2026
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
Make your agent yours today.
Install Codewhale and run it in a repository with a model key you already have or a model on your own computer. You need no account, and codewhale update keeps it current.
curl -fsSL https://codewhale.net/install.sh | sh
Version 0.10.4 is released, and it needs no account.Read the code