[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115320":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":16,"stars90d":15,"forks30d":15,"starsTrendScore":14,"compositeScore":17,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":18,"hasPages":18,"topics":20,"createdAt":9,"pushedAt":21,"updatedAt":22,"readmeContent":23,"aiSummary":24,"trendingCount":15,"starSnapshotCount":15,"syncStatus":25,"lastSyncTime":26,"discoverSource":27},115320,"inbox","gricha\u002Finbox","gricha","A desktop app that turns your GitHub review load into one queue",null,"TypeScript",56,5,53,1,0,3,41.13,false,"main",[],"2026-11-23 16:52:01","2026-11-22 04:56:43","# Inbox\n\nA 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.\n\n- **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.\n- **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.\n- **Your agent, your login.** Every agent run is your own Claude Code, Codex or OpenCode.\n- **Writes only on your click.** The desk writes to GitHub only when you click a button that says so. See [Safety](#safety).\n\nRuns on macOS, Linux and Windows.\n\n## Start\n\n```bash\ncurl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fgricha\u002Finbox\u002Fmain\u002Finstall.sh | bash\n```\n\nOn macOS and Linux, that one command:\n\n- installs the app from the latest release: `\u002FApplications\u002FInbox.app`, or `~\u002F.local\u002Fbin\u002FInbox.AppImage` on Linux. It updates itself from then on. Until there's a release (or with `bash -s -- --source`), it installs from source in `~\u002F.local\u002Fshare\u002Finbox`, which needs Node 22.18+ and git;\n- signs you in to GitHub with the GitHub CLI (`gh auth login`), offering to install `gh` with Homebrew;\n- puts `inbox` in `~\u002F.local\u002Fbin` and that on your PATH (not with Linux's AppImage: there `npm install -g @gricha\u002Finbox` brings it);\n- opens Inbox;\n- 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.\n\nRun it again to update. On Windows, run the installer from [Releases](https:\u002F\u002Fgithub.com\u002Fgricha\u002Finbox\u002Freleases).\n\n**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.\n\nEvery agent run is your own CLI, on your own login.\n\nWithout the app, from npm: the server, the web UI at \u003Chttp:\u002F\u002Flocalhost:47823> and the `inbox` CLI.\n\n```bash\nnpm install -g @gricha\u002Finbox\ninbox serve --open\n```\n\nFrom a checkout:\n\n```bash\nnpm install\nnpm run app\n```\n\nThe app runs the desk server itself; if one is already running on port 47823 (`inbox serve`), the app attaches to it.\n\nTo build an installable app for the current OS into `release\u002F` (a `.dmg`, an AppImage, or a Windows installer):\n\n```bash\nnpm run dist     # or dist:mac, dist:linux, dist:win\n```\n\nThe macOS build is ad-hoc signed and not notarized: the first time, right-click the app → Open (`install.sh` clears the quarantine flag, so it opens directly).\n\n**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 `~\u002F.review-desk` to `~\u002F.inbox` on first start, leaving a link at the old path.\n\n## Use it\n\nThe sidebar has four pages, plus **Ask your agent** and **Settings** in its footer.\n\n- **Inbox**: what needs you, in three sections, **Urgent**, **Standard** and **FYI** (see [Urgency](#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 Merge on your PR that's ready. Agents' questions and sessions that need you lead Urgent. Someone else's PR arrives once its AI review is done. Anything untouched for two weeks drops to FYI.\n- **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.\n- **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.\n- **Archive**: what's done (by you, or resolved by GitHub: merged, closed, approved), then what you snoozed or muted and what your rules hid.\n- **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) and Sessions. Changes save as you go.\n\nEverything is a click. A row opens its review (an issue opens in place). Right-click a row for Done, Snooze, Close on GitHub and Copy link. Platform keys still work: Esc goes back, ⌘↵ sends what you wrote, ⌘S saves an editor, Tab moves between controls.\n\n**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.\n\nProblems 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.\n\nIn 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.\n\nMore on each page: [docs\u002Fui.md](docs\u002Fui.md).\n\n## Rules\n\nRules 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 `~\u002F.inbox\u002Fconfig.toml`, which you can also edit directly.\n\nA **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.\n\n- `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.\n- `hard = true`: a floor. What it matches never sorts below its bucket.\n- `final = true`: your agent doesn't re-sort it (your pin still lifts it).\n\nTo change how something sorts, add or reweigh a rule, or ask your agent to.\n\n```toml\n[[spaces]]\nid = \"getsentry\"\nname = \"Sentry\"\nscope = \"org:getsentry\"            # added to every search in this space\n\n[[boards]]\nid = \"sentry-review\"\nspace = \"getsentry\"\nname = \"PRs I need to review\"\nqueries = [\"is:pr is:open archived:false review-requested:@me\"]\nfilter = \"!item.draft\"\npriority = \"author.engaged_90d\"    # within a bucket: people you work with most first\ncaps = { now = 3, today = 6 }      # overflow moves down a bucket, with a note\ndefault = \"later\"\nrules = [\n  { when = \"me.requested_direct && !me.requested_by_bot\", bucket = \"now\", why = \"{me.requested_by} asked you directly\", hard = true },\n  { when = \"author.close\", bucket = \"later\", why = \"you engaged with {author.engaged_90d} of their PRs\" },\n  { when = \"me.requested_codeowner && pr.my_area\", bucket = \"later\", why = \"CODEOWNERS ping, in code you work on\" },\n  { when = \"me.requested_codeowner && !me.requested_direct\", bucket = \"fyi\", why = \"CODEOWNERS ping to @{me.requested_team}\" },\n]\n```\n\n- **Expressions**: `&& || ! == != \u003C \u003C= > >= in matches`, plus `len() lower() contains() startswith() any(list, \"glob*\")`. An unknown field is an error with a suggestion.\n- **Fields**: `item.*`, `pr.*`, `me.*`, `author.*`, `repo.*`. The full list is beside the editor and in `inbox fields`.\n- **Buckets**: `now`, `today`, `blocked`, `later`, `fyi`, `hide`. Only rules fill `blocked`. Hidden items are in the Archive under \"Hidden by rules\".\n- `{close_authors}` in a query expands to the people you review most.\n\nThe 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:\n\n```toml\nbuiltin = \"review\"\noff = [\"your-repo\"]                                                   # GitHub's rules you switched off\nrules = [\n  { when = \"'ml' in item.labels\", bucket = \"now\", why = \"ML\" },        # yours come first\n  { id = \"bot-pr\", when = \"author.bot\", bucket = \"fyi\", why = \"bot\" }, # replaces GitHub's bot-pr\n  { after = \"stacked\", when = \"pr.ci == 'pending'\", bucket = \"later\" }, # right after GitHub's stacked\n]\n```\n\nSearches and rules lists the built-in rules with a switch each. Details: [docs\u002Fapi.md → Rules](docs\u002Fapi.md#rules-built-in-and-your-own).\n\n## Connect your agent\n\nSettings → 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).\n\nThe agent needs two things from the desk. Settings → Agent says if either is missing, and **Connect** there adds it.\n\n- **MCP tools**, served by the desk at `http:\u002F\u002Flocalhost:47823\u002Fmcp` while the app or `inbox serve` runs. The list: [docs\u002Fapi.md → MCP tools](docs\u002Fapi.md#mcp-tools).\n- **The Inbox skill** ([skills\u002Finbox\u002FSKILL.md](skills\u002Finbox\u002FSKILL.md)): what the desk is, which tool to use when, and its rules. The desk keeps installed copies up to date.\n\n| Agent       | MCP tools                                                                       | Skill copied to                    |\n| ----------- | ------------------------------------------------------------------------------- | ---------------------------------- |\n| Claude Code | `claude mcp add --transport http --scope user inbox http:\u002F\u002Flocalhost:47823\u002Fmcp` | `~\u002F.claude\u002Fskills\u002Finbox\u002F`          |\n| Codex       | `codex mcp add inbox --url http:\u002F\u002Flocalhost:47823\u002Fmcp`                          | `~\u002F.agents\u002Fskills\u002Finbox\u002F`          |\n| OpenCode    | `opencode mcp add inbox --url http:\u002F\u002Flocalhost:47823\u002Fmcp`                       | `~\u002F.config\u002Fopencode\u002Fskills\u002Finbox\u002F` |\n\nThe same from a terminal:\n\n```bash\ninbox connect            # what Claude Code is missing, and the commands that fix it\ninbox connect --apply    # do it\ninbox connect codex      # or: inbox connect opencode\n```\n\nClients that only speak stdio can run `inbox mcp`. Connecting from another machine: [Use it from another machine](#use-it-from-another-machine).\n\n**A `\u002Fdesk` pane for Claude Code**: your Inbox beside the chat, with its count as a status line. Install it with `claude plugin marketplace add ~\u002Fcode\u002Freview-desk`, then `claude plugin install inbox@inbox`, and type `\u002Fdesk` 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.)\n\n## The CLI\n\n`inbox` (`bin\u002Finbox`, or `bin\u002Finbox.cmd` on Windows) talks to the running desk. To use it from anywhere, link it onto your PATH:\n\n```bash\nln -sf ~\u002Fcode\u002Freview-desk\u002Fbin\u002Finbox ~\u002F.local\u002Fbin\u002Finbox\n```\n\n```bash\ninbox ls                       # your Inbox; --all adds blocked, later and FYI\ninbox show seer#8463           # why it's there, with the rule trace\ninbox add getsentry\u002Fseer#8463  # put it on your desk, pinned, and start its AI review\ninbox add getsentry\u002Fseer#8463 \"your call on the retry budget\" --from \"seer retry fix\"  # with the line it shows as why\ninbox done seer#8463           # also: snooze, mute, pin, restore, undo\ninbox sync                     # sync with GitHub now\ninbox settings                 # list settings; `inbox settings set review.auto_ai false`\ninbox status --short           # \"desk 10 +2\" (10 on your Inbox, 2 new), for a status line\ninbox render review.json       # a review document as one HTML page (docs\u002Freview-format.md)\n```\n\n`inbox help` lists every command. Routes, tools and types: [docs\u002Fapi.md](docs\u002Fapi.md).\n\n## Use it from another machine\n\nOver [Tailscale](https:\u002F\u002Ftailscale.com), for you alone. On the desk's computer, turn on Settings → Network → Tailscale → **Use it from your other devices** (or run `inbox serve --tailscale`).\n\n- The desk runs `tailscale serve`, so it answers at `https:\u002F\u002F\u003Cthis machine's tailnet name>\u002F` on your tailnet only, never on the internet (no `tailscale funnel`). It stops serving when you turn the setting off or the desk stops.\n- It needs Tailscale signed in, with MagicDNS and HTTPS certificates on. The setting says what's missing.\n- Only your own Tailscale login gets in (More → Tailscale login allowed changes whose), and only from a device you paired.\n\nPair 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:\n\n```bash\ninbox pair\n```\n\n- **A browser** (phone, laptop): open the link it prints, `https:\u002F\u002F\u003Cname>\u002Fpair#\u003Ccode>`.\n- **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.\n- **Another machine with an Inbox checkout**: `bin\u002Finbox connect https:\u002F\u002F\u003Cname> --code \u003Ccode>` (add `codex` or `opencode`). It pairs and connects that machine's agent.\n- **A machine without a checkout**: run `inbox pair --print` on the desk's computer and paste the commands it prints. They carry a token: treat it as a password.\n- **Codex and OpenCode** read the token from `INBOX_TOKEN`; the commands above print the `export` line.\n- **stdio clients and the CLI**: `DESK_URL=https:\u002F\u002F\u003Cname> DESK_TOKEN=\u003Ctoken> inbox mcp` (or any `inbox` command).\n\nSettings → Network → Tailscale lists paired devices; **Revoke** shuts one out at once. The desk's own computer needs no token. How requests are checked: [docs\u002Fapi.md → Security model](docs\u002Fapi.md#security-model).\n\n## On your phone\n\nA small native iPhone app lives in [`ios\u002F`](ios\u002FREADME.md) (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\u002FREADME.md](ios\u002FREADME.md) says how to build and run it.\n\n## Coordinator\n\nThe coordinator gets the PRs you hand off merged. The window calls it **your agent**.\n\nFor 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.\n\n**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.\n\n**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.\n\n- **Claude Code**: background sessions (`claude --bg`) named \"Inbox coordinator\" in `~\u002F.inbox\u002Fcoordinator` and \"Inbox agent\" in `~\u002F.inbox\u002Fagent`, with Remote Control on. It's your own `claude`, 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.\n- **Codex**: one Codex thread; each wake is a `codex exec resume` turn 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.\"\u003Ceach folder>\"]` with `trust_level = \"trusted\"` to `~\u002F.codex\u002Fconfig.toml` itself; 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.\n- **OpenCode**: one OpenCode session, run as the desk's own `inbox-desk` agent 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.\n\nSwitching agents keeps each one's session. Details for each: [docs\u002Fapi.md → The coordinator](docs\u002Fapi.md#the-coordinator).\n\n**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.\n\nWith 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\u002Fworktrees\u002F`, so add the folder holding your clones to `permissions.additionalDirectories` in `~\u002F.inbox\u002Fcoordinator\u002F.claude\u002Fsettings.json`, or approve its edits as they come.\n\n**The deny list.** The coordinator reads CI logs and comments anyone can write. So the desk writes a deny list into `~\u002F.inbox\u002Fcoordinator\u002F.claude\u002Fsettings.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.\n\n**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 pushes or posts. It replies in the chat and as a notification. More: [docs\u002Fui.md → Asking your agent](docs\u002Fui.md#asking-your-agent).\n\nTo watch it:\n\n- Merging's top line: **Watch on claude.ai** (its Remote Control page, also in the Claude phone app) and **Copy attach command** (`claude attach \u003Cid>`, `codex resume \u003Cid>` or `opencode --session \u003Cid>`).\n- `claude agents` lists it; `claude logs \u003Cid>` shows recent output.\n- `claude stop \u003Cid>` stops it until the desk's next check (within 5 minutes); turn it off in Settings to keep it stopped. `claude rm \u003Cid>` removes it; the next wake starts a fresh one.\n- Other sessions can message it by name (\"Inbox coordinator\") or use the desk's MCP tools themselves.\n\n## Urgency\n\nEvery item on your Inbox gets a score out of 10. The score and your **criteria** put it in a section.\n\n- 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.\n- 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.\n- 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, Your PR others wait on, Handed back), each with a switch.\n- 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.\n- 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.\n- Every answer is kept in `~\u002F.inbox\u002Flabels.jsonl`, to train a cheaper model later.\n\nDetails: [docs\u002Fapi.md → Urgency](docs\u002Fapi.md#urgency).\n\n## Automations\n\nAn 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\u002Fwarden and put on my desk what needs me.\"\n\n**Built in.** GitHub comes with some, listed in Settings → GitHub, each with a switch. **Copy to your automations** makes an editable copy.\n\n- 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).\n- Off by default: **Snooze while CI is red** and **Questions in mentions** (a model spots a question for you).\n\n**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.\n\n**When it runs.**\n\n- A schedule: `daily 09:00`, `weekdays 09:00,13:00`, `mon,thu 17:30`, or `weekdays hourly`, local time. A run missed while the desk slept runs once.\n- 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.\n- A **check** (`when`, written like a rule) filters items first. Items that fail it never reach a model.\n\n**How it decides.** Pick the cheapest that works:\n\n- **A rule** calls no model: every item that passes the check gets its one action.\n- **A question** is one model call without tools: for each item, what to do, or nothing.\n- **An agent** is your own Claude Code (or Codex, or OpenCode) with read-only tools, for what needs a deeper look. It runs in `~\u002F.inbox\u002Fautomations` (`claude -p` for 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.\n\n**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.\n\n**Decision model.** By default your agent answers questions. With an OpenRouter key (Settings → Agent → More; `typesafe\u002Fjev-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 `~\u002F.inbox\u002Fsecrets.json`.\n\nA 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\u002Fapi.md → Automations](docs\u002Fapi.md#automations).\n\n## Safety\n\n**What the desk writes to GitHub**, each only on your click and only through `src\u002Fgithub\u002Fwrite.ts`:\n\n- Approve, in a PR's review.\n- Comment on a PR or an open issue, and comment on a line of a diff (the `+` by the line).\n- Reply under a conversation in a PR's review.\n- Ready for review on your draft (asking the reviewers you picked), and Ask reviewers on your ready PR.\n- Merge on your PR's row, 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.\n- 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.\n\nEverything 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; 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](docs\u002Fapi.md#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`.\n\n**What it never does:**\n\n- It never listens beyond `127.0.0.1`, and rejects a foreign `Host` or `Origin`. Only with Use it from your other devices on does anything else reach it, through `tailscale serve`, from your login, on a paired device.\n- An automation never writes. The desk acts on what it lists, only as you allowed. Only you turn one on.\n- Nothing about your items goes to a model other than your own agent, unless you set a decision model key (see [Automations](#automations)).\n- 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.\n- 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=0` sends nothing.\n\n## Files\n\n|                                                |                                                                  |\n| ---------------------------------------------- | ---------------------------------------------------------------- |\n| `~\u002F.inbox\u002Fconfig.toml`                         | spaces, boards, rules                                            |\n| `~\u002F.inbox\u002Fsettings.json`                       | settings you changed from the default                            |\n| `~\u002F.inbox\u002Fsecrets.json`                        | the decision model key                                           |\n| `~\u002F.inbox\u002Fdesk.db`                             | cache and local state (SQLite), and paired devices' token hashes |\n| `~\u002F.inbox\u002Fdocs\u002F`                               | review documents                                                 |\n| [AGENTS.md](AGENTS.md)                         | where each kind of change goes                                   |\n| [docs\u002Fapi.md](docs\u002Fapi.md)                     | behaviour, HTTP routes, MCP tools, security model                |\n| [docs\u002Farchitecture.md](docs\u002Farchitecture.md)   | modules, CLI, MCP, desktop app                                   |\n| [docs\u002Fui.md](docs\u002Fui.md)                       | what each page does and says                                     |\n| [docs\u002Fvisual.md](docs\u002Fvisual.md)               | the mark, colours, layout, and how a design change is checked    |\n| [docs\u002Freview-format.md](docs\u002Freview-format.md) | review documents (`inbox.review\u002F1`)                              |\n| [docs\u002Feffect.md](docs\u002Feffect.md)               | error handling                                                   |\n| [docs\u002Fvision.md](docs\u002Fvision.md)               | where Inbox is going                                             |\n| [docs\u002Fplugins.md](docs\u002Fplugins.md)             | a small core with sources as plugins: what's built, what's next  |\n\n## Develop\n\n```bash\nnpm run app:dev     # the app from this checkout: src\u002F restarts the desk, web\u002F hot-reloads, electron\u002F restarts the app\nnpm run dev         # server + Vite in a browser at :5173\nnpm test            # node:test, no network\nnpm run check       # what CI runs: format, type-aware lint, CSS lint, types, dead code, tests\nnpm run smoke:app   # launches the app on a scratch home and checks it end to end\nnpm run shots       # screenshots of every key state, light and dark and each theme (.shots\u002Findex.html)\nnpm run icons       # every icon (app, tray, favicon) from assets\u002Fbrand\u002Fmark.svg\n```\n\nA pre-commit hook formats and lints staged files. A pre-push hook runs `npm run check`, and CI ([.github\u002Fworkflows\u002Fci.yml](.github\u002Fworkflows\u002Fci.yml)) runs it on macOS, Linux and Windows.\n\nSet `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](AGENTS.md).\n\n## Release\n\nReleases are built and published on GitHub's runners, by hand: Actions → release → Run workflow, or\n\n```bash\ngh workflow run release.yml                   # the next patch\ngh workflow run release.yml -f version=0.3.0  # a version you pick\n```\n\n[.github\u002Fworkflows\u002Frelease.yml](.github\u002Fworkflows\u002Frelease.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:\n\n```bash\nnpm run release 0.2.4             # on a clean main that has GitHub's: sets the version, commits and tags v0.2.4; pushes nothing\nnpm run release:publish v0.2.4    # checks, pushes main and the tag, builds every platform from the tag, publishes the Release\n```\n\n[scripts\u002Frelease-publish.sh](scripts\u002Frelease-publish.sh) checks out the tag in a worktree under `.claude\u002Fworktrees\u002F` 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\u002F`, 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\u002Finbox`, 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.\n\n- `npm run release:publish v0.2.4 -- --build-only` builds into `release\u002F` and stops: nothing is pushed or published.\n- `npm run release:publish v0.2.4 -- --upload-only` publishes what's in `release\u002F` with no rebuild: a failed upload's retry. On a Release that exists it adds the files that are missing.\n- Nothing is signed: macOS is ad-hoc signed and not notarized, and Windows shows a SmartScreen warning on first run.\n- The Windows and Linux builds are made on the Mac and not run there: try one on a real machine when their packaging changes.\n\n**QA.** The workflow's `qa` job installs the Apple silicon dmg it just built on a scratch home and launches it (`scripts\u002Fqa-release.ts` driving `scripts\u002Fsmoke-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:\n\n```bash\nnpm run qa:release            # the latest release; or -- v0.2.51, or -- path\u002Fto\u002FInbox-0.2.51-arm64.dmg\n```\n\nIt installs that release as a QA copy at `~\u002F.inbox-qa\u002FInbox.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\u002F.inbox-qa --env DESK_PORT=47833 ~\u002F.inbox-qa\u002FInbox.app`.\n\n**Updates.** The packaged app checks the latest release every 6 hours with your GitHub token (the repo is private). When there's a newer one, the sidebar's footer says so:\n\n- 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 `~\u002F.inbox` is untouched.\n  - On macOS the app does it itself, since the ad-hoc signed build can't use the usual updater (`electron\u002Fmac-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.\n- **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.\n\nA desk run from a checkout (`npm run app`, `inbox serve`, Run from a checkout) never checks.\n\n**npm.** `npm publish` from the tagged commit ships `@gricha\u002Finbox`: `prepack` compiles `src\u002F` to `lib\u002F` (Node won't run TypeScript from `node_modules`) and builds the web UI. An npm install has no Sentry SDK, so it reports nothing.\n","Inbox 是一款桌面应用，专为 GitHub 代码审查流程优化而设计，将分散的 PR 待审任务聚合为单一优先级队列。核心功能包括：基于用户规则与本地 AI 代理（如 Claude Code、Codex）自动排序和过滤 PR；点击即查看带 AI 摘要与变更关注点的 diff；一键审批或委托协调代理处理 CI、评论响应与合并。所有 GitHub 写操作严格由用户显式触发，保障安全性。支持 macOS、Linux 和 Windows，可独立运行或通过 CLI 启动 Web UI。适用于中大型团队中承担频繁代码审查职责的开发者或技术负责人，提升审查专注度与吞吐效率。",2,"2026-11-24 04:50:38","CREATED_QUERY"]