Persistent local debugging memory for developers and coding agents.
MemoryWhale records what actually happened while you debug: commands, output, failures, and the fixes that worked. It stores that evidence in local SQLite so you and your coding agents can find it after the terminal, SSH connection, or agent session is gone.
- Remember what actually happened. Preserve the command, environment, output, failure, and lesson—not only a shell-history line.
- Use one memory across coding agents. Any compatible stdio MCP client can
read and write the same local memory through
mw-mcp. - Keep development history local. MemoryWhale works without an account, hosted service, or per-token memory bill.
MemoryWhale records development experience, not everything. It is a debugging memory layer, not an autonomous coding agent, a general-purpose personal memory system, or a replacement for project documentation.
Prebuilt binaries are available for Linux x86_64/aarch64 and macOS:
curl -fsSL https://raw.githubusercontent.com/wuisabel-gif/MemWhale/main/install.sh | shOr install with Cargo or Homebrew:
cargo install memorywhale-cli
brew tap wuisabel-gif/memorywhale https://github.com/wuisabel-gif/MemWhale
brew install memorywhaleWindows users can run MemoryWhale inside WSL. See the getting-started guide for package installs, PATH setup, and platform notes.
mw global on # capture future interactive shell commands
mw-run -- cargo check # capture one command and its output
mw remember "the linker needed libssl-dev"
mw search "linker error" # recover the failure and its fix
mw context --last-error # compact context for any agent or chatFor longer work, mw --live records a crash-resistant shell session. mw tui
opens an interactive terminal browser, while mw-serve starts the local web
dashboard.
CAPTURE MEMORY RETRIEVAL
shell / mw-run ──────► local SQLite ────────► search / context
agent hooks ─────────► evidence + lessons ──► similar failures
│
INTERFACES
CLI / MCP / TUI / Web / Desktop
Capture and retrieval are independent. MCP gives an agent access to existing memory; it does not automatically record normal terminal activity. See the architecture and capture concept for the complete model.
mw-mcp is the common integration seam: a local stdio MCP server exposing six
memory tools. Existing guides cover Claude Code, Claude Desktop, Cursor, VS
Code / GitHub Copilot, Windsurf, Zed, Codex CLI, Cline, Continue, Gemini CLI,
Goose, OpenClaw, CrowClaw, Hermes Agent, and other compatible clients.
claude mcp add memorywhale -- mw-mcpClients do not all provide the same capabilities. MCP supports memory access; automatic execution capture requires a client-specific hook. The integration matrix distinguishes access, capture, and memory-use guidance and links every verified setup guide.
MemoryWhale is for developers whose debugging context is scattered across terminal scrollback, shell history, machines, and temporary agent sessions. It is especially useful when you:
- debug builds, dependencies, Git, environments, or deployments;
- use coding agents across sessions or switch between tools;
- work over SSH or across multiple development machines;
- want recurring failures and their fixes to remain searchable;
- prefer local storage over a hosted memory service.
- Documentation map
- Getting started
- Terminal capture
- Agent memory
- CLI reference
- MCP reference
- Security and local threat model
- Integration guides and capability matrix
MemoryWhale accepts changes that improve capturing, preserving, retrieving, or sharing development experience. Read CONTRIBUTING.md for the scope rule, development commands, and pull-request checklist.
Licensed under the MIT License.
