Skip to content

abt.yaml schema (reference)

abt.yaml is one of several project-root files, alongside profiles.yaml (model/provider credentials) and the workflows/ directory (multi-agent order and branching — see workflows/ below). abt.yaml is optional; empty/absent file is valid. Common top-level keys:

Key Purpose
profile Name of the active profile block in profiles.yaml
paths Directory names for agents, prompts, tools, tests, sources, exposures, etc. — see Configuration
vars dbt-style template defaults ({{ var('x') }})
config Project tuning: MCP, doctor, testing judge, recursion limits, middleware, checkpoint defaults, …
sources Deep-merge overrides for named sources/*.yaml entries
agents Per-agent guardrail overrides under agents.<name>.config
approvals Project-level external approvals settings: enabled, default resource, on_unresolved, bypass, and resources:
publish Targets for abt publish (push the compiled manifest to S3/HTTP/local for Loom)
flags Scalar invocation-mode defaults (CLI/env/yaml precedence) — see Project flags

Top-level keys that are not in this table are ignored without a warning, so a misspelled key or a misplaced one (for example a top-level checkpoint:; checkpoint defaults live under config:) has no effect. Unknown keys inside config: and in workflow files are rejected at compile time, and unknown flags: keys produce a warning. After editing abt.yaml, confirm the value was read with abt config show or abt config resolve.

Authoritative detail (every path key and config field): Configuration.

profile

Selects which block to load from profiles.yaml. Omit it and the loader picks the alphabetically first profile key, skipping names that start with _.

profile: prod

paths

Overrides directories where components are discovered (agents, sources, exposures, retrievers, transformers, triggers, prompts, tools, contracts, tests, …), all relative to the project root by default.

paths:
  agents: src/agents
  tests: src/tests

See Configuration — paths for the full key list and defaults.

vars

Top-level dictionary of default values for Jinja {{ var('name') }} in agents, prompts, and context files (dbt-style). CLI --vars merges over these for a single invocation.

vars:
  environment: production
  slack_channel_default: C0123456789

config

Project-wide tuning: guardrail middleware, recursion limits, MCP tuning, doctor/testing judge model, context_mode, and more.

config:
  recursion_limit: 600
  default_subagent_recursion_limit: 600
  middleware:
    - run_timeout:
        graceful_timeout_seconds: 120
    - model_call_limit:
        max_model_calls: 80

Compile rejects a recursion_limit (and a subagent limit) too low for model_call_limit: each model call costs several LangGraph steps, so the minimum is max_model_calls × steps per call + 10. The steps depend on the middleware stack and on whether the agent has tools; abt compile reports the exact minimum. See Configuration — LangGraph recursion_limit.

See Configuration — config for the full field list.

sources

Per-source tuning, deep-merged into each entry discovered from sources/**/*.yaml at compile time. Only the nested config: object is merged; names must match an existing source's name:.

sources:
  slack_thread:
    config:
      max_messages: 120

See Sources.

agents

Per-agent guardrail overrides under agents.<name>.config, keyed by agent name directly (same shape as the global config: block).

agents:
  close-ticket:
    config:
      middleware:
        - model_call_limit:
            max_model_calls: 30

Inspect resolved values with abt config show --agent <name>. See Config precedence.

workflows/ directory

Multi-agent order and branching — one file per workflow under a project's workflows/ directory (default location, overridable via abt.yaml's paths.workflows), scanned recursively — a sibling of agents/, sources/, exposures/, and triggers/, not a key inside abt.yaml. See Workflows for the full reference.

Each file's body is the workflow definition directly — no wrapping workflows:/<name>: keys. The workflow's name defaults to the filename stem (workflows/support_ticket.yaml → support_ticket); a top-level name: key overrides it. A fixed set of keys, extra: forbid:

# workflows/<name>.yaml
description: <string>              # optional
trigger: <triggers/*.yaml ref>      # optional, bare name only
max_iterations: <int>               # required if the graph has a cycle,
                                     # forbidden otherwise (E_WORKFLOW_BUDGET_UNUSED)
token_budget_scope: thread          # optional — run | thread; default token_budget scope for this workflow's agents
tags: [finance, tier-1]              # optional — merges into every node's own tags by default
steps: [a, b, c]                    # exactly one of steps:/edges:
# or
edges:
  - [START, a]                      # unconditional edge
  - from: a                         # conditional edge — when:/cases:/default:
    when: "{{ output.route }}"      # or conditions:/default:
    cases: { x: b, y: c }
    default: c

Render a workflow's topology (read-only, no LLM calls) with abt graph <workflow_name> --project-root <root>.

approvals (experimental)

Experimental

The approval gate is experimental; this block may change in a minor release.

Project-level out-of-band human-approval settings — a sibling of config:, not nested inside it.

approvals:
  enabled: true
  default: slack_hitl
  on_unresolved: raise   # raise | warn | disable
  resources:
    slack_hitl:
      type: slack
      credentials: slack
      config:
        channel_id: "C09XXXXXXX"

See External approvals for the full resource/provider reference.

publish

Targets for abt publish — pushes the compiled manifest to remote storage for cross-project consumption via Loom.

publish:
  version: null          # null = overwrite, "auto" = timestamp, "X.Y.Z" = semver
  targets:
    - type: s3
      config:
        bucket: <your-bucket>
        key: "{{ project_name }}/manifest.json"

See Publishing manifests.

flags

Scalar invocation-mode defaults (CLI/env/yaml precedence: CLI > env > flags: > default). Run guardrails belong under config:, not here.

flags:
  stateless: false
  lazy_context: false
  partial_parse: true

See Project flags.

config.checkpoint

Project-level default for persistent agent memory, nested under config: (a top-level checkpoint: key is not read). Any agent can override per-run via its own checkpoint: frontmatter field — read only from the dispatch entry agent, never cascaded from a subagents: delegate — and CLI flags / environment variables override both. See Checkpointing for the full reference (precedence, thread-id resolution, env vars, plugin backends).

config:
  checkpoint:
    backend: bedrock_agentcore   # one of: memory | sqlite | bedrock_agentcore | dynamodb | <plugin>
    config:
      memory_id: arn:aws:bedrock:us-east-1:123456789012:memory/my-memory
      actor_id: abt-prod
      region_name: us-east-1
Field Description
backend Backend name. Built-ins: memory (default, ephemeral), sqlite (requires [checkpoint-sqlite]), bedrock_agentcore (requires [checkpoint-bedrock]), dynamodb (requires [checkpoint-dynamodb]).
config Backend-specific kwargs (path for SQLite; memory_id / actor_id / region_name for Bedrock AgentCore; table_name / region_name for DynamoDB).
thread_id Optional explicit thread id (supports {{ var('…') }}).
primary_source Pin thread-id derivation to a single source name when the agent has multiple sources.