Ralph Analytics
Agent Buildingralph-analyticsRalph Analytics is an Agent Skill for agent building published in the jmagly/aiwg repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Show analytics and metrics from agent loop execution history
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/jmagly/aiwg/blob/HEAD/agentic/code/addons/agent-loop/skills/ralph-analytics/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/ralph-analytics, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
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
--since [date]- Analyze loops from date (default: all)--loop [id]- Analyze specific loop--export [path]- Export analytics to file--brief- Show summary only
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