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 · Resume reading
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]
cd /path/to/project
claudeStart 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]
tmux new -s agents
claudeDetach with the tmux prefix (default Ctrl-b then d in common setups). Reattach:
tmux attach -t agentsYou 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
claude --worktree feature-authCommon 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]
| Setup | When | Tool |
|---|---|---|
Single claude | One task | Claude Code [2] |
tmux session | Detach / SSH flaps | tmux [1] |
claude --worktree | Parallel edits | Worktrees [3] |
| Pi / Oh My Pi / OpenCode | You want that product UI | Landscape post [5] |
| T3 / Orca / gstack | Multi-agent control plane | Orchestrators 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
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
- Claude Code common workflows, accessed 2026-11-26code.claude.com
- Claude Code docs: worktrees, accessed 2026-11-26code.claude.com
- Full Byte Developer: Separate Claude Code sessions with Git worktreesfullbytedeveloper.com
- Full Byte Developer: AI terminals beyond Claude Code and Codexfullbytedeveloper.com
- Full Byte Developer: Coding agent orchestrators comparedfullbytedeveloper.com