Terminals and sessions
Every session is a real terminal running a real program: either Claude Code (claude) or your login
shell. spekterm neither wraps nor imitates them. What you type goes to the program, and you see exactly
what it prints.
Starting sessions
Section titled “Starting sessions”Select a folder on the rail, then click + on the tab bar or press Ctrl+T, and choose Run claude
or Login shell. The menu works from the keyboard: the arrow keys move, Enter chooses.
- A session starts in the folder’s root directory. Sessions on the Global rail item start in your home directory.
claudeand your shell get the same environment as in your own terminal: spekterm reads your login shell’s environment once, at startup. After editing.zshrcor.bashrc, restart spekterm.- If
claudeis not found, the terminal shows the shell’s error and the tab is marked exited. It does not fail silently.
A claude tab is named after the title Claude Code sets; a shell tab is numbered (shell 1). To name a
tab yourself, right-click it and choose Rename. While your name is set, the program’s titles are
ignored. Clear the name to follow them again.
Working in the terminal
Section titled “Working in the terminal”- Copy and paste:
Ctrl+Shift+CandCtrl+Shift+V(on macOS,Cmd+CandCmd+V).Ctrl+Cis always an interrupt, even when text is selected, so you can always stop a runaway command. - Links in terminal output open in your browser when you click them.
- Switch sessions within the current rail item with
Ctrl+Tab/Ctrl+Shift+Tab. Reorder tabs by dragging them or withShift+←/Shift+→. - Close a session with
Ctrl+Shift+Wor from its tab menu.
spekterm’s shortcuts avoid the keys your shell and Claude Code need. The full list, and why each key was chosen, is on the Keyboard shortcuts page.
The terminal’s font, size, line height, and GPU drawing are under Settings → Terminal; see Settings.
Quick replies
Section titled “Quick replies”Under an agent session, in the terminal view and the conversation view, a row of buttons holds your quick replies: sentences you send to agents often. Click one and it is sent as your reply at once, with no second key. Keyboard focus stays where it was. The defaults are Can this session be closed now?, Is there any risk, or anything I need to decide? and Is there anything left to do in this session?; change them with the pencil button at the end of the row, or under Settings → Agents & sessions.
A quick reply is sent only when a typed reply could be: while the agent waits for you or is working. While it asks for a choice, or its state is unknown, the buttons are disabled. A dormant session shows the row disabled until you wake it.
The click does not go through your keyboard, and spekterm cannot see the agent’s input box: if you left something half-typed there, the sentence is added after it and both are sent together.
If the agent’s state changes in the half second between writing the sentence and pressing Enter, or you press a key in that moment, the sentence is left in the agent’s input box, not sent, and the row says so.
What the dots say
Section titled “What the dots say”The dot beside each session, on its tab and on the rail, tells you whether a claude session needs you
without opening it. Hover over the dot to see the state in words.
| Dot | State |
|---|---|
| Amber, pulsing | Waiting for you: the agent finished its turn and you have not looked at it since, or it asks for a choice (a permission prompt or a question) |
| Green, glowing | Working: the agent is in a turn |
| Green ring, half filled | Idle · running in background: idle, but the agent still has work running in the background — a background subagent, a background command such as a dev server or a test run, or a wait it set up. The agent can take a prompt; nothing needs you |
| Green ring | Idle: the turn ended and you have already seen it, and nothing runs in the background |
| Green | Running: a shell, or an agent whose state is not known (agent events are off) |
| Grey | Hibernated, or ended |
| Red | Ended with an error |
Switching to a session in the spekterm window, or opening its conversation in the companion phone app, counts as looking at it: its dot changes from waiting to idle. A session that has just started or woken is idle, not waiting. A subscription the agent keeps open for the session (such as an artifact’s live updates) is not background work. While a background subagent is running, the agent’s turn is not over yet, so the session shows idle · running in background rather than waiting. Each folder row on the rail has one dot for its most urgent session, so a collapsed folder still shows that something inside it is waiting.
The top of the main stage counts the whole workspace. Next to the selected item’s name it lists, for each
state that has a session, the state’s dot and how many sessions are in it: needs you (waiting for you or asks
for a choice), ended with an error, working, idle · running in background, running, idle, hibernated, ended —
the most urgent first. Click
a count to go to the next session in that state, in the order of the rail; click it again to go on to the
following one. Hover over a count to see which sessions it holds. When the window is narrow, the words are
dropped first, then the least urgent states are folded into one +N marker.
The agent does not report two things. If you press Esc to interrupt a turn, the dot stays on
Working until your next prompt. If you answer a permission prompt by typing in the terminal, your
keystroke counts as the answer.
After a restart
Section titled “After a restart”Closing spekterm ends every session’s process. If any session is still running, spekterm asks first and lists them. A build, a dev server, or a reply an agent is still writing is lost: spekterm cannot keep processes alive while it is closed.
What spekterm keeps is the session itself. When you open it again, every session is back in its tab, and:
- The sessions that were running start again on their own, in the background: they do not change which folder or tab is selected, and they do not take the keyboard from where you are typing.
- The sessions that were hibernated stay dormant: shown, but with no process, until you press Wake
(or
Enterwhile the dormant session has focus). See Hibernation.
Either way, a session that starts again picks up where it was:
- A
claudesession resumes the same conversation where it left off. - A shell starts again in its last working directory. Its previous screen appears above a line that reads end of previous content, so old output is easy to tell from new. On macOS, a shell starts again in its folder rather than its last directory; the close dialog says so.
If a conversation cannot be resumed (for example, because it was deleted), the session starts a new conversation, so you are not left with a tab you cannot use.
When agents cannot start at all, spekterm does not try every session in turn. If your shell environment
could not be read when spekterm opened (so claude may not be found), or the first agent it starts again
stops at once, the other agent sessions stay dormant and say why; press Wake to try one now, or they are
tried again the next time spekterm opens.
An agent session that starts again before you look at it lays out what it prints at a default width of 80 columns; it takes the real width the first time you show it.
The first time you open a version of spekterm with this behavior, every session is dormant, because the earlier version did not record which ones were running.
Closing and quitting on macOS
Section titled “Closing and quitting on macOS”On Linux, closing the window quits spekterm. On macOS, spekterm behaves like Terminal and iTerm2:
- Closing the window ends every session (asking first if any is running, as above) but leaves spekterm running in the Dock. Click the Dock icon to open the window again. Your sessions are back just as after a restart: the ones that were running start again, and the hibernated ones stay dormant.
- While spekterm runs without a window, the inbox keeps receiving, and if you set up Slack, spekterm keeps checking for mentions every five minutes. See Inbox and Slack.
Cmd+Q(or Spekterm → Quit Spekterm) asks the same question as closing the window when sessions are running.- Quitting from the Dock, logging out, or shutting down does not ask about running sessions. It still asks about files with unsaved changes.
Hibernation
Section titled “Hibernation”A session you only use now and then does not need a running process. Hibernate it to end its process
and leave it dormant in place. It stays dormant, across restarts too, until you press Wake (or Enter
while it has focus), or until a related agent wakes it to reach it
(Handoffs).
- By hand: press
Ctrl+Shift+H, or choose Hibernate in the menu of its tab or rail row. - Automatically: a session idle for 24 hours is hibernated. Change the time, or turn this off, under Settings → Agents & sessions → Hibernate idle sessions. A session that is idle · running in background counts as idle here, and hibernating it ends its background work too. The session on screen is never hibernated automatically, and neither is an agent that is working or a shell that is running a job. On macOS, idle shells are never hibernated automatically; you can still hibernate them by hand.
A hibernated shell loses what lived only in its process: unexported variables, command history not yet
saved to disk, and background jobs. The dormant screen says so. A hibernated claude session loses
nothing: waking it resumes the conversation.
Sessions in git worktrees
Section titled “Sessions in git worktrees”If a repository has linked git worktrees, the side panel shows the changes in all of them, each labeled
with its working directory. When a change lives in another worktree, the side panel offers Open a
session there, which starts a claude session in that worktree’s root. The status bar shows which
worktree the focused session is in (wt <name>), except on macOS (see below).
A worktree outside the folder’s directory can still host sessions. Only browsing its files in the side panel is limited.
The status bar
Section titled “The status bar”The status bar along the bottom shows the selected repository, the focused session’s working directory
and branch, how many sessions are open, the task progress of the anchored change, how many specs and
active changes the repository has, and how many files have unsaved changes. Turn on Show agent status in
the status bar under Settings → Agents & sessions, and claude also reports there:
- its model and effort, with ✻ while thinking is on;
- how much of its context is used (
ctx 42%); - the lines it added and removed in this session;
- the session’s cost so far;
- your usage limits for the 5-hour and 7-day windows (
5h 30%,7d 12%), each with the time it resets, when Claude Code reports them.
The setting applies to sessions started after you change it, and your own Claude Code status line keeps working.
On macOS, the status bar does not show the focused session’s working directory or its git state (branch, uncommitted changes, worktree).