usewhale/Whale
Whale — blazingly fast, terminal-first AI coding agent for DeepSeek. ~98% prompt cache hit rate, 1M context, MCP tools, dynamic workflows.
Whale – AI‑powered coding assistant for DeepSeek
What it is – Whale is a terminal‑first, DeepSeek‑optimized AI agent that can read, edit, and run code, browse the web, and invoke tools. It ships as a single binary (or npm package) and offers a TUI, a one‑shot CLI, and a headless mode for CI/CD.
Key capabilities
- Prompt caching (~98 % hit rate) – Re‑uses previously sent context so most interactions cost only a few cents.
- DeepSeek‑native – Tailored to DeepSeek’s 1 M‑token context, tool‑calling, and pricing model.
- Dynamic workflows – Write JavaScript scripts that orchestrate multiple agents (parallel research, synthesis, etc.). Compatible with Claude Code scripts.
- MCP, Skills & Plugins – Connect to thousands of MCP servers (file ops, git, web, databases), load community “skills” (code review, git worktree), or add custom plugins and hooks.
- Multiple interfaces – Interactive TUI (
whale), quick CLI (whale ask "…"), and headless mode for automation.
Installation
# npm (cross‑platform)
npm install -g @usewhale/whale
# macOS via Homebrew
brew install usewhale/tap/whale
# Linux one‑liner
curl -fsSL https://raw.githubusercontent.com/usewhale/Whale/main/scripts/install.sh | sh
# Windows PowerShell
irm https://raw.githubusercontent.com/usewhale/Whale/main/scripts/install.ps1 | iex
After installing, run whale setup to store your DeepSeek API key, then start the agent with whale.
Typical workflow
- Launch the TUI (
whale). - Type a natural‑language request (e.g., “refactor this function”).
- Whale reads the relevant files, calls the DeepSeek model, may invoke tools (shell, git, web search), and returns edited code.
- For scripted pipelines, place a
.whale/workflows/*.jsfile and enable Dynamic Workflows in the config.
Project status – The repository is no longer maintained. The README directs users to the official DeepSeek Harness for a maintained alternative. The code remains usable, but there will be no further updates or official support.
Who it’s for – Developers who want a fast, low‑cost AI coding assistant that works directly from the terminal and can be embedded in CI pipelines, without the overhead of a full IDE integration.
Related
- Project
- Project
- Project
- Project
- Project