Skip to content

Configuration

Complete reference for configuring agents-fleet at v0.36.3 via CLI flags, environment variables, and the persisted config.json file.

Sources: CLI flags are defined in src/index.ts; the config schema + defaults live in src/config.ts (FleetConfig / DEFAULT_CONFIG); environment variables are read across src/.

Precedence

When the same setting can be supplied multiple ways, the most specific wins:

CLI flag  >  environment variable  >  ~/.fleet/config.json  >  built-in default

A handful of flags also have a config-file mirror (e.g. allowPrivilegeEscalation, workflowDiscovery.trustProjectSources); where that is the case it is noted below.


CLI flags

Invoke as agents-fleet [flags]. Run agents-fleet --help for the canonical list emitted by Commander. Source: src/index.ts.

Session & provider

FlagDefaultDescription
-p, --prompt <prompt>Run a single prompt OR slash command and exit (non-interactive).
-m, --model <model>claude-opus-4.6Model to use.
--provider <name>copilotLLM provider: copilot or claude.
-e, --effort <level>highReasoning effort: low | medium | high | xhigh.
--resume [sessionId]Resume a previous session (omit ID to resume latest).
--resume-allfalseInclude worker/orphan sessions in the --resume picker (recover a corrupted coordinator session).
--name <label>Set a name for this session.
-v, --verbosefalseVerbose per-tool-call logging in the fleet log (Ink-safe).
--unattendedfalseRun without blocking for interactive askUser prompts; the coordinator self-directs. Required for goal-driven loops under --provider claude.
--no-coordinatorSingle-agent mode (no fleet coordination).
--legacy-uiUse the legacy VT100 renderer instead of Ink.
--cli-path <path>Path to the Copilot CLI executable.
--cli-url <url>URL of an existing Copilot CLI server.

Context window

FlagDefaultDescription
--context-tier <tier>defaultContext-window tier (default = 200k, long_context = 1M). Sets BOTH coordinator + worker. Only honored by 1M-capable models.
--coordinator-context-tier <tier>Context tier for the COORDINATOR session only. Overrides --context-tier for that scope.
--worker-context-tier <tier>Context tier for ALL WORKER sessions. Overrides --context-tier for that scope.
--long-contextfalseShortcut for --context-tier long_context.
--context-window <size>Friendly alias for --context-tier: 200kdefault, 1mlong_context.

Concurrency & watchdog

FlagDefaultDescription
--max-workers <n>12Maximum concurrent (data-plane) workers.
--hang-threshold-ms <ms>14400000 (4h)Override the SessionSendQueue hang-detector threshold. 0 disables.

Trust & security

