Docs

For Your Engineer

Terminal

Use a shell in the agent's sandbox to inspect its work or recover a stalled run. Run the commands you would use locally, such as bun run dev, npm install, or git status.

Where to find it

Open a task's agent session. Choose Show terminal from the header's More actions menu. Click the Terminal tab beside Preview. The terminal is off by default. Gleamrun remembers your choice for the next task.

In Console, the same shell has its own pane. Drag, split, or place it in a tab beside the preview.

The shell connects when you select the Terminal tab or first bring its Console pane to the front. Selecting other tasks does not open shells for them. While the sandbox starts, the pane shows a waiting message. If the sandbox was rebuilt, the pane connects to a fresh shell.

Leaving the terminal

When the terminal has focus, the shell receives every key, including Tab. Press Escape twice to move focus to the pane's toolbar. A single Escape still goes to the shell, so vi and readline behave normally.

The terminal is not fed to the agent

Your terminal commands and output do not enter the agent's transcript or context. The agent receives no terminal token or terminal-control tools. Commands you run here do not become part of its next turn.

Same sandbox, so not a security boundary
You and the agent share a sandbox and OS account. A process can inspect other processes, so the terminal is not isolated from the agent. The files, environment values, and ~/.bashrc you leave behind affect its next turn.

Use the shared sandbox to inspect uncommitted agent edits, installed dependencies, and the running development server.

One sandbox, two shells

Terminal commands can compete with the agent for files and ports during a turn. Gleamrun does not block those commands or warn you before they run.

Refreshing and moving the pane

The server keeps the shell running when you refresh the page, move its Console pane, or switch tabs. You reconnect to the same shell with its scrollback and running processes. For example, bun run dev started ten minutes ago is still serving when you return.

The shell ends with its sandbox and has no separate idle timeout. An open terminal keeps the sandbox running on the same schedule as an active agent run. Close the pane when you finish to release that hold on the sandbox.

What it can reach

The shell and agent have the same access because they run in one sandbox. Hiding environment values from one would not isolate them.

CapabilityIn the terminal
Sandbox environment, including /tmp/.envReadable. API keys, the AI gateway token, and git credentials are all present
git pushAllowed, with the sandbox's credentials. A push from here bypasses the usual pull-request review
Files the agent has changed but not committedReadable and writable
Running services (the dev server, the database)Reachable on localhost

Owners, admins, and members can open a terminal on any task they can see. Members without merge rights cannot open one because the shell includes git credentials that allow pushes. A sandbox containing a session private to someone else also blocks terminal access.

What is recorded

Gleamrun records each command with the user, task, and time. It redacts token-like strings before storing the command line. Input is read while you type to identify command boundaries, but keystrokes are not stored. Terminal output is neither read nor stored, including secrets printed in it.

If you break something

The shell and agent share the sandbox's profile. Editing ~/.bashrc, writing to ~/.claude, or exporting ANTHROPIC_* can affect the agent's next turn. To recover:

  • Restart: ends the shell process and starts a new one. This clears exported variables and stuck foreground jobs. It does not reset the sandbox or undo file edits. The new shell still reads any changes to ~/.bashrc.
  • Undo the change from the terminal itself when the agent is failing after an edit you made: revert the file, since Restart leaves file changes in place.
Keep the agent's config alone

If you need a tool of your own with its own credentials, scope it to a command or a private config directory rather than exporting it globally. A global ANTHROPIC_* export is the one change most likely to break the next agent turn.

Turning it on

Gleamrun turns the terminal on and off per workspace, one workspace at a time. There is no switch for it in Workspace Settings. To turn it on or off for your workspace, contact Gleamrun.

If the pane says it is not available here, check the reason it shows: the terminal is off for the workspace, your role cannot open a shell, a private session restricts the sandbox, or Gleamrun has temporarily disabled the terminal everywhere.