DeepSeek TUI logo

DeepSeek TUI

Free

Coding agent for DeepSeek models that runs in your terminal

FreeFree tier
Type
Open Source

About DeepSeek TUI

CodeWhale is an open-source terminal coding agent (TUI and CLI) that supports any model, with DeepSeek and open weights models as first-class citizens. It features a unique 'constitution' system that resolves conflicting instructions by ranking them through three layers of law: a bundled base constitution, user-defined standing law, and repository-specific law. This ensures consistent and truthful behavior across sessions and model swaps. Available via npm install, it requires Node 18+ and is licensed under MIT. The project is actively maintained, with over 40,000 GitHub stars and support for 30 providers.

Key Features

Open-source TUI and CLI
Supports any model with DeepSeek and open weights first-class
Constitution-based conflict resolution with three layers of law
Bundled base law, user standing law, and repo law
Portable across projects and model swaps
One-line npm install — no Rust toolchain needed
MIT license and active development
30+ provider support

Pros & Cons

Pros
  • Open source with permissive MIT license
  • Unique constitution system prevents hallucinated state and conflicting instructions
  • Model-agnostic — works with any model
  • Portable law across projects
  • Active development with regular releases (v0.9.1)
Cons
  • Requires Node.js 18+ runtime
  • Relatively new project (v0.9.1) — may have limited ecosystem
  • Constitution concept has a learning curve
  • Primarily designed for terminal use only

Best For

Software development and coding tasksManaging complex instructions and conflicting specificationsAutomated code reviews and PR managementProject-specific coding standards enforcementMulti-model coding agent experimentation

FAQ

What is CodeWhale?
CodeWhale is an open-source terminal coding agent (TUI + CLI) that works with any model, with a constitutional law system to resolve conflicting instructions.
How does the constitution system work?
There are three layers of law: a bundled base constitution compiled into every binary, a user's standing law drafted at first launch, and repository-specific law. They are enforced in order of priority to resolve conflicts.
What are the system requirements?
Node.js 18 or later. No Rust toolchain is needed. Install via 'npm install -g codewhale'.
Is CodeWhale free and open source?
Yes, it is open source under the MIT license and free to use.