Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add jonathondouglasyager-debug/claude-error-learning/plugin install error-learningWrote 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.
[](https://agentmods.dev/commands/jonathondouglasyager-debug/claude-error-learning/error-learning)<a href="https://agentmods.dev/commands/jonathondouglasyager-debug/claude-error-learning/error-learning"><img src="https://agentmods.dev/badge/commands/jonathondouglasyager-debug/claude-error-learning/error-learning/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.
<a href="https://agentmods.dev/commands/jonathondouglasyager-debug/claude-error-learning/error-learning"><img src="https://agentmods.dev/badge/commands/jonathondouglasyager-debug/claude-error-learning/error-learning.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00017 | $0.00881 |
| Opus 5.5 | $0.00007 | $0.00352 |
| Sonnet 5.5 | $0.00003 | $0.00176 |
| Haiku 4.5 | $0.00002 | $0.00088 |
Grade A, and why
error-learning 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 127 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Error Learning Management
You are helping manage the error learning system. Based on the action requested, perform the appropriate task.
Available Actions
/error-learning (or /error-learning status)
Show current status and statistics:
- Read
config.jsonto show enabled packs - Read
patterns/active.jsonto count active patterns - Read
data/errors.jsonlto count errors and fixes - Display summary with:
- Number of active patterns
- Number of errors logged
- Number of fixes captured
- Enabled pattern packs
/error-learning review
Review pending patterns for approval:
- Run:
python hooks/error-curator.py --review - Show the output which lists:
- All error signatures found
- Which are NEW vs EXISTS
- Sample error and fix commands
- Instructions for adding patterns
/error-learning packs
List available pattern packs and their status:
- Read
config.jsonto get enabled_packs - List all .json files in
patterns/packs/ - For each pack, show:
- Pack name
- Enabled/disabled status
- Number of patterns
- Description
/error-learning packs enable
Enable a pattern pack:
- Read
config.json - Add pack name to
enabled_packsif not present - Write updated
config.json - Run:
python hooks/error-curator.py --merge - Confirm the change
/error-learning packs disable
Disable a pattern pack:
- Read
config.json - Remove pack name from
enabled_packs - Write updated
config.json - Run:
python hooks/error-curator.py --merge - Confirm the change
/error-learning add ""
Manually add a pattern:
- Parse the pattern description
- Read
patterns/packs/custom.json - Create a new pattern entry with:
- Unique ID based on description
- Match type (contains, regex, or exact)
- Block message
- Learned fix (if provided)
- Append to custom.json patterns array
- Run:
python hooks/error-curator.py --merge - Confirm the addition
Example Outputs
Status Output
Error Learning Status
=====================
Active Patterns: 12
- common: 5 patterns
- windows: 4 patterns
- learned: 3 patterns
Error Log: 47 errors, 23 fixes (49% fix rate)
Enabled Packs: common, learned, custom
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.
- 1mo ago First seen · 127 lines · 17 tokens per session scan A 124059b2febd
error-learning is a command published in the GitHub repository jonathondouglasyager-debug/claude-error-learning (3 stars, last pushed 6mo ago), licensed MIT. It adds 17 tokens to every session and 881 once invoked, about $0.0001 per session on Opus 5.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-31.
Other commands, from other repositories
focused-fix
Deep-dive feature repair — systematically fix an entire feature/module. Usage: /focused-fix.
statusbar-doctor
Run cs doctor to diagnose why the status bar isn't showing what you expect.
trace-claude-code
Control Opik tracing for your Claude Code sessions.
cleanup
You are executing the /dogma:cleanup command. Your task is to find and fix AI-typical patterns in the codebase that reveal AI/agent usage.
check-cache-bugs
Audit Claude Code setup for cache bugs (CC#40524) — sentinel, --resume/--continue, attribution header + ArkNill B3/B4/B5.
investigate
Systematic root-cause debugging — find the cause before writing any fix.