Documentation · 0.9.4

Use Compi.

A task-focused guide to the released app. Detailed behavior and the CLI catalogue come from the pinned v0.9.4 release, not newer development work.

Get started#

Install Compi, open a shell and make your first split.

Windows

Windows x64 is required. Compi uses Windows PowerShell; WSL2 is optional, for Linux shells (wsl --install). Choose either:

  • Installer: run Compi-<version>-Setup.exe for a per-user installation with repair and uninstall. Compi-Setup.exe is the same installer under a stable name for the latest release. Setup also lists Compi in File Explorer's Open with and adds Open in Compi to folders, and an installed Compi adds them back when it starts after an update in the app; uninstalling removes both. Windows may ask once which app opens a file type after a new app registers for it.
  • Portable: extract the entire Compi-<version>-Windows-x64.zip archive together. Do not copy individual executables; the bundled terminal runtime and license must stay with the daemon. The portable copy does not register with File Explorer.

macOS

Apple Silicon and macOS 14+ are required. Open Compi-<version>-macOS-arm64.dmg and drag Compi.app into Applications. Alternatively, extract Compi-<version>-macOS-arm64.app.zip and move the entire app bundle, not just its executable. Run the app from a writable location, not the mounted disk image, to allow updates. Native workspace qualification remains open.

Windows builds are unsigned and macOS builds are ad-hoc signed unless publisher credentials are configured; OS trust warnings may appear.

First-launch trust warnings

0.9.4 Windows packages are not publisher-signed. The Mac app is ad-hoc signed, not notarized. For a download you trust, Windows may offer More info → Run anyway; on macOS try opening it, then use System Settings → Privacy & Security → Open Anyway. Do not disable operating-system security globally. Managed-device policy may prevent these overrides.

Your first workspace

  1. Launch Compi and open the palette with Ctrl + Shift + P, or Cmd + Shift + P on macOS.
  2. Choose New workspace to organize a project, then New terminal tab to start a shell.
  3. Choose Split right or Split down. New tabs and splits inherit the focused terminal’s reported directory.
compi split --right
compi --json pane list

Run those commands inside a Compi shell. Closing the app window keeps the server-owned shells running; closing a pane or restarting the server is different.

On Windows, Settings → General → Shell selects Automatic, PowerShell or WSL. Automatic picks WSL for Linux-only folders and PowerShell elsewhere.

Using the palette and returning to the shell

