Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
AI Terminal Manager — unified session history for Claude Code, Codex, Gemini CLI, opencode and Pi, plus a persistent tmux sidebar
Jump to setup instructionsFetched from the repository for this visit.
AI CLIs are now good enough to carry most day-to-day development. Tools to manage them are multiplying — and almost all of them are desktop GUIs. The problem is that a large share of real development doesn't happen on a desktop at all:
What these people lack is not another GUI. It's multi-session management inside tmux — the tool they already have open. tmux has already solved process persistence, reconnect, cross-machine takeover and layout serialization. The one thing missing is a layer that treats AI sessions as first-class citizens. atm is that layer and nothing else.
Two things you get for free along the way:
atm runs only in the instant you press a key (warm start 5 ms,
measured, see the research log); the sidebar is a Python TUI in an ordinary tmux pane. How much lighter than a desktop GUI this is
has not been quantified — this is a usage impression, not a measured number.It is a tmux session manager for AI CLIs (Claude Code / Codex / Pi / Gemini CLI / opencode / Antigravity CLI / Grok Build / MiniMax Code / Kimi Code / Oh My Pi / Copilot CLI / CodeBuddy CLI). Three things:
--resume there;swap-panes into the main pane, process untouched;It is not a GUI, a layout synchronizer or a control-mode parser. The tmux ecosystem and the official Desktop
app already own those (survey in research/notes/survey-existing-tools.md). It also never sends session data anywhere — it
only reads local files.
For: people developing in tmux on Linux / WSL2 / servers with several AI sessions open at once. Not for: people who don't use tmux; people with a single AI session; people who need floating windows and free layouts (tmux is a binary split tree).
This repository doubles as a research log: "how to use" is in docs/usage.md; "why it's designed this way / what we measured and tripped over" is the research log and
research/notes/. Every conclusion later overturned is kept with strikethrough, not erased.
display-popup appeared in 3.2; developed against 3.6, tested on 3.4)agy) / Grok Build (grok) / MiniMax Code (mcode) / Kimi Code (kimi) / Oh My Pi (omp) / GitHub Copilot CLI (copilot) / CodeBuddy CLI (codebuddy) installed (atm only reads what they write under ~/.claude/projects/, ~/.codex/sessions/, ~/.pi/agent/sessions/, ~/.gemini/tmp/*/chats/, ~/.local/share/opencode/opencode.db, ~/.gemini/antigravity-cli/conversation_summaries.db, ~/.grok/, ~/.minimax/v2/sqlite/runtime-state.sqlite, ~/.kimi-code/sessions/, ~/.omp/agent/sessions/, ~/.copilot/session-state/, ~/.codebuddy/projects/)uv is recommended:
# from PyPI (the command is still `atm`)
uv tool install ai-terminal-manager
# or straight from the repository, no clone — always the latest main
uv tool install git+https://github.com/lyfuci/ai-terminal-manager
# or clone and install (add --editable to have source edits take effect immediately)
git clone https://github.com/lyfuci/ai-terminal-manager
uv tool install ./ai-terminal-manager
Without uv, pipx install ai-terminal-manager works the same. To upgrade: atm update — it detects how atm was
installed (uv tool / pipx / pip, PyPI or git) and runs the matching upgrade; atm update --check only looks.
atm doctor # are the data sources there, does tmux respond, how many sessions are found, is the autosave hook really installed
atm health # which pane is stalled right now (memory reclaim / IO / stuck in D state), and how often each one stalled lately
atm install # write key bindings to ~/.tmux.conf + install resurrect/continuum. Prints what it will write and asks first; -y skips the prompt. Everything tunable lives in `atm config`
atm install does two things, each written as its own marker-delimited block, with a backup taken first:
prefix + a/A popup, prefix + b/B sidebar, prefix + m per-pane stall status (details in docs/usage.md). Applied to the running tmux server immediately. Keys can be
changed: atm install --key s --sidebar-key g.~/.tmux/plugins/),
turns on @continuum-restore, autosaves every 10 minutes. After a reboot, sessions / windows / panes / cwd come
back by themselves. It deliberately does not relaunch claude / codex — launching them all at once at boot ate
all available memory in one go (research/notes/2026-08-12-incident.md, appendix 3); you resume sessions on demand in the
right pane. Don't want it: --no-persist. If you already manage tpm yourself it is skipped, nothing is written
twice.atm restore: after a reboot the panes come back empty — this refills them from the resurrect save, one at a
time, through the memory gate, and never over a pane that is already running something. atm config restore.on-boot true makes it happen automatically at boot, behind a gate that stands down if the previous
boot restore was cut short or memory is already tight.The CLI speaks English, Chinese and Japanese, following your locale (ATM_LANG=en|zh|ja overrides).
tmux keyboard support is on by default: the managed block writes extended-keys on (applied live
with readback), which Pi and Claude Code need for Shift+Enter and similar keys. The separate
tmux.extended-keys-format defaults to auto: csi-u when the running tmux 3.5+ server's public
version/option probes confirm support, otherwise no format line at all (tmux 3.4 rejects it in a
config file). Explicit csi-u or xterm are refused before saving when support is unknown or
missing; "" leaves the format unmanaged and tmux.extended-keys false turns the keys off. Probes use the target server, not the PATH client's version. Disabling removes
only atm's lines and leaves live values unchanged. ATM never restarts a server to silence warnings;
outer terminal/client modified keys are unverified, so settings do not prove real Shift+Enter works.
See keyboard configuration.
Config edits keep environment overrides temporary; reset also reconciles installed artifacts. atm install --conf PATH saves keys.conf-path for later edits and uninstall. Key changes bind new keys before retiring old ones. Disabling tmux options preserves running values and applies to new servers. Aggregate slice installation supports the user manager only, and reload failures are reported explicitly. See configuration behavior.
Launch with atm claude / atm codex / atm pi / atm gemini / atm opencode / atm agy / atm grok / atm mcode / atm kimi / atm omp / atm copilot / atm codebuddy to run inside a cgroup memory gate (add other AI CLIs via atm config harness.commands cursor-agent,aider so atm <cmd> and the sidebar recognize them too). It is on by default and
sized to the machine (memory.high / memory.max are auto: Max = 35% of RAM with a 4G floor, High = 80% of
Max), so a normal working session is never throttled while a runaway one is contained. Plain claude stays
unlimited — the prefix is the choice. atm doctor reports any session that is actually being throttled, and the
sidebar flags a pane with ⚠ the moment it stalls (reclaim, IO, CPU, or a process stuck in D state).
Set atm config tmux.pane-titles top (or bottom / off; legacy true/false stays compatible) to show live AI session titles on every pane border (including live /rename and /resume sync for agy, while keeping native Claude / Pi titles intact). atm doctor, atm config, and atm install also check the running tmux server version against known compatibility rules (such as suggesting bottom on tmux 3.6 where pane-border-status top hits tmux/tmux#4715).
See docs/usage.md.
If tmux isn't installed, atm install prints the install command for your package manager; it never runs sudo for
you. Uninstall: atm uninstall && uv tool uninstall ai-terminal-manager — removes only those two blocks, not a character of your
own config, and leaves the cloned plugins alone.
Issues and PRs welcome. Development setup and conventions: CONTRIBUTING.md; for security issues don't open a public issue, see SECURITY.md. License: MIT.
GitHub checked 160h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.