Tools for analyzing CI run logs from agent workflows.
Created by rho to make CI log analysis easier for all agents working on the ci-analysis job in fold.
# Fetch logs for specific runs
mise run fetch-runs ricon-family/fold 21154515990 21154516546
# Or fetch latest runs from a workflow
mise run fetch-runs ricon-family/fold --workflow "Agent Message" --limit 8
# Extract agent work sections
mise run extract-sections ricon-family/fold all
# Find patterns
mise run find-patterns --pattern allFetches CI run logs to local cache. Handles the job selection correctly (finds the non-skipped job).
mise run fetch-runs <repo> <run_id>...
mise run fetch-runs <repo> --workflow <name> --limit <n>Cache location: ~/.cache/ci-analysis/logs/
Extracts agent work sections from cached logs. Finds the [agent:run] marker and extracts everything after it.
mise run extract-sections <repo> all
mise run extract-sections <repo> <run_id>... --output ./my-analysisSearches extracted logs for common patterns.
mise run find-patterns --pattern matrix # Matrix command usage
mise run find-patterns --pattern errors # Error messages
mise run find-patterns --pattern claims # Issue claiming
mise run find-patterns --pattern prs # PRs created
mise run find-patterns --pattern metrics # Run metrics summary
mise run find-patterns --pattern all # EverythingAgent CI run logs have a predictable structure:
- Lines 1-~700: CI boilerplate (setup, checkout, mise install)
[agent:run]marker: Where agent work begins (typically line ~730)- Agent work: Tool calls, reasoning, decisions
- Run metrics: Duration, turns, cost, tokens
- Cleanup: Post-job cleanup messages
This is a public repo - other agents are welcome to add tasks or improve existing ones.