FlagDefaultDescription
--trust-project-mcpoffLoad project-level MCP server configs (.mcp.json, .cursor/mcp.json, .vscode/mcp.json, agency.toml). Disabled by default per SEC-1.
--trust-project-workflowson (no-op)Legacy explicit opt-in for .fleet/workflows/ command synthesis (now the default).
--no-trust-project-workflowsDisable project-tier .fleet/workflows/ command synthesis.
--trust-project-gatesoffLoad project-tier .fleet/gates/*.gate.md validation gates (PR-6).
--no-trust-project-gatesExplicit opt-out for project-tier gate discovery (already the default).
--trust-project-intakeoffLoad project-tier .fleet/intake/*.intake.md adapters (PR-7).
--no-trust-project-intakeExplicit opt-out for project-tier intake discovery (already the default).
--trust-project-skillson (no-op)Legacy opt-in for project-tier roles/skills/crews (#487).
--no-trust-project-skillsSkip loading project-tier .fleet/roles, .fleet/skills, .fleet/crews.
--allow-privilege-escalationfalseAllow config/spawn permission overrides to elevate restricted agent profiles (SEC-4). Mirrors allowPrivilegeEscalation in config.json (CLI wins).

Deprecated --yolo bypass

--yolo no longer bypasses anything on its own; it requires at least one --acknowledge-* flag.

FlagDefaultDescription
--yolofalseRequest deprecated yolo bypass mode. Requires an --acknowledge-* flag.
--acknowledge-sec2falseWith --yolo, re-enable SEC-2 Claude bypassPermissions.
--acknowledge-sec4falseWith --yolo, re-enable SEC-4 restricted-agent approve-all/write/shell bypass.
--acknowledge-mcp-bypassfalseWith --yolo, re-enable the MCP allowlist bypass.
--acknowledge-sec-r3-2falseWith --yolo, re-enable SEC-R3-2 unknown-kind fail-closed bypass.
--acknowledge-all-secfalseWith --yolo, acknowledge all SEC bypasses (legacy full-bypass behavior).

Channels & experimental

FlagDefaultDescription
--telegramfalseEnable the Telegram remote-steering channel. Incompatible with --legacy-ui, -p/--prompt, and --no-coordinator.
--inboxfalseEnable the EXPERIMENTAL file-queue inbox at ~/.fleet/inbox/*.task.json.
--inbox-trust-allfalseWith --inbox, allow kind: spawn_worker descriptors (refused by default).
--control-planefalseEXPERIMENTAL: boot the machine-orchestration control plane instead of a data-plane fleet.
--control-socketfalseEXPERIMENTAL: expose a per-fleet control socket so an attached client can drive this fleet remotely.

~/.fleet/config.json

Persisted settings live in <FLEET_HOME>/config.json (default ~/.fleet/config.json). Edit it in-app with /config set <key> <value>, or by hand. The schema is FleetConfig in src/config.ts; unknown keys are ignored and malformed values fall back to defaults with a warning.

Selected top-level fields

KeyDefaultDescription
modelclaude-opus-4.6Default model.
providercopilotcopilot or claude.
reasoningEfforthighlow | medium | high | xhigh.
contextTierdefaultLegacy fleet-wide context tier; seeds both coordinator + worker tiers.
coordinatorContextTierCoordinator-only context tier.
workerContextTierWorker-session context tier.
maxWorkers12Data-plane worker pool size.
maxCoordinatorWorkersmax(1, ⌊maxWorkers/3⌋)Independent coordinator-tier worker pool (additive to maxWorkers).
verbosefalseVerbose tool-call logging.
resumeWindow500Max transcript entries shown on resume (0 = unlimited).
allowPrivilegeEscalationfalseAllow permission-profile elevation via overrides (SEC-4).
yolofalseDeprecated bypass; each bypass still needs a matching yoloAcks entry.

Nested config objects

KeyNotable fields (defaults)Description
worktreesenabled: true, directory: '.worktrees', symlinkNodeModules: falseGit-worktree isolation for workers.
steeringenabled: true, timeoutMs: 60000, maxInsights: 10, maxMessages: 50, memoryThreshold: 70Remote-steering / insight-extraction knobs.
mcpServers[]Explicit MCP server entries (managed via /mcp).
mcpDiscoveryenabled: true, trustProjectSources: falseMCP auto-discovery; project sources off by default (SEC-1).
evolutionenabled: true, autoEvolve: false, maxPromptTokens: 4000, minSampleSize: 5, confidenceThreshold: 75, rollbackAfterSessions: 5Skill-evolution pipeline.
experimentenabled, schedulerEnabled, maxVariants, maxTrialsPerRun, …A/B experiment framework knobs.
intelcaptureLabeledOutcomesIntel/telemetry capture knobs.
shadowminShadowRuns: 5, winRateThreshold: 0.6Shadow-skill promotion thresholds.
heartbeatenabled, heartbeatIntervalMs, stallTimeoutMs, bridgedStallTimeoutMs, maxRespawnAttempts, …Worker heartbeat / stall-recovery tuning.
instructionsenabled, discover, files, excludePatterns, injectIntoWorkersProject-instruction injection.
workflowDiscoverytrustProjectSourcesProject-tier .fleet/workflows/ trust (mirrors --no-trust-project-workflows).
gateDiscoverytrustProjectSources: falseProject-tier gate trust (PR-6).
intakeDiscoverytrustProjectSources: falseProject-tier intake-adapter trust (PR-7).
skillsDiscoverytrustProjectSources: trueProject-tier role/skill/crew trust (#487, default ON).
coordinatorCoordinator-engine tuning.
permissionsPer-agent-type permission overrides (Record<AgentType | '*', PermissionOverrides>).
yoloAcksPer-SEC acknowledgements for the deprecated yolo bypasses.

Environment variables

All boolean-style flags below treat '1' (and where noted '0') as the active value. Unless stated otherwise, a variable being unset keeps the default behavior.

Paths & storage

VariableDefaultDescription
FLEET_HOME~/.fleetRoot for all fleet state (config, sessions, logs, intel DB). Enables multi-instance isolation.
AGENTS_FLEET_HOMEAlternate fleet-home override (resolved by resolveFleetHome).
AGENTS_FLEET_SESSION_STORE_DBOverride path to the SQLite session-store DB.
AGENTS_FLEET_NO_MIGRATEoffSkip session-schema / skill migrations on boot.
AGENTS_FLEET_CREW_V1offForce legacy v1 crew loading behavior.

Provider & permissions

VariableDefaultDescription
AGENTS_FLEET_CLAUDE_BYPASS_PERMISSIONSoffRe-enable global Claude bypassPermissions (SEC-2; otherwise gated behind --yolo --acknowledge-sec2).
AGENTS_FLEET_UNATTENDEDoffEquivalent to --unattended.

Telegram & channels

VariableDefaultDescription
AGENTS_FLEET_TELEGRAM_TOKENTelegram bot token. Always wins over ~/.fleet/telegram.json.
AGENTS_FLEET_TG_DEBUGoffVerbose Telegram transport logging.
AGENTS_FLEET_OUTBOXPath to a channel outbox for outbound message capture.
AGENTS_FLEET_OUTBOX_ENVCompanion env metadata for the outbox.
AGENTS_FLEET_TRANSPORT_BOUNCEoffLoopback/bounce mode for channel transport testing.

Trust & security

VariableDefaultDescription
AGENTS_FLEET_MCP_TRUST_PROJECToffMirror of --trust-project-mcp (1 loads project MCP sources).
AGENTS_FLEET_TRUST_PROJECT_WORKFLOWSon0 disables project-tier workflow command synthesis.
AGENTS_FLEET_TRUST_PROJECT_GATESoff1 loads project-tier validation gates (PR-6).
AGENTS_FLEET_TRUST_PROJECT_INTAKEoff1 loads project-tier intake adapters (PR-7).
AGENTS_FLEET_TRUST_PROJECT_SKILLSon0 skips project-tier roles/skills/crews (#487).
AGENTS_FLEET_INBOX_TRUST_ALLoffMirror of --inbox-trust-all.
AGENTS_FLEET_YOLO_LEGACYoffRe-enable legacy full --yolo bypass semantics.

Watchdog & stall recovery

See the coordinator stall ladder (T1–T4) for the full design.

VariableDefaultDescription
AGENTS_FLEET_WATCHDOG_DISABLEDoff1 turns off ALL watchdog tiers (interval never starts).
AGENTS_FLEET_AUTO_ABORT_DISABLEDoff1 disables T2 auto-abort + T1.5 zombie probe; T1 warn still fires.
AGENTS_FLEET_AUTO_ABORT_THRESHOLD_MS2400000 (40 min)T2 auto-abort threshold for a wedged coordinator.
AGENTS_FLEET_HANG_THRESHOLD_MS14400000 (4 h)T4 SessionSendQueue hang-detector threshold (mirror of --hang-threshold-ms; 0 disables).
AGENTS_FLEET_STALL_HEARTBEAT_MSinternalHeartbeat interval for the stall watchdog.
AGENTS_FLEET_WAKE_ON_COMPLETIONon0 disables the CompletionWaker (auto-wake on terminal agent events).
AGENTS_FLEET_AUTOPILOT_ESCALATIONon0 disables autopilot-stuck channel notify + in-app chip.
AGENTS_FLEET_HEARTBEAT_BRIDGED_EXEMPTon0 restores the legacy heartbeat kill for bridged sub-coordinators.
AGENTS_FLEET_HEARTBEAT_BRIDGED_STALL_MS2700000 (45 min)Non-destructive bridged-stall detection threshold.
AGENTS_FLEET_LOOP_MAX_NOOPSinternalMax consecutive no-progress loop iterations before a loop self-stops.
AGENTS_FLEET_LEAK_DETECTOR_DISABLEDoff1 disables the resource-leak detector.

Workflows & sub-coordinator bridge

VariableDefaultDescription
AGENTS_FLEET_WORKFLOW_SUBCOORD_BRIDGEon0 reverts bridged autopilots to the legacy LLM-driven workflow-runner path.
AGENTS_FLEET_WORKFLOW_WATCHDOG_DISABLEDoff1 disables the workflow-runner watchdog.
AGENTS_FLEET_WORKFLOW_WATCHDOG_THRESHOLD_MSper-workflowOverride the workflow-runner warn threshold.
AGENTS_FLEET_WORKFLOW_AUTO_ABORT_THRESHOLD_MSper-workflowOverride the workflow-runner auto-abort threshold.
AGENTS_FLEET_WORKFLOW_HANG_THRESHOLD_MSper-workflowOverride the workflow-runner hang threshold.
AGENTS_FLEET_WORKFLOW_COMPLETE_GRACE_MSinternalGrace period before a completed workflow is finalized.
AGENTS_FLEET_STAGE_GATE_REMINDER_MSinternalInterval for stage-gate reminder nudges.
AGENTS_FLEET_SUBGRAPH_MAX_DEPTH5Max nested-subgraph recursion depth for workflows.
AGENTS_FLEET_FOREACH_COMMANDoffEnable the experimental forEach stage command.
AGENTS_FLEET_LANGGRAPH_DISABLEDoff1 disables the LangGraph execution path.
AGENTS_FLEET_EVAL_SCHEDULER_DISABLEDoff1 disables the background evaluation scheduler.

Control plane & control socket

VariableDefaultDescription
AGENTS_FLEET_CONTROL_SOCKEToffMirror of --control-socket.
AGENTS_FLEET_CONTROL_SOCKET_PATHplatform defaultOverride the control-socket path.
AGENTS_FLEET_CONTROL_PLANE_HOMEHome dir for the control-plane singleton state.
AGENTS_FLEET_CONTROL_PLANE_TELEGRAM_TOKENTelegram token for the control-plane front-end.
AGENTS_FLEET_CONTROL_PLANE_AUTO_APPROVEoffAuto-approve control-plane taps.
AGENTS_FLEET_CONTROL_PLANE_CONFIRM_TAPSoffRequire confirmation for control-plane taps.
AGENTS_FLEET_CONTROL_PLANE_CONFIRM_TTL_MSinternalTTL for a pending tap confirmation.
AGENTS_FLEET_DATA_PLANE_BINresolvedOverride the data-plane launcher binary.
AGENTS_FLEET_DATA_PLANE_ARGS_PREFIXArgument prefix injected when spawning data-plane fleets.

Inbox

VariableDefaultDescription
AGENTS_FLEET_INBOX_POLL_MSinternal DEFAULT_POLL_MSInbox file-queue poll interval.
AGENTS_FLEET_INBOX_TRUST_ALLoffSee Trust & security above.

Restart, timeouts & misc

VariableDefaultDescription
AGENTS_FLEET_RESTART_DELAY_SECONDSinternalDelay before /restart relaunches the new window.
AGENTS_FLEET_RESTART_MAX_WAIT_SECONDSinternalMax wait for /restart handoff.
AGENTS_FLEET_SINGLE_SHOT_TIMEOUT_MSinternalTimeout for single-shot (-p/--prompt) runs.
AGENTS_FLEET_POST_QUERY_IDLE_MSinternalIdle window after a query completes before considering the turn done.
AGENTS_FLEET_POST_QUERY_TIMEOUT_MSinternalHard timeout for post-query settle.
AGENTS_FLEET_SEND_FSMoffEnable the experimental send finite-state-machine path.
AGENTS_FLEET_DELEGATION_NUDGEon0 disables the coordinator delegation nudge.
AGENTS_FLEET_DISABLE_CENTRAL_PROMPToff1 disables the centralized system-prompt assembly.
AGENTS_FLEET_DISABLE_TIERED_LIMITERoff1 collapses worker + coordinator pools into a single maxWorkers limiter (pre-3a behavior).
AGENTS_FLEET_INVALIDATION_CHECKoffEnable extra cache-invalidation checks.

Debugging

VariableDefaultDescription
AGENTS_FLEET_DEBUGoffRaw SDK event firehose to the fleet log.
AGENTS_FLEET_DEBUG_STDERRoffUnder Ink, auto-routes stderr debug to ~/.fleet/logs/ink-suppressed.log.
AGENTS_FLEET_DEBUG_SDK_TOOLSoffVerbose SDK tool-call tracing.
AGENTS_FLEET_VERBOSE_TOOL_ARGSoffLog per-tool-call arg key/size (mirror of --verbose).

Note: Variables marked internal read a hard-coded default from source when unset; consult the cited module (src/fleet/, src/coordinator/, src/skills/) for the exact numeric value, which may change between releases.