self-improvement
Mulch Self Improver β Let your agents grow π±
Structured expertise that accumulates over time, lives in git, and works with any agent. Agents start each session from zero; the pattern discovered yesterday is forgotten today. This skill uses Mulch: agents call mulch record to write learnings and mulch query to read them. Expertise compounds across sessions, domains, and teammates. Mulch is a passive layer β it does not contain an LLM. Agents use Mulch; Mulch does not use agents.
Benefits: Better and more consistent coding Β· Improved experience Β· Less hallucination (grounding in project expertise)
When to use: Command/tool fails, user corrects you, user wants a missing feature, your knowledge was wrong, or you found a better approach β record with Mulch and promote proven patterns to project memory. Auto-detection: The hook now detects errors and corrections automatically and prompts to record.
Mechanics: One learning store β .mulch/ (append-only JSONL, git-tracked, queryable). Session start: mulch prime. Recording: mulch record <domain> --type <type> .... No .learnings/ markdown files.
Qualification (features, benefits, pain points): See QUALIFICATION.md. Benchmark (token efficiency, troubleshooting skill improvement): See BENCHMARK.md β e.g. ~54% fewer chars to get same resolutions; find rate same or better; less context β fewer tokens, less noise, lower risk of wrong fix.
New Features (v1.1)
Auto-Detection
The hook now automatically detects learning moments:
- Errors/failures β When commands fail or return errors
- Corrections β When you say "no", "actually", "wrong", etc.
- Retries β When you ask to try again