0.0
There's a lot of open issues
A companion to `claude agents`, not a replacement: it reads the same daemon state through `claude agents --json` and adds snooze, auto-settle and the session's pull request.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

 Project Readme

claude-inbox

An inbox for Claude Code's background sessions and Codex threads. It lists what claude agents lists and adds snooze, settle, pinning and each session's pull request.

Inspired by T3 Code's functionality and inbox-style UX, I wanted a better way to manage my Claude agents, so I built this.

claude-inbox with one working session, one snoozed and the settled section folded

Install

Requires Ruby 3.2+ and claude on PATH.

gem install claude-inbox
claude-inbox

claude-inbox update installs the latest release.

Put arguments you want on every launch in ~/.config/claude-inbox/config.

To add the pane to every Claude Code session:

claude-inbox install

The inbox offers to do this once, the first time it starts without the pane. claude-inbox install --force also replaces any other copy of the pane.

Claude Code pane

The same inbox as a pane inside Claude Code, docked beside the transcript in a fullscreen terminal.

The inbox pane docked beside a Claude Code transcript

/inbox opens it, ctrl+x tab focuses it and esc leaves. The keys are the ones below, with ge for G, n p for Tab Shift+Tab, and no a, r, P, X, Ctrl-x, /, R or U, and s has no 5. Enter, or a click on a row, switches to the session when you attached through claude-inbox.

It opens when a session starts. To stop that, set pluginConfigs.inbox-pane.options.openOnStart to false in ~/.claude/settings.json.

Sections

  1. Pinned. Rows you pinned with t. Snoozing a pinned row moves it to Snoozed, marked ★, until it wakes back into Pinned.
  2. Needs you. Blocked or failed sessions, or ones whose pull request has failing checks or changes requested, that you haven't attached to yet.
  3. Active. Everything else that's running or not yet settled, including interactive terminals.
  4. Working. With --fold-working, sessions still at work, until they stop or you pin them. A sub-agent still running keeps a session at work; one waiting only on a shell stays in Active. Collapsed; one you start with n lights the fold line with its name instead of opening it.
  5. Snoozed. Sorted by wake time. Collapsed.
  6. Settled. Settled with x, or every pull request is merged or closed. Collapsed.

--sort=activity puts the session that spoke most recently first in every section but Snoozed, read from its transcript. Put it in the config file to keep it.

Under each row is what the session is waiting on, what it produced, or its status line. A row with a pull request shows it as #885 open, #885 merged and so on, with ✗ checks, changes requested or conflicts after it when something is wrong, and +2 after it when the session has two more. A steady ◌ with idle · 1 shell means the agent stopped and is waiting on a shell it started. A blue ● marks a session you haven't attached to since it got blocked or finished; one you have attached to since is dimmed, unless /color tints it. The age after the badge is how long since the session last said anything, read from its transcript: a working row that spoke 30s ago is still talking, one silent for 2h is not.

Keys

Vim bindings. Arrows and the mouse work too.

Key Action
j k move down / up
gg G first / last row
Ctrl-d Ctrl-u half page down / up (Ctrl-f Ctrl-b full page)
Enter l attach (← or Ctrl+Z returns here; in Codex, ← at the start of the prompt), adopt a remote session, or expand Snoozed / Settled
Tab Shift+Tab next / previous section
h collapse the current fold
za zo zc toggle / open / close the fold under the cursor
n new session
N pair a phone
t pin / unpin
s snooze: 1 15m · 2 1h · 3 tomorrow 9am · 4 until woken · 5 custom
u wake a snoozed session, or bring back a settled one
x settle by hand
a set a local alias
r ask Claude for a new title, kept as the alias
o open the pull request in the browser; with several, o again opens the one that matters, 1… another
w open the session at claude.ai/code
y copy the pull request url, or the session's address; with several, y again copies the one that matters, 1… another
P link a pull request by hand (empty clears)
X stop the session; Enter resumes it later
Ctrl-x delete the session, transcript and worktree for good
/ filter by name, directory, prompt, status or pull request (#885 or its title); Enter keeps it, Esc clears
R poll now (the list also refreshes on its own when a session's status changes)
U update claude-inbox when the header says a newer one is out
q quit

X and Ctrl-x both ask for y first.

New session

n opens a form for the prompt, Claude or Codex, name, directory, model, effort, permissions, worktree, Remote Control and color, which tints the row as /color would. Tab moves between fields, Ctrl-S starts the session and Ctrl-O starts it and attaches. Option-S or Option-O by mistake only says which key you meant; it no longer reads as Esc and asks to discard the prompt.

Paste an image on macOS, or drop a file into the prompt, and refer to it as [Image #1]. Type / for a menu of your skills.

Type in Directory to pick from recent and trusted directories; Ctrl-U lists them all.

How sessions move

A snoozed session wakes when its timer runs out, when you press u, or when it becomes blocked or failed.

Attaching to a needs-you session moves it to Active until its state, or its pull request's health, changes again.

A session settles when you press x or when all its pull requests are merged or closed. A session without a pull request only settles by hand.

With --reap, the inbox deletes background sessions that have been idle for 14 days, with claude rm. Working, pinned and snoozed sessions are kept, and claude rm refuses a worktree with unpushed commits. Each deletion is logged to ~/.config/claude-inbox/reaped.log.

Remote Control

Sessions with Remote Control show ⇅, and w opens them at claude.ai/code. A session started from your phone through claude remote-control can't be attached directly, so Enter offers to adopt it as a background session.

Rex

Run the inbox in a Rex pane and Enter opens the session in a Rex tab of its own, or brings back the one already open. Leaving the session closes the tab and returns to the inbox. Switching tabs needs Remote Control on in Rex's Settings, under Rex Server.

Starting sessions from your phone

With --listen-lan, a phone on your network can start sessions.

The inbox beside the phone form, pairing and then starting a session

  1. Run claude-inbox --listen-lan.
  2. Press N, then c to copy the pairing URL.
  3. Open it on the phone in Safari and tap Share, then Add to Home Screen.
  4. Open the Inbox icon, paste the URL again and tap Pair.

LAN mode is plain HTTP. Use it only on a network you control, and press r in the N dialog if the URL leaks. docs/remote-start.md covers ssh, the JSON API and an iOS Shortcut.

Pull requests

Pull requests show up when a session's transcript links to them. Install gh to keep their state current. Use P to link one by hand, and /#885 to find the session behind a pull request.

Notifications

--notify sends a macOS notification through terminal-notifier when a session needs you or finishes. brew install terminal-notifier first; the first launch asks permission to notify.

Usage bars

The header can show your 5-hour and 7-day rate limit usage:

session ██░░░░░░░░ 24% · 3h left  week ████░░░░░░ 41% · 2d left

This needs a Pro or Max account. Add these lines to your status line script, just after it reads stdin. Run /statusline first if you don't have one.

input=$(cat)
limits=$(echo "$input" | jq -c '.rate_limits // empty')
[ -n "$limits" ] && echo "$limits" > ~/.claude/rate_limits.json.tmp && mv ~/.claude/rate_limits.json.tmp ~/.claude/rate_limits.json

Contributing

See CONTRIBUTING.md.