MemoryWhale

•
144
•

Records terminal commands, output, errors, and successful fixes into a local SQLite database, serving as persistent memory for developers and AI coding agents.

MemoryWhale provides persistent, local memory for developers and their coding agents by capturing everything that happens in the terminal—commands, output, errors, and the fixes that worked—into a local SQLite database. Unlike simple shell history, it retains the full debugging context across sessions, SSH drops, and machine switches. This crucial context is then served to both human developers and AI agents via the Model Context Protocol, enabling them to recall past failures and avoid re-debugging already solved problems, significantly boosting productivity and facilitating intelligent, context-aware assistance.

Key Features

01Functions as a Model Context Protocol (MCP) server for seamless integration with AI coding agents.
02Includes specialized tools for diagnosing common Git failures and for sharing memory across different machines via `scp`/`ssh`.
03Records full terminal command output, errors, and successful fixes into a local SQLite database.
04Provides an interactive Terminal User Interface (TUI) and a web dashboard for searching and browsing captured memory.
05Implements capture gates to control recording based on directory, ensuring privacy for sensitive projects.
0637 GitHub stars

Use Cases

01Preventing repetitive debugging by providing AI agents with context of past failures and their solutions.
02Recalling exact error messages, their solutions, and full session transcripts across different machines and terminal sessions.
03Facilitating team collaboration by sharing debugging history and successful fixes among team members.
04Automating the collection of comprehensive terminal interaction data for personal reference and analysis.