Bonsai is a visual bug-fixing & software-engineering environment inside VS Code.
Start from the active file, then apply activities powered by an LLM to generate multiple options and explore alternative branches:
Fix the problem (mandatory first step, with or without a short description)
Generate tests
Refactor
Handle exceptions
Fill color = last activity, leaf borders = similarity (blue→red vs. the selected leaf), right-click → Trim to prune subtrees, and Export/Import sessions as JSON.
Installation
Option A — Marketplace (when available)
VS Code ➜ Extensions view
Search “Bonsai” ➜ Install
Option B — VSIX file
VS Code ➜ Extensions (⋯) ➜ Install from VSIX…
Select your bonsai-*.vsix
Option C — From source (this repo)
# In the repo folder
npm install
npm run compile
code .
# Launch dev host
# VS Code: press F5