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/.agents/skills/ralph-reflect" ~/.claude/skills/jmagly-aiwg-ralph-reflect && rm -rf "$T"
manifest:
.agents/skills/ralph-reflect/SKILL.mdsource content
Al Reflect Command
View, search, and manage reflections from agent loop iterations.
Instructions
Manage the Reflexion episodic memory stored in
.aiwg/ralph/reflections/:
Subcommand: show
Display reflections for a specific loop or the most recent loop.
- Load reflections from
.aiwg/ralph/reflections/loops/ - Display each reflection with:
- Trial number, timestamp
- Outcome (success/failure/partial)
- Reflection text
- Strategy change
Subcommand: patterns
Show recurring patterns across all loops.
- Load
.aiwg/ralph/reflections/patterns/ - Display patterns by frequency
- Show success rate for each pattern
- Highlight patterns applicable to current context
Subcommand: clear
Archive and clear reflection history.
- Archive current reflections to timestamped directory
- Reset loops and patterns directories
- Preserve index.yaml
Arguments
- Show reflections for loop (default: latest)show [loop-id]
- Show learned patternspatterns
- Archive and clear reflectionsclear
- Output format (default: markdown)--format [yaml|markdown|summary]
- Show only last n reflections--last [n]
- Filter by loop ID--loop [id]
References
- @$AIWG_ROOT/agentic/code/addons/ralph/schemas/reflection-memory.json - Reflection schema
- @$AIWG_ROOT/agentic/code/addons/ralph/docs/reflection-memory-guide.md - Guide
- @.aiwg/research/findings/REF-021-reflexion.md - Research foundation