By bw2
Analyze Claude Code session logs to find recurring fail-then-fix patterns and wheel-spinning loops, then propose CLAUDE.md rules to prevent them.
A Claude Code plugin that analyzes your session logs to find recurring mistakes and proposes CLAUDE.md rules to prevent them.
python instead of python3, editing a file before reading it)The script scans your JSONL session logs in ~/.claude/projects/, classifies errors into 37+ categories, detects fail-then-fix chains and wheel-spinning loops, deduplicates similar patterns, and reports them sorted by frequency.
/plugin install bw2/claude-error-patterns
Invoke with /claude-error-patterns:error-patterns or just ask Claude to "analyze my error patterns" or "what mistakes do you keep making".
You can also run the script directly:
# Human-readable markdown
python3 scripts/error_patterns_cli.py --days 14
# JSON output
python3 scripts/error_patterns_cli.py --json --days 14
# Filter options
python3 scripts/error_patterns_cli.py --min-count 5
python3 scripts/error_patterns_cli.py --exclude generic_exit_code,generic_error
# Skip wheel-spinning analysis
python3 scripts/error_patterns_cli.py --no-wheel-spinning
# List available error categories
python3 scripts/error_patterns_cli.py --list-categories
Includes 37+ built-in categories covering:
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Recall and summarize recent Claude Code sessions for the current working directory. Parses JSONL session logs to bring previous conversation context into the current session.
Curated Claude Code skills and commands for prompt engineering, MCP servers, subagents, hooks, and productivity workflows
npx claudepluginhub bw2/claude-error-patternsMeta-Cognition tool for Claude Code with 22 MCP tools for session history analysis, error tracking, quality scanning, work patterns, timelines, and bug detection. Focused, fast, and data-driven.
Session intelligence for Claude Code — find why your sessions fail and fix them
Self-learning system for Claude Code that captures corrections and updates CLAUDE.md automatically
Analyze Claude Code agent session transcripts to identify inefficiencies, anti-patterns, repeated mistakes, missing tooling opportunities, and user frustration signals for continuous improvement
Comprehensive analysis of Claude Code sessions to identify successful patterns, problematic areas, and opportunities for improvement.
Ultra-compressed communication mode. Cuts 65% of output tokens (measured) while keeping full technical accuracy by speaking like a caveman.