FAQ
What is Bonsai?
Section titled “What is Bonsai?”Bonsai is a CLI tool that scaffolds structured agent workspaces for Claude Code. It generates instruction files — identity, memory, protocols, skills, workflows, sensors, and routines — so AI agents work like teammates with clear roles, boundaries, and coordination patterns.
How is Bonsai different from just using Claude Code?
Section titled “How is Bonsai different from just using Claude Code?”Claude Code works out of the box, but without structure, agents lack persistent identity, consistent behavior, and coordination patterns. Bonsai adds:
- Persistent identity and memory — Agents remember context between sessions via version-controlled files, not ephemeral auto-memory.
- Layered instructions — Protocols define hard rules, workflows define procedures, skills provide domain knowledge. Each layer loads at the right time.
- Automated enforcement — Sensors (hook scripts) enforce scope boundaries, inject context, and review output automatically. Agents cannot bypass them.
- Multi-agent coordination — The Tech Lead plans and dispatches to code agents, each in their own workspace with specific abilities.
- Project scaffolding — Shared status tracking, roadmaps, plans, decision logs, and reports that all agents reference.
Do I need to know Go to use Bonsai?
Section titled “Do I need to know Go to use Bonsai?”No. Bonsai is a pre-built binary — you install it and run CLI commands. No Go knowledge is required to use it. The generated files are all Markdown and shell scripts.
If you want to contribute to Bonsai itself (the CLI tool), you will need Go 1.24+ and familiarity with the Cobra, Huh, and BubbleTea libraries.
Can I use Bonsai with models other than Claude?
Section titled “Can I use Bonsai with models other than Claude?”Bonsai is designed specifically for Claude Code. The generated sensors wire into Claude Code’s hook system, the instruction files follow Claude’s conventions, and the workspace structure is optimized for Claude Code’s file-reading patterns.
While the generated Markdown files are model-agnostic in principle, the sensor scripts and hook integration are Claude Code-specific.
How do I update my workspace when Bonsai releases new catalog items?
Section titled “How do I update my workspace when Bonsai releases new catalog items?”Run bonsai add to browse and install new abilities. If Bonsai updates existing catalog items, run bonsai update to sync your workspace. If you have modified generated files, Bonsai will detect the conflict and let you choose to skip, overwrite, or backup and overwrite.
# Install new abilitiesbonsai add
# Sync workspace with latest catalogbonsai updateCan I create my own skills, sensors, and routines?
Section titled “Can I create my own skills, sensors, and routines?”Yes. Place custom files in the appropriate agent/ subdirectory with YAML frontmatter, then run bonsai update to register them. Bonsai detects custom files automatically and adds them to the navigation and configuration.
- Custom skills: Add a
.mdfile toagent/Skills/withdescriptionfrontmatter - Custom sensors: Add a
.shfile toagent/Sensors/withdescription,event, and optionallymatcherfrontmatter - Custom routines: Add a
.mdfile toagent/Routines/withdescriptionandfrequencyfrontmatter
See the Creating Custom Skills, Creating Custom Sensors, and Creating Custom Routines guides for details.
What happens if I edit a generated file?
Section titled “What happens if I edit a generated file?”Bonsai tracks generated files in .bonsai-lock.yaml using SHA-256 hashes. The next time you run a Bonsai command that regenerates that file, it detects that your version differs from the original and prompts you with three options:
- Skip — Keep your version, do not update
- Overwrite — Replace with the new generated version
- Backup & Overwrite — Save your version as
filename.bak, then write the new version
Scaffolding files (INDEX.md, Playbook, Logs, Reports) use a write-once policy: they are never overwritten after initial creation.
Can multiple agents work on the same project?
Section titled “Can multiple agents work on the same project?”Yes — that is one of Bonsai’s core design goals. Each agent gets its own workspace directory with isolated instruction files. The Tech Lead orchestrates by creating plans and dispatching work to code agents via worktree-isolated subagent sessions.
A typical multi-agent project looks like:
your-project/├── station/ # Tech Lead — plans, reviews, coordinates├── backend/ # Backend Agent — API, database, server logic├── frontend/ # Frontend Agent — UI, components, styling└── devops/ # DevOps Agent — infrastructure, CI/CDIs Bonsai free and open source?
Section titled “Is Bonsai free and open source?”Yes. Bonsai is open source under the MIT license and free to use. The source code is at github.com/LastStep/Bonsai.
Where are generated files stored?
Section titled “Where are generated files stored?”All generated files live inside your project directory. Nothing is stored in hidden system directories or cloud services. The key locations are:
| File/Directory | Purpose |
|---|---|
.bonsai.yaml | Project configuration |
.bonsai-lock.yaml | File tracking (content hashes) |
.claude/settings.json | Auto-wired sensor hooks |
station/ | Tech Lead workspace + project scaffolding |
<agent>/ | Code agent workspaces (e.g., backend/, frontend/) |
How do I uninstall Bonsai from a project?
Section titled “How do I uninstall Bonsai from a project?”To remove a specific agent:
bonsai remove backend # Remove agent, keep filesbonsai remove backend -d # Remove agent and delete its workspace filesTo fully remove Bonsai from a project, delete the generated files:
# Remove config filesrm .bonsai.yaml .bonsai-lock.yaml
# Remove generated workspace directoriesrm -rf station/ backend/ frontend/
# Remove hook configurationrm -rf .claude/