Hmbown/CodeWhale

Open-source coding agent for your terminal, built in Rust and on a journey of continuous community improvement. Issues and PRs welcome.

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 51 minutes ago
Added to GitGenius on May 11th, 2026
Created on January 19th, 2026
Open Issues & Pull Requests: 143 (+0)
Number of forks: 3,537
Total Stargazers: 40,835 (+1)
Total Subscribers: 160 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 7.8 hours
Mean response time: 3.6 days
90th percentile: 9.9 days
Tracked items: 2,505

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Only 17% of open issues come from outside the core team — the tracker reads mainly as internal planning. Almost all tracked open issues have seen activity in the last three months. Only 6% of issues opened in the past year have been closed. Three people close 97% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 220
New in 7 days: 51
Closed in 7 days: 85
Avg open age: 22 days
Stale 30+ days: 97
Stale 90+ days: 0

Recent activity

Opened in 7 days: 41
Closed in 7 days: 67
Comments in 7 days: 90
Events in 7 days: 449

Top labels

  • enhancement (1,501)
  • bug (1,133)
  • documentation (562)
  • tui (497)
  • reliability (466)
  • ux (288)
  • v0.9.0 (253)
  • agent-ready (177)

Detailed Description

CodeWhale is an open-source terminal coding agent written in Rust that enables users to point a language model at a software project and have it autonomously read code, make edits, run commands, check results, plan multi-step tasks, and correct itself when failures occur. The project began as deepseek-tui, a coding harness built specifically around DeepSeek workflows, but evolved into a multi-provider platform after the developer community, particularly in China, adopted it and contributed fixes that revealed the harness's broader potential. The repository is classified across multiple domains including terminal interface, chatbot, AI assistant, DeepSeek integration, natural language processing, command line tool, interactive chat, text-based UI, language model, and user prompt handling.

CodeWhale operates as both a TUI (terminal user interface) and CLI tool, with installation available through npm for Node 18 and above, cargo for Rust 1.88 and above, or prebuilt archives for every platform including Linux riscv64.

The platform supports an extensive roster of language model providers, treating DeepSeek and open-weight models as first-class citizens while also offering full support for Claude, GPT, Kimi, and GLM through the same unified runtime. Users can point local vLLM, SGLang, or Ollama instances at their LAN without requiring API keys. CodeWhale resolves a real route—a concrete endpoint, wire protocol, model ID, context limit, and price—rather than simply swapping base URLs, enabling route-aware context budgets, honest cost display, and explicit wire protocol handling. The provider registry is documented in docs/PROVIDERS.md and includes hosted open models from deepseek, openrouter, huggingface, moonshot, and numerous others, plus self-hosted options and native adapters for anthropic and openai-codex.

Fleet is CodeWhale's durable control plane for multi-worker runs, recording work in an append-only ledger at .codewhale/fleet.jsonl so tasks survive manager exits, laptop sleep, or runtime restarts. Workers are shaped by roles, profiles, loadouts, and slots, with loadouts expressing model intent as strong, balanced, or fast classes that the route resolver translates into concrete provider and model selections.

Safety is architected into the product through three operational modes—Plan for read-only investigation, Agent for execution with per-action approval, and YOLO for auto-approval—switchable via Tab or /mode command. A .codewhale/hooks.toml hook system gates tool calls, and OS-level sandboxing via Seatbelt on macOS, Landlock plus seccomp on Linux, and bubblewrap where available prevents unintended system modifications. Side-git snapshots enable rollback of agent actions without touching the repository's real git history.

The agent maintains a persistent goal loop where users set objectives with /goal and the agent continues working across turns until completion, blockage, or user intervention. Sessions persist across restarts and system sleep, supporting tasks requiring dozens of tool calls. Headless mode via codewhale exec supports scripts and CI with configurable tool allowlists, denylists, turn limits, and system prompt appending. The project supports MCP bidirectionally, consuming tools from external MCP servers or exposing CodeWhale itself as an MCP server. Reusable workflows called Skills can be loaded from ~/.codewhale/skills/, and the platform is embedded across HTTP/SSE and ACP runtime APIs, VS Code extensions, and Telegram and Feishu bridges.