# Sollimann/bonsai

Rust implementation of behavior trees for deterministic AI (now with Python bindings)

Repository: https://github.com/Sollimann/bonsai
Canonical: https://ross.abutalabs.com/products/sollimann-bonsai
Language: Rust
License: MIT
License Family: permissive
Topics: autonomous-robots, behavior-tree, bevy, concurrency, finite-state-machine, game, game-development, navigation, piston, robotics, ros, ros2, rust, fsm, unreal-engine, ai, deterministic
Last push: 2026-08-17T20:07:40+00:00

## Health v2 (maintenance only)
Score: 89/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 72, longevity 100
- inputs: {"age_days": 1563, "days_push": 16, "days_rel": 111, "gap_med": 74.5, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1041, forks 40 (observed 2026-08-28T04:03:20.652407+00:00)

## What it is
Bonsai is a Rust implementation of behavior trees for building deterministic AI logic, with Python bindings available on PyPI. It targets robotics (ROS/ROS2), game development (Bevy, Unreal), and other reactive AI systems.

## Use cases
- implement behavior trees for game AI in Rust
- build deterministic robot decision logic with ROS2
- replace finite state machines with behavior trees
- use behavior trees from Python
- create modular reactive AI behaviors for autonomous robots

## When to choose
- you need deterministic, modular AI decision-making in Rust or Python
- you're building robotics or game AI where behavior trees fit better than FSMs
- you want a lightweight MIT-licensed BT library with crates.io and PyPI packages

## When to avoid
- you need a full game engine or robotics middleware rather than a behavior tree library
- you require machine-learning-based AI rather than rule-based behavior logic
- you need mature tooling like visual BT editors bundled with the library

## Facets
- artifact type: library
- maturity: active
- function: game-engine, simulation, concurrency, state-management
- domain: robotics, artificial-intelligence, simulation
- platform: rust, python, cross-platform
- tags: behavior-tree, finite-state-machine, ros2, bevy, unreal-engine, deterministic-ai, python-bindings, game-development

## Member repositories
- Sollimann/bonsai (main) score 89

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:20.652407+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:02:52.637830+00:00, confidence not recorded.
  - readme: https://github.com/Sollimann/bonsai (fetched 2026-08-28T04:03:20.652407+00:00, sha d79ad322bf0b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
