# 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.

Source: https://fullbytedeveloper.com/blog/terminals-for-agent-work
Published here: 2026-11-26

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](/blog/claude-code-parallel-worktree-sessions), [AI terminals beyond Claude Code and Codex](/blog/ai-terminals-beyond-claude-codex), [Coding agent orchestrators compared](/blog/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](/blog/claude-code-parallel-worktree-sessions). [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](/blog/ai-terminals-beyond-claude-codex) and [Pi vs Oh My Pi vs OpenCode](/blog/ai-terminals-pi-oh-my-pi-opencode-claude). 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.

## Sources

1. [tmux README (tmux/tmux), accessed 2026-11-26](https://github.com/tmux/tmux)
2. [Claude Code common workflows, accessed 2026-11-26](https://code.claude.com/docs/en/common-workflows)
3. [Claude Code docs: worktrees, accessed 2026-11-26](https://code.claude.com/docs/en/worktrees)
4. [Full Byte Developer: Separate Claude Code sessions with Git worktrees](https://fullbytedeveloper.com/blog/claude-code-parallel-worktree-sessions)
5. [Full Byte Developer: AI terminals beyond Claude Code and Codex](https://fullbytedeveloper.com/blog/ai-terminals-beyond-claude-codex)
6. [Full Byte Developer: Coding agent orchestrators compared](https://fullbytedeveloper.com/blog/coding-agent-orchestrators-compared)
