codewhale-hq/Codewhale
Rust coding agent with swappable models, sandboxed execution, and turn receipts
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Codewhale is a Rust coding-agent runtime with several front ends sharing one engine. codewhale runs the interactive terminal UI, codewhale exec runs a single headless task, and codewhale web binds to 127.0.0.1. The HTTP app server exposes threads, events, approvals, and per-turn diffs; codewhale serve --acp speaks Agent Client Protocol over stdio for editors such as Zed. The VS Code extension is community-maintained.
The Cargo workspace separates crates/engine and crates/runtime from the CLI, TUI, and app-server protocol. Separate model, tool, MCP, plugin, execution-policy, and sandbox crates distinguish model selection and tool integration from command enforcement. MCP servers, skills, plugins, and lifecycle hooks extend what an agent can do. The experimental execute_tools path batches MCP and plugin calls without replacing the configured approval rules.
Key Capabilities & Differentiators
Codewhale supports 50+ built-in providers, including Anthropic, OpenAI, DeepSeek, and Google, as well as OpenAI-compatible endpoints and local backends through Ollama, vLLM, or SGLang. DeepSeek Flash is the default. /model changes models within a session, /model auto routes each turn, and /turn inspect exposes latency and cost details; unknown pricing is not presented as zero cost.
/goal carries objectives across turns; sub-agents, role- and model-specific Fleets, and repository-checked workflows give teams different ways to delegate or repeat work. Turn receipts record file changes, commands, web and MCP calls, sub-agents, approvals, and failures. /undo reverts the last turn's workspace changes; /restore can recover an older workspace snapshot with /trust on or Full Access. Treat that as workspace recovery, not a guarantee that external actions are reversible.
Trade-offs & Limitations
If a team already works in Claude Code, evaluate Codewhale for the things that would justify migration: switching between hosted and local providers, role-specific model assignment, and turn-level audit and recovery. /import handles Claude Code settings and MCP servers, while reading CLAUDE.md is opt-in. Neither establishes parity for hooks, plugins, or permissions. More model choices also mean more configurations to test for tool behavior, latency, and cost.
Default Accept Edits permits in-repository edits and gates shell commands according to policy; Ask prompts on every edit and command, and Plan is read-only. Auto-Review adds rules and a reviewer model, but does not replace the OS sandbox. Where available, Ask, Accept Edits, and Auto-Review use Seatbelt on macOS or bubblewrap on Linux. Windows has no OS sandbox, and Full Access disables it. In CI, exec --auto uses Full Access unless sandboxed, so evaluate the job's credentials and workspace isolation explicitly rather than assuming interactive defaults carry over.
Hardware & Deployment Guide
Prebuilt binaries cover Linux, macOS, and Windows on x64 and arm64. The npm package wraps release binaries; cargo install codewhale-cli --locked builds from source and can lag GitHub Releases. The multi-stage Dockerfile targets linux/amd64 and linux/arm64, with a persistent configuration volume mount at /home/codewhale/.codewhale. Inject provider keys at runtime, not at build time. For team rollouts, match the installation guide to the pinned version because guides on main can run ahead of releases.
Hosted API use does not require a local inference GPU. With a local backend, size the inference host for the selected model, context length, and concurrency, including Fleet fan-out. Local inference alone does not make the setup offline: account for aggregate telemetry, GitHub update checks, the public model catalog refresh, and enabled external tools. v0.10.3 unified the plugin interface and expanded Auto-Review workspace handling; v0.10.4 fixed duplicate paste in Windows Terminal and an updater rejection triggered by an unrelated Cargo install.
/model auto routes per turn./receipts logs tool activity and approvals; /undo reverts the last turn and /restore can recover an earlier workspace snapshot with elevated trust./goal carries objectives across turns; Fleets coordinate agents assigned distinct roles and models.execute_tools batches calls under existing approval rules.Teams that want the same coding agent in the terminal and CI, need to mix local and hosted models, and want to review agent actions before accepting changes.
You require an OS sandbox on Windows, need drop-in behavioral parity with Claude Code, or cannot validate model quality and tool permissions before enabling unattended runs.
Quick Start & Installation
curl -fsSL https://codewhale.net/install.sh | sh
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| Codewhale ★ | 41.2k | +38 | Rust | MIT | Rust coding agent with swappable models, sandboxed execution, and turn receipts |
| openinterpreter | 69k | +65 | Rust | Apache-2.0 | A Rust coding CLI with swappable harnesses for low-cost models |
| oh-my-pi | 40.5k | +483 | TypeScript | MIT | A Bun/Rust terminal agent for model-flexible coding with LSP and editor integrat |
| goose | 57.3k | +219 | Rust | Apache-2.0 | Rust coding agent with MCP tools and local or hosted models, embeddable via ACP |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/codewhale-hq/Codewhale.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about Codewhale
Which interface should I use to integrate Codewhale?
codewhale serve --acp for an editor that speaks Agent Client Protocol over stdio. Use codewhale app-server --http for a local integration that needs threads, events, approvals, and per-turn diffs. MCP serves a different purpose: it lets the agent call tools exposed by external servers.Do I need a GPU, and how much VRAM should I budget?
qwen3:4b session is a compatibility example, not a minimum hardware specification or evidence of fleet throughput.Can my company use or redistribute Codewhale in a self-hosted setup?
THIRD_PARTY_NOTICES.md and the separate terms for models, hosted providers, plugins, and MCP servers. If policy restricts egress, disable telemetry, update checks, and catalog refreshes as appropriate, then verify the behavior of every enabled integration.When should I choose Codewhale over Claude Code?
/import can bring across Claude Code settings and MCP servers, and CLAUDE.md import is opt-in. Treat that as a migration aid, not feature parity: validate hooks, plugin behavior, and approval modes before standardizing on it.Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy