█

AI/TLDR

Buy me a coffee
Buy me a coffee

Codewhale

An open-source terminal coding agent in Rust, with the model provider left up to you

Autonomous Coding AgentsOpen source
Latest
v0.8.7
Updated
3 May 2026
Language
Rust
License
MIT
$npm install -g codewhale

What's new

v0.8.73 May 2026

Covered by AI/TLDR under the project’s former name, DeepSeek-TUI: a single-binary Rust terminal coding agent wiring DeepSeek V4 Pro and Flash into the terminal, with parallel sub-agents, thinking-mode streaming and MCP servers, and no Node or Python runtime.

IN SHORT

What is Codewhale?

Codewhale is an open-source coding agent that runs in your terminal. It reads your repository, edits files, runs commands, inspects the results and keeps working toward a goal — either through its TUI or as a one-shot command. It sits in the Autonomous Coding Agents category of the AI Coding tools and is open-source, written in Rust and licensed MIT.

Updated Markdown version ↗

Overview

The Codewhale terminal UI on a fresh workspace: an ASCII whale beside the version and working directory, a "New session" heading with "No recent sessions yet — type below to start", a prompt box reading "Look at this folder and suggest a good first task.", and a status bar showing the ask/work/Work bar shortcuts, "Exploring offline", and the DeepSeek deepseek-flash model at max effort.
The TUI on first run — the prompt box, the approval-mode shortcuts and the provider/model indicator in the status bar.Codewhale README ↗

Codewhale is an open-source coding agent that runs in your terminal. It reads your repository, edits files, runs commands, inspects the results and keeps working toward a goal — either through its TUI or as a one-shot command. It is written in Rust and distributed through npm, Cargo, Docker, Nix, Scoop, prebuilt archives, Android/Termux and a CNB mirror.

The project's distinguishing choice is provider neutrality. You can connect hosted model providers or point it at local models served through Ollama, vLLM or SGLang, and swap provider and model mid-session with the `/model` command. Codewhale began life as `deepseek-tui` and still keeps that configuration and session compatibility, but it is now provider-neutral and independently maintained, and states it is not affiliated with any model provider.

Control over what the agent may do is explicit rather than implicit. Plan mode is read-only; Ask, Auto-Review and Full Access make approval behaviour visible; `/undo` reverts the last turn and `/restore` returns the workspace to an earlier snapshot. Optional OS sandboxing adds a stronger execution boundary where the platform supports it. For longer work, sessions can be saved, a durable `/goal` set, and workflows reviewed before they run. The agent is extensible through MCP servers, skills, hooks and agent roles kept as readable files in project or personal settings.

What it does

  • Provider-neutral: hosted providers or local models through Ollama, vLLM or SGLang, switchable in-session with `/model`
  • Graded approval modes — Plan (read-only), Ask, Auto-Review and Full Access — plus optional OS sandboxing
  • `/undo` reverts the last turn and `/restore` rolls the workspace back to an earlier snapshot
  • Non-interactive `codewhale exec "…"` for scripting a task without opening the TUI
  • Extensible via MCP servers, skills, hooks and agent roles stored as readable files
  • Saved sessions, a durable `/goal`, and reviewable workflows for long-running work
  • Shell completions for bash, zsh, fish, PowerShell and elvish

Getting started

The quickest route is the npm package; the first run walks you through connecting a provider or staying offline. All commands below come from the project README.

Install and launch

Install globally with npm, then start the TUI.

bashbash
npm install -g codewhale
codewhale

Talk to it like a teammate

Inside the TUI you describe the task in plain language.

texttext
Fix the failing tests and explain what changed.

Or run a single task without the TUI

Use `exec` when you want one task done from a script or CI step.

bashbash
codewhale exec "fix the failing tests and explain what changed"

Add shell completion

One command per shell — bash, zsh, fish, powershell or elvish.

bashbash
codewhale completion zsh

Explore commands and switch models

Run `/help` in the TUI for the command list and keyboard shortcuts, and `/model` to change provider or model.

texttext
/help
/model

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Reach for it when you want a terminal coding agent that is not tied to one model vendor
  • Reach for it when work has to stay local — point it at Ollama, vLLM or SGLang instead of a hosted API
  • Reach for it when you need explicit approval boundaries, with an undo and a workspace snapshot to fall back on
  • Reach for it to script a one-off repository change from CI with `codewhale exec`

How Codewhale compares

Codewhale alongside other open-source autonomous coding agents tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
opencode★ 230kOpenCode is an open source AI coding agent that runs in your terminal, with built-in build and plan agents and an optional desktop app.
Claude Code★ 158kAnthropic's agentic coding tool for the terminal, IDE and GitHub: it understands your codebase, executes routine tasks, explains code and handles git workflows from natural-language commands.
Orca★ 147kOpen-source desktop workspace that runs Claude Code, Codex, OpenCode and other CLI coding agents in parallel, each in its own git worktree, with a mobile companion app.
OpenAI Codex★ 137kOpenAI's cloud and CLI coding agent that writes features, fixes bugs, and proposes code changes across a repo, running tasks in parallel.
Pi★ 125kMinimal terminal coding agent harness with four built-in tools, extended through TypeScript extensions, skills and prompt templates instead of forks.
Gemini CLI★ 109kAn open-source command-line AI agent from Google that connects your terminal to Gemini models for reading code, editing files, running shell commands, and searching the web.
autoresearch★ 101kKarpathy's minimal harness that hands a coding agent a single-GPU LLM training script and lets it run fixed five-minute experiments, keeping or discarding each change on its own.
Codewhale★ 41.2kAn open-source terminal coding agent in Rust, with the model provider left up to you