Quickstart: your first agent
Prerequisites: the Installation steps, done in a my-agents folder with its virtual environment active.
1. Scaffold the project
abt init
Run it once in my-agents. It writes an Anthropic starter (the default provider) using the basic template, a two-agent project in which reviewer delegates to analyst:
abt.yaml: project rules, such as paths.profiles.yaml: the model and the API-key lookup. It is gitignored.agents/analyst.mdandagents/reviewer.md: two agents.reviewerasksanalystfor the key facts.prompts/review_task.md: a sample prompt forreviewer.tests/analyst.yamlandtests/reviewer.yaml: test suites.
Export the API key, then compile:
export ANTHROPIC_API_KEY=...
abt compile
Manifest ready (2 agents).
Compiled 2 agent(s).
abt compile reads every file in the project and checks that names, references and schemas line up. It writes the result to target/manifest.json, and every other command works from that file. Compile makes no model call, so it runs without the key and costs nothing.
That is the point of the step. Rename agents/analyst.md and compile stops right away, before a single token is spent:
ERROR: Agent 'reviewer' delegates to unknown agent 'analyst'
The key is needed by abt run. For other providers, see Installation. The Hello World tutorial walks through the same starter file by file.
2. Run the agents
These commands call the model, so they need the key from step 1 and use tokens. With a placeholder key they stop with one ERROR: Agent invocation failed: Error code: 401 ... invalid x-api-key line and a hint to the full traceback in logs/abt.log (or --debug). Set a real key first.
abt run -s analyst -p "Document: Revenue is up. No risks noted."
abt run -s reviewer -p "Review this draft: revenue grew 40% with no citations."
-p takes free text, or the name of a file in prompts/ (-p review_task loads prompts/review_task.md). abt run -s <agent> runs that agent plus its whole subagents: tree, so abt run -s reviewer also runs analyst.
3. Read the agents
agents/analyst.md:
---
description: Lists the key facts in a document.
---
You are the analyst. Read the user's document and list its key facts as short bullet points.
agents/reviewer.md:
---
description: Reviews a document, asking the analyst for its key facts first.
subagents:
- analyst
---
You are the reviewer. Ask the `analyst` for the key facts in the document, then give a
one-paragraph verdict: is it clear, and does it back up its claims?
The keys that matter first:
descriptiontells other agents when to call this one.subagents:lists the agents this one may call as tools.
The text after the frontmatter is the system prompt. Output schemas, tools, few-shots, transformers and middleware are more frontmatter, shown in the intermediate template.
4. Test the agents
abt test runs every suite in tests/. Suites are YAML. Each test sends its prompt to the agent and checks the reply:
# tests/analyst.yaml
agents:
- agent: analyst
tests:
- name: lists_facts
prompt: "Document: Revenue is up. No risks noted."
says: [lists the key facts as short bullet points]
contains, matches, json_schema and python checks run locally. Each says line is answered yes or no by an LLM judge, so it costs a model call.
abt test --dry-run # list the cases that would run; no LLM calls
abt test -s analyst # run one agent's suite
abt test # run every suite
abt doctor # static checks on the agents; --deep adds an LLM prompt review
abt test --dry-run prints the plan and calls nothing:
● Test suites
✓ analyst cases=1
· lists_facts checks: 1x says prompt_chars=40
preview: Document: Revenue is up. No risks noted.
✓ reviewer cases=1
· gives_a_verdict checks: 1x says prompt_chars=54
preview: Review this text: 'Revenue grew 40%, no source given.'
────────────────────────────────────────────────────────
No LLM calls or test execution performed.
On the starter, abt doctor reports no findings and exits 0. It is advisory by default; pass --fail-on warning to make it fail a CI job.
See Testing for every check type.
5. Run a workflow
abt run runs one agent on its own. A workflow connects agents into a graph. A source fetches data before an agent runs, and an exposure delivers the result afterward, such as a Slack reply. Create the workflows/ folder and declare a workflow in it:
mkdir -p workflows
A workflow is a list of edges. Each edge [A, B] means that B runs after A, and START and END mark where the run begins and finishes. A prompt node is a file in prompts/ that is rendered into the text the next agent receives. Save this as workflows/review_solo.yaml:
# workflows/review_solo.yaml
name: review_solo
edges:
- [START, review_task] # the prompt in prompts/review_task.md
- [review_task, reviewer]
- [reviewer, END]
abt graph review_solo # show the topology without running it
abt dispatch -s review_solo # run it for real
This workflow has no sources or exposures, so dispatching it only runs the agents. abt dispatch -p takes literal text and does not look up prompts/ files, so name the prompt as a node, as above.
steps: [analyst, reviewer] is shorthand for a plain chain, START → analyst → reviewer → END. Use edges:, as here, when you need a prompt node or a source.
See Workflows for branching, cycles and multi-agent topologies.
6. See the project
abt docs generate
abt docs serve # add --port XXXX if 8080 is in use
abt docs serve keeps running in this terminal. Open http://localhost:8080 in your browser. The Lineage tab draws review_solo, and reviewer delegating to analyst.

The screenshot comes from a larger project, the intermediate template plus a workflow, where the reviewer's output also passes three transformers: validate_json extracts the JSON, redact_pii redacts emails and phone numbers, and quality_gate is an LLM check that warns, without blocking, when the output does not look structured.
Click a node to see its details. The chat panel sends each message to a model through your profile, so it needs the key from step 1. Its conversations stay in your browser.
7. Let abt write the files (experimental)
abt create -p "<what you want>" generates agents, workflow wiring and supporting files from a prompt. abt modify -p "<change>" edits existing files the same way. A failed attempt leaves your project as it was.
abt create -p "read a Slack thread and post a one-paragraph summary to a Confluence page" --max-attempts 10
abt modify -p "make analyst return only facts and a summary"
See the CLI reference for the flags.
Next steps
| Topic | Link |
|---|---|
| A fuller project: schemas, tools, transformers, middleware | The intermediate template |
| Mental model | Key concepts |
| Agent reference | Agents |
| Sources, exposures, retrievers, transformers, triggers | Sources · Exposures · Triggers |
| End-to-end I/O | Your first workflow |
| Full CLI | CLI reference |