Open-source, community-driven agent harness
Codewhale is an open source coding agent for your terminal, built in Rust and improved in public with the people who use it.
简体中文 · 日本語 · Tiếng Việt · Bahasa Indonesia · 한국어 · Español · Português · Русский · Українська · Français · Deutsch · 繁體中文 · हिन्दी · Türkçe · Italiano · Polski · العربية · Català
macOS / Linux — install the official GitHub release:
curl -fsSL https://codewhale.net/install.sh | sh
"$HOME/.local/bin/codewhale"Windows: download the matching installer or archive from
GitHub Releases.
For an existing direct install, run codewhale update (or codewhale update --check
to inspect it). The updater prints the executable path and keeps newer builds.
The first run helps you connect a provider or stay offline. Codewhale also supports npm and Cargo as secondary packaging routes, plus Docker, Nix, Scoop, Android/Termux, and an optional CNB mirror. Existing package-managed installs receive migration instructions. See installation and PATH help.
Tab completion is one command per shell — codewhale completion bash|zsh|fish|powershell|elvish.
See shell completions.
Talk to Codewhale the same way you would talk to a teammate:
Fix the failing tests and explain what changed.Or run a task without opening the TUI:
codewhale exec "fix the failing tests and explain what changed"Codewhale can read your repository, edit files, run commands, inspect results, and keep working toward a goal. You decide how much access it has.
Prefer a graphical interface? The community-maintained CodeWhale for VS Code extension wraps the same agent in a VS Code sidebar — chat, threaded conversations, live diffs, and task management over the same Runtime API, so sessions stay in sync with the terminal. Install it from the VS Code Marketplace; source code is on GitHub.
/model./undo reverts the last turn and /restore
returns the workspace to an earlier snapshot./goal, review
workflows before they run, and coordinate agents without turning their
internal instructions into your transcript.Run /help in the TUI for commands and keyboard shortcuts.
Codewhale runs on your machine with the access you grant it. Approval modes and repository rules limit what the agent may do; optional OS sandboxing adds a stronger execution boundary where supported. Unknown model prices stay unknown instead of being reported as free.
Read authorization order for the exact policy stack and configuration for local settings.
Codewhale gets better when people use it, report what feels wrong, and help fix it. If a provider is missing, a workflow is awkward, or the terminal UI gets in your way, open an issue. If you know how to improve it, open a pull request. First contributions are welcome, and contributors keep credit for the work that lands.
Join the Discord, or add Hunter on WeChat
(hunterbown) and ask to join the Whale Brothers group.
Codewhale began as deepseek-tui and still preserves that configuration and
session compatibility. It is now provider-neutral and independently maintained;
it is not affiliated with any model provider.
Thanks to every contributor and to the open source communities that helped the project grow. See the contributor record.
MIT. Portions adapted from other open-source projects are recorded in third-party notices.
EPIC-005: CodeWhale TUI Crate Decomposition (Umbrella)
FEAT-026: finish session command shapes and extraction boundary
The shortcut key for switching thinking intensity is abnormal.
After running for a long time, TUI scrolling becomes laggy, like jelly.
Single-turn-loop guard misses the sub-agent and RLM loops; the RLM loop is unlogged, drops history and returns an empty answer
0.10.0 版本中,/retry(以及 /undo)只回滚了 UI 显示层:模型上下文与持久化会话仍保留被撤销的消息
Emergency compaction — the impact on the `save session` task
Windows: shell tool fails under machine ExecutionPolicy — proposal: process-scoped -ExecutionPolicy Bypass (sign-off request)
Web search: configured API providers lose their fallback in DuckDuckGo-unreachable networks — tail the chain with Bing instead?
Model-facing text still names tools the current environment lacks (7 residual sites)