dream-cycle
Use for the nightly Dream Cycle.
SKILL.mdskills/dream-cycle/SKILL.md
GitHubDream Cycle
The agent "sleeps": each night cron job dream-cycle (03:30) runs scripts/dream_cron.py → scripts/dream_cycle.py:
- REM replay: reads all user/assistant messages of the day from
state.db - Fragment extraction: pulls error/exception fragments via regex
- Motif detection: matches against lexicon in
MOTIFSdict (timeout, permission, auth, build, api-rate, memory, path-bug) - Nightmare detection: motif seen on 3+ prior days → becomes an intention (fix at root)
- Output: upsert into
dreams.json+reports/dream-YYYY-MM-DD.md, report delivered by cron
Extending
- Add motifs to the
MOTIFSdict inscripts/dream_cycle.py - Manual replay:
python scripts/dream_cycle.py 2026-08-31 - Schema gotcha:
messages.timestampis REAL unix epoch — usedate(timestamp,'unixepoch').
Morning routine
Read latest reports/dream-*.md; act on nightmare-intentions first (root fix, not symptom).