Skip to content

Use the terminal to work directly on the computer running Compass Server. It is useful for running tests, inspecting a Git checkout, following logs, or operating an interactive program while the agent works in another chat. The shell runs with the host account’s permissions. Terminal availability depends on the host, and your device needs permission to operate it.

  • Chat workspace. In the chat, open Terminal to start in its workspace. If the chat uses a Git worktree, this is the worktree rather than the main project folder. The browser opens a shell from the chat as well.
  • Project session. In the native app’s project view, use Terminals to open an existing session or start a new one. If the app offers a worktree target, select it before opening the shell.
  • Mac. Use the terminal drawer to switch between open tabs for your workspace. Hiding the drawer keeps its sessions available. Ending a session stops its shell.

If you are unsure where a command will run, check the folder and Git state before doing work.

Terminal window
pwd
git status --short --branch

Use the project’s own instructions to choose a test or build command. For example, use npm test in a Node project that defines a test script. If the same check should be available to everyone working in the project, configure a project check.

On a host with tmux support, Compass can keep a shell running while you switch devices or reconnect, including across a Compass Server restart. It still depends on the host and shell staying alive. Without tmux, a detached shell has a limited reconnect window and ends if the server stops.

  1. In the native app, leave the terminal view when you want to come back later. Use End terminal session only when you mean to stop the shell and the work running in it.
  2. Reopen the session from Terminals, or use Reattach under terminal Options when offered.
  3. If it has ended, read any available output before choosing Start new shell. Check whether the previous command completed before running it again.

A dropped connection is different from closing the browser terminal panel. The browser tries to reattach after a dropped connection, but closing the panel can end the shell. For a long-running task, check which session you are leaving and how you will return to it.

On supported tmux hosts, use the terminal controls to open or switch windows, split panes, move focus, or zoom a pane. This lets you keep a test or log visible beside a shell. Closing a pane ends the program in that pane.

Use History or Show History… where available to read saved output. Enter copy mode lets you move through tmux scrollback. Use Back to live or exit copy mode when you want to type commands again. An interactive program, such as an editor or pager, can have its own scrolling controls and a separate screen from the shell’s saved history.

In the iPhone or iPad terminal, choose Use output in chat when offered. Review the excerpt before adding it to your message. Keep enough context to show the command, the failure, and the relevant output. Remove access tokens, private addresses, and unrelated log lines before sending.

For repeated commands, configure native terminal shortcuts and display preferences. If the terminal is missing or repeatedly disconnects, see terminal troubleshooting.