DocsConcepts
Terminals and sessions
Terminals keep every Claude Code session and shell in one window, in tabs and free splits, each showing whether it is working, waiting for you or done.

Tabs and splits
Each tab is a tree of free splits, with Claude Code or any shell in any repository.
| Shortcut | Action |
|---|---|
| ⌘T | A new session: Claude Code or a shell, in any repository |
| ⌘D | Split right |
| ⌘⇧D | Split down |
| ⌥⌘ + arrows | Move between splits |
| ⌘↵ | Zoom one split |
Arrange a tab as one per tab, side by side, 2 × 2, auto grid or focus. Save layouts with their tabs and splits. Broadcast a message to the sessions you tick.
Tabs reorder by dragging and rename by double-click. Closing a running session asks first. A terminal out of sight lets go of its display: its output keeps filling a buffer, replayed with its scroll position when you come back.
Codex CLI, Gemini CLI or any command-line agent opens in a terminal too: see Codex and Gemini, and [agents] in the configuration.
# the sessions
termf ls
# open a session (an agent waits for your confirmation)
termf open <path> [--agent claude]
# type into a session (waits for your confirmation)
termf say <session> <text>
Session state and context reset
Each Claude Code session shows its state, read from Claude Code's own hooks, and how full its context is. A notification tells you when one waits or finishes.
- TermF hooks into each Claude Code session it starts: starting, working, waiting for you, idle, done.
- The context gauge comes from Claude Code's status line, chained after your own.
- Past the threshold, at the end of a turn, the agent writes a handoff, TermF sends
/clear, and the agent resumes from the handoff. - The reset stops if you typed, if the agent asked for approval or went back to work, or if a task runs in the background.
By default, TermF warns at 50 % of the context and resets at 70 %, and notifies you for Waiting for you and Finished.
| Setting | What it does |
|---|---|
context_reset | Turns the automatic reset on or off |
context_reset_at | The reset threshold |
context_warning_at | The warning threshold |
| The canary preference | Off by default: every reply starts with your first name, so a degraded context shows at once |
# print each session's state changes, live
termf watch
# the status line TermF chains after yours
termf statusline
Two panels, help and the tour
A second panel opens any view beside the current one: a run while an agent works, or the CTO beside the terminals.
- ⌘\ opens the second panel, ⌥⌘\ moves between them. ⌘-click or right-click opens a view beside.
- ? opens the help with every shortcut.
- ⌘K opens the palette, grouped by view.
- A four-step tour opens at first launch, and again from the help.
Every shortcut can be remapped, with conflicts flagged: see Keyboard shortcuts.