Skip to content

rn-agent-compact

Run the compaction cycle for the Experience Engine. Scans telemetry, generates candidates from failure patterns, auto-promotes verified recoveries, and decays stale heuristics.

/rn-dev-agent:rn-agent-compact
  1. Scan all telemetry JSONL files in ~/.claude/rn-agent/telemetry/
  2. Group failures by tool + normalized error signature
  3. Generate candidates for patterns seen 3+ times with 67%+ recovery success
  4. Auto-promote ghost recovery shortcuts to ~/.claude/rn-agent/experience.md
  5. Write candidates for human review to ~/.claude/rn-agent/candidates/
  6. Decay stale heuristics not triggered in 20+ runs (-20% confidence)
  7. Remove dead heuristics below 30% confidence
DestinationGateCriteria
experience.mdAutoGhost recovery with 67%+ success rate over 3+ occurrences
candidates/*.mdHuman reviewAll other patterns
Project .rn-agent-experience.mdManualUser copies from candidates after review

Reports a summary table with telemetry files scanned, events processed, failure groups found, candidates generated, auto-promoted count, heuristics decayed/removed, and token usage.

  • After completing 5-10 rn-feature-dev sessions
  • When ~/.claude/rn-agent/telemetry/ grows large
  • Before sharing project experience
  • Weekly or biweekly maintenance