The palette: Ctrl+Shift+P (Cmd+Shift+P on macOS) drops a search list down from the top of the window; nothing is dimmed, and a click anywhere outside it, or Esc, closes it without reaching the terminal. Type to search, in this order: Tabs (open tabs, and the panes of split tabs by name or folder), Threads (your chats with agents, open or ended, by title or folder; Enter opens one), Commands, Projects (folders your shells visited; Enter opens a new tab there) and Files (the focused pane's folder, searched once you pause typing; Enter opens the file in the editor beside it). Projects rows lead with their project's icon and Threads rows with their agent's mark. With nothing typed it lists recent tabs, every command by category and your most recent projects. Arrows choose, Enter runs. Open file… (Ctrl+Shift+O), Find file in project (Ctrl+P, Cmd+P on macOS), Jump to project… and Threads open it showing only Files, Project files, Projects or Threads; remove that chip with its × or Backspace to search everything.

Views in place: Files, Settings and Monitor open in the pane you open them from (compi files, compi edit, compi diff, compi settings, compi monitor, or the palette). In a terminal pane the view replaces what the pane shows, using the whole pane, while the shell keeps running underneath at its size. Get back to the shell with Ctrl+Shift+E on Windows (Cmd+Shift+E on macOS; Toggle view in the palette), with Esc once the view has nothing left to close (a filter, the editor, a search, a highlighted card), or Show terminal in the pane menu; the same shortcut, Show Files (Settings, Monitor) in the pane menu, or the command again brings the view back with its open files and place kept. On a terminal without a view the shortcut shows the shell's current folder in a Files view. While the view shows, keys go to it, never to the shell. Each terminal carries one view; opening another kind replaces it, asking first about unsaved edits. The pane menu (right-click, or the ⋯ grip) also has Move to its own pane, which puts the view in a pane of its own beside the shell, and Close Files (or Close Settings, Close Monitor), which drops it. Views survive reconnects and restarts like the panes that carry them.

Source: INSTALLATION.md ↗

Workspaces and panes#

Organize projects into workspaces, tabs and panes without restarting their programs.

  • Workspace: a named group of tabs.
  • Tab: one terminal or a layout of split panes.
  • Tab group: coloured tabs that share a label and can fold to it while their processes keep running.
  • Pane: a terminal or content view that can be resized, moved, zoomed, floated or docked.

Move and arrange

Hover a pane for its ⋯ grip. Click for actions, or drag onto an edge to split beside another pane, the centre to swap, another tab to join it, or empty tab-bar space to make a new tab. Escape cancels.

Pane movement, floats, tab groups and layout presets

Move a pane: Hover a pane to reveal the ⋯ grip in the middle of its top edge. Click it for the pane menu, or drag it to move the pane. Over another pane of the same tab, release on an edge to place the pane beside it, sharing that pane's space evenly, or on the centre Swap box to exchange the two; only the zone under the pointer is highlighted, the half the pane will take or the Swap box, over a faint preview of where the pane will land. Release on another tab to add the pane to it on the right; rest on a tab for a moment to switch to it while dragging, then drop beside one of its panes. Release on empty tab-bar space to give the pane its own tab. Esc, or releasing anywhere else, cancels. The shell keeps running: nothing restarts, and Restore previous pane arrangement undoes a move within a tab.

Float a pane: Right-click a pane, or click its grip ⋯, and pick Float pane (the palette has it too). The same running shell moves into a movable, resizable frame above the window and stays visible while you switch tabs or workspaces; its siblings fill the space it left, and the server's split layout is unchanged. Drag the title to move it and the right/bottom edges or corner to resize; the terminal is resized to fit. Dock pane (in the floating title's ⋯ menu, its right-click menu, or the palette) returns it to wherever its tab now places it without restarting anything. Docking never closes or ends work: closing a pane or tab is the separate Close pane/Close terminal tab action, and ending stays the explicit End process… action, which always asks first and keeps the final screen. Only one pane receives typing; a floating pane that has it has an accent border. To dock by dragging, drag the title onto a pane of the float's tab: release on an edge to place it beside that pane, or on the centre Swap box to take that pane's place (it takes the float's tile). Released anywhere else the float just moves; Esc puts it back. Click a pane or use Switch focus between floating and tiled panes / Focus next floating pane to move it. Floats are per window and are restored on relaunch.

Tab groups: right-click a tab and pick Add to group › (New group… or an existing group), or press Ctrl+Shift+G (Cmd+Shift+G on macOS; Add tab to group… in the palette). A new group asks for a name, which may be left empty, and takes the first colour no other group uses. The group's label sits in the tab strip before its tabs, which share a line in its colour. Click the label to fold the group: only the label stays, with its tab count, and the tabs keep running; click again to unfold. Picking a folded tab from the palette or the CLI unfolds its group, and Previous/Next tab skip folded tabs. Right-click the label for Rename group…, Colour ›, Fold/Unfold, Move group to new window, Ungroup (the tabs stay) and Close group… (ends every process in its tabs; asks first when Confirm before closing is on). Drag a tab into a group's span to join it, out of it to leave, or onto a folded label to add it there; drag a label to move the whole group, or out of the window to give it a window of its own. Remove from group is in a grouped tab's menu. Groups belong to the workspace, so every window shows them, and they come back after a restart.

Arrange panes and tabs: Run Arrange panes and tabs from the palette, or Arrange from a tab's right-click menu. Under Tabs to combine, click (or press Enter on) any other tab in this workspace to fold its panes into the current tab; click it again to leave that tab out. Built-in arrangements are Columns, Rows, Grid, Main + stack (side), Main + stack (top), and Equalize, which keeps the existing splits and evens their sizes; saved presets appear below them. Clicking or arrowing to a layout only previews it: the preview shows each pane's numbered place, across every combined tab, before anything moves. Double-click, Enter, or Apply commits it; Cancel, Esc, or clicking outside leaves everything as it was. M mirrors left/right and F flips top/bottom. Arranging only moves and resizes existing panes: no shell restarts and no pane is replaced. Combined tabs become one tab and disappear from the tab strip. Main + stack puts the focused pane in the large slot. A preset with fewer slots than panes stacks the extra panes in its last slot; a preset with more slots drops the unused ones. Mirror/Flip pane arrangement work directly on the current tab, Swap pane left/right/up/down exchanges the focused pane with its neighbor, and Restore previous pane arrangement undoes the last change: it restores the earlier layout, or, right after combining, splits the tabs back out (restoring a layout again swaps back). Split merged tabs back out recreates the combined tabs at any later time, with their names, order, and splits; panes you detached or removed since stay where they are. Save pane arrangement as preset stores the tab's split shape, never its terminals, in [layout_presets.NAME] of config.toml (up to 32 presets, 2–16 panes each; reusing a name replaces it); select a saved preset and press Delete twice to remove it. Floating panes keep floating and dock into their assigned slot. Swap commands have no default shortcuts; give them one in Settings → Keyboard, or under [keybindings], for example swap_pane_left = "ctrl-alt-left".

Hide, close or end?

ActionWhat happens
Close the app windowThe background server keeps running shells and chats alive.
Hide a terminal tabThe tab’s processes keep running; restore it through the palette.
Close a pane or tabIts processes end. GUI close confirmation is optional and off by default.
End process…Asks first and leaves the terminal’s final screen visible.
Restart daemonAsks first and ends the server’s running shells and chats.
Close confirmation settings

Closing a tab (its ×, Close terminal tab) or a pane (Close pane) ends its processes in one click. Settings → General → Confirm before closing asks first instead; Enter closes and Esc cancels. To keep a tab's processes running, hide it instead.

[workspace]
confirm_close = false

Removing a whole workspace and restarting the daemon always ask. The compi CLI keeps its own interactive confirmation.

Reconnect and recover

New tabs and splits open directly into the terminal canvas. Starting a shell shows no bar, spinner, delayed indicator, or reserved space.

Ended shells, launch failures, disconnected panes, and attachment conflicts retain their terminal canvas without recovery overlays, status buttons, or diagnostic hover cards. Final output and the last observed terminal name remain available after the shell ends. Use the existing pane-actions menu or command palette for explicit restart/attachment actions; inspect errors and exit codes through Diagnostics or compi --json pane show. Retrying attachment never takes control from another window. Reconnect window reconnects without restarting shells.

Shells that ended because Compi's background service restarted (for example after an update) come back on their own: the first time such a tab is on screen, it starts a fresh shell in the directory you were last in, or in its starting directory if that one no longer exists. Earlier output is gone. Shells you end yourself, or that fail to start, stay ended until you restart them.

Terminal scrolling and retained history
  • Scroll over a terminal pane without changing keyboard focus. While output continues, Compi keeps the text you are reading in place while it remains in retained history, including when older rows are evicted or a program redraws its history.
  • ↓ N new lines appears when output arrives while you are scrolled up. Click it, or type into the terminal, to return to live output.
  • Wheel and trackpad fractions accumulate per pane instead of rounding every event up. Applications with mouse reporting receive whole wheel reports; alternate-screen pagers such as less receive Up/Down keys otherwise. Programs can disable that fallback with DECSET 1007 (ESC[?1007l) and re-enable it with ESC[?1007h; it starts enabled.
  • Hold Shift to use local scrolling instead of sending wheel input to an application. Each pane keeps the configured history, 10,000 lines by default ([limits] scrollback_lines), within about 512 bytes per line on average; only unusually styled or wide output fills that sooner.
Source: USAGE.md ↗

Projects and the sidebar#

Keep project folders, tabs and threads together in the sidebar.

Add a project by opening a folder or cloning a Git URL. Saved projects remain visible without open tabs; Home holds tabs outside a saved project. Drag cards and projects to arrange them, and hover a card to see its panes.

Choose Chat first or Terminal first at launch or under Settings → General → New tabs. Use Find file in project to search the selected tab’s project.

Projects, tabs and sidebar cards

Chat first or Terminal first: the tab strip's + and Ctrl+T (Cmd+T on macOS) open a new thread draft (Chat first) or a shell (Terminal first). Compi asks which on first launch; closing the question keeps Terminal first, and Settings → General → New tabs changes it any time without closing anything. Right-click + for the other one; New thread tab and New terminal tab are in the palette too. A new thread starts in the focused pane's folder; with nothing focused, + opens a terminal.

Add project: Use the sidebar's folder-plus button or Settings → Projects → Add project…. Open folder accepts a path, keyboard folder browsing, or Browse…. Clone from URL accepts an HTTPS or SSH Git URL and previews the destination under the selected parent folder. Git runs in the selected environment with its credentials. Adding does not open a tab. In a Git repository, the project is the repository root; elsewhere it is the selected folder.

Sidebar: Ctrl+Shift+B (Cmd+B on macOS) shows or hides it. Saved projects appear even with no tabs, pinned projects first, and Home (your Start folder) holds every tab outside a saved project. A tab sits under the project its first pane is in: a thread's folder, or the Git repository its shell is in. A tab that starts outside Git (your home folder, say) joins the first repository its shell enters or a thread opens in, then stays with it wherever the shell goes. One folder is one project however it is named: a WSL tab in /mnt/c/…, or behind a link to it, shows under the project saved as C:\…. Click a heading to fold its cards; a folded heading shows the most urgent card's status. The project menu has New terminal here, New thread here, Copy path, and Project settings…. The latter opens that project's separate page in Settings → Projects.

New tabs and threads (the tab strip's +, Ctrl/Cmd+T, the sidebar's buttons) open in the selected tab's project: in the focused pane's folder while it is inside that project, else at the project's folder. With no tab selected they open in the project used last, else in Home. A new thread's draft names its project at the top; click it to start the thread in another project before you send.

Sidebar cards: Click to switch to a tab or double-click its title to rename it. Renaming a thread's card names the thread: the name shows in the sidebar, the tab, the chat header and Threads, stays after a restart, and the agent's own titles no longer replace it. A tab with more than one pane says how many (2 threads, 2 terminals, or 3 panes when they differ); hover a card to list each pane and what runs in it, such as OMP · Fix login · Working. The card menu includes Move to workspace ›, Add to tab group ›, Move to new window, and Close. Use the command palette's New workspace or Switch workspace to manage arrangements; moving a tab between workspaces doesn't change its project. Search matches project names, folders, and tab titles; ↑/↓ select a matching card, Enter opens it, F2 renames it, and Esc clears. Ctrl+1–Ctrl+9 (Cmd+1–Cmd+9 on macOS) open the first nine visible cards. Closed chats reopen from Threads in the command palette.

Drag sidebar cards: drag a thread or terminal card and a line shows where it lands. Among a project's cards it moves there; the tab strip follows, and among the pinned cards it is pinned in that place. On another project's heading or cards, Home included, it joins that project and stays there wherever its shell goes. Dropped on the panes, its tab joins the shown tab as a split on the right. Drag a project's heading over another heading to move the project; pinned projects stay first (Home starts pinned), and the order is saved for the sidebar and Settings → Projects. Esc cancels.

Find a file in the project: Find file in project (Ctrl+P, Cmd+P on macOS) searches every file of the selected tab's project, skipping files Git ignores, and Enter opens one in the editor beside the focused pane. With nothing typed it lists the project's files you opened last. On Windows and Linux a terminal keeps Ctrl+P (the shell's previous command), so press it outside a terminal, use Ctrl+Shift+O, or pick the command from the palette; Cmd+P works everywhere on macOS.

Project settings

A project is a saved folder in a particular environment. In a Git repository it is the repository root. Settings → Projects and the sidebar show the same saved projects, including projects with no open tabs. Use Add project… to open an existing folder or clone a Git URL. Existing project customizations are kept; folders only visited by a shell are not saved as projects. Choose a project row to edit its settings, or open Project settings… from its sidebar menu.

Home is always listed: your Start folder (Settings → General), else your home folder. Every tab outside a saved project sits under it. It has a name, icon, pin, and new-thread agent and model like any project, but it can't be archived or removed.

  • Name is what tabs' tooltips, the sidebar's project headers and cards, the palette's project list and a new thread's draft call the project; typing it in the palette finds the project, as its folder does. Type it in the Name field: Enter saves (so does leaving the field), Escape puts back the saved name. Reset (or its folder's name, or nothing) goes back to the folder's.
  • Icon shows the icon every place uses. Change icon… opens a dialog with five tabs: Automatic (the project's favicon or logo, else its first letter on a coloured tile), Icons (any Lucide icon, searched by name), Emoji, Monogram (one or two letters or numbers; icons and monograms take a colour of the terminal palette) and Image file (Choose file… takes a PNG, SVG or ICO, which Compi copies into its data folder, project-icons/). Save icon saves it; Reset goes back to Automatic.
  • Pin puts the project first in the sidebar and the Settings list. Home starts pinned; unpin it like any other project.
  • New threads' agent is the agent new threads in the project start with (New thread here, New thread, a new tab, New chat, compi chat without --agent): Default follows Settings → General → Default agent, or pick OMP, Claude Code, Codex or OpenCode. Changing it clears the model.
  • New threads' model is a button with the model's mark and name; it opens the model picker chats use (providers on the left, a search, favourites and recent picks; Ctrl+D stars). No agent runs here, so it lists the models that agent listed last in any chat (Compi keeps them in its data folder, listed-models.json), plus your favourite and recent models of it; until a chat of that agent has listed them it says so ("Open a chat with OMP once to list its models"). OMP's default (and so on) goes back to what the agent starts on elsewhere. Picking a model while the agent is Default keeps the agent it belongs to as the project's.
  • Archive hides the project from the sidebar and the main Settings list. Open tabs move under Home; threads, settings and files are kept. Use Restore under Archived to bring it back.
  • Remove from Compi… forgets the project's settings and its place among recent projects and deletes its threads, after asking with how many ("Deletes 12 threads. Files on disk are untouched."). It is refused while a tab is open in the project, naming the tabs.

Projects are kept under [projects], each under its key: host:<folder>, or wsl:<distribution>:<folder> for a project in WSL. saved = true keeps a project listed even with no custom settings. order is the project's place in the sidebar and the Settings list, saved when you drag a project's heading; projects without one come after the others of their group (pinned, then the rest), by key.

[projects."wsl:Ubuntu:/home/me/compi"]
name = "Compi"
icon = { kind = "lucide", name = "rocket", color = 4 } # color: terminal palette index, 0 through 15
pinned = true
order = 0 # set by dragging the project's heading in the sidebar
agent = "claude" # omp, claude or codex; unset follows [chat] agent
model = "opus" # the agent's own name for the model; unset starts on the agent's default

[projects.'host:C:\Users\me\site']
saved = true
icon = { kind = "monogram", text = "S", color = 2 } # one or two letters or numbers
Source: USAGE.md ↗

Files, editing and review#

Open the project’s files where you are already working.

compi files
compi edit
compi notes
compi diff

These open the relevant view in the current terminal’s pane while its shell keeps running underneath. Ctrl/Cmd + Shift + E toggles back. A file path can be passed to edit or notes; a repository is required for diff.

Edit and read Markdown

Use Edit / Read in a Markdown tab, or Ctrl/Cmd + E while the file view owns the keyboard. Read uses the same buffer, including unsaved edits. compi edit FILE forces Edit; compi notes FILE opens Read.

Save with Ctrl/Cmd + S, find with Ctrl/Cmd + F. Markdown supports tables, tasks, callouts, wiki links, backlinks, Mermaid and LaTeX.

Rendered tasks save the whole buffer.

Clicking a task checkbox saves the current buffer, including other unsaved edits, through the normal conflict-checked save.

Markdown behavior, notes search and rendering bounds

Markdown tabs have an Edit / Read switch in the tab's header (Edit / Read / Diff when the file has uncommitted changes), and Read Markdown (Ctrl+E, Cmd+E on Mac; a terminal keeps the key) switches between Edit and Read from the keyboard or the palette. Read shows the same buffer formatted, including unsaved edits; switching keeps your place, the line at the top of one mode at the top of the other, and from Diff Read opens at the line the diff shows. Tables, task lists, [!NOTE]-style blockquote callouts, fenced mermaid diagrams and $inline$ / $$display$$ LaTeX math render natively. Diagram and equation SVGs are prepared offline; they do not need a browser or downloaded packages. Unsupported syntax keeps its source with an error. Each window remembers which files you last read, across restarts, and opens them in Read however they open (tree, palette, a terminal link); others open in Edit. compi edit FILE opens Edit and compi notes FILE opens Read.

Clicking a rendered task checkbox saves the current buffer, including any other unsaved edits, through the editor's normal conflict-checked save. Read-only notes cannot be toggled; a file changed on disk shows the same conflict banner instead of being silently overwritten. The task edit remains undoable, and line endings are preserved.

Notes opens a panel below the document: empty search shows backlinks to the active note; typing searches the folder's Markdown files. Ctrl+F (Cmd+F) opens it from Read; the source editor keeps its own Find. A result opens its source line, and Esc closes the panel before returning to the terminal. The panel follows edits in open buffers; Refresh notes rereads other files from disk.

Rendering bounds: 128 distinct equations/diagrams per document, 8 KiB per equation, 64 KiB per diagram, 2 MiB per generated SVG and 4096 pixels per dimension. Larger resources show their source with the reason. Formula imports, filesystem access and package loading are unavailable.

compi notes search QUERY [FOLDER] searches note contents, filenames and heading titles case-insensitively and prints FILE:LINE: TEXT. compi notes backlinks FILE [FOLDER] finds source lines with [[target]] or [[target#heading|label]] links to FILE, ignoring inline, fenced and indented code. FOLDER defaults to the selected pane's current directory; FILE is relative to that notebook root, or absolute. Links resolve relative to their source note, then the notebook root, then a unique basename or heading title; missing or ambiguous targets are not guessed. Unix paths/titles are case-sensitive; Windows paths/titles ignore case. Heading suffixes do not change the resolved file.

Previews and file safety

Images and SVG have zoom/pan controls. PDF, audio and video use the system web view. Text over 1 MiB is read-only and paged in parts; syntax highlighting stops above 512 KB. Animated GIF and WebP show their first frame only.

Editor, previews, saves, conflicts and unsaved-edit recovery

Edit files: A content pane (opened with compi files or compi edit, see below, or from the palette, see the next item) shows its folder until you open a file: click a file, or select it with the arrow keys and press Enter. Type to filter the folder to matching names (Backspace edits the filter, Esc clears it); only folders you have expanded are searched. Hover the filter field for the keys. Open files appear as tabs above the editor; click a tab to switch, × to close it (a dot marks unsaved changes). Files in common languages (Rust, Python, JavaScript, TypeScript, JSON, Markdown, HTML, CSS, TOML, YAML, Go, C, C++, shell and PowerShell scripts) show their language's icon in the folder, on their tab and in Changes. Hover a tab for the file's full path and where it lives (host, WSL: Ubuntu, or SSH: host); the right end of the tab row names the same place. The folder button at the left of the tabs shows or hides the folder beside the file. The editor highlights syntax (files over 512 KB open as plain text, so typing stays quick), numbers lines and searches with Ctrl+F (Cmd+F); Ctrl+S (Cmd+S) saves, keeping the file's line endings. Images (PNG, JPEG, GIF, WebP, BMP, ICO, up to 64 MiB) open as images: fitted to the pane, the wheel zooms about the pointer, dragging pans, and the bar above shows the size with −, Fit, 100% and +. An SVG opens in the editor with Edit / View (Diff too when it has uncommitted changes); View (or Ctrl+E, Cmd+E) draws it, and Compi remembers which SVGs you last viewed. Text files over 1 MiB (logs, data dumps) open read-only about 1 MiB at a time, cut at line breaks: the bar says which part shows, and Start, Previous, Next and End move through the file; select, copy and Ctrl+F work within the part, and only the first part has line numbers. PDFs open in the system web view's PDF viewer, and audio and video files (MP3, WAV, FLAC, Ogg, M4A, MP4, WebM, …) in its player, whatever their size; playback pauses when you switch to another tab, and formats the web view cannot play say so. Other files that are not text show their size, path and a Copy path button instead of the editor. A read-only file opens read-only, marked Read-only on its tab; saving it offers Save as… instead. Compi never overwrites changes made outside it without asking: while a file is on screen, Compi checks it every couple of seconds. If it changed and you have no unsaved edits, the new text loads in place and the cursor stays where it was. If you have unsaved edits, a changed on disk note offers Reload (discard your edits) or Keep mine. If you save over a newer file anyway, the note offers Reload, Overwrite (replace what is on disk with your text) and Save as… (type another path; the tab switches to the new file and the original is left alone). A file deleted outside Compi keeps its text, and saving creates it again. Reload asks for a second click when it would discard edits. Closing never loses edits silently: closing a file tab, a pane, a tab or a workspace with unsaved files, moving such a tab to another window, closing the window, quitting, restarting the daemon or installing an update first lists the files and offers Save (Enter; if any file cannot be saved, nothing closes and its tab says why), Don't save and Cancel (Esc). Unsaved text is also kept on disk within a second of typing, so after a crash, an update restart or a reopened window the file comes back with your edits and a note Restored unsaved edits from … (plus the changed on disk note if the file changed meanwhile). Edits of files no longer open are offered by Recover unsaved edits… in the command palette, which opens the file beside the focused pane; kept edits are deleted after 30 days. Compi shortcuts (palette, splits, pane focus, sidebar, …) keep working while you type, Esc leaves the editor (or closes Save as) for the pane, and Enter or a click returns to it. Open files stay open across restarts.

Opening files from the palette, terminal paths and image cards

Open files from a terminal: In the command palette, Files shows the focused terminal's current directory in its Files view, in place of the shell; in a content pane it shows the pane's own folder (beside an open file, as the folder sidebar) and gives it the keyboard. New editor opens the Files view of a terminal without one, and otherwise a new content pane beside the focused pane. Open file… (Ctrl+Shift+O) opens the palette on the focused pane's folder; type part of a file's path and Enter or a click opens it in the terminal's Files view, and nothing is typed into the terminal. Typing a file name in the full palette finds it too. Open file… searches WSL and Unix folders; for a native Windows folder use Files. All three need the terminal's directory: the one its shell last reported (OSC 7, see below), else the one it started in. A Files view keeps the files it has open; its folder moves to where a newly opened file lives when it does not hold it.

Open a file printed in a terminal: Ctrl-click (Cmd-click on macOS) a path such as src/main.rs, ./web/app.ts:4, /etc/hosts or crates/x/y.rs:12:3 (also File.cs(12,5)) to open it at that line in the terminal's Files view, in place of the shell. Relative paths start from the terminal's current directory, in its own environment (WSL or host). Compi first checks that the path is a readable file; otherwise it only shows a note. A web link to this machine, such as http://localhost:5173/, opens as a page in place of the terminal (see Open a web page beside a terminal); other web links keep opening in the system browser, and file:// hyperlinks (OSC 8) open in the editor.

Paste a screenshot or image: Ctrl+V (Cmd+V) with an image on the clipboard, or dropping an image file on a terminal, types the image's path at the prompt and shows a card for it at the bottom right of that pane. Click the card to view the image over the window (zoom, Copy, Save). Right-click it for Open, Open in pane beside (the image in a Files pane split beside the terminal, read in the terminal's own environment), Copy path and Dismiss.

Diffs, staging and commits

Use Changes or compi diff to review uncommitted work. compi diff HEAD~1 opens a past commit, read-only, against its first parent. Unsaved buffer edits are not included in a disk-based diff.

Stage a file or hunk, write a commit message and use Ctrl/Cmd + Enter to commit. Discard changes… is destructive and asks first; discarding an untracked file deletes it.

Review, staging, commits and branch operations

Review changes: In a Git repository the folder sidebar switches between Files and Changes (palette Changes, or compi diff). Changes lists Unstaged and Staged files with their status letter and line counts, grouped in folders: a chain of folders that only hold the next shows as one row (crates/compi-client/src), each folder shows the lines its files add and remove, folders come before files, and the counts line up in two columns at the right. The header's chevrons collapse or expand every folder; its list button shows the files as a flat list instead. Click one to show its diff in that file's tab: each file has one tab, and a file with uncommitted changes has an Edit / Diff switch in its header (Ctrl+Shift+D, also Diff this file in the palette) that flips between editing and the diff at the same line; a file without changes shows no switch (an image, PDF or media file's first mode reads View). A tab showing a diff has a small diff icon, its tooltip names what it compares, and a staged diff says staged in its header. A deleted file opens only as a diff. Edits you have not saved stay in the editor while you look at the diff, which compares the saved file (the header says Unsaved edits not shown). Diffs show side by side when the pane is wide (switch with Auto/Unified/Split), highlight the changed words, fold unchanged lines (click a fold to show more, e expands everything) and search with Ctrl+F. n/p jump between changes, and [/] step through changed files. Each diff names what it compares (Working tree vs index, Index vs HEAD). Diffs and the list follow edits made anywhere, including in the terminal.

See changes while editing: Open files in a repository mark lines that differ from the index in the editor's left edge: a bar for added or changed lines, a small wedge where lines were deleted. Unsaved edits count. The tab row says vs index (or untracked). Click a mark or vs index to switch the tab to its diff there. Next change / Previous change (Alt+F5 / Alt+Shift+F5) move between changes. The marks only show changes; they never stage anything.

Stage and commit: Hover a file in Changes for + (stage), − (unstage) and ↺ (revert its uncommitted changes); the Unstaged and Staged headings stage or unstage everything. In a diff, hovering a change shows its Stage hunk / Unstage hunk button beside the first line (whitespace set to Exact); after n/p, Shift+S / Shift+U moves the current change. The header's Stage / Unstage (s / u) and Discard changes… act on the whole file. Reverting always asks first, lists each file, and deletes new (untracked) files; it can't be undone. Write the message in the box at the top of Changes and press Ctrl+Enter (Cmd+Enter on macOS) or Commit. Amend rewrites the last commit and loads its message. Hooks run as usual; if Git refuses, its message shows under the box.

Branches, fetch, pull and push: The top of Changes shows the branch (or detached at <commit>) and how far it is from its upstream, such as ↑2 ↓1; its tooltip says when it is up to date, and a branch without an upstream says no upstream. Click the branch (or use Switch branch… / Create branch… in the palette) to pick another one: type to filter, Enter switches, and the Create branch “name” row makes a branch at HEAD and switches to it. Remote branches switch to a new local branch that tracks them. Uncommitted changes come along; if they would be overwritten, Git's message shows in the picker and nothing is stashed or forced. Fetch, Pull and Push (buttons at the top of Changes, also in the palette) type git fetch, git pull or git push into a terminal beside the editor: one of that tab's terminals waiting at a prompt in the repository folder, else a new one opened there in the repository's environment, so password, SSH-key and 2FA prompts work. A branch without an upstream pushes with git push -u origin <branch>, and the Push tooltip says so. Nothing is ever force-pushed. The ahead and behind counts follow within a couple of seconds.

compi diff COMMIT shows a past commit (a hash, HEAD~1, a branch or a tag) at the top of the view's Changes sidebar: its short id and summary (author and age on hover), then the files it changed; × closes it. compi diff COMMIT FILE[:LINE] opens that file's diff in that commit, scrolled to LINE. A commit is compared with its parent (a merge with its first parent; the first commit shows every file as added), and nothing in it can be staged or discarded. With one argument, a file with uncommitted changes wins over a commit of the same name. An unknown commit, or a file the commit did not change, says so and exits 1. --json adds commit, short and summary.

Source: USAGE.md ↗

Browser panes#

Keep your local app or documentation beside its terminal.

compi browse
compi browse localhost:3000
compi browse https://docs.rs --down

The local-server example requires something listening on port 3000. With no URL, the browser home page lists responding local servers found in terminal output and the last five sites for the window.

  • Ctrl/Cmd + L or F6 selects the address field; Enter navigates, Escape restores the current address.
  • Back, Forward and Reload/Stop use the pane’s toolbar.
  • Split, float, move or close it with the normal pane controls. Closing it does not stop a separate terminal’s server.
  • compi --json window list reports page URL, title, loading address and errors.
A pane is not browser automation.

Opening or navigating a Browser pane does not give an agent DOM inspection, screenshots or page automation. Those come from the agent’s own browser tools.

Native macOS UI checks for 0.9.4 remain unperformed, so browser panes and PDF/audio/video previews are not yet qualified on a Mac. Web-view behavior and supported media formats depend on the platform.

Browser toolbar, profile, home page and CLI behavior

Open a web page beside a terminal: compi browse localhost:3000 (see below) or Open browser in the palette opens a Browser pane: a page of the system web view (WebView2 on Windows, WebKit on macOS) that splits, floats, moves and closes like any pane and comes back after a restart. The toolbar has Back, Forward, Reload (Stop while loading) and the address field: Ctrl+L (Cmd+L on macOS) or F6 selects it, Enter goes, Esc puts the current address back. A bar under the toolbar shows a page loading; a page that cannot load shows why, with Retry. Only http, https, file and about:blank addresses open; without a scheme http:// is assumed. Each instance keeps one browser profile, so sign-ins and cookies persist. The page hides while the palette, a menu or a dialog is open. On Windows a float above a page draws over it; on macOS the page hides while a float overlaps it. In place of a terminal: when a terminal prints a local server's address (a dev server's Local: http://localhost:5173/, for one) and the server answers there, a card at the bottom right of that pane shows the address, such as localhost:5173, with Open. Click it and the page shows in place of that terminal, as its view (see Views in place): the same toolbar, the whole pane, the shell and its server running underneath. Ctrl+Shift+E (Cmd+Shift+E on macOS) or Show terminal in the pane menu goes back to the shell, and the same again (Show Browser) brings the page back where you left it; Close Browser drops it, and Move to its own pane loads it again in a Browser pane beside the shell. Right-click the card for Open, Open in pane beside, Copy address and Dismiss. The card goes when you open or dismiss it and when the server stops answering; after that it comes back only when the terminal prints a different address or the server starts again. With several addresses printed, the card is for the newest one that answers. Ctrl-click (Cmd-click) a link to this machine in a terminal opens the page the same way. Settings → Terminal → When a dev server starts chooses Offer to open (the card, the default), Open automatically (the page shows as soon as the address answers, once for each start of the server: go back to the shell and it stays on the shell while that server runs; a terminal already carrying Files, Settings, Monitor or a chat gets the card instead) or Do nothing. It is saved as [workspace] dev_server (offer, open or nothing).

Browser home page: a Browser pane without an address shows Compi's home page. Running here lists the local servers your terminals printed addresses for (a dev server's Local: http://localhost:5173/, for one) that are answering now, this tab's first, each with its tab's name. Recent lists the window's last five sites. Click one to open it; Back from the first page returns home.

compi browse URL opens URL in a Browser pane beside the selected terminal (below it with --down); the shell stays as it is. Besides an address it takes a bare port (compi browse 5173 opens http://localhost:5173), a file (compi browse ./site/about.html, or a page's file name such as index.html) and a folder, which shows its index.html; relative paths start from the shell's directory. A page opened from a file cannot load JavaScript modules or fetch other files (the web view's rule for file pages), so a project that needs those should run its server: browse the address it prints. From a Browser pane (--pane), that pane goes to URL. Without a URL the pane opens on its home page with the keyboard in its address field: paste a link there to skip shell quoting (zsh, for one, stops at an unquoted ? or &). A pasted link may come with text around it, such as quotes, <…>, a Markdown link, a dev server's Local: http://localhost:5173/ line or a trailing period; Compi takes the link out of it. compi --json window list reports each shown Browser pane's page: its url, title, the address loading and the error of a failed load.

When a dev server starts

Settings → Terminal → When a dev server starts chooses what a terminal does once a local address it printed, such as http://localhost:5173/, answers: Offer to open (default) shows a card with the address at the pane's bottom right, Open automatically shows the page in place of the shell once for each start of the server, and Do nothing leaves the terminal as it is.

[workspace]
dev_server = "offer" # offer, open, or nothing
Source: USAGE.md ↗

Chat with agents#

Chat with OMP, Claude Code, Codex or OpenCode beside your terminals, files and diffs.

compi chat
compi chat --agent claude
compi threads

Choose New chat in the palette or run compi chat in a Compi shell. New chats use the project’s agent when set, otherwise the default in Settings → General → Default agent; --agent selects one explicitly. Install the agent where the chat runs. Settings → Agents shows available installations and lets Windows users choose WSL or Windows.

New chats start as drafts. Send a message to start a thread; reopen chats from Threads in the palette. compi threads lists them and compi threads delete ID deletes an ended thread’s saved transcript.

Use /providers, /login and /logout for sign-in, and /update to update the agent from its chat. Available controls, models and sign-in options depend on the agent.

Chat controls and thread drafts

Chat with an agent: compi chat (see below) or New chat in the palette starts a chat with the default agent (Settings → General → Default agent: OMP, the omp program, Claude Code, claude, Codex, codex, or OpenCode, opencode, installed in WSL, on Windows or both; see Agents in WSL and Windows below) in the focused terminal's folder, in place of its shell (or beside it, as Settings → Chat → Opening a chat says); from a content pane it opens beside it, in that pane's folder. The chat's header and the sidebar card show its agent's mark. Enter sends, Shift+Enter starts a new line, Stop ends a running turn. While the agent works, Enter steers it: the message joins the running turn, which takes it at its next step (with a permission waiting, typing a message and pressing Enter turns the permission down and steers). Ctrl+Enter (Cmd+Enter on macOS) queues a message for after the turn instead (Settings → Chat → Enter while the agent works can swap the two); an agent that can't take a message during a turn (Claude Code, Codex, OpenCode 1.x) queues it either way. Queued messages wait above the message box, oldest first, and go one at a time as turns end. Each has × to remove it and a pencil to edit it (Alt+Up with the cursor at the start of the message box edits the last one): the message opens in the message box, its row marked, Enter or ✓ saves it in its place, and Esc cancels; what you were typing comes back either way. After Stop the queue waits, and goes after the next message you send. Up in an empty message box brings back your earlier messages in this chat, newest first; Down walks forward, and past the newest leaves the box empty. Editing a recalled message makes it a new draft. Type / at the start for the agent's commands and @ to attach a file of the folder (Tab or Enter completes); Ctrl+V (Cmd+V) with an image on the clipboard, such as a screenshot, attaches it, made a PNG or JPEG small enough to send. A paste of 32 KB or more, or one that would make the message too long to send, is attached as a text file instead; Ctrl+Shift+V (Cmd+Shift+V) types it in. Dropping files anywhere on the chat attaches them as + does: images are sent with the message, made small enough the same way, and other files by their path. Attached images show as thumbnails above the text, other files by name. While you drag, the message box turns into a drop zone (a dashed border and Drop to attach). To ask about terminal output, select it and choose Send to chat (right-click, or Send selection to chat in the palette): it goes to the end of the message box as a code block, in the terminal's own chat, else the tab's first chat, else a new one. Page Up and Page Down scroll the conversation, also from the message box; Ctrl+End (Cmd+Down on macOS) or Latest goes back to the newest message. The row under the message box shows the model and thinking level, with the model's mark, and context use and cost; a mode other than the agent's first (Plan) shows beside them, and so, by the same rule, does a small shield naming the chat's permissions, only while they differ from Settings → Agents → Approvals (click it for the picker). Click the model, press Ctrl+Shift+M (Cmd+Shift+M on macOS) or type /model for the model picker, which opens above the message box. A strip on its left chooses what the list shows: the star for your favorite models and recent picks, then a mark per provider, your subscriptions first (hover one for how much of its plan is left). Claude Code's models (opus, sonnet, …) and Codex's (gpt-5.5, …) name no provider, so their strip has one: the agent's own mark. OpenCode's are every provider's it is set up with, under their providers (openai/gpt-5.5, opencode/big-pickle). Typing searches every model of every provider, each with its provider's name. The thinking levels sit beside the list, and the keys, the modes and the chat's Permissions in its footer: the agent's own setting (OMP's own setting, Same as Claude Code, Same as Codex, Same as OpenCode), Ask before anything, Edits allowed or Full access (hover one for what it allows), for this chat only. Picking other permissions starts the agent again with them, a draft on a new session and a thread on its own; while the agent works or messages are queued, a thread's permissions can't change. Up and Down move, Left and Right (or Tab) change column (in the strip, Up and Down change what the list shows), Enter on a model picks it and moves to the thinking levels, and Enter on a level, mode or permissions picks it and closes; Ctrl+D (Cmd+D) or the star on a row adds the model to your favorites or takes it out. Two models of one provider with the same name show their IDs. New sessions start on the model and thinking level you last picked with that agent (until you pick one, on the agent's own); Compi never changes the agent's settings. When the model or thinking level changed since the previous message, a line such as Claude Opus 5.5 → Claude Sonnet 4.5 shows before the next one. Tool calls show as one line each, and two or more in a row fold under one line saying what they did, such as "Ran 2 commands, edited 3 files" (a mark on it when the latest failed); click it for the calls. While a turn runs, its calls in a row show only the latest under their line. Once a turn ends, its work before the last reply folds to one line, "Worked for 1m 05s" (from sending the message to the turn's end; "Stopped after…" when you stopped it); click it for the work. A turn that failed, waits on you or has sub-agents running stays unfolded. Click a call for what it did: an edit's diff (a small one shows unfolded) or, when the agent reported none, Open in diff; a command and its output; a search's results; Codex's plan and OpenCode's todo list, their steps with their state. A read shows only its file, and an edit's output shows only when it failed or changed nothing; a tool's raw input shows only for tools Compi has no view of. The sub-agents a turn starts (OMP's tasks, OpenCode's sub-agent sessions, …) share one card, such as "3 sub-agents · 2 running · 1 done", open while any runs and folded with the turn's work after; click its line to open or close it. It lists each agent with its state, what it is doing, time and cost; click one, also while it runs, for its task and its steps, which fill in as it works: the latest ten, under a line that shows the earlier ones when clicked; a finished one shows its result under them. While any run, a bar above the message box names them (click it to jump to the card, with the agent's task and steps open when only one runs; Settings → Agents → Agents bar hides it). Open in diff opens Compi's diff view in a Git repository. A file a tool reads or edits shows its language's icon on the tool's line and on its diff, whose lines have the diff view's syntax colours with + and − in the added and removed colours. A code block in a reply shows its language's icon and name beside its Copy button when its tag names a language Compi has an icon for. A tool call waiting for permission shows its answers on its line (Enter allows, Esc refuses while the message box is empty), and questions show above the message box. Esc closes what is open (the //@ list, an edited queued message, the model or session picker, a menu); otherwise, while the agent works, it stops the turn as Stop does. It never leaves the chat. Ctrl+Shift+E (Cmd+Shift+E) or Show terminal in the pane menu shows the terminal's shell. The ⋯ menu starts a new session, resumes an earlier one or restarts the agent. Resume… opens the session picker over the chat: the folder's sessions, newest first under Today, Yesterday, This week and Earlier, each with its title (or first prompt), age and size, the current one checked, and a preview of the highlighted one's first prompt and last reply where there is room. Type to keep the sessions holding every word in their title, first prompt, last reply, folder or ID; Up and Down (Page Up, Page Down, Home, End) move, Enter or a double click resumes, Esc closes. The / list also offers four commands of Compi's own, marked Compi: /new starts a new session, /resume and /sessions open the session picker, searching for any words after them (/resume login), and /model opens the model picker. A command of the same name from the agent replaces Compi's, except /model. The chat runs in the Compi daemon, so it keeps going while hidden or with the shell shown, and resumes its session after a daemon restart. Closing its pane, view or tab ends it like any terminal's program (asking first only with Confirm before closing): its turn stops, the agent exits and the terminal it was shown on ends; nothing keeps running. Its transcript stays a thread: Threads in the palette lists every thread with its title, folder, age and status (Working, Waiting, Open, Ended); choose an ended one to open it in a new tab, its agent starting again on the same session, or delete it with its × (or Delete, with nothing typed); a thread a pane still shows can't be deleted. The agent asks before running tools as its own settings say (OMP's tools.approvalMode, Claude Code's permissions, Codex's approval_policy and sandbox_mode, OpenCode's permission rules); Settings → Agents → Approvals can choose otherwise (configuration). A chat shows its program status like a terminal running its agent: working, waiting on you for a permission or question, done or failed (see Program status).

New thread drafts: every new chat (New chat in the palette, New thread in the sidebar or a project header's menu, compi chat, a split from a chat) starts as a draft, centred in the pane, with the default agent; a split from a chat keeps that chat's agent. Its project is the title: the project's icon and name, and under them its Git branch, how many files have changes and the folder (outside Git just the folder). Then comes the message box; the chat's permissions are in the model picker (see above). The agent starts right away, so the first message goes out quickly. The thread begins with the first message you send: the pane becomes the usual chat, and only then does it show in Threads. Below, Open here lists Terminal, Files, Changes, Browser and Monitor; clicking one puts it in the draft's place, in its folder (Changes is Files at the folder's repository, on its Changes list, dimmed outside one). Closing an untouched draft leaves nothing behind. Closing one you typed in shows Draft discarded · Undo for 5 seconds; Undo opens it again where it was, with its text. In the sidebar a draft's card reads New thread, with Draft where other cards show their age.

Default agent: Settings → General → Default agent picks the agent every new thread starts with: OMP (the default), Claude Code, Codex or OpenCode. It lists the agents installed where new chats open; one that isn't is dimmed with Not installed and can't be picked. A project can start its new threads with another agent and model (Settings → Projects → New threads' agent and model); New thread, a new tab and New chat follow the selected tab's project, New thread here the header's. For one thread with another agent: New chat with OMP, New chat with Claude Code, New chat with Codex or New chat with OpenCode in the palette, New thread with › when you right-click the tab strip's +, compi chat --agent omp|claude|codex|opencode, or, on a draft, the agent marks at the top of the model picker's strip (clicking another starts the draft again with it, keeping what you typed). Once you send the first message, the thread keeps its agent.

compi chat starts a new chat with the agent of the terminal's project (Settings → Projects → New threads' agent), else the default agent (Settings → General → Default agent), or with --agent omp, --agent claude, --agent codex or --agent opencode, in place of the selected terminal's shell, or in a new pane beside it with [chat] open = "beside" (Settings → Chat → Opening a chat), working in the shell's current directory and environment (see Agents in WSL and Windows for which program runs). --json adds the chat's chat id and folder. An agent running in WSL is told at start that it runs in WSL on Windows, your Windows home folder in both forms (C:\Users\you and /mnt/c/Users/you), that Windows programs run by their .exe names, and about compi screenshot; a Windows agent in a WSL chat also hears how Linux paths map for its file tools. Compi adds this to OMP through its own OMP extension, so your APPEND_SYSTEM.md still applies, to Claude Code with --append-system-prompt, to Codex as the session's developer instructions, and to OpenCode as each prompt's system text (1.x) or the session's instructions (2.x); an agent you start yourself in a terminal doesn't get it.

compi threads lists the threads the daemon keeps, newest first: each chat with an agent, open in a pane or ended, with its title, folder, age, status (Working, Waiting, Open, Ended) and id (--json gives the full list). compi threads delete ID deletes an ended one's saved transcript; a thread a pane or view still shows is refused.

Agent installations and sign-in

Agents in WSL and Windows: an agent can be installed in WSL, on Windows or both; Compi finds it and always runs its real program, never a launcher script whose interpreter belongs to the other side (npm's codex script in WSL needs a Linux Node; Compi runs Codex's codex.exe instead). Every new chat with an agent uses one install of it, in any folder, so its sign-ins and sessions are always the same: its Linux one in your default distribution when it has one (a Windows folder such as C:\Users\you\proj runs it in /mnt/c/Users/you/proj), else its Windows one. When an agent is installed on both sides, its card in Settings → Agents says which one chats use and has an Ubuntu | Windows switch; new chats follow it, while open and saved threads keep the program they started with. The agent's commands land where the chat is, as if typed in a Compi terminal there: in a WSL chat they run in the distribution, in the chat's folder, and a PowerShell command (Get-Process, $env:PATH) runs in PowerShell, as Commands from the other shell does in a terminal (Compi's hook, ~/.compi/shell/compi-agent.sh, is the agent's BASH_ENV; your own BASH_ENV still runs first). cd takes Windows paths there too. A Windows Claude Code, OMP or OpenCode in a WSL chat runs its commands the same way, through Compi's agent shell (Compi's own program as bash.exe, in the data folder's agent-shell), which also reads the Git Bash paths it writes (/c/Users/you) as the drive's place in WSL; it is told only that its file tools take Windows paths (/home/you/x is \\wsl.localhost\<distribution>\home\you\x). A Windows Codex has no way to change its shell, so in a WSL chat its commands run in PowerShell on the WSL folder; install Codex in the distribution (npm i -g @openai/codex there, or its standalone installer) to have them run in WSL.

Model providers, sign-in and updates from the chat (every agent): /providers lists what the chat's agent can sign in to, with each account, its plan and any sign-in the agent can no longer use, and buttons to Sign in (one per way the agent offers: Claude Code's Claude subscription or Anthropic Console, Codex's ChatGPT account or API key, OpenCode's browser sign-ins or API key), Add account where the agent keeps several, and Sign out where the agent allows it (OMP signs out only in its own window). /login and /logout do it for the chat's provider, or the one named (/login moonshot). Compi runs the agent's own login where the chat runs, Windows or WSL, so the sign-in lands in the same program the chat uses: OMP's omp login, Claude Code's claude auth login, Codex's codex login, OpenCode's own server. A card above the message box follows it: Open sign-in page, and when the provider asks for a code or an API key, paste it into the message box and press Enter. Once signed in or out, the agent starts again on the same conversation. When a reply fails because a provider isn't signed in, or the agent can no longer use a sign-in, the same card offers Sign in. In OMP and OpenCode the model picker shows each provider's sign-in state under its models. /update updates the chat's agent where the chat runs it with its own updater (omp update, claude update, codex update, opencode upgrade) and says the version before and after; every chat using that program stops while it runs and starts again on its conversation afterwards, so no chat may be running a turn. Settings → Agents shows each install's version and offers Update … to … when a newer one is published.

OpenCode: Compi runs opencode serve, OpenCode's own local server, on the loopback address with a password only Compi knows, and talks to it over HTTP; it stops with the chat. Both of OpenCode's lines work: 1.x (npm's opencode-ai, opencode.exe on Windows) and 2.x (@opencode/cli, whose installer puts it in ~/.opencode/bin). Its replies and reasoning stream, its commands show with their output, its edits as diffs, its todo list (1.x) as a card, and its sub-agents' sessions on the sub-agents card with their steps. Permissions offer Allow once, Always allow and Reject; its question tool's questions show above the message box. The models are those of every provider OpenCode is set up with, grouped by provider; the thinking levels are the model's variants, and the modes OpenCode's agents (Build, Plan). A new chat's session opens with its first message, so a chat you close unused leaves none behind; Resume… lists the folder's sessions. 2.x takes a message into the running turn (steering); 1.x queues it. Compi's permission levels go with the session as OpenCode permission rules (see configuration). A Windows OpenCode in a WSL chat runs its commands through Compi's agent shell (as its SHELL).

Chat settings

Settings → General holds New tabs and Default agent, Settings → Agents each agent's card and how agents ask before running tools, and Settings → Chat how the conversation looks and behaves; the model, thinking level and mode are picked in each chat's model picker. A change made in Settings applies to every open window.

  • Settings → General → New tabs: Chat first opens a new thread in the tab strip's + and Ctrl+T (Cmd+T); Terminal first opens a shell. Compi asks once, on first launch; right-click + for the other.
  • Settings → General → Default agent picks the agent every new thread starts with (New chat, New thread, a new tab, compi chat): OMP (the default), Claude Code, Codex or OpenCode. Settings lists the agents installed where new chats open, in WSL or on Windows, and dims the others with Not installed. A split from a chat keeps that chat's agent, and compi chat --agent omp|claude|codex|opencode overrides it for one chat.
  • Settings → Agents shows a card for every agent: its mark and name, Default on the one new threads start with, and its program's version as --version reports it (Installed 19.1.0). On Windows the card names where it is installed, your WSL distribution (such as Ubuntu), Windows or both; an agent on both sides gets an Ubuntu | Windows switch that picks the one new chats use in every folder. Compi looks for the program a chat would run on each side, the Linux one in your default distribution. An agent installed nowhere says Not installed and the command that installs it, which Copy command copies. Compi looks again each time the page opens.
  • Settings → Agents → Approvals chooses how the agent asks before it runs tools. Same as the agent (the default) uses the agent's own setting, the one it follows in a terminal (OMP's tools.approvalMode, which Compi reads when the chat starts and hands to OMP, whose chat mode would otherwise ignore it; Claude Code's permissions; Codex's approval_policy and sandbox_mode; OpenCode's permission rules). Always ask asks before anything but reading, Allow edits runs reads and edits and asks before commands, and Allow everything never asks. Each agent gets them in its own terms: OMP's always-ask, write and yolo; Claude Code's default, acceptEdits and bypassPermissions; Codex's approval policy and sandbox untrusted + read-only, on-request + workspace-write and never + danger-full-access; OpenCode's session permission rules, the last match winning: ask (* asks; reading, searching, its todo list and questions are allowed, .env files still ask), allow-edits (that, with edits and sub-agents allowed) and allow-all (* allowed). With Same as the agent an OpenCode session gets no rules of Compi's, and a resumed one loses those Compi gave it. A change applies to new chats and to chats that start again (Restart in the ⋯ menu, or after the daemon restarts); a running chat keeps the mode it started with.
  • Settings → Agents → Agents bar (on) lists OMP's running sub-agents above the message box.
  • Settings → Chat → Text size sizes agent chats with −, + and Reset. The messages and everything around them (header, tool cards, menus, the message box) grow together; the rest of the window keeps its size. With a chat focused, Ctrl+=, Ctrl+- and Ctrl+0 (Cmd on macOS) change the chat text size instead of the terminal font. Reset removes the key, returning to the default of 14.
  • Settings → Chat → Enter while the agent works: Steer (the default) sends the message into the running turn and Ctrl+Enter (Cmd+Enter on macOS) queues it for after; Queue swaps the two.
  • Settings → Chat → Opening a chat: In place of the shell (the default) shows the chat over the terminal it starts from; Beside it opens it in a new pane next to that terminal.

The model picker remembers, per agent, the model and thinking level you last picked, which new sessions start on, your favorite models and your five latest picks, under [chat.<program>]: [chat.omp], [chat.claude], [chat.codex] and [chat.opencode]. Values are the agent's own names for its choices (Claude Code's and Codex's are bare, such as opus or gpt-5.5; OpenCode's name their provider, such as openai/gpt-5.5, and its thinking levels are the model's variants); one it no longer lists is skipped. On Windows, side picks which of an agent's programs new chats use in every folder, linux (in WSL, the default) or windows, as the Ubuntu | Windows switch in Settings → Agents does; an agent with only one uses that one.

[chat]
agent = "omp" # omp (OMP), claude (Claude Code), codex (Codex) or opencode (OpenCode)
text_size = 14 # 10 through 32
approval = "harness" # harness (Same as the agent), always_ask, write or yolo
enter_while_working = "steer" # steer or queue
open = "in_place" # in_place or beside
new_tab = "chat" # chat or terminal; unset, Compi asks on launch
agents_bar = true

[chat.omp]
model = "anthropic/claude-opus-5-5" # new sessions start on it; unset uses OMP's own
thinking = "high"
favorites = ["anthropic/claude-opus-5-5", "openai-codex/gpt-5.5"]
recent = ["anthropic/claude-opus-5-5"] # newest first, at most five
side = "linux" # Windows only: linux (WSL, the default) or windows

[chat.claude]
model = "opus" # unset uses Claude Code's own
favorites = ["opus", "sonnet"]

[chat.codex]
model = "gpt-5.5" # unset uses Codex's own (its config.toml's model)
thinking = "high" # Codex's reasoning effort

[chat.opencode]
model = "opencode/big-pickle" # unset uses OpenCode's own (its config's model, else the one last picked in it)
thinking = "high" # the model's variant; "default" is the model's own

Shared OMP authentication on Windows and WSL

Compi runs the installed agent with that operating-system user's configuration. Its installed and development instances do not need separate OMP logins, but Windows and WSL have different home directories and, by default, different OMP credential stores. A login in one does not sign the other in.

Use OMP's native authentication broker rather than copying OAuth refresh tokens or sharing agent.db between operating systems. Choose the installation with the working accounts as the authority. For example, in Ubuntu:

omp auth-broker serve --bind=127.0.0.1:44937

Keep it running, preferably as a user service. OMP creates its broker token at ~/.omp/auth-broker.token; keep it private to your OS user. Configure both OMP installations in their own ~/.omp/agent/config.yml:

auth:
  broker:
    url: http://127.0.0.1:44937
    token: "!cat ~/.omp/auth-broker.token"

That token command is for the WSL client. On Windows, read the same token through WSL, replacing the token line with the following and changing Ubuntu and /home/you to your distribution and Linux home:

    token: "!wsl.exe -d Ubuntu --exec cat /home/you/.omp/auth-broker.token"

This example requires the broker and Windows-to-WSL localhost forwarding to be ready before OMP starts. An on-demand token helper must start the service and wait for its health endpoint from the client's operating system before returning the token; Linux readiness alone can precede Windows forwarding. Never put token values in project files, shell history or logs. Bind only to loopback; this grants local clients access to your provider accounts and is not a multi-user sharing setup.

Open or resume a chat after changing the configuration so a fresh OMP process reads it. Check omp auth-broker status --json and omp usage --json on each side, then make a model request; the unauthenticated health endpoint alone does not prove provider access. The broker owns refresh and shared login/logout changes; clients can keep OMP's encrypted access-token/API-key cache. Existing credentials missing from the broker require OMP's native migration; inspect omp auth-broker migrate --from-local --include-oauth --dry-run --json before importing anything.

This shares OMP provider authentication, not sessions, other agents' credential stores or deliberately isolated OMP profiles. Use Threads to reopen a Compi conversation in its original environment.

Source: USAGE.md ↗

Work with agents#

Run your preferred agent in a Compi terminal. Keep its instructions, changes and the app it is building in the same workspace. You choose the agent and decide what to review and ship.

  1. Write the task. Keep instructions or a spec in an ordinary Markdown file in your project. Open it in Files and use Edit / Read to write or read it. Give the agent the file's path; opening a file does not automatically add it to the agent's context.
  2. Run the work. Start your agent in the project's directory. With OMP, Claude Code, Codex or OpenCode installed where the chat runs, you can instead talk to it in Compi's native chat: run compi chat or choose New chat in the palette. Other agents run in a terminal. Keep another terminal beside it for builds, tests or a development server. Use tabs and splits to arrange the work without restarting its programs.
  3. Review the changes. Open Changes or run compi diff to inspect the working-tree diff. Open a file to make a correction, then save it. The diff reads files on disk, not unsaved editor buffers. Check test output as well as the agent's description of its work.
  4. Inspect the result. Start your app's development server, then open its address in a Browser pane. You can check the app beside the terminal that runs it. Automated browser verification uses your agent's own browser tools; opening a pane does not perform it.
  5. Return when needed. In Settings → Notifications, choose how supporting programs notify you when they need attention or finish. Finished notifications are optional. Click a notification to return to its terminal. Programs must report status; ordinary terminal output does not trigger these events.

Closing Compi's window leaves the shells running. Restarting its server or rebooting ends those processes.

Any agent that can run shell commands, including agents in a chat, can also use Compi's CLI to inspect panes, arrange the workspace and open results for you. Start with compi help or compi --json help for structured discovery. See workspace control, editing and review and program status and notifications for details.

Operate the workspace from the CLI

Inside a supported Compi shell, the matching CLI is on PATH and inherits its instance and pane context. Any agent that can run shell commands can use it, including agents in a native chat. It operates the workspace around the agent; it is not an agent harness.

On Windows, compi screenshot lets an agent in WSL list and capture another app’s window as a PNG.

Discover, inspect, act, read back

compi --json help
compi --json pane show
compi run -- cargo test --locked -p compi-protocol
compi pane capture --scope scrollback --format text

The test command is for a shell in Compi’s source repository. run submits without waiting. Capture reads the output available so far; inspect or capture again to check progress. No fabricated success is returned on behalf of the running program.

Choose the exact target

Outside a Compi shell, choose an existing daemon with --instance NAME or --connect USER@HOST[:PORT]; --instance '' selects the default instance. Without a target, the CLI uses the only running local daemon and fails with the list of running instances when there are several, including older ones it cannot inspect. CLI commands do not start a missing daemon. Bare compi and compi PATH still open the GUI; inside a Compi shell they open the shell's instance, and a word that is neither a command nor a directory fails with a usage error suggesting the closest command (compi fiiles → did you mean 'files'?). Targets are stable --workspace ID|NAME, --tab ID|WORKSPACE/NAME, --pane ID|SURFACE_ID, and native --window ID; ambiguous names or windows fail rather than guessing. An explicit pane selects its containing tab/workspace, and explicit parent selectors replace incompatible inherited shell context.

Output and safety

In a terminal, workspace list, tab list, pane list and window list print tables, workspace show and pane show print name: value lines, layout list and theme install print a line or two, and tab focus, pane focus, pane zoom and the other window actions say what the window did. Long names, paths and addresses are shortened to fit the terminal; IDs always print whole so they can be copied. Piped or redirected, the same commands print indented JSON as before. --json always prints the same single line, in a terminal or not, so scripts and agents should pass it.

--json returns structured success/error envelopes. Full IDs remain copyable. Unknown commands fail with exit 2 instead of opening a GUI.

pane send --text is literal and does not press Enter. Use --key enter explicitly. Capture never takes input ownership. Interactive attach only accepts an unattached terminal and never steals a GUI attachment.

Close confirmations, output envelopes and exit codes

Close confirms interactively before ending live processes or discarding unsaved edits. pane close, tab close and workspace close ask the open Compi windows for files with unsaved edits in the content panes and terminals' Files views they would remove (with no window open there are none; if open windows cannot be asked, close fails with exit 1 and nothing closes), list each pane and file, and ask Close and discard unsaved changes? [y/N]; only y or yes closes. When processes would end too, one prompt names both and you type close. Noninteractive close returns exit 4 with code confirmation_required, and the --json error lists unsaved_files as {pane_id, path}; there is no --yes/--force bypass. Scripts must explicitly pane terminate, save or revert files in their window, inspect the resulting state, then close. --json emits {ok,result} or {ok,error}; stable IDs, lifetimes, revisions, metadata availability, and mutation receipts are available to automation. Exit codes: 0 success, 1 operation/transport failure, 2 arguments, 3 missing/ambiguous target, 4 confirmation, 5 unavailable daemon/attachment, 6 revision/generation/lifetime conflict. Run compi COMMAND ACTION --help for individual syntax.

Palette command discovery and UI requirements

compi command list lists every palette command with its id, name and shortcut (your overrides applied); compi command run ID runs one in the window that shows the selected pane's tab, focusing that pane first, exactly as the palette would, so a command that asks first opens its dialog there. A command that is unavailable right now exits 1 with command_disabled and the reason (for example split_merged_tabs in a tab with nothing merged); an unknown id exits 2. --json gives {platform, commands:[{id, name, category, shortcut, default_shortcut, description}]} and {command, name, pane_id, window_id}.

ExitMeaning
0Success
1Operation or transport failure
2Invalid arguments
3Missing or ambiguous target
4Confirmation required or cancelled
5Daemon or attachment unavailable
6Concurrent revision, generation or lifetime conflict

Browse the full command catalogue ↓

Source: USAGE.md ↗

Command reference#

Every command and action from Compi 0.9.4’s own help catalogue.

Expand a command for exact syntax, behavior and a source-provided example. Capitalized arguments such as FILE, NAME and PID are placeholders; substitute your own target. Examples are instructions, not recorded output.

compi help
compi help pane
compi pane capture --help
compi --json help

67 entries · 25 top-level commands · generated from the release source

Workspaces and tabs

compi workspace listList workspaces with their IDs

Usage

compi workspace list

List persistent workspaces and stable IDs.

Example from Compi’s help

compi --instance dev --json workspace list
compi workspace showShow one workspace's tabs and panes

Usage

compi workspace show

Show the selected workspace, tabs and panes.

Example from Compi’s help

compi --workspace work workspace show
compi workspace createCreate an empty workspace

Usage

compi workspace create NAME

Create an empty persistent workspace.

Example from Compi’s help

compi workspace create work
compi workspace renameRename a workspace

Usage

compi workspace rename NAME

Rename the selected workspace without changing its ID.

Example from Compi’s help

compi --workspace work workspace rename project
compi workspace closeClose a workspace, asking first

Usage

compi workspace close

Close the workspace. Running processes and unsaved edits in open windows require interactive confirmation; scripts must explicitly terminate panes and save files first.

Example from Compi’s help

compi --workspace work workspace close
compi tab listList tabs with their IDs

Usage

compi tab list

List tabs in the selected workspace; outside shell context an omitted workspace lists all tabs.

Example from Compi’s help

compi --workspace work --json tab list
compi tab openOpen a tab with a new shell

Usage

compi tab open [--name NAME] [--cwd PATH]

Open a tab with the configured shell, in the selected workspace.

Example from Compi’s help

compi --workspace work tab open --name build --cwd /home/me/project
compi tab renameRename a tab

Usage

compi tab rename NAME

Rename the selected tab, retaining its stable ID.

Example from Compi’s help

compi --tab work/build tab rename tests
compi tab focusShow a tab in its window

Usage

compi tab focus

Focus the existing tab in its native window; does not steal its terminal attachment.

Example from Compi’s help

compi --tab work/tests tab focus
compi tab moveReorder a tab or move it to another workspace

Usage

compi tab move --index N [--workspace DEST]

Reorder the selected tab at zero-based index N, or move it to another workspace. --tab identifies the source independently of destination --workspace.

Example from Compi’s help

compi --tab work/tests tab move --workspace archive --index 0
compi tab detachMove a tab to a new window

Usage

compi tab detach

Transfer the selected tab's existing view to a new native window.

Example from Compi’s help

compi --tab work/tests tab detach
compi tab closeClose a tab, asking first

Usage

compi tab close

Close the selected tab, confirming interactively if any process is running or an open window holds unsaved edits in its content panes.

Example from Compi’s help

compi --tab work/tests tab close
compi tab mergeMerge other tabs' panes into a tab

Usage

compi tab merge --with SOURCE... [--with SOURCE...] [--layout PRESET]

Merge source tabs from the same workspace into the selected tab, preserving shells and pane IDs. An optional built-in or named preset arranges the combined panes.

Example from Compi’s help

compi --tab work/build tab merge --with work/tests --layout grid
compi tab unmergeSplit a merged tab back into its tabs

Usage

compi tab unmerge

Restore the surviving tabs recorded by a merge, retaining stable IDs.

Example from Compi’s help

compi --tab work/build tab unmerge
compi tab groupPut tabs in a new group, or in an existing one

Usage

compi tab group [TAB...] [--name NAME] [--color COLOR]
tab group [TAB] --into GROUP

Put the named tabs, or the selected one, in a new group gathered where the first of them is. The name may be empty; COLOR is grey, blue, green, yellow, red, magenta or cyan, by default the first one no group uses. With --into, the tab joins GROUP after its last tab. TAB is an ID, name or WORKSPACE/NAME; GROUP an ID or name.

Example from Compi’s help

compi --workspace work tab group build tests --name CI --color blue
compi tab ungroupTake a tab out of its group

Usage

compi tab ungroup [TAB]

Take the named tab, or the selected one, out of its group; it lands just after the group. A group left without tabs ends.

Example from Compi’s help

compi --workspace work tab ungroup tests
compi group listList tab groups with their tabs and IDs

Usage

compi group list

List the tab groups in the selected workspace, or in every workspace when none is selected, with each group's colour, tab count and whether it is folded. --json lists each group's tab IDs.

Example from Compi’s help

compi --workspace work --json group list
compi group renameRename a tab group

Usage

compi group rename GROUP NAME

Rename the group, keeping its ID. An empty name leaves only its colour. GROUP is an ID or a name in any case; --workspace narrows names.

Example from Compi’s help

compi group rename CI checks
compi group colorChange a tab group's colour

Usage

compi group color GROUP COLOR

Set the group's colour: grey, blue, green, yellow, red, magenta or cyan, drawn from the theme's terminal palette.

Example from Compi’s help

compi group color CI magenta
compi group foldFold a tab group to its label

Usage

compi group fold GROUP

Hide the group's tabs from the tab strip in every window, leaving its label; their processes keep running.

Example from Compi’s help

compi group fold CI
compi group unfoldShow a folded group's tabs again

Usage

compi group unfold GROUP

Show the group's tabs in the tab strip again.

Example from Compi’s help

compi group unfold CI
compi group moveMove a tab group's tabs together

Usage

compi group move GROUP --index N

Move the group's tabs together to zero-based index N among the workspace's other tabs. An index inside another group lands after that group.

Example from Compi’s help

compi group move CI --index 0
compi group ungroupEnd a tab group, keeping its tabs

Usage

compi group ungroup GROUP

End the group; its tabs stay where they are, ungrouped.

Example from Compi’s help

compi group ungroup CI
compi group closeClose every tab of a group, asking first

Usage

compi group close GROUP

Close every tab in the group, confirming interactively if any process is running or an open window holds unsaved edits in their content panes.

Example from Compi’s help

compi group close CI

Panes

compi pane listList panes with their type, state and IDs

Usage

compi pane list

List each pane's ID and type: terminal panes with surface IDs, process state and fresh runtime metadata; content panes with the folder and files they show. Narrow with --workspace, --tab or --pane.

Example from Compi’s help

compi --tab work/build --json pane list
compi pane showShow one pane's details

Usage

compi pane show

Show the selected pane and fresh runtime metadata without attaching or resizing.

Example from Compi’s help

compi --pane pane-id --json pane show
compi pane focusFocus a pane in its window

Usage

compi pane focus

Focus the pane in its existing native window.

Example from Compi’s help

compi --pane pane-id pane focus
compi pane resizeResize a terminal pane's columns and rows

Usage

compi pane resize [--cols N] [--rows N]

Resize the selected terminal pane's native presentation. At least one dimension is required; the omitted dimension retains its actual current value. Minimum 20 columns and 4 rows. Content panes are not sized in cells; resize a terminal beside one instead.

Example from Compi’s help

compi --pane pane-id pane resize --cols 100
compi pane swapSwap two panes in a tab

Usage

compi pane swap --with OTHER

Exchange two panes in the same tab without restarting processes.

Example from Compi’s help

compi --pane pane-id pane swap --with other-pane-id
compi pane zoomFill the tab with one pane

Usage

compi pane zoom

Maximize the pane within its tab's native presentation.

Example from Compi’s help

compi --pane pane-id pane zoom
compi pane unzoomReturn a zoomed pane to its place

Usage

compi pane unzoom

Restore the tab's normal pane presentation.

Example from Compi’s help

compi --pane pane-id pane unzoom
compi pane floatFloat a pane above its tab

Usage

compi pane float

Float the existing pane in its tab.

Example from Compi’s help

compi --pane pane-id pane float
compi pane dockReturn a floating pane to its place

Usage

compi pane dock

Return a floating pane to its existing docked location.

Example from Compi’s help

compi --pane pane-id pane dock
compi pane closeClose a pane, asking first

Usage

compi pane close

Remove the selected pane, confirming interactively before ending a running process or discarding a content pane's unsaved edits in an open window.

Example from Compi’s help

compi --pane pane-id pane close
compi pane terminateEnd a terminal pane's process, keeping the pane

Usage

compi pane terminate

Explicitly terminate this terminal pane's process lifetime; preserve pane and surface IDs.

Example from Compi’s help

compi --pane pane-id pane terminate
compi pane sendType text or one key into a terminal pane

Usage

compi pane send (--text TEXT | --key KEY)

Send literal text with no implicit Enter, or one explicit key, to a terminal pane. Keys: enter, tab, escape, space, backspace, arrows, home/end, insert/delete, pageup/pagedown, f1..f12; ctrl-/alt-/shift- modifiers supported.

Example from Compi’s help

compi --pane pane-id pane send --text 'echo hello'; compi --pane pane-id pane send --key enter
compi pane capturePrint a terminal pane's screen or history

Usage

compi pane capture [--scope screen|scrollback] [--format text|ansi]

Capture a terminal pane observationally: screen is the default; scrollback includes retained history and the current screen. Text is the default; ANSI preserves text styling and hyperlinks. Soft wraps join, hard breaks and spaces remain. Never attaches or resizes.

Example from Compi’s help

compi --pane pane-id pane capture --scope scrollback --format ansi
compi splitSplit a terminal pane, or fill a tab to N panes

Usage

compi split [--right | --down] [--cwd PATH]
       compi split --panes TOTAL --layout PRESET [--cwd PATH]

Split the selected terminal pane, or fill the selected tab to TOTAL panes and arrange it. Reuses all existing shells and IDs; a lower total is rejected before mutation. Built-ins and named configured presets are accepted.

Example from Compi’s help

compi split --panes 4 --layout grid
compi layoutArrange a tab's panes

Usage

compi layout list | PRESET | mirror | flip | restore

Arrange the selected tab without restarting processes. Presets come from built-ins and configured layout_presets. Restore returns to the previous arrangement, or restores original tabs immediately after a merge.

Example from Compi’s help

compi --tab work/build layout main-side
compi window listList windows and the panes they show

Usage

compi window list

List native window slot IDs, visible tab IDs, and pane presentation state, with each pane's type (terminal or content), the unsaved_files of a content pane or a terminal's Files view, and a Browser pane's page (url, title, the loading address and the error of a failed load), for the selected connection.

Example from Compi’s help

compi --instance dev --json window list

Terminals

compi runType a command into a terminal pane and press Enter

Usage

compi run -- COMMAND [ARG...]

Safely shell-quote argv and explicitly submit Enter to the selected pane. Supported POSIX shells only; alternate-screen applications and argv control characters that could become terminal keys are rejected. Does not wait for command completion.

Example from Compi’s help

compi run -- printf '%s\n' 'hello world'
compi attachAttach this console to a pane

Usage

compi attach

Interactively attach an unattached pane to this console. An existing GUI or console attachment is never stolen. Press Ctrl-] to detach.

Example from Compi’s help

compi --pane pane-id attach
compi detachRelease this console's attachment

Usage

compi detach

Release a console attachment on the selected pane without ending its process. GUI attachments are not detached; use tab detach for native window transfer.

Example from Compi’s help

compi --pane pane-id detach

Views

compi filesBrowse a folder in the terminal's pane

Usage

compi files [DIR]

Browse DIR (default: the shell's current directory) in the selected terminal's own pane, in that terminal's environment (host or its WSL distribution). The Files view replaces what the pane shows; the shell keeps running underneath at its size, and Cmd/Ctrl+Shift+E or Esc returns to it. Relative DIR resolves against the shell's directory; . and .. are resolved without touching the filesystem. Files the view already shows stay open as tabs. From a content pane (--pane), that pane shows DIR.

Example from Compi’s help

compi files ../docs
compi editOpen a file in the terminal's pane

Usage

compi edit [FILE[:LINE[:COL]]]

Open FILE in the selected terminal's Files view, in place of the shell, and put the cursor on LINE (default 1; COL is accepted and ignored). The view keeps the files it has open; its folder stays when it holds FILE, else becomes the shell's directory when that holds FILE, else FILE's folder. From a content pane (--pane), that pane opens FILE and keeps its folder. A missing or unreadable FILE is reported by the editor. An existing folder without :LINE, or no FILE, browses it like files. With no Compi window showing the tab the view still opens and a note says it was not shown.

Example from Compi’s help

compi edit src/main.rs:42
compi notesOpen a Markdown note to read

Usage

compi notes [FILE|FOLDER] [--edit]

Open a Markdown FILE in the existing Files/editor view in Read mode (formatted); --edit opens it in Edit mode instead. Either becomes the file's remembered mode in that window. A FOLDER, or no argument, browses like compi files. Paths resolve in the selected pane's environment against its current directory, like edit. Notes remain ordinary .md/.markdown files, with no notebook database or persisted index. Notebook search/backlinks recursively read at most 4,096 notes, 2,048 directories, 32,768 entries, 64 directory levels and 32 MiB of text, with a 15-second scan budget; .git, target and node_modules are skipped and directory symlinks are not followed. Incomplete scans report warnings.

Example from Compi’s help

compi notes ./notes/plan.md
compi notes searchSearch Markdown notes

Usage

compi notes search QUERY [FOLDER]

Search Markdown contents, filenames and heading titles under FOLDER (default: the pane's current directory), without a GUI. Matches are case-insensitive and print FILE:LINE:TEXT. --json returns root, environment, query, hits, partial and warnings. Unreadable files and scan limits are visible warnings, not silently complete results.

Example from Compi’s help

compi --json notes search 'project plan' ./notes
compi notes backlinksList notes that link to a note

Usage

compi notes backlinks FILE [FOLDER]

List source lines containing wiki links to FILE in FOLDER (default: the pane's current directory), without a GUI. FILE resolves relative to the notebook root, with optional Markdown extension and unique basename/title fallback; ambiguous or missing targets fail. [[target#heading|label]] links count, but inline, fenced and indented code do not. --json returns root, environment, file, hits, partial and warnings.

Example from Compi’s help

compi --json notes backlinks decisions ./notes
compi diffShow a file's changes or a commit

Usage

compi diff [PATH[:LINE[:COL]]]
       compi diff COMMIT [PATH[:LINE[:COL]]]

Show PATH's uncommitted change as a diff tab in the selected terminal's Files view, in place of the shell, scrolled to LINE of the new side (COL is accepted and ignored). The unstaged change (work tree against the index) wins over the staged one (index against HEAD). PATH resolves like edit; the view's folder stays when it lies in the repository and holds PATH, else becomes the repository's top level. From a content pane (--pane) inside the repository, that pane shows the diff. Without PATH, the repository of the shell's directory lists its changes in the view's Changes sidebar. With COMMIT (a revision such as HEAD~1, a branch or an id), the diff is what that commit changed in PATH against its first parent, read-only; without PATH its changed files show in a section of their own at the top of the Changes sidebar. A lone argument is PATH when that file has uncommitted changes, else COMMIT when Git knows it. --json adds repo, commit (the full id), short and summary for a commit, with path and line, or changes (the count). Exits 1 with not_a_repository outside a Git work tree, unknown_commit when COMMIT names no commit, and no_changes when PATH has no uncommitted change (or names no commit) or COMMIT did not change PATH. Git is only read: files, the index and other Git state never change.

Example from Compi’s help

compi diff HEAD~1 src/main.rs
compi browseOpen a web page beside the terminal

Usage

compi browse [URL|FILE|FOLDER|PORT] [--down]

Open URL in a Browser pane beside the selected terminal (below it with --down); the shell stays as it is. URL is an http, https or file URL, or about:blank; without a scheme, http:// is assumed, so localhost:3000 opens http://localhost:3000, and a bare PORT (5173, :5173) is that port of this machine. A FILE or FOLDER where the pane's shell runs opens as a file page: a path that says where it starts (., ./site, ../x.html, /home/me/app, C:\site) or a page's file name (index.html); a FOLDER shows its index.html. Relative paths start from the shell's directory. A page opened from a file cannot load JavaScript modules or fetch other files (the web view's rule for file pages): start the project's server and browse its address for that. Text pasted around a link (quotes, <...>, a Markdown link, a Local: prefix, trailing punctuation) is dropped. Without an argument the pane opens on its home page (local servers your terminals printed, recent sites) with the keyboard in its address field, where a link can be pasted without shell quoting. From a Browser pane (--pane), that pane goes to URL. The page is the system web view's (WebView2 on Windows, WKWebView on macOS), with one persistent profile per instance. --json returns {pane_id, url, shown, not_shown, receipt, workspace}.

Example from Compi’s help

compi browse 'localhost:3000/search?q=x'
compi chatChat with an agent in or beside the terminal's pane

Usage

compi chat [--agent omp|claude|codex|opencode]

Start a new chat in the selected terminal's own pane, in place of the shell, which keeps running underneath at its size; Cmd/Ctrl+Shift+E or the pane menu's Show terminal returns to it (Esc never leaves the chat). The chat's agent is --agent, omp (OMP), claude (Claude Code), codex (Codex) or opencode (OpenCode), else the agent of the terminal's project (Settings → Projects), else the Default agent ([chat] agent, Settings → General). With [chat] open = "beside" (Settings → Chat → Opening a chat), it opens in a new pane beside the terminal instead. The agent works in the shell's current directory, in the terminal's environment (a WSL distribution runs it there). The chat runs while a pane or view holds it, hidden or not; closing its pane, view or tab ends it with the shell, like any terminal's process. Its transcript stays a thread: Threads in the palette reopens it on the same session, and compi threads lists it. --json adds the chat's id and folder.

Example from Compi’s help

compi chat --agent claude
compi threadsList chats with agents, open or ended

Usage

compi threads

List the threads the daemon keeps, newest first: every chat with an agent, whether a pane shows it or it has ended, with its title, folder, how long ago it last changed, what it is doing (Working, Waiting, Open in a pane, else Ended) and its id. Threads in the palette opens an ended one in a pane again, its agent starting again on the same session. --json returns each thread's chat, title, created_ms, updated_ms, activity, open and project.

Example from Compi’s help

compi threads
compi threads deleteDelete a thread

Usage

compi threads delete ID

Delete ended thread ID (from compi threads): its saved transcript goes, and Threads in the palette no longer lists it. A thread a pane or view still holds is refused; close its pane first.

Example from Compi’s help

compi threads delete chat-18c2f0a91b2-1f40-0
compi settingsShow Settings in the terminal's pane

Usage

compi settings [SECTION]

Show Settings in the selected terminal's own pane, in place of the shell, which keeps running underneath at its size; Cmd/Ctrl+Shift+E or Esc returns to it. SECTION is general, terminal, chat, agents, projects, appearance, keyboard, notifications, monitor, updates or advanced; interface opens appearance. Without it the pane keeps the section it shows, else General. From a Settings pane (--pane), that pane changes section.

Example from Compi’s help

compi settings terminal
compi monitorShow Monitor in the terminal's pane

Usage

compi monitor [PAGE] [--source SOURCE]

Show Monitor in the selected terminal's own pane, in place of the shell, which keeps running underneath at its size; Cmd/Ctrl+Shift+E or Esc returns to it. PAGE is overview, processes, cpu, memory, gpu, disk or network; without it the pane keeps the page it shows, else Overview. --source host|wsl:NAME shows that source (see compi monitor sources); without it the pane keeps the source it shows, else the daemon's host. From a Monitor pane (--pane), that pane changes page or source. monitor totals, list and inspect print Monitor's data for scripts with no window, monitor sources lists the sources and monitor quit quits a process; see each one's --help.

Example from Compi’s help

compi monitor processes
compi monitor totalsPrint the machine's CPU, memory, disk and network

Usage

compi monitor totals [--history 1m|5m|15m|1h] [--source SOURCE]

Print the host's totals from the daemon, with no window: CPU, memory used and available, swap, GPU, disk read/write and network down/up of the newest sample. --history adds every sample of that span ending at the newest (one every 2 seconds, up to an hour). --source host|wsl:NAME reads that source instead of the daemon's host (see compi monitor sources); an unknown one exits 2 with unknown_source. --json returns {source, host, samples} with the protocol's source, host info and samples, oldest first; only the newest carries the per-core, volume and interface detail. Exits 1 with no_sample when the daemon has sampled nothing within 5 seconds.

Example from Compi’s help

compi --json monitor totals --history 5m
compi monitor listPrint running processes, busiest first

Usage

compi monitor list [--group] [--search TEXT] [--source SOURCE]

Print the host's processes from the daemon, with no window, busiest first as Monitor's Processes table sorts them: PID, name, CPU (share of the whole machine), memory and user. Waits for the first sample with CPU values (about half a second). --search keeps processes whose name, command line, executable, user or PID contains every word, ignoring case. --group shows one row per app with its process count and sums; a search naming the app keeps all its processes. --source host|wsl:NAME lists that source's processes instead of the daemon's host (see compi monitor sources); an unknown one exits 2 with unknown_source. --json returns {source, sampled_at_ms, logical_cpus, apps_known, processes} (each process with its details and cpu_share) and, with --group, groups (id, name, pids and sums). Exits 1 with no_sample when no sample arrives within 5 seconds.

Example from Compi’s help

compi monitor list --group --search safari
compi monitor sourcesList the machines Monitor can watch

Usage

compi monitor sources

List what Monitor can watch from the daemon, one per line as --source names it: host first, then, on a Windows daemon, wsl:NAME for each WSL 2 distribution. --json returns {sources} in the protocol's shape ({"type":"host"}, {"type":"wsl","distribution":NAME}).

Example from Compi’s help

compi monitor sources
compi monitor inspectPrint one process in detail

Usage

compi monitor inspect PID [--source SOURCE]

Print one process from a sample of the daemon's host (or --source host|wsl:NAME), with what the sample leaves out: name, PID, start time and how long it has run, user, state, working directory, executable, every argument, parent, CPU (share of the whole machine), memory and, when it runs in a Compi terminal, that terminal's surface and pane. --json returns the process as monitor list gives it, plus source, sampled_at_ms, inspection {state, working_directory, arguments, arguments_cut}, surface and pane_id. Exits 1 with no_process when no process has that PID, process_gone when it exits before it is read, and 2 with unknown_source for an unknown source.

Example from Compi’s help

compi monitor inspect 4120
compi monitor quitQuit a process, asking first

Usage

compi monitor quit PID [--force] [--source SOURCE]

Ask a process of the daemon's host (or --source host|wsl:NAME) to quit, as Monitor's Quit does: SIGTERM, or on Windows a close request to its windows. --force ends it at once (SIGKILL, or TerminateProcess), and unsaved work in it is lost. Asks first, naming the process and whether it runs in a Compi terminal; without a terminal to ask on it exits 4 with confirmation_required, and there is no bypass. The daemon signals only the process the PID named when it was looked up, never its group. Prints what was sent; --json returns {source, pid, start_time, name, force, outcome}. Exits 1 with no_process (no such PID), process_gone (it exited, or the PID was reused, first), permission_denied, no_window (Windows: nothing to close; use --force) or refused (the daemon will not signal it, with the reason); 2 with unknown_source for an unknown source; 4 with cancelled when the answer is not yes.

Example from Compi’s help

compi monitor quit 4120

Palette

compi command listList palette commands and shortcuts

Usage

compi command list

List every palette command: its ID, name and this platform's shortcut with configured keybindings applied, with no window needed. --json returns {platform, commands} with each command's id, name, category, shortcut (null when unbound), default_shortcut and description (null when it has none). Run one with command run ID.

Example from Compi’s help

compi --json command list
compi command runRun a palette command in its window

Usage

compi command run ID

Run the palette command ID (see command list) in the Compi window that shows the selected pane's tab (--window selects another), with that pane focused first, as if chosen from the palette there. A command that asks first, such as Close pane, opens its dialog in the window; there is no bypass. A command disabled there exits 1 with command_disabled and the palette's reason; an unknown ID exits 2. --json returns {command, name, pane_id, window_id}.

Example from Compi’s help

compi command run open_settings

Other apps

compi screenshotList Windows app windows, or save one as a PNG

Usage

compi screenshot [NAME]

Without NAME, list the app windows open on this Windows PC, frontmost first: ID, app (its .exe), PID, size in pixels (marked minimized) and title. With NAME, capture one window as it draws itself, even when covered, cropped to its frame, and print the PNG's path alone. NAME is an ID from the list, an app name with or without .exe, or text in a title or app name, ignoring case; an ID wins, then an exact app name, then the rest, each taking the frontmost window that is not minimized. Run from WSL through the shell bridge, the PNG goes to /tmp/compi-screenshots in that distribution and the path printed is the Linux one; otherwise to %TEMP%\compi-screenshots. Needs no running Compi. --json returns {windows: [{id, app, pid, title, width, height, minimized}]}, or {path, window: {id, app, pid, title, width, height}} for a capture. Exits 1 with window_not_found when nothing matches, window_minimized for a minimized window (restore it first), capture_failed when Windows cannot draw it, and screenshot_unavailable on macOS and Linux. --connect is rejected.

Example from Compi’s help

compi screenshot explorer

Compi

compi theme installInstall a theme file

Usage

compi theme install FILE.json

Validate and install a theme family in the local app library without launching a window. --connect is rejected. The WSL shell bridge resolves Linux files against the invoking shell's directory.

Example from Compi’s help

compi theme install ./my-theme.json
compi updateCheck for and install an update

Usage

compi update [--check]

Check for a newer Compi. --check only reports it. Otherwise download and verify it, list the shells a restart would end (marking this shell), and ask Restart now? [y/N]; only y restarts. Without an interactive terminal it stops after the download with exit 4; restart from a terminal or Settings → Updates. A running Compi window performs the restart, saving and reopening its windows; with none open, Compi opens first. --connect is rejected; there is no --yes/--force bypass.

Example from Compi’s help

compi update --check
compi changesPrint what changed in this version

Usage

compi changes

Print the running version and what changed in it, from the notes What's New shows: the headline, the other highlights, then each section under its title. Needs no running Compi. --connect is rejected.

Example from Compi’s help

compi --json changes
compi helpList every command, or one command's actions

Usage

compi help [COMMAND [ACTION]]

List every command grouped by what it works on, with global options and exit codes. With COMMAND, list its actions; with COMMAND ACTION, show its details (the same as compi COMMAND ACTION --help). --json returns the text as help and the entries listed as commands, each with command, action, group, usage, summary, description and example.

Example from Compi’s help

compi help pane

View the versioned CLI catalogue source ↗

Appearance and settings#

Configure the workspace without changing your tools.

Ctrl/Cmd + , opens Settings as a pane. Search finds controls across every section. From a terminal, use compi settings appearance.

Theme selects application and terminal colors together. Preview a tile, then Apply to keep it or Cancel to restore the current theme. An optional terminal-palette override lives under Advanced → Terminal colors.

Transparency, blur, opacity and fonts are independent preferences. Choose Comfy for rounded panes and gutters or Compact for edge-to-edge terminal space.

Themes, fonts, imports, exports and configuration example

Settings includes 41 bundled themes, including Compi Neutral, a restrained baseline for clear, blurred, or solid backgrounds. Theme selects application and terminal colors together. Advanced → Terminal colors defaults to Follow theme and allows an optional palette override; Appearance reports an active override. Existing Dark Glass selections, first-run defaults, and legacy split palettes are preserved.

Transparent background enables the opacity slider and Blur background toggle. Turning transparency off makes the window solid without forgetting opacity or blur preferences. Increase opacity on light or busy desktops, or turn transparency off for predictable contrast; very low opacity cannot guarantee readability against arbitrary wallpaper. Unsupported or reduced-transparency systems fall back to solid backgrounds automatically.

Settings → Appearance shows themes as tiles: the current theme first, then favorites and related themes, each with the Compi mark in its colors. Click a tile (or move with the arrow keys) to preview it on your panes; Apply (or Enter) keeps it and Cancel (or Esc, or leaving Settings) restores the previous one. All themes › opens the full list inside the Settings pane with search, All/Dark/Light/Favorites filters, a favorite star on each theme, and the same preview, Apply and Cancel. The applied theme stays first with a Current chip, even during search or preview; favorites follow, then remaining themes alphabetically. Advanced → Terminal colors → Choose override › uses the same list for terminal colors only. The list's ⋯ More menu holds import, export, attribution and removal. Import loads a local Zed .json theme family without applying or publishing it; each variant becomes a list entry. Export selected writes standard Zed JSON with existing attribution, license notices, and unused fields preserved. Remove local removes only an unused imported variant and its favorite, keeping sibling variants and the external source file; themes referenced by defaults, open windows, or previews are protected.

Theme files use Zed’s published JSON format: a family has name, author, and themes; each variant has name, appearance (dark or light), and style. No Compi ID, custom wrapper, or special filename is required. Import an unmodified downloaded file, such as Zed’s One Dark/One Light family, or export a bundled theme as a starting point. RGB/RGBA hex colors and missing/null style values are supported; missing colors use consistent light/dark defaults. Unknown fields are retained for export, not executed. Files are bounded to 2 MiB and 256 variants; invalid families and conflicting variants are rejected without partial installation.

Import copies the family into themes under Compi’s data directory. Copying a .json file directly into that directory also installs it without applying it; on Windows the directory is %LOCALAPPDATA%\Compi\themes. Theme code, includes, assets, and network resources are never executed or fetched. Existing managed .compi-theme.json imports migrate once, preserving their saved IDs, selections, favorites, colors, and attribution; verified originals are retained under .migrated. Transparency, opacity, and blur remain separate preferences, including when a Zed theme specifies its own background appearance.

compi theme install FILE.json uses this same validator and library without opening a window or applying the family. Supported WSL shells resolve relative Linux paths against the invoking cwd and install into the Windows application's data directory; --connect is rejected because installation is local application state.

Compact rounded-rectangle tabs use a subtle active fill, transparent inactive tabs, and a faint hover fill. Hover reveals a close button in a reserved slot without moving the label. Tab geometry, keyboard cycling, overflow, reorder, and tear-off are shared across themes.

Five interface-font choices apply globally to Compi's chrome and controls. Four terminal-font choices apply independently to the fixed-width terminal grid.

The native system fonts remain the defaults. Interface selection uses a stable bundled ID, while terminal selection updates the existing font.family setting:

[appearance]
ui_font = "ibm-plex-sans"
density = "comfy" # comfy (rounded panes with gaps) or compact (edge to edge)
theme = "compi-neutral"
terminal_theme = "dark-glass" # remembered optional override
terminal_theme_override = false # Follow theme; true enables the override
transparent_background = true
background_effect = "clear" # clear or blurred; legacy opaque still migrates
terminal_opacity = 0.7 # remembered background opacity, not text opacity

[font]
family = "JetBrains Mono"
size = 14 # 6 through 72

Terminal presets include the platform default, JetBrains Mono, IBM Plex Mono, and Atkinson Hyperlegible Mono. Custom installed families remain supported through font.family. Bundled font notices and SIL Open Font License 1.1 text are in crates/compi-client/fonts/ATTRIBUTION.txt.

Settings → Terminal → Font size sizes terminal text with −, + and Reset; with a terminal focused, Ctrl+= and Ctrl+- (Cmd on macOS) step it by one, and Ctrl/Cmd+0 resets it. The size is saved as font.size and every window follows it, including after editing the file by hand. Reset removes the key, returning to the default of 14.

Settings → Terminal → File text size sizes file panes: the editor, diffs, the Markdown Read view, large text previews, and the Files and Changes lists. With one of them focused, Ctrl+=, Ctrl+- and Ctrl/Cmd+0 change this size instead of the terminal font. Until you set it, file panes follow the terminal font size. It is saved as files.text_size (8 through 32); Reset removes the key.

[files]
text_size = 15 # 8 through 32; unset follows font.size
Pane density and focus indicators

Settings → Appearance → Pane density chooses how terminal panes sit in every window, independent of themes, prompts and transparency:

  • Comfy (default): each pane is a rounded island with an 8 px corner radius, separated from its neighbours and the window edge by 6 px gutters. The gutters use a slightly darker shade of the terminal background, or show the window material when the background is translucent. The header has no rule under it, and dragging a gutter resizes the split. The workspace sidebar is an island too; drag the gap beside it to resize it, or double-click the gap to restore its default width.
  • Compact: panes touch, separated by one-pixel seams, and the sidebar sits flush against the window edge, for the most terminal space.

When more than one pane is visible, the focused pane is marked as set under Focus indicator below; terminal colours are unchanged. Floating panes keep their shadow and title strip and use the same corner radius. Switching density resizes terminals through the normal resize path, so running programs keep running and reflow once.

Settings → Appearance → Focus indicator chooses how the focused pane stands out when more than one pane is visible:

  • Marker (default): a short accent bar on the middle of the pane's bottom edge, plus an accent outline that fades within 0.8 s whenever focus moves to a pane.
  • Outline: a permanent accent outline.
  • Dim others: every other pane is slightly darkened.
  • None: only the cursor, which unfocused panes never draw.
[workspace]
focus_indicator = "marker" # marker, outline, dim, or none

Floating panes keep their Keyboard label with every option. When the system asks for reduced motion (Windows Animation effects off, or macOS Reduce motion), the arrival outline shows for the same time without fading; this is read when Compi starts.

Tab details

Settings → Appearance → Tab details writes independent global caption/hover preferences:

[metadata]
directory = true
process = false
git = false
dimensions = false

A manual tab label takes precedence over automatic names. Enabled fields follow the focused pane, with a first-layout-pane fallback; pane count and dirty/stale indicators remain separate from truncated text. The hover card lists every pane in layout order. Collection uses the shell's actual Unix/WSL/SSH environment, caches results for five seconds, and marks stale/unavailable data explicitly. Disabling every field stops GUI metadata queries; CLI inspection remains available on demand.

Shell prompts

Settings → Terminal → Shell prompt uses your existing Oh My Posh or Starship installation in the environment where the shell runs. Compi does not install a provider or replace it with a native prompt renderer.

Prompt styles, applying, backups and restoration

Settings → Terminal → Shell prompt (or “Prompt settings” in the palette) styles the prompt your shells already draw with Oh My Posh or Starship. Compi does not install either one, has no prompt of its own, and uses each style exactly as the provider defines it. It works where your shells run: the local account, the WSL2 distribution you pick, Windows PowerShell, or the SSH host. On Windows the Shell buttons switch between PowerShell and each WSL distribution; the page opens on the focused terminal's.

  • Details shows where Compi is looking, your login shell, provider paths, startup-file lines that already set up a prompt, and any warning, such as an Oh My Posh installed only on Windows that cannot draw a WSL prompt, or a PowerShell execution policy that stops profile scripts. Bash, Zsh and Windows PowerShell are supported. Fish, PowerShell 7, and custom launch profiles are not.
  • Pick a style: every style is listed with its real prompt rendered under its name: your current configuration first, then the provider default, Oh My Posh themes, or Starship presets. Browsing changes nothing, and the prompt is independent of the terminal theme and layout.
  • Apply: click a style and choose Apply in the popover under it, or Cancel. Compi shells use the style without any edit to your startup files; new ones start with it and running ones switch at their next prompt. Also use outside Compi additionally adds a marked # >>> compi prompt >>> block to the end of your login shell's ~/.bashrc or ~/.zshrc; the popover then shows that file's diff first. Nothing else in the file changes, and shells outside Compi need a new shell.
  • Back up, restore, turn off: each change backs up the managed files to ~/.compi/prompt/backups. History restores any of the last 20 backups and Turn off removes every prompt Compi manages, each confirmed in the same kind of popover. Your own provider configuration is copied, never edited.
  • PowerShell: Compi finds oh-my-posh.exe and starship.exe on your search path or where their installers put them. Also use outside Compi adds the block to your PowerShell profile (Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1). Running PowerShell tabs switch at their next prompt; turning the prompt off returns them to the one your profile set. Oh My Posh theme changes require PSReadLine's Get-PSReadLineKeyHandler -Chord API. If Details asks for an update, run Install-Module PSReadLine -Scope CurrentUser -Force in Windows PowerShell, open a new terminal and refresh the page. Compi checks this dependency before replacing your working prompt.
Source: CONFIGURATION.md ↗

Status and notifications#

See when supporting programs and agent chats are working, blocked, finished or failed.

Programs report status through OSC 7501. Compi displays their reports instead of guessing from terminal output. Indicators can appear on tabs, panes and the sidebar; hovering shows the reported details.

Open Settings → Notifications or run compi settings notifications.

DeliveryBehavior
AutomaticIn-app cards while Compi is active; system notifications while it is in the background.
In-app onlyCards inside Compi.
System onlyOperating-system notifications.
BothBoth delivery paths for an eligible event.

Needs attention is on; Finished is off by default. Failures, working and idle never notify, and reports from before Compi opened or reconnected are not replayed. Agent chats notify like terminals. The pane you are in notifies only after 30 seconds without input by default (Focused pane); Never keeps it quiet. Click a card or notification to return to its terminal; dismissing a card does not clear program status.

Notification sound starts Off; use Play to preview. On Windows choose Default, Message, Mail, Reminder or Text message; on macOS, Default or one of the alert sounds. Quiet modes and system notification-sound settings are respected. Send test exercises the current delivery settings.

On macOS, notifications need Compi to run from its app bundle, and macOS asks for permission on the first one. Native macOS UI checks for 0.9.4 remain unperformed.

Status lifecycle, indicator controls and notifications

Programs that support the Program Status Protocol (OSC 7501) report whether they are idle, working, blocked on you, done or failed. Compi answers their feature query, so programs that report only after asking work too.

  • A tab shows a glyph for the state that most needs you across its panes: blocked, then error, working, done and idle. Background tabs and other workspaces are included. A tiled pane shows a dot in its top edge, and a floating pane shows the glyph and progress in its title strip. Sidebar cards show the state as a dot, and the palette puts it first in the tab's status line. Each of the three can be turned off under Settings → Notifications → Program status (configuration).
  • Hover a tab for its full title and every record its panes reported: program, title, state, what it waits for, progress and message. In a split tab each reporting pane's name comes first, with its records under it. Hover a pane's dot or a floating pane's glyph for that pane's records alone.
  • Work in progress ends at the next shell prompt or when the process exits; finished and failed results stay until you press a key in that pane or close it.
  • Agent chats report too, from the daemon that runs them: working while the agent works, blocked while a permission or question waits, done when a turn ends, and failed when a turn ends in an error or the agent stops, with the agent (OMP, Claude Code, Codex or OpenCode) as the program and the session title as the message. A chat waiting for a message reports nothing. Typing in the chat's message box clears its done or failed result, as a key press does in a terminal.
  • compi --json pane list/show includes each pane's program_status records: a terminal's, a chat's, or both for a terminal with a chat view.
  • Notifications: when a program in a terminal or a chat you are not using becomes blocked on you, Compi tells you. The pane you're in counts as in use only while you're active: Focused pane (after 30 seconds by default) lets it notify too once you haven't typed, clicked or scrolled in its window for that long, and Never keeps it quiet while focused (Settings → Notifications, configuration). Show notifications picks where: Automatic (the default) shows a card at the bottom right of the window with that terminal while Compi is the active app, and a system notification while it is in the background; In-app only, System only and Both do just that. Needs attention (on) covers permissions, questions and sign-ins; Finished (off) covers programs reporting their work done. Failures, working and idle never notify, and neither does what a terminal already reported when Compi opened or reconnected. Clicking a card or a system notification opens that terminal, switching tab and showing the shell if a view covers it; × hides the card without clearing the status, which stays on the tab and pane. A program reporting again replaces its card. Notification sound (Off by default, with Play to hear it) plays once per notification: inside the system notification when there is one, otherwise with the card. On Windows it is Default, Message, Mail, Reminder or Text message, Windows' own notification sounds as your sound scheme sets them, and stays quiet while Windows is (Do Not Disturb or quiet hours, presenting, a full-screen app, a locked screen) or its notification sounds are off. On macOS it is Default or one of the alert sounds (Basso to Tink), and Focus or Compi's Play sound for notifications switch in System Settings silences it, except for a card's sound while Compi is in the background (In-app only), which Compi plays itself. A sound from the other system's list plays the default. System notifications says whether the system shows Compi's notifications and opens its settings; Send test (also Test notification in the palette) sends one with your settings. On macOS, notifications need Compi to run from its app bundle, and macOS asks for permission on the first one.
Status and notification configuration

Settings → Notifications → Program status chooses where Compi shows what programs report through OSC 7501. Each place can be turned off on its own; status is still followed, so turning one back on shows the current state at once.

[program_status]
tabs = true     # glyph on tab chips
panes = true    # dot on tiled panes, glyph and progress on floating title strips
sidebar = true  # dot on sidebar cards, state at the start of the palette status line

Settings → Notifications chooses when programs reporting through OSC 7501 notify you, and where. Changes made in Settings apply to every open window; edits to the file apply when Compi next opens.

[notifications]
delivery = "automatic"  # "automatic" (in Compi while it is active, else from the system), "in_app", "os" or "both"
attention = true        # a program is blocked on you: a permission, a question or a sign-in
finished = false        # a program reports its work done
sound = "off"           # or "default"; Windows: "message", "mail", "reminder", "text_message"; macOS: "basso", "blow", "bottle", "frog", "funk", "glass", "hero", "morse", "ping", "pop", "purr", "sosumi", "submarine", "tink". Once per notification, unless the system is quiet; the other system's sounds play the default
focused_pane_after = 30 # seconds without a key press, click or scroll in Compi before the pane you're in notifies too; 0 never, at most 3600
Source: CONFIGURATION.md ↗

Remote access#

Connect a native Compi client to an SSH host running a matching daemon.

compi --connect USER@HOST:PORT

Replace USER, HOST and PORT with your connection. The remote host must provide compi-daemon on PATH. Use a matching client/server release; SSH authentication and host-key checks remain part of the connection.

Reconnect to the same instance to reach the existing workspace. Reconnecting does not itself restart running shells. SSH transport is not automatic cross-machine workspace synchronization or a finished mobile app.

Remote launch and diagnostic client

Compi starts its sibling server automatically, and relaunching with the same instance name reconnects to that workspace. Use --working-directory PATH when you intentionally want new work to start in a specific directory.

To open the native client against an SSH host:

compi --connect [email protected]:2222

The headless diagnostic client accepts the same --connect and optional --instance options. For example, compi-probe --connect [email protected] workspace prints the remote hierarchy and lifecycle state, while its session, tab, pane, surface, soak, and shutdown commands operate through the same protocol. compi-probe tab arrange <tab-id> <preset> [--with <tab-id>]... [--main <pane-id>] [--mirror] [--flip], tab mirror|flip|restore-arrangement|split-merged <tab-id>, and pane swap <pane-id> <pane-id> rearrange existing panes in place; each --with merges another tab of the same workspace into <tab-id>. Presets are the built-in IDs (columns, rows, grid, main-side, main-top, equalize) or a [layout_presets] name from the local configuration. The remote host must provide compi-daemon on PATH.

Source: USAGE.md ↗

Monitor#

Inspect the machine running the workspace’s server.

compi monitor
compi monitor sources
compi --json monitor totals --history 5m
compi --json monitor list --group

Overview, Processes, CPU, Memory, GPU, Disk and Network show the selected source. On Windows, choose the host or a WSL 2 distribution; their counters and PIDs are kept separate. An SSH-connected window monitors its remote host.

Select a process for its details, parent/children and recent resource history. Open terminal returns to its Compi terminal when available. Quit… and Force quit… both confirm and recheck process identity. Unavailable values are not zero.

Monitor pages, sampling and source selection

Monitor: Monitor in the palette (or the Monitor button in an empty window, or Open as pane in Settings → Monitor) shows the machine Compi's server runs on, in place of the focused terminal (see Views in place); if the window already has one, it is shown and focused. The rail on the left lists Overview, Processes, CPU, Memory, GPU, Disk and Network with live values (just icons when the pane is narrow; hover for the name). Overview shows a card for each with its history as columns of dots; click a card (or arrow to it and press Enter) for its page, Esc goes back. Cards rearrange into three, two or one column as the pane's width allows. Memory by type splits memory the way the system does: App, Wired, Compressed, Cached and Free on macOS, Used, Cached and Free elsewhere. Memory by app shows the apps using the most memory as tiles sized by it; click one to see its processes. The resource pages go further: CPU adds a bar per core; Memory shows in use, available, total, swap and pressure; GPU shows utilization and the GPU's memory (macOS and Windows; elsewhere it says it is unavailable); Disk lists your volumes with how full each is; Network lists each interface's current speed and totals, busiest first. The header picks the range the graphs cover (1m, 5m, 15m, 1h) and pauses them; history is kept for the last hour even while no Monitor is open. On Processes, Group by app gathers each app's processes (on macOS its helpers too) under one row with the app's icon and their totals; click the arrow, or press → and ←, to show or hide them. Type in the search field (Ctrl+F, Cmd+F on macOS) to match a name, command line, path, user or PID; All / Apps / My processes / System narrow the list (Apps is hidden where the system can't tell apps apart). Click a column heading to sort by it, again to reverse; CPU is a share of the whole machine. While the pointer is over the table the rows stay in place and only their values change, so a row doesn't jump away as you reach for it; moving off re-sorts. A dash means a value isn't available: macOS doesn't let Compi read some details of other users' processes. Processes are sampled every 2 seconds, only while the Overview (in a pane or in Settings) or Processes page is on screen.

Monitor a WSL distribution: On Windows the Monitor header has a source button listing the PC and each WSL 2 distribution; pick one to watch that distribution's CPU, memory, disk, network and processes instead. Each Monitor pane remembers its source, and a distribution's history starts when you open it. A window connected over SSH monitors that host.

Process inspection, quitting and saved columns

Inspect and quit processes: On Processes, select a row to see it in the inspector at the right (in a narrow pane, press Enter or double-click for a full page, and Back or Esc to return): its name and icon, PID, when it started and for how long it has run, state, user, app, working directory, executable and full arguments (Copy), its parent and children (click one to go to it), and its CPU and memory over the last 5 minutes. An app row shows the app's totals and its processes. Quit… asks the process to quit (SIGTERM; on Windows its windows are asked to close) and Force quit… ends it at once; both ask first, warn when it runs in a Compi terminal, and act only on that one process, and only if it is still the same process (a reused PID is left alone). Compi never quits itself, PID 0 or 1. Open terminal goes to the Compi terminal a process runs in. Right-click a row for the same actions plus Copy PID and Copy command.

Monitor columns: Drag the edge of a column heading to resize it, drag a heading to move it, and right-click the headings to hide or show columns or Reset columns. Each window remembers its columns; a narrow pane still hides User, then Threads, then CPU time.

Source: USAGE.md ↗

Updates and repair#

Check for updates, understand restarts and recover an installation.

compi update --check

Use Settings → Updates to check, download and install. Compi checks for updates by default; automatic downloads are off. Nothing installs, closes windows or restarts a daemon without your click.

Windows users on 0.8.0 or 0.8.1: use Compi 0.9.4 Setup.

The in-app updater in those versions can hang and roll back. Updating restarts the local daemon and ends running shells and chats, so save your work first. The daemon protocol is 44 and the workspace format is 11. The local updater does not restart remote daemons; shells ended by the restart start fresh in their last directory when shown, without earlier output.

Windows users on 0.3.0 or earlier must also run Setup once to replace the old update helper.

Update flow and activation recovery

Open Settings → Updates or run Check for Updates from the command palette. The page starts with the installed version, the updater's state, when Compi last checked, the download size and, before you download, what updating ends: the shells a daemon restart closes, or a restart of Compi's background service. One button offers the next step. Below are the notes of the available version (or of the installed one), then Automatic: Check for updates (on by default) checks when Compi starts and every 6 hours while it runs, or an hour after a failed check; Download updates automatically is off by default, so nothing downloads until you click Download. Nothing installs, closes windows or restarts a daemon without a click. An available or downloaded update also shows as a round button at the bottom of the sidebar and a dot on the sidebar button; clicking it does what the page's button does (Download, Restart to update or Restart and end N shells), and Later in its right-click menu hides it and the dot until a newer version arrives. After an update, the new version's notes appear once as a What's new card in the sidebar; fresh installs skip the card. Advanced holds Repair Compi and Open update log (.compi-update/update.log in the install folder). Old versions and leftover update files are removed quietly when Compi starts.

An update that can keep the running daemon relaunches clients into their saved views without ending shells. If a local daemon restart is required, Compi asks for consent and ends its shells; save your work first. The local updater never restarts remote daemons.

Installing an update includes reopening Compi; starting the helper is not completion. Installation ownership is checked before windows close or a consented daemon stops. A failed activation or new-build attachment records the error and reopens the previous saved views when safe. If the previous views cannot reopen safely, the update journal and worker log retain the failure and recovery details.

See the current release notes for version-specific update instructions.

Updating from a terminal

compi update --check prints the running version and, when there is one, the newer release with its headline:

Compi 0.1.7 · 0.1.8 available
  WSL tab completion: 41.8 s → 0.07 s

compi update downloads and verifies the same signed package as Settings → Updates, on one progress line. It then lists the shells a restart would end, saying so when the shell you typed in is one of them, and asks Restart now? [y/N]. Only y restarts. The running Compi window performs the restart exactly as the Updates page does: it saves the windows, ends only the listed shells and reopens into the new version, so a listed shell running the command closes with it. With no window open, Compi opens first. Without an interactive terminal, for example from a script or agent, the command stops after the download with exit 4; restart from a terminal or Settings → Updates. There is no bypass. --json reports the same results, and builds without a release verification key report that updates are unavailable.

If the invoking shell survives the restart, the command waits for the new GUI to confirm attachment before reporting success. A helper handoff, rollback or unconfirmed reopen is not success. Successful --json output includes applied: true, reopened: true, restarting: false, the installed current version and the previous version.

Repair and removal

On Windows, Compi-Setup.exe --repair lists problems with the install (program files, unfinished updates, the background task and daemon, WSL) and fixes them one at a time or all together. In-app Repair Compi downloads the latest Setup and runs the same repair.

Repair logs to %LOCALAPPDATA%\Compi\doctor.log. Setup's other runs log to installer.log there, and Windows Installer's record of the latest run goes to installer-msi.log. Remove always removes the registered install, whichever Setup build runs it.

Setup keeps one copy of the installed package, %LOCALAPPDATA%\Compi\installer\Compi.msi, which Windows Installer repairs from. Each run works in a folder next to it and deletes the folder when it completes. The next Setup deletes the folder of a failed run, and keeps an interrupted run's folder until it has undone that run.

Upgrade, repair, rollback, and default uninstall preserve workspaces, settings, and custom themes. Maintenance offers a separate unchecked managed-data removal choice. External projects/configuration/theme sources and WSL distributions are not removed.

Read the exact release notes before upgrading ↗

Source: INSTALLATION.md ↗

Troubleshooting#

Start with the affected environment and preserve the evidence.

Windows cannot start a shell

Check Settings → General → Shell. For WSL, confirm WSL2 is installed (wsl --install) and your default distribution starts. For a portable install, keep the entire archive together: the daemon requires its bundled terminal runtime. Use Setup’s repair path for installation problems; Compi-Setup.exe --repair also checks WSL.

A chat will not start

Install the agent where the chat runs. Settings → Agents shows what Compi found and marks missing agents Not installed.

An agent cannot find compi

Run the agent in a Compi terminal or chat, where the CLI is on PATH. If a WSL distribution’s /etc/profile resets PATH for login shells, an agent’s login shell may not find compi. Outside a Compi shell, choose a daemon with --instance or --connect.

A pane is disconnected or already attached

Use Reconnect window from the palette. It does not restart shells or steal another window’s attachment. Inspect compi --json pane show or open Diagnostics for the error. A process that ended is not restored merely by reconnecting.

A browser page will not load

Check the address and that the local server is listening, then use Retry. The Windows browser needs WebView2. Native macOS UI checks for 0.9.4 remain unperformed.

A file changed outside Compi

Use the editor’s Reload / Keep mine / Overwrite choices deliberately. Recover unsaved buffers through Recover unsaved edits… in the palette. Do not discard a conflict just to clear the notice.

A notification makes no sound

Check Notification sound and delivery in Notifications, preview with Play, then check the system’s notification sounds and quiet modes: Do Not Disturb or quiet hours on Windows, Focus or Compi’s Play sound for notifications switch on macOS. Supporting programs must report status; ordinary output does not create an event.

Collect a useful bug report

  • Compi version, operating system and whether the affected shell/files are on the host, WSL or SSH.
  • The exact action, expected result, actual result and a short reproduction.
  • Settings → Advanced → Performance → Copy diagnostics, or the palette’s Diagnostics action.
  • Relevant logs only, with tokens, private paths and other sensitive information removed.

Windows repair logs: %LOCALAPPDATA%\Compi\doctor.log. Setup logs are installer.log and installer-msi.log there. The update log is .compi-update/update.log in the install folder.

Report an issue on GitHub ↗

Sources pinned to 889e2b5504ff632dd6eef7325aa23d7d9de9d6f7.

Architecture and development documentation remain in the repository.