bonsai

command module
v0.2.24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README ΒΆ

             &&& &&  &&&
          &&&\/&\|&()|/@,&&&
          &&\/(/&/&||/&_/)_&&
         &&/&_&&/|&&/&/__%_/_&
          &&& &&|&&|/&&_%_&&&&
            &---&&\&\|&/&--&
                 \|||/
                  |||
                  |||
                \ ||| /
            ~-=-~^-'^`-~-=-~

bonsai

A local web workspace, TUI and CLI for growing and pruning git worktrees.

Manage worktrees, pull requests, agents and processes on your computer.


Why

Juggling git worktrees by hand is tedious: creating them, copying over untracked files like .env, running dev servers per branch, tracking which one has an open PR, and cleaning them up. bonsai puts all of that in a local browser workspace and a fast TUI β€” and every feature is also a plain CLI command you can script.

Features

  • 🌳 Worktree list with ahead/behind arrows (↑N ↓M), #PR badges auto-detected via gh, dirty change counts (●N ?M), CI dots, and 6 sort modes.
  • πŸ” Inspector tab per worktree: working-tree status, last commit, diff-vs-base summary, disk usage, and stash count.
  • 🚦 Checks tab with the branch's GitHub Actions runs, and a full PR tab (detail, reviews, merge/approve/close).
  • πŸ“„ Diff tab: files changed vs base with per-file diffs.
  • 🌐 Live dev-server URLs detected in process output (http://localhost:… shown next to each process).
  • πŸ“‹ Yank menu (y): copy the worktree path, branch name, or PR URL to your clipboard.
  • ✨ Create worktrees from a new branch, an existing branch, or a GitHub PR.
  • πŸ“‹ Copy files from main into a worktree via fuzzy finder β€” ranked by how often you copy them.
  • πŸ”§ Run project commands from Node, Python, Go, Rust/Cargo, and Make plus custom aliases as background processes β€” many per worktree, switchable.
  • πŸͺ Lifecycle hooks (on_worktree_create / on_worktree_delete) with {variable} and $BONSAI_* substitution.
  • πŸ”€ Git ops inline: pull, push, commit, rebase (drops to a real shell for conflict resolution).
  • πŸ—‘οΈ Prune with an optional merge-PR-first step and a clear preview of exactly what will happen.
  • βš™οΈ Edit .bonsai.yaml from the command palette β€” every setting, with descriptions and examples, applied live.
  • πŸ–₯️ Everything works from the CLI too β€” bonsai create, bonsai copy, bonsai x <alias>, and more.

Install

./install/install.sh

Downloads the latest GitHub Release, verifies its SHA256 checksum, and installs it to /usr/local/bin (or ~/.local/bin if that isn't writable). Override the location with PREFIX:

PREFIX="$HOME/.local" ./install/install.sh

On Windows, run install\install.bat (which calls install.ps1), or run ./install/install.ps1 from PowerShell. It installs to %USERPROFILE%\go\bin by default, honoring PREFIX, GOBIN, or GOPATH when set, and installs the bcd.bat helper. Neither installer requires Go. Linux/macOS need curl, tar, and either sha256sum or shasum; Windows uses PowerShell 5.1 or later.

Release archives include the complete production web UI. They need no Node or Go installation at runtime.

With Go
go install github.com/Tiago-0liveira/bonsai@latest
From source
go build -o bonsai .

Plain go install and untagged go build keep the TUI/CLI and serve an explanatory placeholder at /app. To include the full web app from source, use Node 22.12.0, pnpm 12.9.1 and the repository Go version:

pnpm --dir web install --frozen-lockfile
pnpm --dir web build
pnpm --dir web bundle:check
go test -tags embedui ./web/
go build -tags embedui -o bonsai .

Versions and updates

bonsai -v                  # also --version or version
bonsai -u                  # also --update or update
bonsai update --check      # check the latest stable GitHub Release
bonsai update              # prompt to verify and install it

These commands work outside a Git repository. Updates support Linux, macOS, and Windows on amd64 and arm64. The executable's directory must be writable; symlinked installations update the resolved executable. Restart Bonsai after updating. On Windows the old executable remains as bonsai.exe.old until the next update. A crashed updater may leave a .update-lock beside the executable; remove it only after confirming no updater is running.

Release builds include their version, commit, and build date. Source builds report dev and do not replace themselves or display automatic update prompts. Periodic update checks run in the background (once every 24 hours) with a short timeout and cache the result in the OS user cache under bonsai/update_state.json. Interactive sessions prompt before installing, while non-interactive environments (like CI or piped commands) log a single-line notice. Network failures never prevent startup; explicit bonsai --update bypasses the cache.

CI and releases

Pull requests targeting main run formatting, module checks, vet, builds and tests on Linux/macOS/Windows, Linux race tests, and a GoReleaser snapshot build with the production UI. Native archive smoke tests on all three platforms verify checksums, /app, its assets, deep links, capability access and shutdown. The CI passes aggregate must pass before merging into protected main.

A merged PR triggers a queued release, defaulting to the next patch version. Use at most one label: release:patch, release:minor, release:major, or release:none. With no existing stable tags, the first patch is v0.0.1. Release jobs check out the exact merge commit, create a tag, build all six platform archives and checksums.txt, then publish the completed draft. They run only for merged PRs, including fork PRs; direct pushes and manual tags do not trigger releases. A failed run can be rerun: it reuses that merge's tag and rebuilds an incomplete draft. Published releases are left intact.

goreleaser release --snapshot --clean  # local release dry-run

Requirements

  • Go 1.26+ (to build)
  • git 2.35+ on your PATH
  • gh (optional) β€” only needed for PR badges, creating worktrees from PRs, and merge-on-prune. Everything else works without it.

Quick start

bonsai web

Run it from any directory. The first-run wizard selects project folders, browser preferences and GitHub updates, then opens http://127.0.0.1:7001/app. Standard updates use polling and need no tunnel. GitHub uses your existing gh login. The API serves the UI and connects the browser automatically; there is no hosted app or browser network-permission prompt. See local web operation for settings, logs and recovery.

For scripts: bonsai web --no-open --no-setup. To change settings later: bonsai web setup.

TUI and CLI
cd your-repo
bonsai             # interactive terminal UI
bonsai list        # scriptable CLI

Press n to create a worktree, enter to drop into a shell in the selected one, ? for the full keymap, q to quit.

Keybindings

Key Action
tab Cycle focus between panes
shift+tab Cycle the right-pane tabs
enter Open a shell in the selected worktree
e Open your editor ($VISUAL/$EDITOR) in the selected worktree
n New worktree (new branch / existing branch / PR)
ctrl+n Create a PR from the selected worktree
v / l / d / P Processes / Git Log / Diff / PR tab
i Inspector tab (status, last commit, diff, disk, stashes)
b Checks tab (GitHub Actions runs for the branch)
o Cycle list sort (name / ahead / behind / PR / activity / dirty)
/ Filter the worktree list
c Copy a file from main into the worktree (fuzzy)
y Yank: copy path / branch / PR URL to the clipboard
s Run discovered project commands (Node / Python / Go / Rust-Cargo / Make)
p Aliases menu (run one, or οΌ‹ new alias)
ctrl+p Git pull
ctrl+u Git push
f Git fetch (all remotes)
C Git commit (stages all)
r Git rebase onto a chosen branch
u Update branch from base (rebase or merge)
x Prune the worktree (with optional PR merge)
X Prune all merged worktrees
R Refresh worktrees, metrics, and PRs
, Preferences (theme, keybindings, defaults)
? Keybindings reference (searchable)
q / ctrl+c Quit

CLI

Any argument runs a subcommand instead of the TUI:

bonsai list                     # list worktrees (branch, path)
bonsai create <branch>          # new worktree on a new branch β†’ prints its path
bonsai create --existing <br>   # new worktree on an existing branch
bonsai create --pr <number>     # new worktree checked out from a GitHub PR
bonsai copy <file> <worktree>   # copy a main-repo file into a worktree
bonsai path <branch|main>       # print a worktree's path (for cd)
bonsai x <alias> [worktree]     # run an alias (default: current directory)
bonsai x --list                 # list available aliases
bonsai alias add <name> <cmd…>  # add a user alias
bonsai alias list               # list aliases
bonsai alias rm <name>          # remove a user alias
bonsai shell-init               # print a shell 'bcd' cd helper
bonsai web                      # start the user-level web app from any directory
bonsai web setup                # guided projects, browser and update settings
bonsai web status
bonsai web logs api
bonsai web restart api
bonsai web stop
bonsai agent account add <provider> <name>          # new Claude Code, Codex or Antigravity profile
bonsai agent account login <account>                # sign a profile in again
bonsai agent account list                           # profiles, sign-in state and identity
bonsai agent account show <account>                 # one profile with its launch defaults
bonsai agent account set <account> <field>=<value>  # set profile launch defaults
bonsai agent account rename <account> <new-name>
bonsai agent account remove <account>
bonsai agent run <account> [-- <args…>]             # run the provider CLI as that profile
bonsai agent usage [<account>] [--refresh]          # plan limits of every profile
bonsai version (-v)             # print version and build info
bonsai update (-u)              # check or install latest release
bonsai help                     # full usage
Jump into a worktree from your shell

A binary can't change its parent shell's directory, so bonsai ships a helper:

eval "$(bonsai shell-init)"     # add to ~/.zshrc or ~/.bashrc
bcd feat/login                  # cd into that worktree
bcd                             # cd back to main

Configuration

bonsai reads .bonsai.yaml from your repo root. See the annotated example β€” it documents every field. In short:

upstream: origin/main          # base ref for ↑ahead/↓behind and prune's merge target

hooks:
  on_worktree_create:
    - "cp {main}/.env {new_worktree}/.env"
    - "npm install"
  on_worktree_delete:
    - "echo 'removing {worktree_name}'"

aliases:
  - name: dev
    command: "npm run dev"
Hook & alias variables

Use {name} inside hook commands and alias commands. Each is also exported to hooks as $BONSAI_<NAME> (uppercased).

Variable Value
{new_worktree} / {worktree} Absolute path of the worktree
{worktree_name} Worktree directory name (e.g. repo-feat-login)
{main} / {main_branch_path} Absolute path of the main worktree
{branch} Branch name
{base_branch} Base branch from upstream (origin/main β†’ main)
{repo} Repository directory name
{pr_number} Connected PR number, or empty

User aliases you add in-app or via bonsai alias add persist to ~/.config/bonsai/state.json (which also tracks file-copy frequency for fuzzy ranking). Aliases in .bonsai.yaml are read-only project defaults.

How prune works

x (prune) is local teardown and is destructive. The confirmation modal previews the exact pipeline, e.g.:

merge PR #20 to main β†’ run on_worktree_delete β†’ delete worktree β†’ delete branch
  • The merge step is off by default β€” toggle it with space. It only appears for branches with a connected PR and runs gh pr merge.
  • delete worktree uses --force; delete branch uses -D. Unpushed commits and uncommitted changes are lost.
  • It never touches the remote unless you explicitly enable merge.

Architecture

Strict split between presentation and core:

  • internal/ui β€” all Bubble Tea (model / update / view / components). No os/exec, file I/O, or raw git.
  • internal/core β€” git, gh, config, exec, fs, pkgmgr, notify, clipboard. Plain Go types and errors, independently testable.
  • internal/cli β€” the non-interactive subcommands, sharing the same core.

Built with Bubble Tea, Lip Gloss, Viper, and sahilm/fuzzy.

License

MIT

Web Git backend

The local API and optional webhook receiver are documented in docs/git-backend.md. Only the receiver may be exposed through an explicitly configured tunnel.

Bonsai web setup

Run bonsai web setup to configure the browser UI and live GitHub updates. With Cloudflare + domain, Review shows the tunnel creation and DNS routing commands before Apply runs them. Setup prompts for cloudflared tunnel login when needed, reuses an existing tunnel, and reports failed commands with their output. Conflicting DNS records are never overwritten.

You can reapply the named-tunnel setup without changing settings to repair its DNS route and restart Bonsai. The browser shows Live pending until delivery is confirmed, or Live paused when delivery fails; it continues polling GitHub meanwhile. Hover over the badge for the reason, or run bonsai web doctor and bonsai web logs tunnel.

Local web API

bonsai web uses one user-level supervisor for the local API and, when you choose Live updates, its webhook receiver and tunnel. The API remains bound to loopback. Production accepts its exact local origins only; capability sessions protect privileged HTTP and WebSocket requests.

bonsai web --attach shows the log viewer. Detaching leaves the app running; bonsai web stop stops its API and tunnel. Retained logs remain readable. The hidden contributor stack has its own development services and explicit loopback frontend origin; see docs/development.md.

Browser project folders

After starting bonsai web, choose the local folders Bonsai should scan. You can select a suggested directory or enter an absolute path (or ~/projects), then confirm Add folder. Nothing is registered automatically. The same editor is available from Settings. Folder settings belong to your local user and survive browser and backend restarts.

Discovery includes each selected folder and up to four levels of descendants, skipping dependency, build and cache directories and directory symlinks. You can explicitly select a symlinked folder. Overlapping folders are supported; separate clones remain separate projects, even when they share a GitHub remote. Linked worktrees outside the selected folders remain visible through their repository. Unavailable folders and scan limits appear in Settings; select a deeper folder when a scan is truncated. The catalog reconciles every 30 seconds.

New browser worktrees default to <owning-folder>/.bonsai/worktrees/<project-id>/<branch-hash>. An explicit .bonsai.yaml worktree.root must resolve within a configured folder. Settings changes affect future creation without a daemon restart. The CLI/TUI continues using its existing worktree.root and worktree.path_template behavior. Removing a folder never deletes files or worktrees, stops processes, or shuts down the hosting daemon. Existing metadata and worktree IDs are preserved.

The browser catalog is empty until project folders are configured. Starting from a Git repository does not add it automatically.

Claude Code profiles

Install claude (Claude Code), then add one Bonsai profile per Claude account. Each profile owns a persistent config directory (CLAUDE_CONFIG_DIR) that all of its sessions share; your real ~/.claude is never written.

bonsai agent account add claude work            # login mode (default)
bonsai agent account add claude ci --auth token # long-lived token mode
echo "$TOKEN" | bonsai agent account add claude ci --token-stdin
bonsai agent account list                       # shows auth mode and identity
bonsai agent run work -- --model opus           # extra args go to claude
bonsai agent account login work                 # sign the profile in again
bonsai agent account login ci --auth login      # switch a token profile to login
bonsai agent account remove work                # logs the profile out, deletes it
  • login runs claude auth login inside the profile. All features work.
  • token runs claude setup-token (or reads --token-stdin) and stores the one-year token 0600 in Bonsai's data directory; it is injected as CLAUDE_CODE_OAUTH_TOKEN at launch. A token can only make model requests, so it cannot use Remote Control or claude.ai connectors.
  • Seeding. A new profile starts from a one-time snapshot of your own setup: settings.json, CLAUDE.md, keybindings.json, agents/, commands/, skills/, output-styles/ and your user-level MCP servers. Credentials, history, sessions, plugins and API-key settings are never copied, and symlinks are skipped. Bonsai prints what it copied. Use --no-seed to skip it or --seed-from <dir> to seed from another config directory.
  • Isolation. Sessions run with every inherited CLAUDE* and ANTHROPIC_* variable removed, so a profile never silently runs as another identity. HOME is unchanged, so git, gh and ssh keep working.
  • Concurrency caveat. Several sessions of one login profile refresh the same OAuth login, and Claude Code can occasionally lose that race and ask for /login again. Token mode has no refresh and is race-free.
  • Token exposure. In token mode the token is in the session's environment (that is how Claude Code reads it). Bonsai also sets CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1 to keep it out of the agent's shell commands, but that flag was not confirmed against a real session, so treat commands the agent runs as able to see the token.
  • Seeding. Seeding copies MCP server definitions as they are, including any env or header secrets in them, into the profile (mode 0600). Symlinked files and directories in the source are skipped and reported. Login-pinning settings (forceLoginMethod, forceLoginOrgUUID) and credential helpers are dropped.
  • Usage. bonsai agent usage shows the 5-hour and weekly utilization (and per-model weekly limits when present) of login profiles. Claude has no documented endpoint for this, so Bonsai reads the one Claude Code's own /usage view uses (/api/oauth/usage). It can change or disappear without notice and is best effort. Bonsai only reads the profile's stored login and never refreshes it (a refresh would log out running sessions), so a profile whose login expired shows an error until a session refreshes it. Token profiles are shown as n/a because long-lived tokens cannot read usage, and so are macOS profiles (the login lives in the Keychain). Results are cached for 5 minutes; --refresh bypasses the cache.
  • Requires Claude Code 2.1.295 or newer.
Codex profiles

Install codex (Codex CLI), then add one Bonsai profile per OpenAI login. Each profile owns a persistent CODEX_HOME that all of its sessions share; your real ~/.codex is never written.

bonsai agent account add codex work                  # ChatGPT login in the browser (default)
bonsai agent account add codex box --auth device     # device code, for SSH, WSL or headless hosts
printenv OPENAI_API_KEY | bonsai agent account add codex ci --token-stdin   # API key
bonsai agent account list                            # shows auth mode and email Β· plan
bonsai agent run work -- --search                    # extra args go to codex
bonsai agent account login work                      # sign the profile in again
bonsai agent account login box --auth device         # same, with a device code
bonsai agent account remove work                     # logs the profile out, deletes it
  • Logins stay with Codex. Bonsai runs codex login inside the profile and forces the file credential store (cli_auth_credentials_store = "file"), so Codex keeps the login in the profile's own auth.json on every OS, never in a keyring entry other profiles would share. An API key goes straight from --token-stdin (or a hidden prompt) to codex login --with-api-key; Bonsai keeps no copy of any Codex secret.
  • Seeding. A new profile starts from a one-time snapshot of ~/.codex (or $CODEX_HOME): config.toml, AGENTS.md, prompts/, skills/ and rules/. The copied config.toml loses login pins, [profiles], [projects] (trusted folders) and every model provider that reads or carries a key. auth.json, sessions, history, logs, caches, plugins and key files are never copied, and symlinks are skipped. --no-seed and --seed-from <dir> work as for Claude.
  • Isolation. Sessions run with every inherited CODEX_* and OPENAI_* variable removed (except CODEX_CA_CERTIFICATE), so a profile never silently runs as another identity. HOME is unchanged.
  • Sessions. Codex starts with --no-daemon, so each session owns its whole process tree instead of attaching to a shared background app-server. Two profiles on the same ChatGPT login share its usage limits; Bonsai warns when you add one.
  • Usage and models. bonsai agent usage shows the 5-hour and weekly limits of ChatGPT profiles (plus the limits of other metered features and a credit balance when Codex reports them), read from codex app-server, Codex's published protocol; Codex does any token refresh itself. API key profiles have no plan limits and are shown as n/a. Results are cached for 5 minutes; --refresh bypasses the cache. The start dialog's model suggestions come from the same place, with the list bundled in Codex as the fallback.
  • Requires Codex CLI 0.162.1 or newer.
Profile defaults

Each profile keeps its launch defaults: the model plus Codex permissions and effort, Claude permission_mode and effort, or Antigravity full_access. The web start dialog opens on them and can change them for one launch; set them for good on the profile's Defaults tab in the Agents tab or with account set. A launch option still wins over them, and defaults only apply to sessions started afterwards.

bonsai agent account show work                       # sign-in, identity, defaults and accepted values
bonsai agent account set work model=gpt-5.5 effort=high permissions=auto
bonsai agent account set work --unset effort         # back to the provider default
bonsai agent account rename work personal

account login <profile> [--auth <mode>] [--token-stdin] signs an existing profile in again with the provider's own login (Antigravity: agy, then exit it), or switches its sign-in mode. Running sessions keep going; the profile's cached usage is dropped.

account remove warns when a session of the profile may still be running (its session record is still there); the local API refuses to remove a profile while one of its web sessions is active.

Antigravity in the web workspace

Install agy, then add a Bonsai profile:

bonsai agent account add antigravity personal

Start the web app with bonsai web, select a worktree, choose Start agent, and select your profile. The terminal uses that profile's existing settings; enter instructions directly in it. Claude Code and Codex profiles start the same way (bonsai agent account add codex work); the dialog opens on the profile's model, permissions and effort (its Defaults tab). The Agents tab does the same profile work in the browser; see docs/web.md.

Closing the dock or reloading the browser detaches without stopping the agent. Use Stop agent to terminate it and reconcile profile credentials. Sessions last only while the local API runs; restarting Bonsai does not restart agents. Recent output is bounded to 2 MiB and may show a replay-gap notice after a long session. Interactive PTYs require a supported Unix platform; Windows support is not yet available. See development details.

Documentation ΒΆ

Overview ΒΆ

Command bonsai is a git worktree manager TUI. main wires the core layer (config, state, git discovery) into the Bubble Tea presentation layer.

Directories ΒΆ

Path Synopsis
internal
cli
Package cli implements bonsai's non-interactive subcommands.
Package cli implements bonsai's non-interactive subcommands.
core/agentsetup
Package agentsetup runs profile setup and sign-in for the web: each job owns a terminal stream for the provider's login commands and a secret prompt the browser answers.
Package agentsetup runs profile setup and sign-in for the web: each job owns a terminal stream for the provider's login commands and a secret prompt the browser answers.
core/agentterminal
Package agentterminal owns API-lifetime provider processes and bounded terminal streams.
Package agentterminal owns API-lifetime provider processes and bounded terminal streams.
core/browser
Package browser opens a URL in the user's default web browser.
Package browser opens a URL in the user's default web browser.
core/clipboard
Package clipboard copies text to the system clipboard via the first available external tool.
Package clipboard copies text to the system clipboard via the first available external tool.
core/config
Package config loads the .bonsai.yaml project config via viper and persists mutable state (file-copy frequency, aliases) to the user config directory.
Package config loads the .bonsai.yaml project config via viper and persists mutable state (file-copy frequency, aliases) to the user config directory.
core/editors
Package editors discovers GUI editors for the environment running Bonsai: commands on PATH and a few well-known user directories on Linux, PATH plus standard application bundles on macOS, and PATH plus the standard install folders on Windows.
Package editors discovers GUI editors for the environment running Bonsai: commands on PATH and a few well-known user directories on Linux, PATH plus standard application bundles on macOS, and PATH plus the standard install folders on Windows.
core/exec
Package exec manages independent background subprocesses.
Package exec manages independent background subprocesses.
core/fs
Package fs handles fuzzy file search over the main repo tree and copying files from the main repo into a worktree.
Package fs handles fuzzy file search over the main repo tree and copying files from the main repo into a worktree.
core/gh
Package gh wraps the GitHub CLI (`gh`) for the operations bonsai needs.
Package gh wraps the GitHub CLI (`gh`) for the operations bonsai needs.
core/git
Package git wraps the Git CLI.
Package git wraps the Git CLI.
core/notify
Package notify sends best-effort desktop notifications.
Package notify sends best-effort desktop notifications.
core/pkgmgr
Package pkgmgr discovers project/build commands from package managers and build tools.
Package pkgmgr discovers project/build commands from package managers and build tools.
core/portowner
Package portowner names the process listening on a loopback TCP port, so a port conflict can say "pid 4242, node" instead of only "in use".
Package portowner names the process listening on a loopback TCP port, so a port conflict can say "pid 4242, node" instead of only "in use".
core/procstore
Package procstore owns bonsai's on-disk process state.
Package procstore owns bonsai's on-disk process state.
core/trace
Package trace provides opt-in timing spans and process-spawn counters for the sync pipeline.
Package trace provides opt-in timing spans and process-spawn counters for the sync pipeline.
core/updater
Package updater downloads and verifies official Bonsai releases.
Package updater downloads and verifies official Bonsai releases.
daemon/client
Package client talks to a repo's bonsai daemon over its Unix socket.
Package client talks to a repo's bonsai daemon over its Unix socket.
daemon/gitbridge
Package gitbridge is the allowlisted, outbound-only Git bridge.
Package gitbridge is the allowlisted, outbound-only Git bridge.
daemon/protocol
Package protocol defines the wire format between bonsai clients (TUI, CLI) and the per-repo daemon.
Package protocol defines the wire format between bonsai clients (TUI, CLI) and the per-repo daemon.
daemon/server
Package server implements the per-repo bonsai daemon.
Package server implements the per-repo bonsai daemon.
daemon/watcher
Package watcher accelerates reconciliation with filesystem notifications.
Package watcher accelerates reconciliation with filesystem notifications.
git
Package git defines Bonsai's transport-independent Git domain.
Package git defines Bonsai's transport-independent Git domain.
git/github/app
Package app implements GitHub's domain API without a gh executable.
Package app implements GitHub's domain API without a gh executable.
git/github/ghcli
Compatibility names preserve CLI/TUI behavior while the daemon and web use the context-aware domain interfaces.
Compatibility names preserve CLI/TUI behavior while the daemon and web use the context-aware domain interfaces.
git/local
Compatibility names preserve CLI/TUI behavior while the daemon and web use the context-aware domain interfaces.
Compatibility names preserve CLI/TUI behavior while the daemon and web use the context-aware domain interfaces.
livehooks
Package livehooks keeps one Bonsai repository webhook per live-updates repository pointed at the current tunnel: find it (stored ID, else the ?bonsai=<install-id> marker), create it when missing, re-point it when the public URL or secret changes, and read its health from GitHub's last delivery.
Package livehooks keeps one Bonsai repository webhook per live-updates repository pointed at the current tunnel: find it (stored ID, else the ?bonsai=<install-id> marker), create it when missing, re-point it when the public URL or secret changes, and read its health from GitHub's last delivery.
providers/codex
Package codex runs the OpenAI Codex CLI.
Package codex runs the OpenAI Codex CLI.
server/runtime
Package runtime keeps a narrow compatibility wrapper for callers that used the original local API entrypoint.
Package runtime keeps a narrow compatibility wrapper for callers that used the original local API entrypoint.
server/webhooks
Package webhooks verifies and durably queues GitHub deliveries before replying.
Package webhooks verifies and durably queues GitHub deliveries before replying.
server/webui
Package webui serves the web UI bundle from the local API, on the API's own origin.
Package webui serves the web UI bundle from the local API, on the API's own origin.
storage/git
Package git provides a durable metadata store.
Package git provides a durable metadata store.
ui
Package ui is the Bubble Tea presentation layer.
Package ui is the Bubble Tea presentation layer.
ui/components/modals
Package modals provides a single reusable centered overlay that operates in one of several modes: free text input, static selection, live fuzzy search, or yes/no confirmation.
Package modals provides a single reusable centered overlay that operates in one of several modes: free text input, static selection, live fuzzy search, or yes/no confirmation.
ui/components/prefs
Package prefs is the in-app preferences overlay: theme preset picker with live apply, a full keybinding editor, and behavioral defaults.
Package prefs is the in-app preferences overlay: theme preset picker with live apply, a full keybinding editor, and behavioral defaults.
ui/components/terminal
Package terminal is the right-pane viewport showing process output or git log.
Package terminal is the right-pane viewport showing process output or git log.
ui/components/worktreelist
Package worktreelist is the left-pane list of git worktrees.
Package worktreelist is the left-pane list of git worktrees.
ui/theme
Package theme centralizes the UI color palette so the whole TUI can be restyled from one place, driven by config (a preset plus per-role overrides).
Package theme centralizes the UI color palette so the whole TUI can be restyled from one place, driven by config (a preset plus per-role overrides).
ui/websetup
Package websetup is the `bonsai web setup` terminal UI: the first-run wizard and the edit-mode dashboard.
Package websetup is the `bonsai web setup` terminal UI: the first-run wizard and the edit-mode dashboard.
version
Package version holds metadata injected by GoReleaser.
Package version holds metadata injected by GoReleaser.
websetup
Package websetup is the model behind `bonsai web setup`: what the user is choosing (a Draft), what applying it changes (a Plan) and the words used to explain each choice.
Package websetup is the model behind `bonsai web setup`: what the user is choosing (a Draft), what applying it changes (a Plan) and the words used to explain each choice.
websetup/checks
Package checks inspects what `bonsai web` needs on this computer: git, the GitHub CLI and its login, project folders, the API port and the tunnel tools that live updates will use.
Package checks inspects what `bonsai web` needs on this computer: git, the GitHub CLI and its login, project folders, the API port and the tunnel tools that live updates will use.
webtunnel
Package webtunnel describes the tunnels `bonsai web` can run for live updates: the argv for each preset, how its public URL is learned, and the argv validation that keeps the tunnel pointed at the webhook receiver and nothing else.
Package webtunnel describes the tunnels `bonsai web` can run for live updates: the argv for each preset, how its public URL is learned, and the argv validation that keeps the tunnel pointed at the webhook receiver and nothing else.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL