Your thinking isn't linear.
Your AI shouldn't be either.
Every conversation becomes a tree, not a line. Fork at any point to explore "what if" scenarios. Compare outcomes side-by-side. Merge the best ideas.
Save tokens by branching, not restarting
In a linear chat tool, exploring 5 different approaches means copying context 5 times. With Bonsai, you branch from a shared ancestor — the context is loaded once. Each new branch only costs the new messages.
Linear Chat
1.2M
tokens for 5 explorations
Bonsai Branching
200K
tokens for 5 explorations
That's an 83% reduction. On production workloads, this translates to real money.
Branch at any message in a conversation
Hit a fork in your thinking? Branch. Want to test a different prompt strategy? Branch. Need to explore what the alternative model would say? Branch. No context lost, no history discarded.
Instant Fork
Create a branch from any message in the tree with one click.
Short IDs
Conversations and branches get short numeric IDs — no UUIDs to copy.
Visual Tree
See the entire conversation topology as an interactive graph.
Rewind & Replay
Jump to any point in history. Your progress is never lost.
Recombine your best ideas
Merge branches within a conversation to synthesize learnings from parallel paths. Graft messages across conversations to cross-pollinate insights between different projects.
Merge Branches
Combine divergent exploration paths back together with bridge prompts.
Graft Messages
Inject messages from one conversation into another. Cross-project context transfer.
Branch Diff
Compare two branches side-by-side. See exactly where they diverged.
Verbatim or Transformed
Copy messages raw, or pipe them through an LLM for transformation during merge.
A/B test prompts in parallel
Every message can have multiple variants — original, edited, regenerated, or generated in parallel by different models. Activate the best one. Discard the rest. Never lose a good idea.
Parallel Execution
Send the same prompt to GPT-4o, Claude, and Gemini — all at once.
Variant Carousel
Swipe between sibling responses. Drag to reorder.
String-level Diff
Compare two variants with unified, inline, or side-by-side diff views.
Non-destructive
Toggling variants never deletes alternatives. Experiment freely.
Stop scrolling. Start branching.
Join developers who've moved from linear chat to tree-based AI exploration.