| name | logs-viewer |
| description | View and analyze iteration logs. Use when user wants to:
- VIEW logs ("show logs", "view output", "what happened")
- WATCH live ("tail logs", "follow progress", "watch iteration")
- SEARCH logs ("find in logs", "search output", "grep logs")
- COMPARE runs ("compare iterations", "diff runs")
For project management (start/stop/create), use manage-project instead.
|
Ralph Loop Logs Viewer
View, search, and analyze iteration logs from Ralph Loop projects.
Quick Commands
List All Iterations
.claude/skills/logs-viewer/scripts/logs.sh <project>
.\.claude\skills\logs-viewer\scripts\logs.ps1 <project>
View Specific Iteration
.claude/skills/logs-viewer/scripts/logs.sh <project> -i 3
.claude/skills/logs-viewer/scripts/logs.sh <project> -i latest
Search Across Iterations
.claude/skills/logs-viewer/scripts/logs.sh <project> -s "error"
.claude/skills/logs-viewer/scripts/logs.sh <project> -s "TASK COMPLETE"
View File Changes
.claude/skills/logs-viewer/scripts/logs.sh <project> -f
.claude/skills/logs-viewer/scripts/logs.sh <project> -f -i 3
Statistics
.claude/skills/logs-viewer/scripts/logs.sh <project> --stats
JSON Output
.claude/skills/logs-viewer/scripts/logs.sh <project> --json
Watch Live Logs
.claude/skills/logs-viewer/scripts/watch.sh <project>
.claude/skills/logs-viewer/scripts/watch.sh <project> --session
.\.claude\skills\logs-viewer\scripts\watch.ps1 <project>
Log File Structure
Each project stores logs in .projects/<project>/logs/:
logs/
├── session.log # Colorized session log (all iterations)
├── current.log # Symlink to active iteration's output.live
├── status.json # Current iteration status (pollable)
├── completion.json # Final status when complete
└── iteration_XXX/
├── output.live # Real-time streaming output
├── output.log # Final text output
├── duration.json # Timing data
├── files_changed.json # Git changes
├── exit_code # Exit status
└── git_diff.txt # Diff output
Status File (status.json)
Poll this file for real-time iteration status:
{"iteration":3,"status":"running","started":"2026-01-15T22:30:00+09:30","project":"my-project"}
Or after completion:
{"iteration":3,"status":"complete","exit_code":0,"seconds":45,"project":"my-project"}
Output Formats
Human-Readable (Default)
┌─ Iteration 001 ──────────────────────────────────────────────┐
│ Status: ✓ Success (exit 0) │
│ Duration: 14s │
│ Files: +3 ~2 -0 │
├──────────────────────────────────────────────────────────────┤
│ Counter incremented from 0 to 1. Committed... │
└──────────────────────────────────────────────────────────────┘
JSON (--json)
{
"project": "my-project",
"total_iterations": 4,
"status": "complete",
"iterations": [
{
"number": 1,
"exit_code": 0,
"duration_seconds": 14,
"output_preview": "..."
}
]
}
Integration with Project Manager
Use with manage-project commands:
.claude/skills/manage-project/scripts/run.sh my-project
.claude/skills/logs-viewer/scripts/watch.sh my-project
cat .projects/my-project/logs/status.json