Crash Fixer

Automation

Autonomous crash analysis and bug fixing. Monitors crash reports from Cloudflare D1, deduplicates, analyzes with Codex 5.3 High, generates fixes, and creates PRs. Usage: /crash-fixer [--hours 24] [--limit 5] [--dry-run]

Install

openclaw skills install crash-fixer

crash-fixer

Full autonomous crash-fixing loop. Fetches crashes, deduplicates, analyzes with AI, generates fixes, and creates PRs.

Trigger

/crash-fixer [--hours 24] [--limit 5] [--dry-run]

How It Works

  1. Fetch - Query crash reporter for new crashes
  2. Deduplicate - Check fingerprint for identical crashes already fixed
  3. Analyze - Use Codex 5.3 High (o3-high) to understand crash
  4. Fix - Generate code fix
  5. PR - Create branch → commit → PR
  6. Update - Mark status in crash reporter

Options

FlagDefaultDescription
--hours N24Only fetch crashes from last N hours
--limit N3Max crashes to process per run
--dry-runfalseAnalyze but don't create PRs

Required Environment

VariableDescription
GH_TOKENGitHub API token
CRASH_REPORTER_API_KEYAPI key for crash reporter worker
CRASH_REPORTER_URLURL of crash reporter worker
TARGET_REPOGitHub repo to fix (owner/name)

Note: Uses MiniMax M2.5 (available in OpenClaw) for AI analysis - no extra API key needed.

Example

/crash-fixer --dry-run