Resources
This page is meant to be the most useful list of behavior tree reading on the web, and it keeps growing. Every entry is read and scored before it is added: authority, accuracy and depth, relevance to games and robotics, longevity, free access, originality and safety. Only sources that score well on all of them make the list.
Looking for credits for the art and text this site is built on? See References and credits.
Books
- Behavior Trees in Robotics and AI: An Introduction, Michele Colledanchise and Petter Ögren (2018). The standard introduction: node types, formal semantics, and a comparison with state machines and decision trees. Free PDF on arXiv.
Chapters
- Behavior Selection Algorithms: An Overview (2014). Game AI Pro chapter 4. Compares ways to choose what an agent does next, including behavior trees, and when each fits.
- The Behavior Tree Starter Kit (2014). Game AI Pro chapter 6. A practical walk through building a behavior tree runtime from scratch.
- Real-World Behavior Trees in Script (2014). Game AI Pro chapter 7. Authoring behavior trees in a scripting language, with lessons from shipped games.
- Simulating Behavior Trees: A Behavior Tree / Planner Hybrid Approach (2014). Game AI Pro chapter 8. Combines behavior trees with planning by simulating tree execution ahead of time.
- Building Utility Decisions into Your Existing Behavior Tree (2014). Game AI Pro chapter 10. Adds utility scoring to a behavior tree without throwing the tree away.
- Building a Risk-Free Environment to Enhance Prototyping: Hinted-Execution Behavior Trees (2015). Game AI Pro 2 chapter 10. Prototyping behavior safely with hinted execution.
- Overcoming Pitfalls in Behavior Tree Design (2017). Game AI Pro 3 chapter 9. Common design mistakes in behavior trees and how to avoid them.
- Template Tricks for Data-Driven Behavior Trees (2021). Game AI Pro Online Edition 2021, chapter 13. Data-driven trees and template techniques for reuse.
- Book Excerpt: Game AI Uncovered, Volume One, Paul Roberts and Sarat Rallabandi (2024). Covers behavior tree basics (composites, tasks, decorators, shared blackboards) through a strategy-game patrol example, then argues that large trees get hard to debug and are not reactive. Proposes Reactive Behaviour Trees: a long-term stack for default behavior and a reactive stack of small trees pushed and popped by a monitor. Read it for a practical answer to the question of where interrupts belong.
Articles
- Behavior tree (Grokipedia). A broad overview of behavior trees and their history in games and robotics; good for orientation before the book.
- Behavior trees for AI: How they work, Chris Simpson (2014). A long practical walkthrough of node types, return statuses and shared context, with worked examples including item acquisition from Project Zomboid and stack-based utility nodes.
- Handling Complexity in the Halo 2 AI, Damian Isla (2005). The GDC 2005 write-up that popularised behavior trees in games. Describes Halo 2's behavior DAG and how impulses, stimulus behaviors, tagging and orders keep a large AI manageable, with concrete examples such as entering a vehicle or fleeing when a leader dies.
- Are Behavior Trees a Thing of the Past?, Jakob Rasmussen (2016). A critique of behavior trees from the utility AI side. It works one shooter example two ways, where the tree grows many branches and the utility version needs one table of about ten scorers, and it notes where utility needs tuning. The author sells a utility toolkit, so read it as an argued position, and as a good prompt for when to add scoring to a selector.
- Combat Evolved: The Encounter Design of Halo 3, Tommy Thompson (2018). How Halo 3 moved from scripted goals to a declarative task tree that squads claim by priority, with shared squad knowledge. Useful background for driving several agents from one tree; high level, no code.
- Using Behavior Trees to Create Retro Boss AI, Cody Olivier (2015). A shipped-game postmortem on boss attacks in a top-down shooter. A hand-built attack branch with timer decorators was hard to change and test, so the author replaced it with a random selector over self-contained attack leaves that fail unless their conditions hold. Small, concrete and reusable across bosses; a good example of choosing a node type to keep a tree flat and testable.
- BehaviorTree.CPP: Asynchronous Actions, BehaviorTree.CPP documentation (Auryn Robotics). Explains why a tick that blocks freezes the whole tree, and how to write nodes that return RUNNING and stop quickly when halted. Walks through a stateful sleep node with start, running and halted callbacks, shows the blocking and thread-based versions that go wrong, and says to run long work in another process. The tree engine is single threaded, so the same rules apply to any engine you export to.
- BehaviorTree.CPP: Subtrees and port remapping, Davide Faconti and the BehaviorTree.CPP contributors. Tutorial 6 of the BehaviorTree.CPP docs. A subtree looks like one leaf to its parent but gets its own blackboard, so ports are remapped explicitly in the tree file with no change to node code. A worked MainTree and MoveRobot example shows the pattern for keeping large trees free of name clashes.
- BehaviorTree.CPP: Sequence versus ReactiveSequence with async actions, Davide Faconti and the BehaviorTree.CPP contributors. Tutorial 4 of the BehaviorTree.CPP docs. Shows why a plain Sequence checks a condition once while a ReactiveSequence re-checks it every tick and halts a running action when it fails, using a battery check guarding a move action, with the expected tick output.
Papers
- Handling Concurrency in Behavior Trees, Michele Colledanchise and Lorenzo Natale (2021). Shows why the parallel node gives unpredictable results when children act on shared resources, and introduces two new node types that make concurrent behavior predictable. Backed by simulation experiments, a real-robot test and open-source code.
- A Survey of Behavior Trees in Robotics and AI, Matteo Iovino, Edvards Scukins, Jonathan Styrud, Petter Ögren and Christian Smith (2020). Surveys behavior tree research by method, application area and contribution, from game AI to manipulation and drones, and ends with open research challenges. A good map of the field after the introductory book.
- Verifying Safety of Behaviour Trees in Event-B, Matteo Tadiello and Elena Troubitsyna (2022). Gives a formal specification of behavior trees and a method for proving invariants of an existing tree, so safety requirements can be checked before a robot runs it. Aimed at keeping the formalization simple enough to test specific tree instances.
- Automatic difficulty management and testing in games using a framework based on behavior trees and genetic algorithms, Ciprian Paduraru and Miruna Paduraru (2019). An ICECCS 2019 paper that evolves populations of behavior trees with a genetic algorithm to produce agents at different difficulty levels and to surface defects and logic exploits automatically. Uses a tank-game example with selector, sequence, parallel and decorator nodes. Read it for a concrete way to test a game with generated trees.
- Procedural Content Generation using Behavior Trees (PCGBT), Anurag Sarkar and Seth Cooper (2021). An EXAG 2021 paper that uses behavior trees to build level generators instead of agents: small subtrees generate parts of a level and compose into larger trees. Demonstrated on Super Mario Bros., Mega Man, Metroid and dungeon layouts. A useful look at the reuse and composition strengths of trees outside NPC control.
- Comparison between Behavior Trees and Finite State Machines, Matteo Iovino, Julian Forster, Pietro Falco, Jen Jen Chung, Roland Siegwart and Christian Smith (2024). A preprint that compares behavior trees and finite state machines as robot control policies on a mobile manipulation task, in simulation and on a real robot. It proposes metrics for reactivity, modularity, readability and design, and finds the behavior is the same either way but a tree gets easier to maintain than a state machine as the task grows. Read it for evidence behind the usual case for trees.
- On the Implementation of Behavior Trees in Robotics, Michele Colledanchise and Lorenzo Natale (2021). A paper on what changes when behavior trees leave the whiteboard and run on real robots. It compares how open-source libraries handle asynchronous actions, parameter passing and memory nodes, and shows where each fits in a robot software architecture, with a use case. Read it before choosing or writing a runtime, since the library differences decide how your tree behaves.
- A principled analysis of Behavior Trees and their generalisations, Oliver Biggar, Mohammad Zamani and Iman Shames (2020). A formal look at why behavior trees work, built on two principles: reactiveness and modularity. It tests them against hard use cases from the literature and proposes generalised trees (k-BTs) that handle those cases while keeping the principles. Dense in places, but it explains why a tree stays easy to compose and reuse as it grows.
- BTGenBot: Behavior Tree Generation for Robotic Tasks with Lightweight LLMs, Riccardo Andrea Izzo, Gianluca Bardaro and Matteo Matteucci (2024). Fine-tunes language models of up to 7 billion parameters to write behavior trees from a task description, using a dataset built from existing trees. It checks the output with syntax checks, a validator, a simulator and a real robot across nine tasks. Useful for seeing what machine-written trees get wrong and how validation catches it.
- LLM-as-BT-Planner: Leveraging LLMs for Behavior Tree Generation in Robot Task Planning, Jicong Ao, Fan Wu, Yansong Wu, Abdalla Swikir and Sami Haddadin (2024). Prompts language models to produce long-horizon assembly plans directly in behavior tree format, comparing four in-context learning methods and fine-tuned smaller models in simulation and on a real robot. It shows which prompting choices raise the success rate of generated trees. Accepted at ICRA 2025.
- Learning of Behavior Trees for Autonomous Agents, Michele Colledanchise, Ramviyas Parasuraman and Petter Ögren (2015). Evolves behavior trees with genetic programming instead of writing them by hand, and tests the result on the open-source Mario AI benchmark at several difficulty settings. It argues for trees over finite state machines because they stay modular and reactive as they grow. Published in IEEE Transactions on Games in 2019; read it to see what an automatically found tree looks like and where hand authoring still wins.
- Active Inference and Behavior Trees for Reactive Action Planning and Execution in Robotics, Corrado Pezzato, Carlos Hernandez Corbato, Stefan Bonhof and Martijn Wisse (2022). Adds a leaf node that names a desired state instead of an action, and lets active inference pick the actions to reach it at run time. The tree keeps the nominal plan while the leaf reacts to surprises, and the authors report far fewer hand-written nodes than a classical tree, tested in simulation and on two mobile manipulators in a retail setting. Published in IEEE Transactions on Robotics; read it for a rigorous take on goal-driven leaves and how they cut tree size.
- On the programming effort required to generate Behavior Trees and Finite State Machines for robotic applications, Matteo Iovino, Julian Forster, Pietro Falco, Jen Jen Chung, Roland Siegwart and Christian Smith (2022). Compares a backward-chained behavior tree with a fault-tolerant state machine for a mobile manipulator fetching items in simulation, and measures how much code must change to extend each. A practical case for the modularity argument: adding behavior to a tree touches less than adding it to a state machine. Submitted to ICRA 2023; free on arXiv.
- Formalizing Stateful Behavior Trees, Serena S. Serbinowska, Preston Robinette, Gabor Karsai and Taylor T. Johnson (2024). Formalizes behavior trees that keep variables on a blackboard, and shows they are as powerful as Turing machines with unbounded integers but only finite state automata when variable types are finite. Presents a DSL and the BehaVerify tool, which model-checks temporal logic properties of a tree. Useful if you want to prove a tree cannot reach a bad state. Published at FMAS 2024.
- Continuous-Time Behavior Trees as Discontinuous Dynamical Systems, Christopher Iliffe Sprague and Petter Ogren (2021). Gives the first continuous-time formulation of behavior trees, treating them as discontinuous dynamical systems, and derives sufficient conditions for a tree to converge to a desired region of the state space. Control-theory heavy, aimed at robotics, but it shows why a tree that switches between policies can still be guaranteed to reach its goal.
- Execution Semantics of Behavior Trees in Robotic Applications, Enrico Ghiorzi, Christian Henkel, Matteo Palmas, Michaela Klauck and Armando Tacchella (2024). Notes that subtle differences between implementations can make the same behavior tree act differently, and proposes an abstract data type that formalizes tree structure and execution. Useful background for why an engine-agnostic tree format must pin down tick, running and halting semantics.
- Behavior Trees and State Machines in Robotics Applications, Razan Ghzouli, Thorsten Berger, Einar Broch Johnsen, Andrzej Wasowski and Swaib Dragule (2023). Compares behavior tree and state machine languages by analysing several DSLs in depth and mining open-source robotics projects for how each is used. The authors find the two share many language concepts and reuse patterns, and that behavior tree use is growing quickly; they release the extracted models as a dataset. Published in IEEE Transactions on Software Engineering; read it for evidence-based grounding when choosing between the two.
Talks
- Extending Behavior Trees, Ben Weber (2017). A write-up of a GDC 2017 AI Summit talk. Covers extra node types such as spawn goal and success test, authoring patterns such as daemon behaviors, message passing and behavior locking, and ways to connect a tree to external planners, with examples from a StarCraft bot.
- AI Arborist: Proper Cultivation and Care for Your Behavior Trees, Bobby Anguelov, Mika Vehkala and Ben Weber (2017). A GDC 2017 talk of guidelines from working AI developers on keeping behavior trees healthy: common pitfalls, debugging practice and design habits. Free to watch on the official GDC YouTube channel.
Tools
- BehaviorTree.CPP: Behavior Tree basics. Official documentation for the C++ library used widely in ROS 2. The basics page explains ticks, return states, Sequence, Fallback and Decorator nodes with a runnable fetch-me-a-beer example; a good bridge from theory to a real engine.
- LimboAI: Creating behavior trees. Documentation for the Godot behavior tree plugin: adding a BTPlayer, authoring a tree in the editor and debugging a live tree with the blackboard inspector. Useful for Godot users exporting from BeeTreeCraft.
- Behavior Tree in Unreal Engine: Overview. Epic's official overview of Unreal's event-driven behavior trees. Explains why conditions live in decorators, how Services refresh blackboard data, and how Simple Parallel and Observer Aborts replace general parallel nodes, with a cat-and-mouse example. Essential for anyone exporting to Unreal.
- Nav2 Behavior Trees. The Nav2 documentation page on how a production robot navigation stack uses behavior trees to orchestrate independent planner, controller and recovery servers. Shows a minimal replanning tree in XML and lists the provided trees, from point-to-point navigation to following a dynamic point. A short overview with links to a node-by-node walkthrough of the default tree.