Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By carloluisitov0.4.1MITIn 1 marketplace
Remembers tool calls that keep failing in a project and reminds you at the start of the next session. Local only, no network.
Claude loads one when your task matches it, or you run it by name.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Keeps a per-project tally of tool calls that keep failing, and reminds you about the repeat offenders when a session starts.
The problem it solves is narrow: within one session Claude remembers that
npm test blew up, but after a /clear, a compaction, or tomorrow morning that
knowledge is gone, and the same dead end gets walked again. This plugin writes
those failures to a small local file and reads it back at session start.
/plugin marketplace add https://github.com/carloluisito/claude-plugins
/plugin install failure-memory@carloluisito-plugins
Requires node on your PATH. Nothing else — no dependencies, no config.
Restart Claude Code after installing. Hooks are registered when a session starts, so in the session where you install the plugin it captures nothing.
Three hooks, and nothing else:
PostToolUseFailure — when a Bash, Edit, Write, NotebookEdit,
Task, or MCP tool call fails, the failure is folded into the ledger for the
current working directory. Read, Glob, and Grep failures are ignored on
purpose; they fail constantly and mean nothing.PostToolUse — when a Bash command succeeds, one observation of that
signature is undone, and the entry is dropped once its count reaches zero. See
What self-clears and what does not — the
asymmetry with the hook above is deliberate.SessionStart — failures that have happened at least twice and were
last seen within 30 days are injected as context. Anything that failed once
is noise and is not reported.Failures are keyed by a normalized signature, not by the literal command.
Without this, npm test | tee out.log on Monday and npm test on Tuesday are
two entries with a count of 1 each — neither reaches the threshold of two, and
nothing is ever reported. For a Bash command the signature is built in this
order:
|, ;, or && onward is dropped, so npm test && npm run lint and
npm test are the same failure. Separators inside quotes don't count:
echo "a && b" is left whole.-- are dropped, so npm test -- auth.spec and
npm test -- billing.spec are the same failure.cargo build --release --locked and
cargo build --locked --release are the same failure. This only applies when
every token after the first flag is itself a flag — git commit -m one is
left alone, because one is a value and reordering it would merge two
unrelated commits.<path>, <hex>,
and <n>, so a command carrying a temp directory or a PID still matches
itself.The bias throughout is toward keeping things apart. A duplicated ledger row is untidy; a wrongly merged one produces a reminder about a command you never ran. So anything ambiguous — an unterminated quote, a flag that might take a value — is left uncollapsed.
A signature is capped at 200 characters, and the cap is where that bias needs help. Cutting a long signature down to its first 200 characters is a prefix match, so what collides is not random: it is two commands sharing a long prefix and differing in the tail — a generated invocation, a long flag list — which is the shape that reaches the cap in the first place. Step 3 above makes it worse by sorting a trailing flag run, so the cut can land partway through a sorted list of flags. Two unrelated failures then share one row, reach the threshold of two between them, and get replayed as advice about a command nobody ran.
So a signature over the cap keeps its first 171 characters and gains a marker built from a SHA-256 digest of the whole normalized string:
esbuild --bundle --define:FEATURE_AAAA...AAAA ... [truncated 4a55c491caa6]
The digest covers the part that was cut, so two commands sharing an over-cap prefix stay apart. 171 + 29 = 200, so the cap itself does not move, and a signature at or under it is untouched — byte-for-byte what earlier versions wrote, so an existing ledger keeps matching and keeps self-clearing.
Entries recorded before this existed keep the merged key they were written with. They are not rewritten: working out which command an ambiguous 200-character prefix came from would mean guessing, which is the merge this is here to prevent. They age out after 90 days, or are evicted once the project passes 200 entries.
Other tools are keyed more coarsely, by tool name plus a rough class of error:
Edit, Write, and NotebookEdit by file extension, Task by subagent type,
MCP tools by the shape of their input.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub carloluisito/claude-plugins --plugin failure-memoryPlugins from other owners that cover similar ground