A desktop app that turns your GitHub review load into one queue. It shows only what you need to act on, one line each, in order. Your rules, and your agent weighing them, sort everything else away.
- Review in the desk. A click on a PR opens its diff with an AI summary, concerns and notes on the changes. One click approves it, and it leaves your list at once.
- Hand off your own PRs. Hand off for merge gives a PR to the coordinator, a background agent session the desk starts. It fixes CI, addresses review comments and merges once the PR is approved and green. It hands the PR back to your Inbox only when it can't.
- Your agent, your login. Every agent run is your own Claude Code, Codex or OpenCode.
- Writes only on your click. The desk writes to GitHub only when you click a button that says so. See Safety.
Runs on macOS, Linux and Windows.
curl -fsSL https://raw.githubusercontent.com/gricha/inbox/main/install.sh | bashOn macOS and Linux, that one command:
- installs the app from the latest release:
/Applications/Inbox.app, or~/.local/bin/Inbox.AppImageon Linux. It updates itself from then on. Until there's a release (or withbash -s -- --source), it installs from source in~/.local/share/inbox, which needs Node 22.18+ and git; - signs you in to GitHub with the GitHub CLI (
gh auth login), offering to installghwith Homebrew; - puts
inboxin~/.local/binand that on your PATH (not with Linux's AppImage: therenpm install -g @gricha/inboxbrings it); - opens Inbox;
- run by Claude Code, Codex or OpenCode (ask it to install Inbox with that command), installs Inbox's MCP tools and skill in that agent and picks it as yours. Start a new session of it to use them.
Run it again to update. On Windows, run the installer from Releases.
The first open is one page: GitHub, signed in as you or what to run, and your agent. Claude Code, Codex and OpenCode each say whether they're installed and logged in, or the command that gets them there. Press Use Claude Code (or yours): that installs Inbox's MCP tools and skill in it, and you're on your Inbox while the first sync runs, about 30 seconds. Settings → Agent changes it later; inbox setup does the same from a terminal.
Every agent run is your own CLI, on your own login.
Without the app, from npm: the server, the web UI at http://localhost:47823 and the inbox CLI.
npm install -g @gricha/inbox
inbox serve --openFrom a checkout:
npm install
npm run appThe app runs the desk server itself; if one is already running on port 47823 (inbox serve), the app attaches to it.
To build an installable app for the current OS into release/ (a .dmg, an AppImage, or a Windows installer):
npm run dist # or dist:mac, dist:linux, dist:winThe macOS build is ad-hoc signed and not notarized. install.sh clears the quarantine flag, so its install opens directly. A dmg downloaded by hand is blocked the first time: try to open Inbox once, then press Open Anyway under Privacy & Security in macOS's System Settings (since macOS 15, right-click → Open no longer gets past it). The AppImage carries the static AppImage runtime (build.toolsets.appimage in package.json), so it needs no libfuse2 on the host.
Coming from Review Desk? Quit Review Desk.app and delete it, or its login item keeps starting it (Inbox removes the old Linux autostart entry itself). Inbox keeps your window, theme and settings, and moves ~/.review-desk to ~/.inbox on first start, leaving a link at the old path.
The sidebar has four pages, plus Ask your agent and Settings in its footer.
- Inbox: what needs you, in three sections, Urgent, Standard and FYI (see Urgency). Each row is one line: the title, why it's there, who it's from, its age and at most one call to action, such as Ready for review on your draft or Hand off for merge on your PR that's ready. Agents' questions and sessions that need you lead Urgent. Someone else's PR shows at once; until its AI review is written, its row says so. Anything untouched for two weeks drops to FYI.
- Blocked: your PRs that can't move yet, such as one that needs another PR merged first, or one waiting on reviewers. Each says what it waits on, down the chain. It comes back to your Inbox when that changes.
- Merging: your PRs the coordinator is getting merged, each with what it waits on and the coordinator's latest note. Merged ones stay for 3 days. Back to desk takes one back.
- Archive: what's done (by you, or resolved by GitHub: merged, closed, approved), then what you snoozed or muted and what your rules hid.
- Settings (⌘, in the app), in two groups. App: Inbox and notifications, Automations (your automations and urgency), Agent, Usage (what its model calls would cost at API prices), This device (theme, shortcut, menu bar count), Network (Tailscale to use it from your other devices; the local network to read it there with a token), then Integrations: GitHub (account, searches and rules, the AI review, its automations), Sessions and MCP servers. Changes save as you go.
Everything is a click. A row opens its review (an issue opens in place). Right-click a row for Done, Snooze, Move to another section, Close on GitHub, Show log, Copy link and Copy GitHub link. Platform keys still work: Esc goes back, ⌘↵ sends what you wrote, ⌘S saves an editor, Tab moves between controls.
Snooze hides an item in the Archive until a time, until someone acts, or until the PR changes as you need: CI passes, new commits, approved, out of draft, conflict fixed. Done, snooze, mute and pin are local; nothing goes to GitHub.
Problems with the desk itself (offline, a failed sync, your agent logged out, broken rules, an action GitHub refused) show as a bubble at the window's bottom right.
In the app: the menu bar shows the Inbox's count (macOS), Control+Alt+D (Control+Option+D on a Mac) shows or hides the window from anywhere, and a notification fires when something new lands in your Inbox.
More on each page: docs/ui.md.
Rules give each item its first placement. Edit them in Settings → GitHub → Searches and rules: Preview changes shows what would move, Save saves. They live in ~/.inbox/config.toml, which you can also edit directly.
A board is one or more GitHub searches plus rules. The first rule whose when is true sets the bucket. Then your agent (the judge) sorts everything, weighing every rule that matches with its weight, plus your automations' sorts and criteria. An item on several boards shows once, at its most urgent placement.
weight = 8: how much your agent counts the rule, 0 to 10 (5 unless set). 9 or 10 is your firm default, under 3 a hint. GitHub's rules carry their own: a review asked of you by name weighs 9, a team ping 5.hard = true: a floor. What it matches never sorts below its bucket.final = true: your agent doesn't re-sort it (your pin still lifts it).
To change how something sorts, add or reweigh a rule, or ask your agent to.
[[spaces]]
id = "getsentry"
name = "Sentry"
scope = "org:getsentry" # added to every search in this space
[[boards]]
id = "sentry-review"
space = "getsentry"
name = "PRs I need to review"
queries = ["is:pr is:open archived:false review-requested:@me"]
filter = "!item.draft"
priority = "author.engaged_90d" # within a bucket: people you work with most first
caps = { now = 3, today = 6 } # overflow moves down a bucket, with a note
default = "later"
rules = [
{ when = "me.requested_direct && !me.requested_by_bot", bucket = "now", why = "{me.requested_by} asked you directly", hard = true },
{ when = "author.close", bucket = "later", why = "you engaged with {author.engaged_90d} of their PRs" },
{ when = "me.requested_codeowner && pr.my_area", bucket = "later", why = "CODEOWNERS ping, in code you work on" },
{ when = "me.requested_codeowner && !me.requested_direct", bucket = "fyi", why = "CODEOWNERS ping to @{me.requested_team}" },
]- Expressions:
&& || ! == != < <= > >= in matches, pluslen() lower() contains() startswith() any(list, "glob*"). An unknown field is an error with a suggestion. - Fields:
item.*,pr.*,me.*,author.*,repo.*. The full list is beside the editor and ininbox fields. - Buckets:
now,today,blocked,later,fyi,hide. Only rules fillblocked. Hidden items are in the Archive under "Hidden by rules". {close_authors}in a query expands to the people you review most.
The first run writes a starting config: one space for the org with most of your open items, plus Personal. Its boards name GitHub's built-in rule sets (builtin = "review", "mine", "mentions", "issues") instead of copying them, so a release that improves them reaches you. Your file holds only your changes:
builtin = "review"
off = ["your-repo"] # GitHub's rules you switched off
rules = [
{ when = "'ml' in item.labels", bucket = "now", why = "ML" }, # yours come first
{ id = "bot-pr", when = "author.bot", bucket = "fyi", why = "bot" }, # replaces GitHub's bot-pr
{ after = "stacked", when = "pr.ci == 'pending'", bucket = "later" }, # right after GitHub's stacked
]Searches and rules lists the built-in rules with a switch each. Details: docs/api.md → Rules.
Settings → Agent picks the agent that sorts your desk, writes AI reviews and runs the coordinator: Claude Code, Codex (run codex login once) or OpenCode (opencode auth login, or a provider key in your environment).
The agent needs two things from the desk. Settings → Agent says if either is missing, and Connect there adds it.
- MCP tools, served by the desk at
http://localhost:47823/mcpwhile the app orinbox serveruns. The list: docs/api.md → MCP tools. - The Inbox skill (skills/inbox/SKILL.md): what the desk is, which tool to use when, and its rules. The desk keeps installed copies up to date.
| Agent | MCP tools | Skill copied to |
|---|---|---|
| Claude Code | claude mcp add --transport http --scope user inbox http://localhost:47823/mcp |
~/.claude/skills/inbox/ |
| Codex | codex mcp add inbox --url http://localhost:47823/mcp |
~/.agents/skills/inbox/ |
| OpenCode | opencode mcp add inbox --url http://localhost:47823/mcp |
~/.config/opencode/skills/inbox/ |
The same from a terminal:
inbox connect # what Claude Code is missing, and the commands that fix it
inbox connect --apply # do it
inbox connect codex # or: inbox connect opencodeClients that only speak stdio can run inbox mcp. Connecting from another machine: Use it from another machine.
A /desk pane for Claude Code: your Inbox beside the chat, with its count as a status line. Install it with claude plugin marketplace add ~/code/review-desk, then claude plugin install inbox@inbox, and type /desk in a new session. (Had it as review-desk? Run claude plugin uninstall review-desk@review-desk and claude plugin marketplace remove review-desk first.)
inbox (bin/inbox, or bin/inbox.cmd on Windows) talks to the running desk. To use it from anywhere, link it onto your PATH:
ln -sf ~/code/review-desk/bin/inbox ~/.local/bin/inboxinbox ls # your Inbox; --all adds blocked, later and FYI
inbox show seer#8463 # why it's there, with the rule trace
inbox add getsentry/seer#8463 # put it on your desk, pinned, and start its AI review
inbox add getsentry/seer#8463 "your call on the retry budget" --from "seer retry fix" # with the line it shows as why
inbox done seer#8463 # also: snooze, mute, pin, restore, undo
inbox sync # sync with GitHub now
inbox settings # list settings; `inbox settings set review.auto_ai false`
inbox status --short # "desk 10 +2" (10 on your Inbox, 2 new), for a status line
inbox render review.json # a review document as one HTML page (docs/review-format.md)inbox help lists every command. Routes, tools and types: docs/api.md.
Over Tailscale, for you alone. On the desk's computer, turn on Settings → Network → Tailscale → Use it from your other devices (or run inbox serve --tailscale).
- The desk runs
tailscale serve, so it answers athttps://<this machine's tailnet name>/on your tailnet only, never on the internet (notailscale funnel). It stops serving when you turn the setting off or the desk stops. - It needs Tailscale signed in, with MagicDNS and HTTPS certificates on. The setting says what's missing.
- Only your own Tailscale login gets in (More → Tailscale login allowed changes whose), and only from a device you paired.
Pair a device with a one-time code (10 minutes, one try): press Pair a device under the setting (a QR code to scan in the Inbox app on your phone, the link for another device's browser, and the command for another machine), or on the desk's computer:
inbox pair- A browser (phone, laptop): open the link it prints,
https://<name>/pair#<code>. - The iPhone app: the desk's address and the code. It pairs as a phone, and what you tap there counts as your click in the window.
- Another machine with an Inbox checkout:
bin/inbox connect https://<name> --code <code>(addcodexoropencode). It pairs and connects that machine's agent. - A machine without a checkout: run
inbox pair --printon the desk's computer and paste the commands it prints. They carry a token: treat it as a password. - Codex and OpenCode read the token from
INBOX_TOKEN; the commands above print theexportline. - stdio clients and the CLI:
DESK_URL=https://<name> DESK_TOKEN=<token> inbox mcp(or anyinboxcommand).
Settings → Network → Tailscale lists paired devices; Revoke shuts one out at once. The desk's own computer needs no token. How requests are checked: docs/api.md → Security model.
A small native iPhone app lives in ios/ (v0, Simulator only so far). It pairs as a phone (Settings → Network → Pair a device, or inbox pair), shows your Inbox, Blocked, Merging and the Archive, triages (Done, Snooze, Mute, Undo) and acts as the window does: Approve, Comment, Reply, Ready for review, Ask reviewers, Merge, the More menu's writes, Hand off for merge, answering a question and kicking a session. The desk takes a paired phone as its own window. Checked against the mock desk; pairing as a phone through a real tailnet hasn't been run yet. ios/README.md says how to build and run it.
The coordinator gets the PRs you hand off merged. The window calls it your agent.
For each PR (or stack) it starts a subagent that works in a git worktree of your local clone. The subagent fixes CI, addresses review comments from the repo's members, rebases on a conflict, and merges with the repo's merge method once the PR is approved, green and conflict-free. It never posts comments or replies as you. When a reviewer needs your answer, or it can't finish, it hands the PR back to the top of your Inbox with one line why. Its latest note on each PR shows in Merging.
Conflicts. A merge conflict alone never lands on your desk. Your PR that's otherwise ready to merge (approved, CI not failing, not a draft) but conflicts goes to the coordinator to rebase. It shows in Merging as "rebasing", is pushed with --force-with-lease, and comes back to your desk ready to merge. With the coordinator off, it stays on your desk.
How it runs. Two background sessions of your agent: the coordinator gets what you hand off merged, and your agent answers what you ask (Ask your agent). Apart, so a merge it's busy with never holds up a question. The desk starts the coordinator on your first hand-off (or Start it now in Merging) and your agent on your first ask, then only wakes them: your agent at once for an ask, the coordinator once a minute with news on PRs in Merging (CI finished, a review or comment, a conflict). Wakes carry PR ids, URLs and what changed, never PR text. The desk checks every 5 minutes that it's still running and resumes it if not. Settings → Agent → Run your agent turns it off and on.
- Claude Code: background sessions (
claude --bg) named "Inbox coordinator" in~/.inbox/coordinatorand "Inbox agent" in~/.inbox/agent, with Remote Control on. It's your ownclaude, with your login, model and settings. Claude Code runs it, so quitting the desk leaves it running. The desk trusts those folders for Claude Code itself (it made them and wrote everything in them), so they start without a trust prompt. - Codex: one Codex thread; each wake is a
codex exec resumeturn the desk runs and waits on. A desk restart stops a turn in progress. Codex reads the deny list only in a trusted folder, so the desk adds[projects."<each folder>"]withtrust_level = "trusted"to~/.codex/config.tomlitself; if you marked the folder otherwise, Merging says so. With Let your agent run without asking off, it runs in Codex's workspace-write sandbox and hands back what needs a push. - OpenCode: one OpenCode session, run as the desk's own
inbox-deskagent whose bash rules hold the deny list. OpenCode has no sandbox. With Let your agent run without asking off, whatever your OpenCode config would ask about is refused.
Switching agents keeps each one's session. Details for each: docs/api.md → The coordinator.
Permissions. Settings → Agent → Let your agent run without asking (on by default) runs it without permission prompts. The deny list still applies, but it's then the only fence. Leave it on if your own sessions skip permission prompts: Claude Code passes messages between two sessions only when both skip them or neither does. Claude Code needs bypass mode accepted once: run claude --dangerously-skip-permissions and accept. Until then, or if your org disables it, Merging shows the refusal in red.
With it off, the coordinator uses your own Claude Code permissions, so allow git, gh pr merge and your test commands as you like. Its worktrees go under each clone's .claude/worktrees/, so add the folder holding your clones to permissions.additionalDirectories in ~/.inbox/coordinator/.claude/settings.json, or approve its edits as they come.
The deny list. The coordinator reads CI logs and comments anyone can write. So the desk writes a deny list into ~/.inbox/coordinator/.claude/settings.json that blocks what would let injected text post or rewrite as you: gh pr comment, review, ready, edit, close, reopen and create; gh issue comment, edit, close, reopen and create; all of gh api, and force pushes (not --force-with-lease). The desk adds missing rules and keeps the rest of that file.
Talk to it. Ask your agent in the sidebar opens a chat about what you're looking at: in a PR's review, the PR and the spot you were on (a conversation, a thread, or lines you picked with +). It acts with the desk's tools. On your own open PR it can push a change you ask for (never forced or merged). On someone else's it answers with a suggestion and never posts, and pushes only once you press Allow pushes to this PR. Each PR, issue or note you ask about gets a session of its own. It replies in the chat and as a notification. More: docs/ui.md → Asking your agent.
To watch it:
- Merging's top line: Watch on claude.ai (its Remote Control page, also in the Claude phone app) and Copy attach command (
claude attach <id>,codex resume <id>oropencode --session <id>). claude agentslists it;claude logs <id>shows recent output.claude stop <id>stops it until the desk's next check (within 5 minutes); turn it off in Settings to keep it stopped.claude rm <id>removes it; the next wake starts a fresh one.- Other sessions can message it by name ("Inbox coordinator") or use the desk's MCP tools themselves.
Every item on your Inbox gets a score out of 10. The score and your criteria put it in a section.
- A criterion is a yes-or-no about an item: a rule (
when, free and exact) or a question your model answers (ask, such as "Is it about service accounts?"). A yes raises the score. An urgent criterion's yes puts the item in Urgent whatever its score, even one your rules hid. - Tell your agent what you care about ("I care about PRs about service accounts") and it saves a criterion. Criteria only order your Inbox; they never act on an item.
- Settings → Automations → Urgency lists yours and GitHub's (Asked by name, which counts 3 points, Waiting on your reply, and the urgent ones: Ready to merge, Yours to merge, Your draft, Your PR others wait on, Handed back), each with a switch.
- Your agent scores 20 items a call, with the one-line why your row shows. With a decision model key (Settings → Agent → More), that model scores instead. Before a model answers, or with Score the Inbox off, the desk scores from the rules and criteria.
- Urgent is 8 or more, FYI 3 or less (Settings → Inbox and notifications). A review asked of you by name, or your pin, never goes below Standard.
- Every answer is kept in
~/.inbox/labels.jsonl, to train a cheaper model later.
Details: docs/api.md → Urgency.
An automation is an instruction the desk runs for you, on a schedule or on events, that puts on your desk what needs you. For example: "Weekdays at 9, look at what's new in getsentry/warden and put on my desk what needs me."
Built in. GitHub comes with some, listed in Settings → GitHub, each with a switch. Copy to your automations makes an editable copy.
- On by default (no model): Pick a reviewer (your ready PR, a workday with nobody asked by name), Follow up on silent reviewers (two workdays of silence), Team reviews someone else took (to FYI), Wide team pings (asked of four or more teams: hidden).
- Off by default: Snooze while CI is red and Questions in mentions (a model spots a question for you).
Yours. Settings → Automations lists them, with when each runs, its last run, Run now and a switch. Open one to edit it. Ask any agent with the desk's tools to write one (inbox_automations). One an agent writes or changes is on as soon as it's saved, as yours is; only you can delete one.
When it runs.
- A schedule:
daily 09:00,weekdays 09:00,13:00,mon,thu 17:30, orweekdays hourly, local time. A run missed while the desk slept runs once. - Or events from the desk's event log (a review asked of you, new commits, CI changing, a comment, a merge, …). It runs once for the items the events landed on, up to 20 at a time.
- A check (
when, written like a rule) filters items first. Items that fail it never reach a model.
How it decides. Pick the cheapest that works:
- A rule calls no model: every item that passes the check gets its one action.
- A question is one model call without tools: for each item, what to do, or nothing.
- An agent is your own Claude Code (or Codex, or OpenCode) with read-only tools, for what needs a deeper look. It runs in
~/.inbox/automations(claude -pfor Claude Code) and never asks: a deny list blocks posting, pushing, editing files and the desk's own writes, even where your settings allow them. Copy resume command on a run reopens its session. Give an agent run MCP servers (your agent's own, by name:gmail) and it gets only those beside the desk's, and can put what isn't on GitHub, an email say, on your desk as a note, once. Settings → MCP servers shows your agent's servers, checks them, and adds or removes one.
What it may do. By default it only adds items to your desk, pinned, with its own why. You can allow more (can): sort to Today, Later or FYI, hide, snooze, mark done, mute. It never sorts into Now or Blocked. Your hard rules, final rules and pins bind it. What it adds, it adds once, until something about the item changes. Every action carries its name and undo takes it back. It never touches a review asked of you by name, your pin or a PR your agent handed back.
Decision model. By default your agent answers questions. With an OpenRouter key (Settings → Agent → More; typesafe/jev-1.14 by default), each item is one request to OpenRouter's Decisions API, and the desk acts only when it's at least 80% sure. The item's facts then leave your computer for OpenRouter (never the AI review or its files). The key lives in ~/.inbox/secrets.json.
A run that added something, couldn't, or failed notifies you. When a question's model can't answer (logged out, out of credits), the run waits and tries again in half an hour. Details: docs/api.md → Automations.
What the desk writes to GitHub, each only on your click and only through src/github/write.ts:
- Approve, in a PR's review.
- Comment on a PR or an open issue, and comment on a line of a diff (the
+by the line). - Reply under a conversation in a PR's review.
- Ready for review on your draft (asking the reviewers you picked), and Ask reviewers on your ready PR.
- Merge now in a PR's review (More), when it's approved (or needs no review), green, not a draft, not stacked and mergeable. It uses the repo's merge method, pinned to the commit the desk checked.
- The More menu, when the desk allows it for that item: close, reopen, convert to draft or merge your PR, or re-request review from who reviewed it; request changes on someone else's, or take yourself off its reviewers; close an issue you opened or are assigned. The toast's Undo reopens or marks ready again.
Everything else is read-only: GraphQL queries, GETs of your notifications (never marking them read) and of a PR's files. Agents can't reach the writer through MCP, the CLI or a paired machine's token, but for the coordinator's inbox_label and inbox_rerun on a PR in Merging. A tap on your paired phone counts as your click. (A program running as you on the desk's machine is not held back by this: Security model.) Hand off for merge, Back to desk and hand-backs write nothing. The coordinator pushes and merges with your own git and gh.
What it never does:
- It never listens beyond
127.0.0.1, and rejects a foreignHostorOrigin. Only with Use it from your other devices on does anything else reach it, throughtailscale serve, from your login, on a paired device. - An automation never writes. The desk acts on what it lists, only as you allowed. Only you turn one on.
- Nothing about your items goes to a model other than your own agent, unless you set a decision model key (see Automations).
- PR text never goes into the coordinator's wakes, only URLs and numbers. The AI review fences PR text as untrusted and reads the repo at the PR's head with read-only tools. Each concern quotes the code it's about, and a second pass drops any the diff doesn't bear out.
- What you write (comments, replies, answers, your rules) never reaches Sentry, where the desk reports its errors and traces. Request bodies, MCP arguments and your IP stay off. Log lines can carry what the desk logs (an agent's question, a hand-back's reason).
DESK_SENTRY=0sends nothing.
~/.inbox/config.toml |
spaces, boards, rules |
~/.inbox/settings.json |
settings you changed from the default |
~/.inbox/secrets.json |
the decision model key |
~/.inbox/desk.db |
cache and local state (SQLite), and paired devices' token hashes |
~/.inbox/docs/ |
review documents |
| AGENTS.md | where each kind of change goes |
| docs/api.md | behaviour, HTTP routes, MCP tools, security model |
| docs/architecture.md | modules, CLI, MCP, desktop app |
| docs/ui.md | what each page does and says |
| docs/visual.md | the mark, colours, layout, and how a design change is checked |
| docs/review-format.md | review documents (inbox.review/1) |
| docs/effect.md | error handling |
| docs/vision.md | where Inbox is going |
| docs/plugins.md | a small core with sources as plugins: what's built, what's next |
npm run app:dev # the app from this checkout: src/ restarts the desk, web/ hot-reloads, electron/ restarts the app
npm run dev # server + Vite in a browser at :5173
npm test # node:test, no network
npm run check # what CI runs but the web build: format, type-aware lint, CSS lint, types, dead code, tests
npm run smoke:app # launches the app on a scratch home and checks it end to end
npm run shots # screenshots of every key state, light and dark and each theme (.shots/index.html)
npm run icons # every icon (app, tray, favicon) from assets/brand/mark.svgA pre-commit hook formats and lints staged files. A pre-push hook runs npm run check, and CI (.github/workflows/ci.yml) runs the same checks plus npm run build: the tests on Linux and macOS for a PR, and on Windows too once it's on main.
Set DESK_HOME and DESK_PORT to work on a scratch desk, and DESK_SENTRY=0 to keep it out of Sentry. Where to make a change: AGENTS.md.
Releases are built and published on GitHub's runners, by hand: Actions → release → Run workflow, or
gh workflow run release.yml # the next patch
gh workflow run release.yml -f version=0.3.0 # a version you pick.github/workflows/release.yml waits for main's CI on the commit to be green (it doesn't run the tests again) while it builds one installer per runner, all at once: the Mac dmg for Apple silicon, the Mac dmg for Intel, the Windows installer and the AppImage (with the latest*.yml their updater reads). Those are what install.sh and the updater use: the Mac updates itself from its dmg, so there's no Mac zip, and no Windows zip or Linux tar.gz either. Once they all pass it commits the version, pushes main and the tag together (refused if main moved meanwhile) and publishes the Release. It takes a few minutes and doesn't need your machine. It pushes with a deploy key (the RELEASE_DEPLOY_KEY secret), which main's ruleset lets through, as it does you; everyone else goes through a PR that needs green CI. From a Mac, by hand:
npm run release 0.2.4 # on a clean main that has GitHub's: sets the version, commits and tags v0.2.4; pushes nothing
npm run release:publish v0.2.4 # checks, pushes main and the tag, builds every platform from the tag, publishes the Releasescripts/release-publish.sh checks out the tag in a worktree under .claude/worktrees/ and runs npm run check. Then it pushes main up to the tag and the tag, together, before building: if main moved on GitHub since the tag, it stops there in seconds. It builds the same installers (the Mac dmgs, the Windows installer and the AppImage) at once with electron-builder, which cross-builds from macOS with no Docker or Wine, in about 2 minutes. The builds are kept in release/, and gh release create publishes one GitHub Release with every build, the latest*.yml files the updater reads, and notes generated from the commits since the last release. It needs gh logged in with write access to gricha/inbox, and refuses a tag that's already released. Nothing publishes on a tag push, so the workflow and this script never race to create the same Release.
npm run release:publish v0.2.4 -- --build-onlybuilds intorelease/and stops: nothing is pushed or published.npm run release:publish v0.2.4 -- --upload-onlypublishes what's inrelease/with no rebuild: a failed upload's retry. On a Release that exists it adds the files that are missing.- Nothing is signed: macOS is ad-hoc signed and not notarized, and Windows shows a SmartScreen warning on first run.
- The Windows and Linux builds are made on the Mac and not run there: try one on a real machine when their packaging changes.
QA. The workflow's qa job installs the Apple silicon dmg it just built on a scratch home and launches it (scripts/qa-release.ts driving scripts/smoke-app.ts): the window, tray, bridge, the version and Settings. Publish waits for it. The Actions token can't read your GitHub, so after each release a Mac runs the full pass on the published build:
npm run qa:release # the latest release; or -- v0.2.51, or -- path/to/Inbox-0.2.51-arm64.dmgIt installs that release as a QA copy at ~/.inbox-qa/Inbox.app, with its own home and port (47833), beside your own app, which it never touches: a separate DESK_HOME gets its own window state, logs and single-instance lock. It checks what the CI job does, then waits for a first GitHub sync with no errors and opens an item's review. QA_SHALLOW=1 skips the sync; QA_HOME and QA_PORT move the copy. The copy and its home stay, so you can open it again: open -n --env DESK_HOME=$HOME/.inbox-qa --env DESK_PORT=47833 ~/.inbox-qa/Inbox.app.
Updates. The packaged app checks the latest release every 6 hours with your GitHub token. When there's a newer one, the sidebar's footer says so:
- Where the app can install it (macOS, the Linux AppImage, the Windows installer) it downloads it unasked, then offers Restart to update: it quits and restarts into it. The download is kept across restarts of the app. What's in
~/.inboxis untouched.- On macOS the app does it itself, since the ad-hoc signed build can't use the usual updater (
electron/mac-update.ts): it downloads this Mac's.dmg, checks it against the checksum GitHub lists for it, keeps the new app beside the old one (.Inbox.app.update), and on the restart puts it where the old one was, deleting the old one.
- On macOS the app does it itself, since the ad-hoc signed build can't use the usual updater (
- Download 0.2.0 elsewhere (an archive, or a Mac app it can't write over, such as one opened straight from the dmg): a link to the release page.
A desk run from a checkout (npm run app, inbox serve, Run from a checkout) never checks.
npm. npm publish from the tagged commit ships @gricha/inbox: prepack compiles src/ to lib/ (Node won't run TypeScript from node_modules) and builds the web UI. An npm install has no Sentry SDK, so it reports nothing.
MIT. See LICENSE.