CodeWhale
FreeCoding agent for open source, open weight models
About CodeWhale
CodeWhale is an open-source terminal coding agent (TUI and CLI) designed to work with any large language model, with first-class support for open-weight models like DeepSeek. It introduces a unique three-layer constitutional framework — a bundled base law, user-defined standing law, and repository-specific law — to systematically resolve conflicting instructions. This constitution is enforced in the harness and remains intact when switching models, ensuring consistent behavior across projects. The agent can be installed via npm (primary, Node 18+), Cargo, Homebrew, or direct mirrors, and is released under the MIT license. Maintained by Hmbown, it has garnered over 40,000 GitHub stars and is actively developed with a live stream of pull requests and issues. Version 0.9.1 supports 30 providers and includes features such as constitution-first setup, reasoning trace transparency, and a multi-layered rule hierarchy.
Key Features
Pros & Cons
- Completely open source under MIT license
- Model-agnostic, with strong support for open-weight models
- Unique constitution-based conflict resolution to handle ambiguous instructions
- Multiple installation options (npm, Cargo, Homebrew) increase accessibility
- Active development community with frequent updates and transparency
- Provides reasoning traces for decision-making, aiding trust and debugging
- Requires Node.js 18+ for the primary install method
- Terminal-only interface (no GUI available)
- Relatively early in development (v0.9.1), so features may still be maturing
- Learning curve associated with setting up and understanding the constitution layers