Tutorial: your first sessions

The first ten minutes of Thurbox — from an empty screen to a coding agent running on its own git worktree, and the handful of keys you will use every day.

Every screenshot below is the real TUI, captured by driving it through this exact sequence (scripts/demo/record-tutorial.sh in the repository). The paths in them (/tmp/tutorial-home/…) come from the throwaway sandbox the capture runs in; yours will be your own home.

Before you start #

Install Thurbox. The installer puts thurbox, thurbox-cli, fleet and runtime-mux in ~/.local/bin:

bash
curl -fsSL https://raw.githubusercontent.com/Thurbeen/thurbox/main/scripts/install.sh | sh

Windows and the other routes are on the Installation page. You also need:

  • tmux ≥ 3.2 (or psmux ≥ 3.3.8 on native Windows) — Fleet's runtime runs your agents in it, so they keep running when Thurbox is closed
  • git
  • at least one coding-agent CLI that Fleet has a harness profile for (Agents): Claude Code, Codex, opencode and others

thurbox-cli doctor checks all of this and prints a fix for each missing piece.

1. Launch it #

Fleet manages every session, and its manager, fleet up, runs as a user service. Set Fleet up and start that service once. The install script does both on Linux:

bash
fleet init
fleet service install --now
thurbox
An empty Thurbox: the session list on the left and an empty agent pane on the right
First launch — no sessions yet.

Two panes between two bars: the session list on the left, the agent terminal on the right, and the keys you need on the footer.

Thurbox never starts, restarts or sets up Fleet. While no manager runs, the status line says Fleet not running · systemctl --user start fleet.service (fleet service install --now where no unit is installed), or no Fleet config · fleet init before fleet init ran.

2. Pick a place #

Ctrl+N — open the creation flow

The flow first asks where the session runs: a place of Fleet's runtime. A fresh setup has one, local, which is this machine.

The place step, with local, this machine, ready
The place step. Enter takes the place.

With several Fleets in settings.toml, a Fleet step comes before this one (Several Fleets).

3. Add a repository #

The repo step opens with its search focused: type any part of a repository's path and the list narrows to the fuzzy matches, best first.

The repo picker, with only the interface directory listed
The repo step. On a fresh install, memory holds one row you did not add.

The list is Thurbox's repo memory — the repositories you have used before. The one row already there is your own interface directory, offered because editing the panes is a thing you might want a session for.

To add a repository, press Tab to move to the Add Repo Path field and type a path. ~ is expanded for you. The field starts at the deepest directory all your remembered repositories share (home, while there are none), so a bare name lands next to them; typing / or ~ first replaces it with a path of your own.

Typing ~/code/ into the Add Repo Path field
The path field, with the footer naming what each key does from here.

Two ways to finish:

  • Enter adds the path you typed, if it is a repository. A folder that does not exist yet reads Create folder: Enter then asks what goes into it — a new git repository, a clone of an existing one, or nothing — makes it, and adds it.
  • Tab browses instead — a listing of that directory, marking which subdirectories are git repositories.
The browse dropdown listing ~/code, with a git marker beside two entries
Browsing ~/code. ↑/↓ move; Enter on a ●git row picks it, on a plain folder descends into it.

Either way the repository lands in memory, ticked — and stays there for next time.

The repository added to the list and ticked
Remembered. Adding it once is the last time you type that path.

The footer names the rest. Letters always go to the search, so the list's own keys are ones you cannot type:

Key Does
↑ / ↓Move the cursor
Space Tick a repository ([x]); every ticked one goes into the session
Alt+W Give it a worktree of its own ([wt])
→ / ← Open or close a repository's existing worktrees
Enter Go on with the ticked repositories, or the one under the cursor
Del / Alt+D Forget a remembered repository
Alt+P Import a folder of repositories at once — type a parent path, press it, and every git subdirectory is added under one header
EscClear the search; a second Esc closes the flow
TabMove between the search and the path field

4. Give it a worktree #

A ticked repository runs as it is unless you press Alt+W on it. Then it gets a git worktree of its own ([wt]), and the agent never works in your checkout.

The repository marked [wt]
The repository, marked for a worktree.

Two more questions follow. Base Branch asks what the new branch starts from, with the repository's default branch under the cursor:

The base-branch step, main selected
The base branch.

Branch Name comes after the session's name, prefilled from it (Fix tooltips becomes fix-tooltips). A branch that exists is checked out.

The branch-name step, prefilled with rate-limit
The branch name, prefilled from the session's name.

