# Repository Briefing: codewhale-hq/Codewhale
> Source: https://repoforai.com/repo/codewhale-hq/Codewhale (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/codewhale-hq/Codewhale
- **Official Docs / Website**: https://codewhale.net/
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Rust
- **License**: MIT
- **Engineering Health**: A+ (98/100 · Maintenance 35/35 · Adoption 23/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.10.4 (2026-11-23) — https://github.com/codewhale-hq/Codewhale/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Docker, CLI, Self-Hosted, Local AI, MCP, API
- **Momentum**: 41,212 ★ total (+3 24h / +38 7d) · 3,585 forks
- **Topics**: `agent-client-protocol`, `agent-orchestration`, `ai-agent`, `ai-coding`, `cli`, `coding-agent`, `deepseek`, `developer-tools`, `llm`, `local-llm`, `mcp`, `multi-agent`
- **When to Use**: Best for: 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. Skip if: 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.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Integration: one Rust engine backs the terminal UI, headless CI runner, local HTTP Runtime API, and ACP over stdio.
- Model routing: 50+ built-in providers, OpenAI-compatible endpoints, and local runtimes; `/model auto` routes per turn.
- Audit and recovery: `/receipts` logs tool activity and approvals; `/undo` reverts the last turn and `/restore` can recover an earlier workspace snapshot with elevated trust.
- Orchestration: `/goal` carries objectives across turns; Fleets coordinate agents assigned distinct roles and models.
- Permission boundary: Seatbelt on macOS and bubblewrap on Linux where available; no Windows OS sandbox, and Full Access disables sandboxing.
- Extensibility: MCP, skills, lifecycle hooks, and plugins; experimental `execute_tools` batches calls under existing approval rules.
```

## Quick Start / Clone
```bash
curl -fsSL https://codewhale.net/install.sh | sh
```
