Skip to content

rex-inbox 0.4

Choose a tag to compare

@captjt captjt released this 10 Nov 16:07
· 3 commits to main since this release

Agents can now show you what they built: an app they serve on your Mac, on your phone, for you to approve or comment on. And they learn how from a skill that comes with rex-inbox.

What's new

  • Previews. An agent that runs something for you to look at (a dev server, a local stack) shares it with rex-inbox share PORT --title … --ask … --option … instead of sending a localhost link. The app gets its own address on your tailnet (https://<mac>.ts.net:7431/, through tailscale serve), served at /, so its assets, cookies and live reload work as on localhost. It waits on you under Needs You, with Open, the agent's answers as buttons (Approve, when it offers none), and Reply for comments, in both apps, in rex-inbox ls, and in its notification ("frontend wants your review"). Your answer goes back to the agent like any reply and finishes the item, which takes the preview off the tailnet. It also comes down when the agent's pane closes, the app stops answering, or the agent runs share --stop, and the item says which.
  • The rex-inbox skill comes with rex-inbox. It's how Claude Code and Codex learn to message each other, reach you, and share what they serve. rex-inbox up installs it into ~/.claude/skills and ~/.codex/skills where it's missing and keeps installed copies current; rex-inbox skill shows it, and skill install and skill remove do what they say. A copy without its marker line is treated as your own and left alone.
  • The phone keeps up with the hub. After an update, the web app reloads itself onto the new version once nothing is open, so a phone never runs an old app on a new hub.

Changes

  • Renaming a session from the phone works; it was refused ("isn't available from the web app").
  • Tapping an answer twice (or on the phone and the Mac) sends it once, and the item shows what you said.
  • A command piped into head (rex-inbox status | head -1) stops instead of panicking with "Broken pipe".
  • For contributors: CONTRIBUTING.md, a justfile (just lists the tasks; just setup installs everything, just check is what a pull request needs), and rustfmt.toml, with the code formatted by it.

Upgrade

cd ~/src/rex-inbox && git pull
cargo install --path .
rex-inbox up              # restart the hub; installs the agents' skill where it's missing
mac/build.sh              # Rex Inbox.app

Or just setup. Reopen the web app on your phone once; from this version on it reloads itself. If you installed the rex-inbox skill by hand before, rex-inbox skill says so, and rex-inbox skill install replaces it with this one. Agents load the skill when they next start.

Known gaps

  • Previews are for agents on the hub's Mac; other machines can't share yet.
  • Anyone on your tailnet can open a preview while it's up, the way tailscale serve works. The inbox itself still answers only you.
  • Vite and webpack-dev-server turn preview requests away until .ts.net is in their allowedHosts; the skill and share say so.
  • Open goes to Safari (or your Mac's browser); previews don't open inside the app.
  • The phone's conversation view reads Codex's layout from a made-up screen only, so if a Codex pane reads oddly, Screen shows it as it is.
  • A startup prompt (trusting a folder) must be answered in Rex.
  • Finished items don't notify; their summaries show in the inbox and under Agents.
  • Codex's prompt keys still aren't checked against a live prompt, so a Codex prompt can only be opened.