One priority queue for every coding agent waiting on you. Answer one, and the next comes up on its own.
ctrl+i opens the queue at its head. Each answer hands that session back to its agent and brings up the next.
Gate Inbox turns the coding agents on your machine into one queue. Every session that needs you, whether
it is stopped on a question, finished, or idle, is lined up by priority and state. ctrl+i opens
the head of the queue, and answering it advances to the next one, so you work through the queue
without picking the next session or hunting through terminal tabs. Mark a session urgent, high, medium or
low with ctrl+p and it moves to that place in the queue.
Claude Code, Codex and OpenCode v2 work out of the box and run side by side, each in its own tmux
session. Any other CLI can be added as a [tools.<name>] block in the config.
It is a thin layer over the CLIs you already have. Each session launches your installed tool as-is, so your login, config files, MCP servers and every feature the tool ships carry over unchanged. Gate Inbox reads the panes; it does not sit between you and the model.
- Install. You need tmux 3.1+, git and at least one agent CLI (Claude Code, Codex or
OpenCode). Then run
go install github.com/usestring/gate-inbox@latest, or see Install below. - Start it. Run
gate-inbox, inside tmux or outside it. The welcome card lists which of your agent CLIs are ready, the five keys that matter, and any agents you already have running in tmux.ctrl+non the card starts your first session. - Agents you already had. Anything you started by hand in tmux shows up on the board as-is,
and stays where it is: the board never ends your process unasked.
ctrl+alt+aon its row (or on the toast that names a pane started while the board is up) brings it in: once it is idle, it is relaunched on the same conversation as a board session.ctrl+oleaves it off the board. What a pane kept as-is misses is below; settings (ctrl+s) has "outside panes" to take them over once idle without asking. - The loop.
ctrl+nstarts an agent,ctrl+psets its priority,ctrl+iworks through the queue of everything waiting on you,enterfocuses one session,ctrl+qcomes back to the list, andctrl+hshows every key. - Leaving and coming back.
ctrl+alt+qquits and the agents keep running. When you start it again, the board offers back only the sessions that died (a reboot, tmux restarting, a crash), never the ones you ended yourself. Stop using it covers stopping for good.
| An agent pane you started by hand, kept as-is (the default)... | Brought into the board (ctrl+alt+a), it... |
|---|---|
| keeps running where it is, in its own window | is ended once idle and resumed on the same conversation as a board session |
| gets the board's MCP tools (spawn, message, tasks) through the relay the board registers in your Claude Code user config (Claude Code only; other CLIs get none) | gets them |
is reached by other sessions and the CLI from its row (send, read, wait, kill, and answer from the session that tracks it) |
is reached the same way |
| reports status through the hooks the board registers in your Claude Code user settings (Claude Code only) | reports status through the hooks it is launched with |
lacks the GATE_INBOX_* environment, extension settings and a fresh account token |
gets all three |
| can't be forked, migrated, restarted or revived without a conversation id | can, on its own conversation |
gets the back-to-board keys when the board attaches it (ctrl+a), not its title and colours |
gets them all |
keeps the flags and --model it was started with |
is started from your config, so it doesn't keep them |
Gate Inbox runs on Linux and macOS, and on Windows inside WSL2. It needs tmux 3.1+ and git
on PATH, plus at least one agent CLI; on Linux, launching any CLI other than Claude Code also
needs bubblewrap (bwrap). Building needs Go 1.27.2+.
git clone https://github.com/usestring/gate-inbox.git
cd gate-inbox
go build -o gate-inbox .Or go install github.com/usestring/gate-inbox@latest, which puts gate-inbox in
$(go env GOPATH)/bin. docs/install.md covers optional dependencies, WSL and
updating.
gate-inboxctrl+nstarts an agent in the group under the cursor and focuses it. Type the task.ctrl+qgoes back to the list. Each row shows its status as the agent works.ctrl+iopens the queue at its head: higher priority first, with questions first within each tier.- Answer it. The queue advances to the next one on its own.
ctrl+hshows every key for the current screen, andctrl+sopens settings.
Sessions live in tmux, so quitting the board leaves them running. Start gate-inbox again and it
picks them back up.
Spawn two agents, watch their status, and answer the one waiting from the queue.
Spawn. ctrl+n starts a session in the selected group. ctrl+alt+n opens the full form (tool, name,
directory, first prompt, group). Agents name their own sessions after the task.
Reuse prompts (experimental). Enable Prompt suggestions under Settings → Experimental
(default off). In the New Session form's prompt field, matching suggestions appear as you type.
ctrl+n / ctrl+p choose among them and ctrl+y inserts the chosen text for editing;
accepting does not launch the session. Suggestions come from the newest 16 MiB of each CLI's
submission log within the past 30 days. A whole prompt or a line in a multi-line prompt must occur
at least four times to qualify. Counting ignores case and repeated whitespace, and each submission
counts once per candidate. The logs are reread in the background every minute. Gate Inbox matches
prompts against history locally. Enable Auto Suggest as well to rank those matches with the selected
classifier. The hotkey-only snippet menu is unchanged.
See status. Every row shows whether its agent is working, waiting on you, finished or idle,
read from the pane itself. The preview beside the list shows the conversation as You and
Assistant messages. While a session is working, a bounded Live output section also shows
its latest terminal activity, including text the CLI has not saved yet. Older message groups shorten
to four lines; the newest stays full, hovering expands an older group, and F3 toggles the preview's
detail. Focus mode uses the terminal by default; F3 switches between conversation and terminal and
remembers the choice. Shell sessions always show the terminal. ctrl+w filters the list
to what needs attention, and ctrl+f searches names, titles, groups, statuses and what the sessions have said.
Work the queue. ctrl+i flattens the group under the cursor into one queue and opens its head.
A higher priority goes ahead of a lower one. By default, within the same tier, a question
goes ahead of a finished session, which goes ahead of an idle one. Sessions still working wait below
everything ready for you. Picking an option in a dialog, or sending a reply, hands that session back to its agent and
advances the queue to the next one. A session that becomes ready while you work joins the queue in
place, and when the group is empty the queue widens to the rest of the board. ctrl+q moves a
session to the back without answering; it returns after the rest of the queue. Restarting triage
clears that order. ctrl+\ stops. alt+\ puts the list away for full-width work, and alt+,
hides the key hints. triage order in Settings chooses how to order work within a tier or
limits handoffs to questions. docs/usage.md has the full ordering.
Set priority. ctrl+p steps a session or group through high, medium, low and none, from the
list or from inside the session. priority tiers in Settings picks up to three tiers above the
default and up to three below; the default is two above and one below. ctrl+m mutes a session to keep it out of the queue.
Switch subscriptions or agents. Select a session and press alt+a to switch its subscription,
or ctrl+t to move its conversation to another CLI. When a session hits a usage limit and a
build extension routes its accounts, that extension moves it to another subscription in the
background, whichever session is selected, and the card offers only the other CLIs. Otherwise the selected session's card defaults to
another subscription of the same CLI, then offers the other configured CLIs (Codex, OpenCode and
the rest) and leaving it for later; [board] offer_cli_on_limit = false limits it to the
subscription. Each move opens its review card before starting
anything. Dismissing the offer keeps it closed for that limit; the shortcuts remain available. On macOS, alt is Option.
Focus. enter focuses a session in place: keys go to the agent while the list stays beside
it, and ctrl+q comes back. alt+\ hides the list so the pane gets the full width, and
alt+pgup / alt+end scroll back through its output and return to the live bottom. ctrl+z
opens the hotkey menu, which sends one of your snippets to the selected session without focusing it; a
lettered snippet also sends on option+<key> in one press, no menu. ctrl+alt+t opens a shell tab under the
selected agent for builds and one-off commands.
Focus a session, give it the full width, type a multi-line instruction, scroll back through the reply, and ctrl+q out.
| Key | Action |
|---|---|
ctrl+n / ctrl+alt+n |
New session, quick or with the full form, also from the Reviews queue |
ctrl+] |
Switch between Sessions and Reviews, or move keyboard focus between the queues when both are visible |
ctrl+alt+] |
Show the Sessions and Reviews queues together or return to one queue |
ctrl+z |
Hotkey menu: send a snippet from the list or a focused session |
enter |
Focus the session; ctrl+q returns to the list |
ctrl+i |
Triage queue; \ hides the list for a full-width drain |
ctrl+w |
Show only what needs attention |
ctrl+y |
Show only one CLI's sessions, cycling through the harnesses on the board |
ctrl+f |
Fuzzy search; tab in the field toggles title-only, esc closes the field, deleting the text clears it |
ctrl+p |
Priority tier for a session or group; each press steps high → medium → low → none on the default scale (priority tiers in Settings allows up to +3 / -3). ctrl+p also works from a focused session, and the row flashes its new tier |
ctrl+m |
Mute / unmute: keep a session out of triage until unmuted; the row reads muted |
ctrl+t / alt+a |
Move the conversation to another CLI / switch its subscription |
ctrl+alt+t |
Shell tab under the selected agent |
ctrl+x / ctrl+r |
Kill a session to free its RAM / revive it on its own conversation |
ctrl+k |
Quick actions: type what you want, enter runs it, and each row shows its key |
ctrl+h / ctrl+s |
Key map for the current screen / settings |
Priority defaults to 0 with no marker. Positive levels use green ▲, ▲▲, and ▲▲▲; the negative level (-1) uses a red ▼. Set a level with gate-inbox priority <level> using a number from -1 to 3 or its tier name.
Every binding is a default, and ctrl+h is where you rebind one. docs/usage.md is
the complete reference.
Every MCP-capable session launches with the Gate Inbox MCP server, so an agent can list the other
sessions, spawn a child, send it a message, read its screen and wait for it to finish. The same
actions are gate-inbox subcommands for a shell inside any session (gate-inbox help). A spawned
child is drawn under its parent, and its questions go to the parent first.
Config lives at ~/.config/gate-inbox/config.toml on Linux and
~/Library/Application Support/gate-inbox/config.toml on macOS, and is created on first run.
GATE_INBOX_HOME points the board at another directory, which then holds the config, the
state.db store and the logs.
Adding a CLI takes a tool block with the patterns its pane shows in each state:
[tools.mytool]
command = "mytool"
default_status = "idle"
rules = [
{ state = "waiting", pattern = "(?m)^\\s*❯\\s+\\d+\\." },
{ state = "working", pattern = "esc to interrupt" },
]Sessions run on tmux's default server as gi_* sessions, and the board never changes a
server-global option. Set tmux_socket to keep them on a server of their own.
docs/configuration.md covers every field: status detection, revive and
fork commands, prompts and MCP registration.
Configure SSH workers to browse their agent sessions from the local board. Open Quick actions
(ctrl+k), search for Remote sessions, and press Enter on a running session to use its terminal
in the same window. See Remote hosts for setup.
They talk only to services you run or already use.
Pull requests and tickets. Gate Inbox finds the pull requests and tickets a session is working
on from its branch and its output, and hangs them under the session with their CI and review state.
GitHub goes through your logged-in gh CLI; Linear reads LINEAR_API_KEY from the environment.
A missing credential is not a failure: without LINEAR_API_KEY tickets are still listed, just
without their state. Either source can be turned off outright, which hides its rows:
[integrations.github]
enabled = false
[integrations.linear]
enabled = falseTry the review queue without GitHub. gate-inbox demo reviews opens the real board on a
scratch home with three synthetic review asks, a canned gh and a scripted review CLI. Press
ctrl+alt+p to fetch and prepare briefings, enter to open the selected review chat, and
ctrl+k for its Quick Actions. Nothing reaches GitHub, a model or an account, and the scratch board is deleted
when the demo exits unless --keep is passed.
Run a second board. gate-inbox --instance <name> starts a board beside the main one, with its
own home, tmux server, state and review queue. The first board keeps running. See
the second-board section.
PR custody for automation. A confirmed replacement or account migration hands the original session's recorded pull requests to its successor. The original records remain, and ordinary restarts keep the same identity. Parallel migrations do not transfer custody until completed.
gate-inbox pr-owner https://github.com/owner/repo/pull/1 --json returns status as owned,
none, or ambiguous, with a lowercase url. An owned result has a flat session_id;
an ambiguous result lists session_ids. Only recorded creation evidence and explicit handoffs
count. The recipient must be a live, nonarchived agent. Broken lineage and an unavailable board
are errors, never evidence that nobody owns the PR. GitHub owner/repository casing is ignored.
To queue feedback, use gate-inbox pr-feedback <url> --event-key <key> --expect-session-id <id> --message-file <path> --json. Keys contain 1–128 letters, digits,
underscores or hyphens; files contain 1–8000 bytes of UTF-8 text. The response contains status
(accepted or duplicate), a positive integer message_id, session_id, url, and event_key.
A new acceptance atomically checks the resolved owner and queues an ordinary noninterrupting
system message. Approval and input guards still govern delivery. It never revives a session.
Retry the same key and exact file after an uncertain response. Reusing a key for different content or another PR fails. Receipts survive restarts and handoffs; a duplicate reports the message's current recipient while its inbox row exists, otherwise its original accepted recipient. Acceptance does not promise delivery. Pending messages follow committed handoffs once; migration leaves messages already being delivered with the source. Receipts remain in the existing settings store without expiry so an old retry cannot silently enqueue again. A changed or ambiguous owner refuses new feedback; callers should defer on errors rather than infer permission to start work.
Pages a session publishes hang under it too, below its pull requests and tickets. The board reads
Claude artifacts from Claude Code's own Artifact tool itself, and only those the session's own
publish call returned: a page it merely linked does not count. Pages hosted elsewhere arrive from
an extension, which attaches them when its tool publishes one (see Extensions). Either way the
page is kept in the state database, so it survives a restart. Opening the row opens the page.
Remote inbox. gate-inbox inbox serve takes a text message over HTTP, such as dictation from
a phone's Shortcut, and starts a router session on the board for it. It binds loopback, and is meant
to be reached only over a private network such as Tailscale serve, with one token per client.
docs/remote-inbox.md covers setup, security and an iPhone Action button
recipe.
Extensions. Extensions are Go code compiled into the binary against the public extension
package; the app package runs the board with whichever extensions a build carries. This build
carries none, so an [extensions.artifacts] section left from an earlier version is ignored. A build
of your own lists its extensions in app.Options. A section an extension refuses switches off that
extension alone, and a section no extension in the build owns is ignored; the board's ctrl+h key map and
each session's MCP instructions say which and why. A disabled extension that has a say in
which sessions spawn fails closed: every spawn it would have been asked about is refused, with the
reason, until its section is fixed.
An extension whose tool publishes something can put it among the calling session's work rows with
extension.AttachWork(ctx, session.Host, extension.WorkItem{Kind: extension.WorkArtifact, ID: id, Title: title, URL: url}). Attaching the same ID again replaces that row's title and address, so
a republish does not add a second one. A Host that cannot attach work, such as a test fake, returns
extension.ErrWorkUnsupported.
Claude Code can rank a session from an optional skill frontmatter field:
gate-inbox-priority: highThe accepted tiers are urgent, high, medium, low, lower and lowest; the board shows a
tier past its configured scale at the scale's edge. The last invoked skill with a tier
wins. The hook reads skills from $CLAUDE_PROJECT_DIR/skills first, then
${CLAUDE_CONFIG_DIR:-$HOME/.claude}/skills. It runs for the Skill tool and a prompt beginning
with /<skill>. Skills without a valid tier leave priority unchanged.
The reusable hook lives in hooks/skill-gate-inbox-priority.sh.
It needs Bash and jq, and a session launched by Gate Inbox (GATE_INBOX_BIN, or
AGENT_MANAGER_BIN for older launchers). Without a board binary it exits successfully without
changing anything. A launcher that owns the session's tier can set GATE_INBOX_PRIORITY_LOCKED=1
to keep skills from replacing it.
To use it in another project, link to your Gate Inbox checkout instead of copying the script. From that project's root, with Gate Inbox checked out in a sibling directory:
mkdir -p hooks
ln -s ../../gate-inbox/hooks/skill-gate-inbox-priority.sh hooks/skill-gate-inbox-priority.shKeep that checkout available at the linked path. Merge these entries into the project's
.claude/settings.json hooks, preserving any existing registrations:
{
"hooks": {
"PreToolUse": [
{
"matcher": "Skill",
"hooks": [{"type": "command", "command": "bash \"$CLAUDE_PROJECT_DIR/hooks/skill-gate-inbox-priority.sh\""}]
}
],
"UserPromptSubmit": [
{
"hooks": [{"type": "command", "command": "bash \"$CLAUDE_PROJECT_DIR/hooks/skill-gate-inbox-priority.sh\""}]
}
]
}
}Run bash hooks/skill-gate-inbox-priority.test.sh from the Gate Inbox checkout to test the hook.
Gate Inbox uses TypeSafe's Jev as the default classifier for three opt-in features. Add a Jev API key under Settings → Classifier, then enable the features you want under Settings → Experimental. You can also select Clef as the classifier.
- Finish check. The selected classifier compares a Claude Code session's opening request with its end state. It reports high-confidence completions and can resume aligned work blocked by missing Chrome access. Collection mode saves predicted completions locally for verification.
- Auto Suggest. Jev ranks earlier prompts from an existing session against the recent conversation to suggest a next reply. With Prompt suggestions also enabled, Jev ranks matching prompts from local history against the draft in the New Session form. You can edit the suggestion before sending it.
- Smart copy. When you press the copy key, Jev identifies commands, links, or values the agent left for you in its latest reply. A separate run key lets you run a selected one-line command in the session.
See the usage guide for the controls and what text each feature sends to the classifier.
go build -o gate-inbox .
scripts/ci-test.sh # the test suite exactly as CI runs itCONTRIBUTING.md covers sending a change, and SECURITY.md how
to report a vulnerability privately. The recordings above come from tools/demo/record.sh, which
drives vhs against a throwaway board whose sessions run a
scripted stand-in CLI, so no model or account is involved.
Apache-2.0. Gate Inbox is derived from an Apache-2.0 upstream project, where its
session model, tmux passthrough and TUI began. NOTICE names that project, its authors
and the commit this fork started from. LICENSES/MODIFIED-FILES.txt
lists the files changed since, and LICENSES/THIRD-PARTY.md covers
third-party licences.
Quit. ctrl+alt+q quits the board. Its agents keep running in tmux as gi_<id> sessions and are
picked back up next time.
Stop every agent. gate-inbox park ends every live agent the board started and records the
set. It runs from any shell, and --dry-run prints the plan first. Park reads every session's
state before it stops any of them: a session that was mid-turn, starting, or waiting on a
background shell, and every session tracking one of those up to its root, has work in flight. The
rest (idle, finished, asking you something, stopped on a limit) is dormant. With hibernate_after
set, a session that hibernation would already take is hibernated instead of parked: it stays on the
board, marked ◓ hibernating rather than dead, and wakes on its conversation when a message
arrives for it or you enter it, rather than coming back with the rest. gate-inbox unpark
brings every parked session back on its conversation, parents before their children: the work in
flight first, telling only the ones stopped mid-turn to continue, then the dormant ones with nothing
sent, so they cost no tokens. Each relaunch waits its turn in the shared relaunch queue (see
[relaunch] in configuration), so a reboot's worth of agents comes back
one at a time rather than at once. A board that starts on a host rebooted since the park runs the
unpark by itself after about 20 seconds. Sending to a session still waiting its turn brings it back
straight away and types your message in once it is at its prompt. A single one: gate-inbox kill <id>, with the id
from gate-inbox sessions. From inside a managed agent session, gate-inbox stop ends that
session and preserves its row and conversation for an explicit revive. It records an intentional
stop, so startup recovery does not offer it as a lost session. gate-inbox stop --archive also
files the ended row out of the active list, where archive --restore can bring it back for 7 days.
gate-inbox stop --dry-run verifies the current pane without ending it. Adopted callers with verified pane process ancestry can also stop themselves. A shared Codex host instead receives a fresh caller_proof_line first in JSON output, so the caller's ordinary visible tool output supplies the proof automatically. A shared OpenCode host does the same, resolving the row from the calling pane's adoption marker. If the client collapses that line, relay Gate Inbox stop proof: <caller_proof> in the calling conversation. An outside worker verifies the fresh proof in the pinned pane before completing the requested action. A proof response means verification is pending; a missing proof times out without stopping or archiving anything. Never type or send the proof into a target pane through another channel.
Shared-daemon callers whose pane cannot be verified refuse shutdown. Other adopted panes can be stopped by id from
another session or the board.
Carry on in the plain CLI. In a focused session, alt+/ copies the agent's own conversation
id. From that session's working directory:
| CLI | Resume |
|---|---|
| Claude Code | claude --resume <id> |
| Codex | codex resume <id> |
| OpenCode | opencode --session <id> |
Without an id, Claude Code and Codex open their own session picker (claude --resume,
codex resume) so you choose the conversation, and opencode --continue picks up the
directory's most recent one.
Uninstall.
gate-inbox park. In Settings (ctrl+s), switch "claude code setup" off so the board takes its hooks and MCP relay back out of your Claude Code config, rungate-inbox codex-hooks uninstallto take its hooks out of your Codex config, set[opencode] setup = falseinconfig.tomlso it takes its plugin out of your OpenCode config, then quit the board withctrl+alt+q.- Remove the binary:
rm "$(command -v gate-inbox)". - Remove the config and state directory. That's
$GATE_INBOX_HOMEif you set it, otherwise~/.config/gate-inboxon Linux ($XDG_CONFIG_HOME/gate-inboxif that's set) and~/Library/Application Support/gate-inboxon macOS. It holdsconfig.toml,state.db, the log, key bindings, snippets, hook and MCP registration files, and a copy of the binary underbin/. - Remove the launch scripts and pasted images it left in your temp directory:
rm -f "${TMPDIR:-/tmp}"/gi-launch-*.shandrm -rf "${TMPDIR:-/tmp}/gate-inbox-pastes". - Undo the tmux key bindings it added (
ctrl+qandctrl+\, plusalt+ofrom older releases, which act only insidegi_*sessions and adopted panes the board attached), on each tmux server it adopted a pane on:tmux unbind-key -n C-q \; unbind-key -n 'C-\' \; unbind-key -n M-o, or restart tmux. If the board didn't exit cleanly,tmux kill-session -t gi_poll-anchorremoves its helper session. If you gave it a private tmux socket,tmux -L <name> kill-serverdoes all of this at once.
Gate Inbox hands each session it launches its MCP server and hooks on the command line. The
things it keeps in an agent CLI's own configuration are for panes it adopts: hook entries in
~/.claude/settings.json, silent outside an adopted pane, the two deny lists there that keep every
Claude Code session out of Gate Inbox's sealing keys (permissions.deny and
sandbox.filesystem.denyRead, naming only its own channel-keys directory), and an MCP server
named gate-inbox in ~/.claude.json; two hook entries in ~/.codex/config.toml, silent
outside the board's sessions; and a gate-inbox-<id>.js plugin in ~/.config/opencode/plugins,
silent outside an adopted pane; all added automatically. Step 1 removes them, giving back the
settings file as it was, and so do [claude_code] setup = false, [codex] setup = false and
[opencode] setup = false in config.toml. Beyond that, migrate leaves a
*.handover.jsonl file next to the transcript it moved, under ~/.claude/projects or
~/.codex/sessions.
Gate Inbox is derived from agent-manager, licensed
under Apache-2.0. Thank you to Yoan Wai and the agent-manager contributors for the session model,
tmux passthrough and TUI this project grew from. NOTICE carries the attribution and
the upstream commit this fork started from.


