Config precedence
Authoritative merge order for guardrails (config-only) and invocation flags (CLI-eligible).
One order for every setting that has more than one source: CLI > env > abt.yaml > default, except the exceptions below.
Invocation flags (flags:), run settings (ABT_SUBAGENTS_MODE, ABT_SUBAGENTS_TIMEOUT_SECONDS,
ABT_WORKFLOW_TAGS_INHERIT),
checkpoints (--checkpoint-backend > ABT_CHECKPOINT_* > agent checkpoint: > config.checkpoint; with none set, abt chat uses sqlite and every other command uses memory)
and handler fail-fast (--fail-on-handler-error > ABT_HANDLERS_FAIL_FAST > config.handlers.fail_fast)
all follow it. An env var only counts when it is set.
Exceptions
For these six env vars, abt.yaml wins over the env var. The env var is a default that applies only when abt.yaml leaves the value unset: ABT_CONFIRMATION_APPROVAL_TIMEOUT, ABT_CONFIRMATION_ON_APPROVAL_TIMEOUT, ABT_CONFIRMATION_ON_MISSING_GATE, ABT_TOOL_EXECUTION_TIMEOUT, ABT_CONTEXT_MODE and ABT_TOOL_RESULT_CACHE_ENABLED.
Guardrails (config-only — no CLI)
Applies to: middleware: (run_timeout, model_call_limit, token_budget, loop_detection) and recursion_limit.
Guardrails are set exclusively via middleware: — there are no standalone flat fields (graceful_timeout_seconds, hard_timeout_seconds, max_model_calls, max_total_tokens) and no env-var overrides for them (the one exception is token_budget's scope:: the agent's own, then the workflow's token_budget_scope:, then abt.yaml, then ABT_TOKEN_BUDGET_SCOPE, then run). Inheritance for middleware::
| Invocation | Precedence (most specific → least) |
|---|---|
abt dispatch -s <workflow> (per agent) |
agent frontmatter middleware: → abt.yaml agents.<agent>.config.middleware → abt.yaml config.middleware → framework defaults |
abt run (agent only) |
agent frontmatter middleware: → abt.yaml agents.<agent>.config.middleware → abt.yaml config.middleware → framework defaults |
recursion_limit is a plain config: field, not a middleware: entry. It resolves as: agent frontmatter recursion_limit → agents.<name>.config.recursion_limit → abt.yaml config.recursion_limit → 150. A subagents: dependency can set its own limit; see Subagents. See Configuration — LangGraph recursion_limit.
agents.<name>.config is keyed by the dispatch-time agent name.
Deep-merge keys (nested keys merge): loop_detection.detectors, collapse, compaction, source config:.
Set guardrails in agent frontmatter middleware: or abt.yaml config.middleware: — not via CLI flags. The one env exception is ABT_TOKEN_BUDGET_SCOPE (for token_budget).
Inspect resolved values:
abt config show --agent investigator
abt config show --agent investigator --middleware
When the agent lists individual package specs (databricks__databricks_run_get, git__git_log, gh__gh_run_view, …), output also includes Package tooling: lines — resolved tools, blocked write specs, and merged config.packages.*.
Package tooling (config.packages)
Applies when agents reference installed packages by shorthand (databricks__databricks_run_get, git__git_log, gh__gh_pr_list, …). Bare package tool names (clone, databricks_run_get) are invalid — use provider__tool specs only (abt compile rejects bare names).
Omit config.packages when defaults are acceptable — installed packages from abt_packages.yml are enabled read-only without any abt.yaml entry.
| Layer | Precedence (most specific → least) |
|---|---|
| Agent frontmatter tool spec | Explicit individual tool wins |
config.packages.<id>.components.<component>.* |
Component enabled, allow_writes |
config.packages.<id>.* |
Package enabled, allow_writes, disabled_components, limits |
| Hardcoded | allow_writes: false; all manifest components enabled unless opted out |
Write gating: an explicit write spec (git__git_push) that is blocked fails abt compile; abt config show lists it under package_tools.blocked_writes. Package wildcards (git__*, databricks__*) silently omit blocked write tools instead of failing. Allowed tools are included in the resolved schema; runtime package blocklists (for example destructive gh commands) remain a separate last-resort layer.
Catalog introspection: abt docs package <shorthand>. Full reference: Packages.
Invocation flags (flags:)
Precedence: CLI → env → abt.yaml flags: → default
The flags: registry holds: stateless, artifact_dir, lazy_context, live_compile, partial_parse, fail_fast, strict_tools, sanitize_mcp_schemas, offload_binary_content and debug.
Per-invocation options that are not flags: keys: --skip-sources, --skip-retrievers, --skip-transformers, --skip-exposures and --expose (abt dispatch only); --mock-sources and --mock-source (abt run, abt chat and abt dispatch); --vars, --target and --workspace.
See Project flags for the flags: registry.