Install
openclaw skills install dreamcycleAI Agent Self-Reflection Engine — scan session logs, detect failure patterns, analyze recurrence trends, and suggest automated fixes.
openclaw skills install dreamcycleDetect, analyze, and auto-repair failure patterns from AI agent session logs.
Use DreamCycle when:
DreamCycle is a retrospective debugger for AI agents. It scans your agent's session log files in three phases:
Session Logs → Scan → Analyze → Fix
pip install dreamcycle
# Basic diagnostic: scan last 2 days of sessions
dreamcycle diagnose ~/.openclaw/sessions/
# Scan last 7 days
dreamcycle diagnose ~/my-agent/logs/ --days 7
# JSON output for programmatic use
dreamcycle diagnose ./sessions/ --output json
# Version info
dreamcycle version
━━━ DreamCycle Diagnose ━━━
Scanned: 42 sessions (last 2 days)
Signals: 156 total (failures: 78, patterns: 52, lessons: 26)
━━━━━━━━━━━━━━━━━━━━━━━━━━
🔄 Top Recurring Patterns
[12x] "timeout" → ⚡ high
Fix: add retry_with_backoff (confidence: 85%)
[8x] "ModuleNotFoundError" → ⚡ high
Fix: pip install <module> (confidence: 95%)
📈 Trends
↑ timeout: 12x (up from 5x last scan)
↓ ModuleNotFoundError: 8x (down from 15x)
🔧 Auto-Fix Summary
✅ 2/4 patterns have automated fixes
❌ 2 patterns need manual review
Only python3 and pip. Zero external dependencies — DreamCycle uses only
the Python standard library.
messages array containing
role/content fields~/.dreamcycle/scan_history.json