Skip to content

abtreeBehaviour trees for AI agents

Define agent workflows as YAML trees. The runtime hands the agent one step at a time, verifies the result, and persists the cursor β€” so workflows stay reproducible no matter how big they get.

What is abtree? ​

Modern LLMs follow Markdown instructions remarkably well β€” until workflows grow. Then two things go wrong:

  1. Instruction fatigue. A long system prompt loses focus. Agents skim, skip steps, hallucinate fields.
  2. Non-determinism. Decisions left to the model produce different paths on every run.

abtree borrows the structural reliability of game AI and robotics β€” behaviour trees β€” and adapts them for agents. You define the workflow as a tree of small, focused steps. The runtime hands the agent one step at a time, evaluates the result against an explicit invariant, and persists the cursor.

The agent stays focused. The path stays predictable. The state survives.

Get started in five minutes β†’

MIT licensed