whale

module
v0.1.63 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2026 License: MIT

README ยถ

Whale

็ฎ€ไฝ“ไธญๆ–‡ ยท English

release npm CI license GitHub stars

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/Whale/main/scripts/install.sh | sh

Windows PowerShell:

Requires Windows 10 or Windows Server 2016 or later.

irm https://raw.githubusercontent.com/usewhale/Whale/main/scripts/install.ps1 | iex

Windows CMD:

powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/usewhale/Whale/main/scripts/install.ps1 | iex"
# 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");

Fan-out research ยท Multi-perspective review ยท Pipeline processing ยท Adversarial validation

โœ… Claude Code compatible โ€” workflow scripts written for Claude Code work as-is in Whale.

โš ๏ธ Disabled by default โ€” run /config in the TUI and enable Dynamic workflows, or add [workflows] enabled = true to .whale/config.local.toml.

Learn more: Workflow Overview ยท Custom Workflow Guide


๐Ÿงฐ MCP, Skills & Plugins

Extension What it does Get started
MCP Servers Connect to 1,000+ tools (databases, APIs, browser automation) docs/mcp.en.md
Skills Load domain expertise โ€” code review, git-worktree, and more docs/skills.en.md
Subagents Define focused child-agent roles such as reviewers or researchers docs/agents.en.md
Plugins Extend Whale's runtime with custom logic docs/plugins.en.md
Hooks Run scripts on lifecycle events docs/hooks.en.md

๐Ÿ“ธ How It Works

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.

Security issues: SECURITY.md.


Star History

Star History Chart

๐Ÿ™ Credits

Whale stands on the shoulders of giants:

And the many open-source libraries we depend on โ€” thank you.

Directories ยถ

Path Synopsis
bench
livecache command
taubenchlite command
toolshape command
cmd
dev command
whale command
whale-acp command
internal
acp
Package acp implements the Agent Client Protocol (ACP) v1 for Whale.
Package acp implements the Agent Client Protocol (ACP) v1 for Whale.
app
core
Package core defines protocol-level types shared across Whale subsystems.
Package core defines protocol-level types shared across Whale subsystems.
evals
Package evals provides offline evaluation scaffolding for whale.
Package evals provides offline evaluation scaffolding for whale.
llm
lsp
Package lsp provides a Language Server Protocol client and server manager.
Package lsp provides a Language Server Protocol client and server manager.
mcp
notification
Package notification sends macOS desktop notifications via terminal OSC escape sequences.
Package notification sends macOS desktop notifications via terminal OSC escape sequences.
skills
Package skills discovers and parses local Agent Skills.
Package skills discovers and parses local Agent Skills.
tui
scripts

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL