memorywhale

memorywhale is a skill for Claude Code, Codex from wuisabel-gif/MemWhale. It costs 79 tokens per session (558 once invoked), scanned A, original, MIT.

A local record of past debugging commands, errors, outputs, and lessons, stored in a database that survives crashes and machine changes.

In plain words
What is it for?
Use it to investigate recurring build, test, or deployment failures and record fixes for future sessions.
Why use it?
It helps you find the exact details of earlier failed attempts instead of repeating work or relying on memory.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to investigate recurring build, test, or deployment failures and record fixes for future sessions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wuisabel-gif/memwhale/integrate
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wuisabel-gif/MemWhale --skill integrate
Clone the repo
git clone --depth 1 https://github.com/wuisabel-gif/MemWhale

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for memorywhale

README.md
[![agentmods](https://agentmods.dev/badge/skills/wuisabel-gif/memwhale/integrate/github.svg)](https://agentmods.dev/skills/wuisabel-gif/memwhale/integrate)
Your own site
<a href="https://agentmods.dev/skills/wuisabel-gif/memwhale/integrate"><img src="https://agentmods.dev/badge/skills/wuisabel-gif/memwhale/integrate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for memorywhale

Your own site · 80×15
<a href="https://agentmods.dev/skills/wuisabel-gif/memwhale/integrate"><img src="https://agentmods.dev/badge/skills/wuisabel-gif/memwhale/integrate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 558 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00079 $0.00558
Opus 5 $0.00039 $0.00279
Sonnet 5 $0.00016 $0.00112
Haiku 4.5 $0.00008 $0.00056

Measured 10d ago against content hash 3fc55df2b164, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

memorywhale scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

crates/mw-cli/integrate/SKILL.md · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MemoryWhale memory

MemoryWhale records terminal commands, their arguments, exit codes, output, and errors into a local SQLite database. That history survives crashes, SSH drops, and switching machines — it's the record of what was already tried. It also holds freeform lessons you or a past agent session chose to remember.

When to read from it

  • A build/test/deploy is failing and it might have failed before.
  • You need the exact earlier error text, flags, or working directory, not a paraphrase.
  • The user references past work ("last week", "on the Jetson", "how did I fix").

How to pull the memory

Prefer the MCP tools if the memorywhale MCP server is connected: recent_errors, search_memory, get_context. Otherwise shell out:

mw context                 # recent failed commands + sessions, compact
mw context --last-error    # just the most recent failure, with its error tail
mw context project:NAME    # scope to a project tag
mw search "linker error"   # full-text search across commands, output, notes, lessons

mw context/search_memory return failed commands with cwd, exit code, and the tail of their error, plus any remembered lessons. Use it to avoid re-deriving context: check whether the current failure already has a known cause before proposing a fix.

When to write to it

Once you've figured out why something failed or how a fix worked — not just that it's fixed — save it. That's the part a raw command log doesn't capture, and it's what saves the next session (yours or a teammate's) from re-deriving the same conclusion.

Use the MCP remember tool if connected, otherwise:

mw remember "the E0308 in camera-driver was the fps field being a string; fix: parse it as i32"

Keep it a self-contained conclusion (what was wrong + what fixed it), not a narration of the debugging process.

Note

Captured output is secret-redacted on the way in, but treat it as real project data. Everything is local — nothing is uploaded.

Read the full file on GitHub · 57 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 57 lines · 79 tokens per session scan A 3fc55df2b164

Subscribe to this mod's changes

memorywhale is a skill published in the GitHub repository wuisabel-gif/MemWhale (67 stars, last pushed 2d ago), licensed MIT. It adds 79 tokens to every session and 558 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.