Skip to content

v2.1.0 - Tool Error Extraction & Workflow Tracking

Choose a tag to compare

@BayramAnnakov BayramAnnakov released this 05 Jan 02:21
· 67 commits to main since this release

v2.1.0 - Tool Error Extraction & Workflow Tracking

This release adds two improvements to claude-reflect:

New Features

Tool Error Extraction (#6)

Scan session files for repeated tool execution errors that reveal project-specific issues and convert them into CLAUDE.md guidelines.

What it extracts:

  • Connection errors → "Check .env for service URLs"
  • Environment undefined → "Load .env before accessing variables"
  • Supabase/Postgres/Redis errors → "Check config"
  • Module not found → "Verify project structure"

What it excludes:

  • Claude Code guardrails (already known to Claude)
  • Global Claude behavior (bash quoting, EISDIR)
  • One-off errors (only 2+ occurrences)

Usage:

/reflect --scan-history --include-tool-errors

Mandatory TodoWrite Tracking

The /reflect workflow now uses TodoWrite to track all 10+ phases, preventing steps from being skipped.

Why this matters:

  • Complex workflows stay on track
  • Real-time visibility into progress
  • Each step acts as a checkpoint

Files Changed

  • commands/reflect.md - Added TodoWrite initialization + tool error step
  • scripts/extract_tool_errors.py - New CLI wrapper
  • scripts/lib/reflect_utils.py - Error extraction functions
  • scripts/lib/semantic_detector.py - Error validation
  • tests/test_tool_errors.py - 20 new tests

Stats

  • 1,019 lines added
  • 130 tests total (all passing)

Generated with Claude Code