Skip to main content

Interface: CrewConfig

Defined in: packages/orchestration/src/crew/types.ts:38

Properties​

agents​

agents: CrewAgentConfig[]

Defined in: packages/orchestration/src/crew/types.ts:39


autoStop?​

optional autoStop?: boolean | { afterMs?: number; }

Defined in: packages/orchestration/src/crew/types.ts:84

End each session on its own once its work is done: when every ticket it has seen has ended, none of its runs is still going and the coordinator is idle, and stays so for afterMs (default 4000) — a ticket created or reopened in that window cancels it — the session stops (closing summary, crew.done). Default off: a session lasts until stop().


budgetTotal?​

optional budgetTotal?: number

Defined in: packages/orchestration/src/crew/types.ts:61

USD the crew's runs may spend together, every agent combined (OrchestratorConfig.budgetTotal): the run that reaches it fails, and no run starts after.


coordinator?​

optional coordinator?: Baleybot<undefined, Record<string, never>>

Defined in: packages/orchestration/src/crew/types.ts:51

Custom coordinator Baleybot. When provided, replaces the built-in coordinator entirely. The bot must have the orchestration tools (create_ticket, dispatch_ticket, …) from createOrchestrationTools().


coordinatorInstructions?​

optional coordinatorInstructions?: string

Defined in: packages/orchestration/src/crew/types.ts:55

Custom instructions appended to the coordinator's system prompt. Ignored if coordinator is set.


coordinatorModel?​

optional coordinatorModel?: string | ModelConfig

Defined in: packages/orchestration/src/crew/types.ts:53

Coordinator model (defaults to auto-select via Baleybot). Ignored if coordinator is set.


name?​

optional name?: string

Defined in: packages/orchestration/src/crew/types.ts:45

The key the dev panel lists the crew under. Defaults to a generated id, which gives up the one property that matters across a hot reload: re-declaring the same crew replaces its row instead of adding a second.


proactiveIntervalMs?​

optional proactiveIntervalMs?: number

Defined in: packages/orchestration/src/crew/types.ts:76

Interval for proactive update checks in ms (default: 10000)


proactiveUpdates?​

optional proactiveUpdates?: boolean

Defined in: packages/orchestration/src/crew/types.ts:74

Enable proactive status updates from coordinator (default: true)


schedulerIntervalMs?​

optional schedulerIntervalMs?: number

Defined in: packages/orchestration/src/crew/types.ts:72

Scheduler heartbeat interval in ms (default 5000).


snapshotIntervalMs?​

optional snapshotIntervalMs?: number

Defined in: packages/orchestration/src/crew/types.ts:86

The most often a session announces crew.snapshot while work streams, in ms (default 400).


stores?​

optional stores?: object

Defined in: packages/orchestration/src/crew/types.ts:89

Defaults to in-memory stores, which lose everything on restart; @baleybots/postgres has persistent ones.

runs​

runs: RunStore

tickets​

tickets: TicketStore


ticketDefaults?​

optional ticketDefaults?: Partial<TicketConfig>

Defined in: packages/orchestration/src/crew/types.ts:95

Merged into every ticket the crew creates (e.g. a groupChatId to filter on).


workerTools?​

optional workerTools?: boolean

Defined in: packages/orchestration/src/crew/types.ts:70

Lend every agent collaboration tools — request_help, get_team_context — for the duration of each dispatched run (default: false).

Agents are registered as given: the tools ride along in ProcessOptions.additionalTools, so an agent keeps its model, system prompt, tools and sandbox, and a tool it was built with wins a name clash.