Debug Memory Command
Query, analyze, and manage the debug memory from executable feedback loops.
Instructions
Manage the debug memory stored in .aiwg/ralph/debug-memory/:
Subcommand: query
Search debug memory for relevant past execution sessions.
- Search
.aiwg/ralph/debug-memory/sessions/for matching entries - Match by file path, error type, test name, or keyword
- Display relevant sessions with fix attempts and outcomes
- Highlight reusable patterns
Subcommand: patterns
Display learned patterns from past debug sessions.
- Load
.aiwg/ralph/debug-memory/patterns/learned-patterns.yaml - Show pattern frequency, success rate, and applicability
- Suggest patterns applicable to current context
Subcommand: stats
Show aggregate statistics from debug memory.
- Total sessions, pass rate, average attempts
- Most common error types
- Most effective fix patterns
- Files with highest failure frequency
Subcommand: clear
Clear debug memory (with confirmation).
- Prompt for confirmation
- Archive current memory to
.aiwg/ralph/debug-memory/archive/ - Reset sessions and patterns
Arguments
query [keyword]- Search debug memorypatterns- Show learned patternsstats- Show aggregate statisticsclear- Clear and archive debug memory--file [path]- Filter by source file--error [type]- Filter by error type--since [date]- Filter by date
References
- @$AIWG_ROOT/agentic/code/addons/ralph/schemas/debug-memory.yaml - Debug memory schema
- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/rules/executable-feedback.md - Executable feedback rules
- @$AIWG_ROOT/agentic/code/addons/ralph/docs/executable-feedback-guide.md - Guide