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.
npx agentmods add commands/jonathondouglasyager-debug/claude-error-learning/error-learninggit clone --depth 1 https://github.com/jonathondouglasyager-debug/claude-error-learningWhat 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 | $0.00017 | $0.00881 |
| Opus 5 | $0.00009 | $0.00441 |
| Sonnet 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 2d 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.
- 2d 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 (2 stars, last pushed 4mo ago), licensed MIT. It adds 17 tokens to every session and 881 once invoked, about $0.0001 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-31.
Other commands, from other repositories
skillforge
Route, create, improve, or inspect reusable AI skills with SkillForge.
VibeGuard: Learn
Dual-mode learning: (A) Extract guard rules from errors (B) Extract reusable skills from discoveries. Automatic mode routing.
VibeGuard: Skill Validate
Gate proposed skills with with/without repair and regression evidence.
permissions
Create or update DOGMA-PERMISSIONS.md to configure what Claude can do autonomously.
sync
Two-way sync between Nemp Memory and CLAUDE.md.
swarm
Fan out N parallel sub-agents on isolated worktrees with a shared contract test, produce a comparison report. Driven by report.html horizon item 'Parallel Provider-Migration Agents' — pick winners from real evidence instead of discovering tier limits in production.