MemWhale
AGENTS.md140 starsChanged 3 months agoMITView on GitHub
Guidance for AI coding agents (Codex, Claude, etc.) working in this repo. This project is a terminal-memory system — use it on yourself. It stores commands, exit codes, stdout/stderr, notes, and whole sessions in a local SQLite database so a future agent session, a different machine, or a different agent can continue from what already happened. Everything is local; nothing is uploaded. Database: <data_local>/MemoryWhale/memorywhale.sqlite3 (~/.local/share/... on Linux, ~/Library/Application Support/... on macOS). Before debugging a build/environment error, check whether it was…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Before debugging a build/environment error, check whether it was solved before:
- Very specific: line 54
Before changing behavior, read docs/architecture.md and place the change in Capture, Memory, Retrieval, or Interfaces.
- Distinctive: line 57
Before debugging, run a focused test and query MemoryWhale for a recurring failure.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
Guidance for AI coding agents (Codex, Claude, etc.) working in this repo.
Use MemoryWhale as durable terminal memory
This project is a terminal-memory system — use it on yourself. It stores commands, exit codes, stdout/stderr, notes, and whole sessions in a local SQLite database so a future agent session, a different machine, or a different agent can continue from what already happened. Everything is local; nothing is uploaded.
Database: <data_local>/MemoryWhale/memorywhale.sqlite3
(~/.local/share/... on Linux, ~/Library/Application Support/... on macOS).
Recall before you act
Before debugging a build/environment error, check whether it was solved before:
mw search "linker cc not found" # full-text recall across commands, output, notes
mw context --last-error # the most recent failure, with its error tailIt shows prior matching runs and what was run right after a past failure (often the fix). Prefer a known-good fix over re-deriving it.
Record as you go
Log notable commands — especially a failure and the fix that worked:
mw-remember --cwd "$(pwd)" --exit-code "$?" \
--stderr "<error output>" \
--notes "project:<name> what / why" -- <command> [args]Record an exploratory stretch as a whole session:
mw --notes "project:<name>" # ...work... then: exit (wait for "recorded session #N")Tag related work across terminals with the same project:<name> to group it.
Inspect
mw-view <id>— one memory as a local web page (with suggested next steps).mw-serve— dashboard athttp://127.0.0.1:7071/; includes/graphand project views.mw-recover— import an interrupted session transcript that didn't save.
Repo conventions
- Before changing behavior, read
docs/architecture.mdand place the change in Capture, Memory, Retrieval, or Interfaces. Keep integrations thin and do not introduce agent-specific behavior into core. - Before debugging, run a focused test and query MemoryWhale for a recurring failure. Record non-obvious fixes after they are verified.
- The Cargo workspace lives at the repository root. The reusable retrieval
crate is
crates/memorywhale-core, CLI sources are incrates/mw-cli, the React frontend is insrc, andsrc-tauricontains only the desktop shell. - Build every helper from the repository root with
cargo build --release -p memorywhale-cli --bins. The binaries aremw,mw-remember,mw-run,mw-screenshot,mw-serve,mw-view,mw-recover, andmw-mcp. - macOS only: after copying a built binary, re-sign it (
codesign --force --sign - <path>) or it getsKilled: 9. Seedocs/project/DEBUG.md. - Full usage:
docs/reference/cli.md. Setup/troubleshooting:docs/project/DEBUG.md.
The agent form of this guidance lives in crates/mw-cli/integrate/SKILL.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

