Channels, Cron, and Nodes
External Channels
Channel adapters live in pkg/channels:
telegram.godiscord.gofeishu.godingtalk.goqq.gowhatsapp.gomaixcam.go
The channel manager is responsible for:
- initializing enabled adapters
- starting and stopping them
- sending inbound messages into the bus
- routing outbound messages by channel
- applying dedupe windows
Cron
ClawGo cron is not just OS-level scheduling. Cron jobs are fed back into the agent runtime.
A cron job contains:
nameschedulemessagedeliverchanneltoenabledstate
Supported schedule forms:
everycronat
Nodes
pkg/nodes defines a remote execution abstraction:
Managermaintains node stateRouterdispatches requestsTransporthandles relay or p2p behavior
Gateway exposes:
POST /nodes/registerPOST /nodes/heartbeat
Remote nodes can then be mounted as agent branches in the main topology.
Local Simulated Node
The code registers a default local node to simulate capabilities such as:
runagent_taskcamera_snapcamera_clipscreen_snapshotscreen_recordlocation_getcanvas_snapshotcanvas_action