Full Byte Developer.

Terminals for agent work

Keep Claude Code in tmux when SSH drops, use worktrees for parallel edits, and add an AI terminal UI only if needed.

Published here · 6 sources

Most agent work still happens in a normal terminal. Add a multiplexer when you need detach and panes. Add Claude Code worktrees when two sessions would edit the same files. Add an AI terminal product only when you want its UI. [1] [2]

Related reading: Separate Claude Code sessions with Git worktrees, AI terminals beyond Claude Code and Codex, Coding agent orchestrators compared. [4] [5] [6]

Start one Claude Code session in the project

Common workflows: cd to the project root, run claude, then ask a concrete question. [2]

bash
cd /path/to/project
claude

Start with one Claude session on one job. Open a second session only after you create a worktree so the checkouts cannot collide.

Keep long jobs alive with tmux

tmux is a terminal multiplexer: create, access, and control several terminals from one screen; detach and reattach later. It runs on OpenBSD, FreeBSD, NetBSD, Linux, macOS, and Solaris per its README. [1]

bash
tmux new -s agents
claude

Detach with the tmux prefix (default Ctrl-b then d in common setups). Reattach:

bash
tmux attach -t agents

You should get the same session back after SSH drops. Use a second tmux window for logs or git status, not a second Claude editing the same branch without a worktree.

Isolate parallel Claude sessions with worktrees

bash
claude --worktree feature-auth

Common workflows document parallel sessions so concurrent edits do not collide. Worktree details and .gitignore for .claude/worktrees/ are on Separate Claude Code sessions with Git worktrees. [2] [3] [4]

SetupWhenTool
Single claudeOne taskClaude Code [2]
tmux sessionDetach / SSH flapstmux [1]
claude --worktreeParallel editsWorktrees [3]
Pi / Oh My Pi / OpenCodeYou want that product UILandscape post [5]
T3 / Orca / gstackMulti-agent control planeOrchestrators post [6]

Only then pick an agent terminal product

If you need a dedicated agent UI, use the landscape and choose posts: AI terminals beyond Claude Code and Codex and Pi vs Oh My Pi vs OpenCode. Do not install three terminals before you have one green worktree workflow.

You now have a terminal stack for agent work: plain Claude Code, optional tmux, worktrees for parallel jobs, products last.

Send this to the builder whose SSH drops keep killing Claude mid-task.

Keep this guide

By Full Byte Developer

Filed under Claude Code, Dev tools

Questions about this guide

Do I need a special AI terminal?

Not for one focused Claude Code session. Start with a normal terminal, tmux if you need detach, and worktrees if you run parallel sessions.

What does tmux give you?

Per the tmux README, a terminal multiplexer: create, access, and control several terminals from one screen, detach, and reattach later.

Where is the product landscape?

AI terminals beyond Claude Code and Codex, and Pi vs Oh My Pi vs OpenCode. This page is the practical host setup.

How do worktrees fit?

claude --worktree gives each session its own checkout so parallel edits do not collide. See Separate Claude Code sessions with Git worktrees.

Sources

Next in this stack