TermFDocs

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.

Terminals in TermF: tabs, and a layout of three panes, a Claude Code session beside a shell and a second Claude Code session at work
Tabs and splits, with each session's state. Sample data.

Tabs and splits

Each tab is a tree of free splits, with Claude Code or any shell in any repository.

ShortcutAction
⌘TA new session: Claude Code or a shell, in any repository
⌘DSplit right
⌘⇧DSplit down
⌥⌘ + arrowsMove 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.

  1. TermF hooks into each Claude Code session it starts: starting, working, waiting for you, idle, done.
  2. The context gauge comes from Claude Code's status line, chained after your own.
  3. Past the threshold, at the end of a turn, the agent writes a handoff, TermF sends /clear, and the agent resumes from the handoff.
  4. 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.

SettingWhat it does
context_resetTurns the automatic reset on or off
context_reset_atThe reset threshold
context_warning_atThe warning threshold
The canary preferenceOff 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.

  1. ⌘\ opens the second panel, ⌥⌘\ moves between them. ⌘-click or right-click opens a view beside.
  2. ? opens the help with every shortcut.
  3. ⌘K opens the palette, grouped by view.
  4. A four-step tour opens at first launch, and again from the help.

Every shortcut can be remapped, with conflicts flagged: see Keyboard shortcuts.

Edit this page on GitHub

Esc