Skip to main content

Module daemon

Module daemon 

Source
Expand description

Core team daemon: poll loop, lifecycle coordination, and routing.

TeamDaemon owns the long-running control loop for a Batty team session. It starts and resumes member agents, polls tmux-backed watchers, routes messages across panes, inboxes, and external channels, persists runtime state, and runs periodic automation such as standups and board rotation.

Focused subsystems that were extracted from this file stay close to the daemon boundary:

  • merge handles engineer completion, test gating, and merge/escalation flow once a task is reported done.
  • interventions handles idle nudges and manager/architect intervention automation without changing the daemon’s main control flow.

This module remains the integration layer that sequences those subsystems inside each poll iteration.

Structs§

DaemonConfig
Daemon configuration derived from TeamConfig.
TeamDaemon
The running team daemon.

Functions§

load_dispatch_queue_snapshot