chore(hooks): project hooks that block blanket staging, secrets and build output [skip ci]
refactor: extract palette into its own crate and move command_safety to execpolicy
fix(command-contract): background facet carries a fn pointer and plain request, not a boxed future
fix(tui): deliver background /update and /init results, show them running, cancel on Esc or Ctrl-C
chore(hooks): project hooks that block blanket staging, secrets and build output [skip ci]
fix(release): fail closed in check-ohos-deps and auto-ensure extension-host in root npm test
Open-source Rust coding agent for your terminal. Any model, multi-agent fleets, OS sandboxing, and verifiable receipts.
curl -fsSL https://codewhale.net/install.sh | sh
Website · Documentation · Changelog · Contributing
简体中文 · 日本語 · Tiếng Việt · Bahasa Indonesia · 한국어 · Español · Português · Русский · Українська · Français · Deutsch · 繁體中文 · हिन्दी · Türkçe · Italiano · Polski · العربية · Català
Real session on published Codewhale v0.10.4 (48669ad108) running local Ollama (qwen3:4b) in Accept Edits mode.
The install script above puts checksum-verified codewhale and its short alias
codew in ~/.local/bin on macOS and Linux. If your shell reports
command not found, add ~/.local/bin to your PATH
(details). Upgrade in place with
codewhale update.
winget install --id HunterBown.CodeWhale --exact --source winget # Windows x64
npm install -g codewhale # wraps the same release binaries
cargo install codewhale-cli --locked # builds from source; can trail GitHub Releases
Prebuilt binaries ship for Linux, macOS, and Windows (x64 and arm64). Scoop,
Nix, Homebrew on Linux, Android/Termux (preview), and manual downloads are in
docs/INSTALL.md; container images are in
docs/DOCKER.md. Use one install method per machine so two
binaries do not shadow each other on PATH.
codewhale from a git repository root./provider (or press F3) to select a provider, paste an API key, and
pick a model. DeepSeek is the default; if no key is configured and a local
Ollama server responds, Codewhale offers its models on your first message.Fix the failing tests and explain what changed.
Read-only commands run immediately. Mutating shell commands prompt for
approval: y runs once, a allows matching commands for the rest of the
session, and n denies. Run /undo to revert the last turn and its file
edits, or /help for commands and keybindings.
deepseek-flash / V4.1 Flash by default;
details), Google, Mistral, Moonshot,
OpenRouter, xAI, any OpenAI-compatible endpoint, and local runtimes via
Ollama, vLLM, or SGLang. Switch models mid-session with /model, route
per-turn with /model auto (/router), and inspect latency and cost with
/turn inspect. See Providers./receipts (or codewhale receipts --last after
exiting) records changed files, commands, web/MCP calls, sub-agents,
approvals, and failures. /undo reverts the last turn in one step;
/restore rolls the workspace back to an earlier snapshot (requires
/trust on or Full Access). See Receipts./goal, delegate work to sub-agents, coordinate role-
and model-specific Fleets, or run repository-checked
workflows.execute_tools) batches
multiple MCP/plugin calls under your normal approval rules. Optional macOS
Computer Use stays off
until explicitly reviewed and enabled.AGENTS.md automatically. Opt into
CLAUDE.md, .cursorrules, or .github/copilot-instructions.md via
project_instruction_imports in config.example.toml.
Import Claude Code settings and MCP servers with /import-claude, or install
Claude Code plugins (skills, commands, agent profiles, MCP) and DeepSeek
Harness (DSH) plugins with /plugin install
(details).| Command | Purpose |
|---|---|
codewhale |
Interactive terminal app |
codewhale exec "…" |
Headless single-task runner for scripts and CI (guide; --auto uses Full Access unless sandboxed) |
codewhale web |
Local web client on 127.0.0.1 (guide) |
codewhale review --pr N |
Advisory GitHub PR review; GitHub bot setup runs it on your own key |
codewhale app-server --http |
Local HTTP Runtime API for threads, events, approvals, and per-turn diffs |
codewhale serve --acp |
Agent Client Protocol over stdio for editors such as Zed |
All entry points share one Rust engine (architecture). A community-maintained VS Code extension (source) connects to the same engine. See the latest release notes and roadmap for current release and desktop/cloud status.
Shift+Tab cycles permission modes:
Ask → Accept Edits → Plan → Auto-Review → Full Access (Tab only
completes). Accept Edits (default) applies edits inside the git repository
and asks before commands. Ask prompts on every edit and command. Plan
is read-only. Auto-Review uses rules and a reviewer model to approve
routine calls and block high-risk ones. Full Access skips prompts and
disables the OS sandbox (repository rules and managed policy still apply). See
Modes.
In Ask, Accept Edits, and Auto-Review, commands run inside an OS sandbox where
available: Seatbelt on macOS and bubblewrap on Linux (Windows has no OS sandbox
yet). Sandboxed commands and terminal sessions cannot read credential paths
such as ~/.ssh, ~/.aws, or .env files. Run /preview-request to inspect
a redacted outgoing request before sending it.
API keys added with /provider stay on your machine, and local models require
no key. /cost and the footer track session spend when pricing is known (an
unknown price is shown as unknown, never as free).
Aggregate telemetry is enabled by default (version, OS, session length/outcome,
built-in provider IDs, bundled public-catalog model IDs (custom, private, or
local models map to other), aggregate token totals, built-in tool call/error
counts, and feature/error counters; rotating 90-day random install ID; never
code, prompts, conversations, custom/private model names, file/repo/branch
names, credentials, or IP addresses). Disable it with:
codewhale config set telemetry false
At startup Codewhale also checks GitHub for a new release
(CODEWHALE_NO_UPDATE_CHECK=1 to skip) and refreshes the public models.dev
model catalog every 24 hours (CODEWHALE_DISABLE_MODELS_DEV_FETCH=1 or
[catalog] auto_refresh = false to skip; suppressed automatically in CI and
under DO_NOT_TRACK). Details: authorization order,
sandboxing, and telemetry.
Guides follow main and may describe changes not yet in the latest release.
The contributor wall (scripts/contributor-wall.py)
tracks code, co-authored commits, carried-forward PRs, and credited reports.
Bug reports and feature proposals go to
Issues,
questions to Discussions,
and PR guidelines plus layout are in CONTRIBUTING.md
(project structure). Join us on
Discord or add hunterbown on WeChat for the
Whale Brothers group.
Codewhale started as deepseek-tui and remains backward-compatible with its
config and sessions. It is independently maintained and not affiliated with
DeepSeek or any other model provider.
MIT. Third-party notices: vendored sources and adapted designs.