#Correct config format for heartbeat interval and per-channel model overrides?

1 messages Β· Page 1 of 1 (latest)

gleaming summitBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> βœ… Mark Solution

odd kindleBOT
#

Yep β€” both errors are expected from schema validation.

1) Heartbeat interval (correct format)

agents.defaults.heartbeat must be an object, and the interval key is every:

{
agents: {
defaults: {
heartbeat: {
every: "2h", // use "0m" to disable
},
},
},
}
#

channels.defaults.heartbeat is only for visibility formatting (showOk, showAlerts, useIndicator) β€” it does not control schedule/cadence.


2) Per-Discord-channel model override (correct approach)

Use channels.modelByChannel, not agents.overrides:

{
agents: {
defaults: {
model: { primary: "anthropic/claude-sonnet-4-6" },
},
},
channels: {
#
modelByChannel: {
discord: {
"123456789012345678": "anthropic/claude-opus-4-6",
"234567890123456789": "anthropic/claude-opus-4-6",
},
},
},
}

Notes:

  • This applies when the session doesn’t already have a manual /model override.
  • If you need full behavior separation (different prompts/tools/workspaces too), use agents.list + bindings instead.

Docs: