Terminal editor (TUI)
Debug and simulate behavior trees in the terminal: step through each leaf, then build and edit trees without leaving the keyboard.
beetree builder opens a full-screen editor for a .beetree.yaml file. Its best feature is debugging: press r and the tree pauses at every leaf so you decide whether it succeeds, fails or keeps running, then watch how each composite resolves.
beetree builder examples/full-enemy-ai.beetree.yaml
Step through a simulation
Select the tree and press r. The walker visits leaves in tree order and stops at each one. Press S, F or R to answer Success, Failure or Running. Sequences, selectors, parallels and decorators resolve from your answers, so you can reproduce a bug path by hand. Esc stops the run. When the tree finishes, the final status is shown and q returns to editing.

Run the whole tree
Press R to run the whole tree at once, unsaved edits included, with the engine beetree simulate uses. A full-screen page shows the final status and the trace: every node entered, every leaf run and the status each node returned. Every leaf answers Success, so this shows the path the tree takes when nothing goes wrong; use r to choose each answer yourself. The arrow keys scroll a long trace, and Esc or q closes the page. A tree that does not validate is not run: the page lists what to fix instead. Subtree references are read from the files next to the tree being edited.
From the shell, beetree simulate <file> prints the same trace, and --override name=FAILURE forces a node’s result. See the CLI reference.
Build and edit
Move with the arrow keys, press a to add a child, e to edit, m to move, u to undo. Press v to validate and s to save. Press ? any time for the in-app help.

Key bindings
| Mode | Key | Action |
|---|---|---|
| Navigate | a | Add a child node |
| Navigate | e | Edit the selected node |
| Navigate | d | Delete the selected node |
| Navigate | c | Duplicate the selected node |
| Navigate | m | Start a move, then press m on the target to place it |
| Navigate | p | Edit node parameters |
| Navigate | b | Edit blackboard variables |
| Navigate | u | Undo the last change |
| Navigate | U | Redo |
| Navigate | r | Run the step-through simulation |
| Navigate | R | Run the whole tree and show the final status and trace |
| Navigate | v | Validate the tree |
| Navigate | / | Search nodes by name |
| Navigate | s | Save |
| Navigate | S | Save as a new path |
| Navigate | q | Quit (prompts if unsaved) |
| Navigate | ? | Show the help overlay |
| Navigate | Up/Down | Move the selection |
| Navigate | Left/Right | Collapse or expand the node |
| Navigate | Enter | Collapse or expand the node |
| Move | Up/Down | Choose the target parent |
| Move | m | Place the node under the target |
| Move | Esc | Cancel the move |
| Simulate | S | Resolve the paused leaf as Success |
| Simulate | F | Resolve the paused leaf as Failure |
| Simulate | R | Resolve the paused leaf as Running |
| Simulate | Esc | Stop the simulation |
| Simulate | q | Leave the finished simulation |
| Evaluate | Up/Down | Scroll the trace of a full evaluation |
| Evaluate | Esc | Close the full evaluation |
| Evaluate | q | Close the full evaluation |