Blazingly fast ยท ~98% prompt cache hit ยท Zero bloat
Whale โ AI coding agent for DeepSeek, in any environment.
Long context, tools, and programmable workflows โ
start in the terminal, scale to desktop and beyond.
๐ Quick Start
Any platform:
npm install -g @usewhale/whale
macOS:
brew install usewhale/tap/whale
Linux:
curl -fsSL https://raw.githubusercontent.com/usewhale/DeepSeek-Code-Whale/main/scripts/install.sh | sh
# Set your DeepSeek API key
whale setup
# Launch the interactive TUI
whale
That's it. Type your question and Whale starts working โ reading files, running commands,
editing code, searching the web.
Need a different model provider, proxy, or custom config? See Configuration.
โจ At a Glance
What
Why it matters
๐ฐ ~98% prompt cache hit
Whale reuses cached context aggressively โ most prompts hit cache, slashing costs to pennies per session. DeepSeek pricing ร Whale caching = AI-assisted coding at scale.
๐ DeepSeek-native
Built for DeepSeek's long context (1M tokens), tool calling, and cost efficiency โ no generic multi-model wrapper
๐ Dynamic Workflows
Write JavaScript scripts that orchestrate multiple agents โ fan-out research, multi-perspective review, pipelines. Claude Code compatible.
๐ MCP
Plug in 1,000+ MCP servers for extended tooling โ file ops, shell, git, web, and more
๐งฉ Skills + Plugins
Install community skills (code review, git workflows, etc.) or write your own
๐ Dynamic Workflows
Whale's Dynamic Workflows let you script multi-agent orchestration in JavaScript:
// .whale/workflows/research.js
const results = await parallel([
() => agent("Search for best practices in Go error handling"),
() => agent("Find common Go error handling mistakes"),
]);
return agent("Synthesize both findings into a concise guide");
Whale currently offers three interfaces โ with more environments on the way:
Interface
When to use
whale (TUI)
Interactive coding sessions โ chat, review, iterate with full context
whale ask "..." (CLI)
One-shot questions, quick code reviews, single commands
whale --headless
CI/CD, automated PR reviews, scheduled tasks
๐ฏ Non-goals
Multi-model shell. Whale is DeepSeek-first โ optimized for DeepSeek's caching, tools, and pricing.
IDE replacement. Whale is not an IDE โ it's an agent that meets you wherever you code: terminal, desktop, or CI.
๐ฆ Project Status
Whale is in active development. Best suited for personal projects, experimental repositories,
and workflows where changes can be reviewed and rolled back.
Disclaimer: This project is not affiliated with DeepSeek Inc. It is an independent open-source community project.
๐ค Contributing
See CONTRIBUTING.md for local development, testing, issues, and PRs.
Current direction and available tasks: ROADMAP.md.