#8686th of 142 in Agent frameworks and SDKsFor science, health and research, robotics

behaviortree.cpp

C++17 library for building behavior trees for robots and game AI

Stars
4.3k
License
MIT
Last commit
Nov 2026
Last release
Nov 2026
Language
C++
Stars, last 29 weeks+350
22 Apr 2026: 3,945 stars29 Apr 2026: 3,966 stars6 May 2026: 3,979 stars13 May 2026: 3,991 stars20 May 2026: 4,000 stars27 May 2026: 4,013 stars3 Jun 2026: 4,028 stars10 Jun 2026: 4,039 stars17 Jun 2026: 4,053 stars24 Jun 2026: 4,066 stars1 Jul 2026: 4,078 stars8 Jul 2026: 4,085 stars15 Jul 2026: 4,099 stars22 Jul 2026: 4,110 stars29 Jul 2026: 4,124 stars5 Aug 2026: 4,139 stars12 Aug 2026: 4,151 stars19 Aug 2026: 4,160 stars26 Aug 2026: 4,168 stars2 Sept 2026: 4,175 stars9 Sept 2026: 4,188 stars16 Sept 2026: 4,200 stars23 Sept 2026: 4,212 stars30 Sept 2026: 4,221 stars7 Oct 2026: 4,234 stars14 Oct 2026: 4,246 stars21 Oct 2026: 4,259 stars28 Oct 2026: 4,276 stars4 Nov 2026: 4,283 stars11 Nov 2026: 4,295 stars

3,945 on 22 Apr 20264,295 on 11 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

BehaviorTree.CPP 4.9 is a C++17 library for defining behavior trees in XML and loading them at run time. Custom nodes can be linked statically or loaded as plugins. It targets robotics, with ROS2 builds through colcon, but also suits game AI or replacing finite state machines. It has no LLM features.

Who it is for: C++ robotics and game developers who need reactive behavior trees

Strengths

  • Asynchronous, non-blocking actions are first-class, with reactive concurrent execution
  • Tree structure lives in XML loaded at run time, not hard-coded in C++
  • Type-safe dataflow between nodes; custom nodes can be run-time plugins
  • Built-in logging and profiling to record, replay and analyze state transitions

Weaknesses

  • No LLM, model or tool-calling integration; fits the agent category only loosely
  • Requires a C++17 compiler; Conan builds need CMake 3.23 or newer
  • Graphical editing needs the separate Groot2 tool
  • Commercial support is only by contacting the primary author

What it needs

  • no GPU
  • Needs C++17 compiler, CMake, Conan, ZeroMQ, SQLite

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe.

Also in Agent frameworks and SDKs

See all 142
Also in Agent frameworks and SDKs
RankProjectScore
1ppt-masterAgent skill that turns documents into natively editable PowerPoint decks Live demo ↗ (opens in a new tab)76.2k stars+15,031 (+25%) in 30 daysMIT96 out of 100
2openai-agents-pythonPython SDK for multi-agent workflows with handoffs, guardrails and tracing30.6k stars+692 (+2.3%) in 30 daysMIT92 out of 100
3mastraTypeScript framework for building AI agents, workflows and MCP servers29.5k stars+778 (+2.7%) in 30 dayscustom license92 out of 100
#4browser-usePython library that lets an LLM agent control a web browser Live demo ↗ (opens in a new tab)120.8k stars+3,334 (+2.8%) in 30 daysMIT90 out of 100
#5copilotkitReact and Angular SDK for adding agent chat and generative UI to apps38.7k stars+757 (+2.0%) in 30 daysMIT90 out of 100