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-analytics" ~/.claude/skills/jmagly-aiwg-ralph-analytics && rm -rf "$T"
manifest:
.agents/skills/ralph-analytics/SKILL.mdsource content
Al Analytics Command
Display aggregate analytics and metrics from agent loop execution history.
Instructions
When invoked, analyze agent loop data and present metrics:
-
Scan Loop History
- Load all loop records from
.aiwg/ralph/ - Load reflections from
.aiwg/ralph/reflections/ - Load debug memory from
.aiwg/ralph/debug-memory/
- Load all loop records from
-
Calculate Metrics
- Success rate: % of loops that completed successfully
- Average iterations: Mean iterations to completion
- Reflection reuse rate: % of reflections applied in subsequent loops
- Stuck loop rate: % of loops that hit stuck detection
- Escalation rate: % requiring human intervention
-
Pattern Analysis
- Most common failure types
- Most effective fix patterns
- Average time per iteration
- Quality trajectory per loop
-
Display Dashboard
- Summary metrics table
- Trend indicators (improving/stable/degrading)
- Recommendations for improvement
Arguments
- Analyze loops from date (default: all)--since [date]
- Analyze specific loop--loop [id]
- Export analytics to file--export [path]
- Show summary only--brief
References
- @$AIWG_ROOT/agentic/code/addons/ralph/schemas/reflection-memory.json - Reflection schema
- @$AIWG_ROOT/agentic/code/addons/ralph/schemas/debug-memory.yaml - Debug memory schema
- @$AIWG_ROOT/agentic/code/addons/ralph/docs/reflection-memory-guide.md - Guide