install
source · Clone the upstream repo
git clone https://github.com/jmagly/aiwg
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/jmagly/aiwg "$T" && mkdir -p ~/.claude/skills && cp -r "$T/agentic/code/addons/agent-loop/skills/debug-memory" ~/.claude/skills/jmagly-aiwg-debug-memory-6cbe0b && rm -rf "$T"
manifest:
agentic/code/addons/agent-loop/skills/debug-memory/SKILL.mdsource content
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
for matching entries.aiwg/ralph/debug-memory/sessions/ - 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
- Search debug memoryquery [keyword]
- Show learned patternspatterns
- Show aggregate statisticsstats
- Clear and archive debug memoryclear
- Filter by source file--file [path]
- Filter by error type--error [type]
- Filter by date--since [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