{"slug": "plannotator-reviews-in-a-rex-split-via-terminal-browser", "title": "Plannotator reviews in a Rex split via terminal-browser", "summary": "A developer published plannotator-rex-browser, a roughly 30-line script that acts as a PLANNOTATOR_BROWSER target, opening Plannotator agent review pages in a Rex terminal split beside the agent pane instead of a system browser. The script uses the REX_BLOCK environment variable Rex sets in every pane to place the split next to the requesting agent, falling back to 'rex open' on remote hosts without terminal-browser and to the system browser outside Rex.", "body_md": "`plannotator-rex-browser` is a tiny `PLANNOTATOR_BROWSER` target that opens agent reviews in a Rex split right next to the agent.\n\n| Component | Role | \n|---|---|\n| [Plannotator](https://plannotator.ai) ([GitHub](https://github.com/backnotprop/plannotator) ) | Review UI for agent plans, diffs and replies; sends the feedback back to the agent | \n| [Rex](https://www.superlogical.com/rex) by Superlogical | Terminal and multiplexer; hosts the agent and the review split | \n| [terminal-browser](https://terminal-browser.com) ([GitHub](https://github.com/zenbu-labs/terminal-browser) ) by Zenbu Labs | Chromium rendered inside a terminal pane | \n| `plannotator-rex-browser` (this gist) | Decides where the review page opens | \n\n```\n┌──────────────────────┐                        ┌────────────────────────────────┐\n│ Agent                │  1. /plannotator-last  │ Plannotator plugin             │\n│ e.g. Claude Code     │───────────────────────►│ + review server                │\n│ in a Rex pane        │◄───────────────────────│ (localhost)                    │\n│                      │  5. feedback in chat   │                                │\n└──────────────────────┘                        └────┬───────────────────────┴───┘\n                                                     │ 2. runs               ▲\n                                                     │ $PLANNOTATOR_BROWSER  │\n                                                     ▼                       │\n                                                ┌──────────────────────────┐ │\n                                                │ plannotator-rex-browser  │ │ 4.\n                                                │ (this gist)              │ │ Send\n                                                └────┬─────────────────────┘ │\n                                                     │ 3. rex split          │\n                                                     │ -b $REX_BLOCK         │\n                                                     ▼                       │\n                                                ┌────────────────────────────┴───┐\n                                                │ terminal-browser               │\n                                                │ split next to the agent        │\n                                                │ you annotate, press Send       │\n                                                └────────────────────────────────┘\n```\n\nThe result in Rex:\n\n```\n┌─────────────── Rex window ───────────────┐\n│ agent pane         │ terminal-browser    │\n│ (e.g. Claude Code) │ Plannotator review  │\n└────────────────────┴─────────────────────┘\n```\n\nRex sets `REX_BLOCK` in every pane, so the split opens next to the agent that asked, and focus stays there. The page sends your feedback to the review server directly; Plannotator's auto-close after Send closes the page, and with it the split.\n\nWhere the page opens:\n\n| Where it runs | What it does | \n|---|---|\n| In Rex, with terminal-browser installed | Split to the right of the agent's pane | \n| In Rex on a remote host, without terminal-browser | `rex open` : the Rex app forwards the port and opens the review in your local default browser | \n| Outside Rex | System browser ( `open` on macOS,`xdg-open` on Linux) | \n\n```\nmkdir -p ~/.local/bin\ncurl -fsSLo ~/.local/bin/plannotator-rex-browser https://gist.githubusercontent.com/iliferov/bd6e55a4ee3c48ad4ac0bd5f8e130f2f/raw/plannotator-rex-browser\nchmod +x ~/.local/bin/plannotator-rex-browser\n```\n\nRead the script before you run it; it is about 30 lines.\n\nThen set the variable once for every shell, so every agent picks it up:\n\n```\n# zsh: ~/.zshenv   ·   bash: ~/.profile\nexport PLANNOTATOR_BROWSER=\"$HOME/.local/bin/plannotator-rex-browser\"\n```\n\nRestart your agent from a new shell, then start a review, for example `/plannotator-last` in Claude Code.", "url": "https://wpnews.pro/news/plannotator-reviews-in-a-rex-split-via-terminal-browser", "canonical_source": "https://gist.github.com/iliferov/bd6e55a4ee3c48ad4ac0bd5f8e130f2f", "published_at": "2026-12-06 17:33:42+00:00", "updated_at": "2026-12-06 21:46:02.242828+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools"], "entities": ["Plannotator", "Rex", "Superlogical", "terminal-browser", "Zenbu Labs", "Claude Code"], "also_reported_by": [], "takeaway": "Setting PLANNOTATOR_BROWSER to a small wrapper script lets Plannotator reviews open in a Rex split beside the agent pane, using REX_BLOCK to target the requesting agent's block.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/plannotator-reviews-in-a-rex-split-via-terminal-browser", "markdown": "https://wpnews.pro/news/plannotator-reviews-in-a-rex-split-via-terminal-browser.md", "text": "https://wpnews.pro/news/plannotator-reviews-in-a-rex-split-via-terminal-browser.txt", "jsonld": "https://wpnews.pro/news/plannotator-reviews-in-a-rex-split-via-terminal-browser.jsonld"}}