Tick several repositories and the session spans them all, one worktree each on the same branch. Fleet's runtime makes each worktree on the place, so there is nothing to configure. A directory that is no git repository runs as it is.

5. Name it and pick an agent #

Name the session after the work, not the tool — the list reads as a backlog that way. Enter on an empty field accepts the suggested name (the repository's own), so you can press straight through.

The session name step with rate-limit typed
The session name.

Then the agent: the harnesses the Fleet offers (fleet version --json lists them). Pick one whose CLI is installed where the session runs.

The agent picker, listing Fleet's harnesses
Enter creates the session: a Fleet Task. Fleet's runtime makes the worktree and starts the agent in it.

6. You have a session #

The session list with one session, beside a live agent terminal
One session, under its place and its repository, beside the live agent.
  • the session row, under its place (local) and its repository, with its status dot
  • the agent terminal on the right — a real terminal. Everything you type goes to the agent; Ctrl+O opens the worktree in your editor, and Ctrl+T or F8 gives you a shell in the same directory
  • the status dot tracks the agent through working / blocked / idle, reported by the agent's own hooks through Fleet rather than guessed

Press Ctrl+Q whenever you like: it detaches. Fleet keeps every agent running, and relaunching thurbox puts you back where you were — after a crash or a week away. After a reboot, Fleet revives the sessions of unfinished Tasks once fleet up runs again.

7. The second session is faster #

The repo picker with the remembered repository listed
Nothing to type: take the place, move to the repository, Enter, and through the same steps.

That is the shape of a working day — one session per piece of work, each on its own branch, all alive at once.

Everyday keys #

The authoritative list is F1 (or Ctrl+G), which renders the live key registry, so it can never drift from what is actually bound. Every chord in it is rebindable from that screen; the full reference is Keybindings.

The keybindings help, rendered from the live registry
The help screen is the registry, rendered.
Key Action
Ctrl+NNew session
Ctrl+J / Ctrl+K Select the next / previous session
Ctrl+H / Ctrl+L Move focus between panes — the way out of a focused agent
Ctrl+/ Search sessions and the text on their screens
Ctrl+OOpen the session's directory in your editor
Ctrl+T or F8 A shell in the session's directory
Ctrl+E Rename the session (with the list focused — in a terminal it is end-of-line)
Ctrl+D Confirm deleting the session (for good: Fleet keeps no undo)
Ctrl+Y or F4 Theme picker — 36 palettes
Ctrl+, or F6 Settings — ] for the Interface tab
F10Reload the interface from disk
Ctrl+QQuit, leaving every agent running

Ctrl+/ is the one to remember when the list gets long: it matches names, agents, branches and repositories — and the text on each session's screen, which is how you find the session with the error in it. Matches highlight inside the panes rather than being reprinted.

Search, with the query rate and its match highlighted
Search is a strip, not a modal, so it never covers what it is pointing at.

The same thing from the command line #

Every session is a Fleet Task, so fleet drives the same sessions with no TUI, against the same store — anything you do here shows up in a running Thurbox within a tick, and the other way round. Each command prints JSON.

bash
# What is running
fleet list task
fleet get task docs                        # one Task, its spec and status

# Start one headlessly: an interactive Task over a directory
echo '{"apiVersion":"fleet/v1alpha1","kind":"Task",
  "metadata":{"name":"docs","labels":{"thurbox.dev/name":"docs"}},
  "spec":{"harness":"claude",
          "workspace":["file:///home/me/code/web-app"],"dispatch":true}}' \
  | fleet apply --create-only -f -

# Talk to one
fleet send docs "run the tests and fix what fails"

# Clean up
fleet delete task docs
fleet list task, after the tutorial's session
The session the walkthrough made, as a Fleet Task — the store the TUI reads.

thurbox-cli keeps what is the interface's own: thurbox-cli doctor checks the setup, thurbox-cli config show prints every resolved path, thurbox-cli plugin dir prints the interface directory, and thurbox-cli --help lists the rest.

Where to go next #

  • Make it yours — every pane is a Lua file in a directory you own. Ask an agent in any session to change it, or read The Interface. Ctrl+, then ] lists every pane and turns one off; F10 reloads.
  • Run several agents on one job — Orchestration and Recipes.
  • Run sessions on another machine — put a Fleet there and list it under [fleets] in settings.toml; its sessions run there while the TUI stays here (Configuration).
  • Configure it — Configuration is every file and knob in one place; thurbox features and Fleet features say why each one behaves the way it does.

The screenshots on this page are generated. Regenerate them from a checkout with scripts/demo/record-tutorial.sh, which drives the real TUI through the steps above.