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 joeblackwaslikeMITIn 1 marketplace
Automatic mistake capture and proactive lesson injection for AI coding agents. Mines conversation logs for mistake patterns, structures them as indexed lessons, and injects relevant warnings before the agent repeats the mistake.
You run one by typing its /name in Claude Code.
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.
Stop repeating Claude's mistakes. Every session, automatically.

Real /lessons:manage conversation and a real PreToolUse injection, not staged — see website/static/demo.tape to reproduce it.
137 active lessons · 87 eval scenarios measuring whether injection actually changes behavior · 37 pages of docs · 4 platforms (Claude Code, Codex CLI, Gemini CLI, opencode)
# Step 1 — add the marketplace (once per machine)
claude plugin marketplace add joeblackwaslike/agent-marketplace
# Step 2 — install the plugin
claude plugin install lessons-learned@agent-marketplace
Claude is stateless. Every session forgets every correction, every footgun hit, every git stash that silently dropped untracked files. Over long agentic runs, the same class of mistake appears again and again — because nothing carries forward.
lessons-learned creates a persistent, compounding memory of failure patterns. Mistakes are captured automatically from session logs. A background scanner extracts candidates, you promote the ones worth keeping, and the next time Claude is about to make the same move, a warning surfaces at the exact tool call where it matters.
The feedback loop tightens over time. The more sessions, the stronger the prevention.
Step 1 — Claude makes a mistake and emits a lesson tag: this one is real —
genuinely emitted mid-session while building the recording below, after
Claude Code's own Safety Net guard blocked a cd-then-rm -rf Bash call
twice in a row:
#lesson
tool: Bash
trigger: cd <dir> && rm -rf <path>
problem: Combining `cd` into a target directory with `rm -rf` in the same Bash
call gets blocked by Claude Code's Safety Net guard, even when the
resulting path is otherwise a legitimate scratch/temp location — the
guard flags the cd+rm-rf co-occurrence pattern itself, not just
literal out-of-cwd path resolution.
solution: Never combine `cd` and `rm -rf` in the same Bash invocation. Either
`cd` first as its own call (the working directory persists across
Bash calls), then issue `rm -rf` as a separate, later call — or use
`rm -rf <absolute-or-explicit-relative-path>` directly, no `cd`.
tags: tool:bash, tool:safety-net, severity:blocked-workflow
#/lesson
Step 2 — Next session, discover and promote it — captured live and
unstaged (real Claude Code, real plugin, a real scratch database) via
/lessons:manage, one of several /lessons:* commands for browsing,
promoting, and auditing lessons conversationally, no path to your checkout
and no flags to remember:

Reproduce it with vhs website/static/demo-live.tape (requires
vhs and a claude login — budget a
few minutes; it's a real model call, not a replay, so timing and wording vary
between runs).
$ node scripts/lessons.mjs scan --verbose
[scan] New candidates: 1 | Duplicates skipped: 0 | Total in DB: 47
$ node scripts/lessons.mjs review
1 pass, 0 fail
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: commands: Invalid input
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
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.
Plugins from other owners that cover similar ground