Skip to content

Sleep System (Dreamy) ​

Dreamy is the nightly memory maintenance agent. After bedtime, it processes the day's conversations — grouping them into topic episodes, promoting durable knowledge, and pruning raw data only after its evidence is preserved.

How it triggers ​

A scheduled sleep-cycle system task fires the cycle. Dreamy runs as its own Pi session; the bridge pumps provider completions and polls daemon progress until the run settles.

  • Manual run: /sleep now starts a full fresh cycle
  • After a failure: /sleep resume retries the failed run
  • If the bridge restarts and sleep hasn't run today, it catches up on the next quiet period

Quality levels ​

LevelWhen
normalDefault (SLEEP_QUALITY=normal)
ultimateFull fresh cycle (/sleep now)

Configuration ​

bash
# ~/.abtars/config/.env
SLEEP_QUALITY=normal

Hardware sleep (optional, separate) ​

Putting the machine to sleep is a separate optional power action, not a Dreamy step. When enabled, the bridge suspends after Dreamy completes; a message during the grace period cancels it.

Commands ​

CommandDescription
/sleepShow sleep status (last run, next scheduled)
/sleep nowForce a full fresh sleep cycle immediately
/sleep resumeRetry the failed run

Guard logic ​

A run starts only with daemon admission. If admission is missing or fails, the command is rejected and nothing is spawned — a failed run stays failed until /sleep resume retries it.