Name
bothy
Opens a file browser, an AI coding agent and a shell side by side in one terminal window.
One command, run in a project directory, sets up the whole workspace. bothy uses the tools already installed, offers to download the ones that are missing, and changes none of the user's existing configuration.
Quick start
$ curl -fsSL https://raw.githubusercontent.com/lampseen/bothy/main/bootstrap/install.sh | shThe workspace. Running bothy in a project directory opens this window. It is built from existing tools: a terminal (Ghostty by default), a window manager, a file browser, an AI agent and a shell. This is the default layout, called cockpit. Two other layouts are included: one built around an editor, and a minimal one with only the agent and a shell.
Session. The window manager is Zellij, and this bar is its own: the session and its tabs. A session keeps running when it is detached, so the agent keeps working and the shell keeps its history. The bothy attach command comes back to it.
- Ctrl-o d
- detach, leaving everything running
- Ctrl-q
- quit; the session is gone
File browser. The top half is the file browser, Yazi. The left column is the project and the next column is the selected directory.
- h j k l
- move
- l
- enter a directory or open a file
Preview. The selected file is previewed beside the list, which makes the top half a place to read what the agent changed.
File status. The status row of the file browser: its mode, the size and name of the selected file, its permissions, and its position in the list.
Agent. The agent pane runs an AI coding tool: claude unless another is configured. It starts focused, because most sessions begin there. With no agent installed the pane is empty and the bothy doctor command, which checks the workspace, says so. With several projects open, the bothy tower command shows every running agent in one window.
Shell. A plain shell in the same directory, for git, builds and logs.
Keys. The bottom rows are the window manager's own list of keys. bothy does not change them, and the bothy keys command prints the ones that matter.
- Alt-h Alt-j Alt-k Alt-l
- move between the panes
- Alt-n
- another pane
- Ctrl-s e
- open the scrollback in the editor
The tower. With several projects open, each agent is in a different window. The bothy tower command puts every running agent in one window. It is a session of its own, named bothy-tower, and it starts and stops nothing else.
Project. Each pane is named after the project whose agent it is watching. Here three projects have an agent running.
Mirror. A pane mirrors the agent pane of one session, refreshed every two seconds: the end of the agent's output and its prompt. A session is shown when it is running and its agent is alive.
- Alt-h Alt-j Alt-k Alt-l
- move between the mirrors
Reply. The bottom two rows of a mirror are kept for a reply. A line typed there and sent with Enter goes to that agent, as if typed in its own window, and it can be written while the agent is still working. Ending a line with a backslash continues it on the next line, and the whole message arrives as one.
Watching. The mirrors sit side by side when the window is wide enough to hold them, and are stacked like this when it is not. Watching does not disturb an agent: the tower reads the panes and writes nothing to them except a line typed as a reply. bothy composes no message of its own and sends nothing on a timer.
Taking over. A reply is text only, so it cannot answer a prompt that needs a keystroke. When an agent asks for a numbered choice, a yes or no, or anything chosen with the arrow keys, typing /take as the reply hands the pane to that session with the keyboard attached. The other mirrors carry on. The bothy keys command lists the keys for returning to the tower.
Keys. The bottom rows are the window manager's own list of keys, the same as in a workspace.
Overview
bothy is a command-line tool that sets up a terminal workspace for a software project. Running bothy in a project directory opens one terminal window with three panes: the Yazi file browser across the top, an AI coding agent at the bottom left and a shell at the bottom right.
bothy does not replace these tools. It finds the ones that are already installed, lists the ones that are missing, and asks before downloading anything. It keeps its own configuration in its own directory and applies it only for the length of the session, so existing settings for the same tools are not touched.
It is written for developers who work alongside an AI coding agent in a repository.
Features
- Swappable tools
- The workspace has five parts: terminal, window manager (multiplexer), file browser, editor and AI agent. The defaults are Ghostty, Zellij, Yazi, the editor set in $EDITOR, and claude. Each part can be swapped in a configuration file, and definitions for 18 tools are included, among them aider, gemini-cli, helix, neovim, wezterm and lazygit.
- Verified downloads
- bothy lists any tool that is missing and asks before downloading it. Each download is checked against a checksum that ships with bothy.
- A built-in health check
- The bothy doctor command reports anything that is wrong with the setup and gives the exact command that fixes it. --json prints the report for scripts.
- All agents in one window
- The bothy tower command shows every running AI agent side by side, and a reply can be typed to any of them from there. It only passes on what is typed; it never sends anything by itself.
- Agent sandbox (optional)
- The bothy confine command runs the AI agent inside a rootless podman container, so the agent cannot read SSH keys, other projects or the rest of the home directory.
- Works with remote machines and containers
- The bothy connect command opens the workspace for a project on another machine over SSH and installs nothing on that machine. The bothy box command remembers which toolbox or distrobox container each project uses.
- Three layouts
- Cockpit (the default, shown above), an editor layout and a minimal layout.
Install
sudo dnf copr enable bspeelman/bothy && sudo dnf install bothy# download the .deb from the latest release, then
sudo apt install ./bothy_*.debbrew install --cask lampseen/bothy/bothygo install github.com/lampseen/bothy/cmd/bothy@v0.14.2curl -fsSL https://raw.githubusercontent.com/lampseen/bothy/main/bootstrap/install.sh | shLimits and guarantees
- bothy writes to two directories only: ~/.local/share/bothy and ~/.config/bothy. It does not edit the configuration of the tools it launches, or shell and git settings.
- Nothing keeps running in the background, and bothy does not update itself.
- No telemetry.
- Nothing is installed on a machine reached with bothy connect.
- Uninstalling removes everything bothy wrote and lists the few things it cannot remove itself.
- There is no Flatpak package. This is deliberate.
About the name
A bothy is a simple, unlocked shelter in the Scottish hills that anyone may use. Visitors are expected to leave it as they found it. The tool is named after it because it works the same way: it sets up a place to work and leaves the machine unchanged afterwards.