[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109369":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":14,"stars30d":16,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":17,"rankGlobal":9,"rankLanguage":9,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":19,"hasPages":19,"topics":21,"createdAt":9,"pushedAt":29,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":15,"starSnapshotCount":15,"syncStatus":14,"lastSyncTime":33,"discoverSource":34},109369,"rexmod","alpcanaydin\u002Frexmod","alpcanaydin","Turn Rex into a harness for your coding agent: see what it changed, review it in Neovim, send comments back. Claude Code, Codex, OpenCode, Pi.",null,"Go",59,6,51,2,0,8,44.34,"MIT License",false,"main",[22,23,24,25,26,27,28],"claude-code","code-review","codex","macos","neovim","opencode","rex","2026-11-11 09:51:18","2026-11-18 16:42:37","\u003Cdiv align=\"center\">\n  \u003Cimg src=\"assets\u002Flogo.svg\" width=\"96\" alt=\"rexmod logo\">\n\n  # rexmod\n\n  *Turn [Rex](https:\u002F\u002Frex.superlogical.com) into a harness for your coding agent.*\n\n  [![CI](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Factions\u002Fworkflow\u002Fstatus\u002Falpcanaydin\u002Frexmod\u002Fci.yml?style=flat-square&label=CI)](https:\u002F\u002Fgithub.com\u002Falpcanaydin\u002Frexmod\u002Factions\u002Fworkflows\u002Fci.yml)\n  [![Release](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002Falpcanaydin\u002Frexmod?style=flat-square)](https:\u002F\u002Fgithub.com\u002Falpcanaydin\u002Frexmod\u002Freleases)\n  ![macOS 15+ on Apple silicon](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FmacOS-15%2B%20%C2%B7%20Apple%20silicon-555?style=flat-square&logo=apple)\n  [![License: MIT](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-MIT-blue?style=flat-square)](LICENSE)\n\n  [The loop](#the-loop) • [Install](#install) • [Usage](#usage) • [How it works](#how-it-works) • [FAQ](#faq)\n\u003C\u002Fdiv>\n\nhttps:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002Fac2e4950-17d7-4bd9-b16a-9bd8cb463f49\n\n\u003Cp align=\"center\">\u003Csub>One minute, sped up while the agent works. No player? \u003Ca href=\"assets\u002Fdemo.mp4\">Download the video\u003C\u002Fa>.\u003C\u002Fsub>\u003C\u002Fp>\n\nRex already runs your agents. rexmod builds the harness around them: it records every turn, so you\nsee exactly what the agent changed; it opens a real editor beside the agent to read and review that\ncode; and it hands your review back to the agent as its next input. Prompt, change, review, feedback:\nthe whole loop stays in one Rex window, for Claude Code, Codex, OpenCode or Pi.\n\n> [!NOTE]\n> rexmod is an unofficial mod, not made by or affiliated with Superlogical. It patches your local copy\n> of Rex so Rex loads the panel; the uninstaller puts the official build back.\n\n## The loop\n\n1. **Prompt.** Talk to your agent as usual. rexmod snapshots the working tree the moment you send.\n2. **Change.** The *Changes panel* on the right, styled like Rex's own sidebar, fills in while the\n   agent works. Its *Changes* tab shows *Last Turn*, exactly what this reply changed, next to\n   *Uncommitted* (split into staged and unstaged) and *Branch*, as a list or a tree. The other tabs\n   are *Info* (the agent's state and session, your plan usage, what runs in its pane and the ports it\n   listens on) and a *Files* tree. The panel follows Rex's Interface style, Classic or Glass.\n3. **Review.** Click a file and it opens in Neovim beside the agent, at the changed line, with LSP,\n   completion and live diagnostics. `Space r` on a line or a selection leaves a review comment.\n4. **Feedback.** Your comments ride along with your next message to the agent, or go right away\n   from the panel. The agent answers them, and the next turn starts at step 2.\n\nAround the loop:\n\n- **Any language, on demand.** Open a Go, Rust, Python, Elixir… file and its tree-sitter parser and\n  language server are installed (Mason) and started on the spot.\n- **`⌘P` file picker** over the agent's repository, with the editor's syntax highlighting in the\n  preview.\n- **Several agents per tab.** The harness follows the agent you focused last; its name at the bottom\n  of the panel is a menu to switch. A note always goes to the agent it was written for.\n- **Media previews.** Images and PDFs open as pictures in the editor, videos show their first\n  frame (`Space u o` plays them in the macOS app), and markdown renders in place, images included (`Space c p` opens a live browser preview).\n- **The agent knows the harness.** Every agent gets the `rexmod` skill, so it can open a file for\n  you in the editor pane (`rexmod open file:line`) when it points you at something.\n- **Out of the way.** Hidden, the panel takes no space; the toggle sits with the pane actions,\n  `⌘⇧E` from the keyboard. When Rex updates itself, rexmod re-applies the patch and asks you to\n  reopen it.\n\n| Agent | How the harness hooks in | Last Turn | Comments with your next message |\n|---|---|:-:|:-:|\n| Claude Code | `UserPromptSubmit` \u002F `Stop` hooks | ✓ | ✓ |\n| Codex | the same hooks (trust them once with `\u002Fhooks`) | ✓ | ✓ |\n| OpenCode | server plugin + TUI plugin | ✓ | ✓ |\n| Pi | extension | ✓ | ✓ |\n\n## Install\n\nYou need a Mac with Apple silicon on macOS 15 or later, [Rex](https:\u002F\u002Frex.superlogical.com) installed\nand opened once, and [Homebrew](https:\u002F\u002Fbrew.sh) (for Neovim, fzf and Node, if you don't have them).\n\nWith Homebrew:\n\n```sh\nbrew trust --tap alpcanaydin\u002Frexmod   # Homebrew asks you to trust third-party taps\nbrew install alpcanaydin\u002Frexmod\u002Frexmod\nrexmod-setup\n```\n\nOr in one line:\n\n```sh\ncurl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Falpcanaydin\u002Frexmod\u002Fmain\u002Finstall.sh | sh\n```\n\nThen quit Rex (`⌘Q`) and open it again. Nothing is compiled on your machine. After `brew upgrade\nrexmod`, run `rexmod-setup` again.\n\n\u003Cdetails>\n\u003Csummary>What the installer does\u003C\u002Fsummary>\n\n- Copies rexmod into `~\u002FLibrary\u002FApplication Support\u002Frexmod` and links `~\u002F.local\u002Fbin\u002Frexmod`.\n- Downloads the free [Flow Icons](https:\u002F\u002Fgithub.com\u002Fthang-nm\u002FFlow-Icons) pack for the file tree.\n- Editor: with no `~\u002F.config\u002Fnvim`, installs the bundled LazyVim config there; with a lazy.nvim\n  config, adds one plugin spec (`lua\u002Fplugins\u002Frexmod.lua`); with any other config, installs the bundled\n  one as `~\u002F.config\u002Frexmod-nvim` and leaves yours alone.\n- Adds `⌘P` to `~\u002F.config\u002Frex\u002Finit.lua` (in a managed block).\n- Hooks into each agent it finds and installs the `rexmod` skill. JSON files are backed up first.\n- Backs up the official Rex, patches it, and adds a LaunchAgent that re-patches after Rex updates.\n\nOptions: `--update-rex` installs the latest official Rex first, `--no-patch` skips the panel,\n`--no-hooks` skips the agents. From a checkout, `.\u002Finstall.sh` builds what it needs if Go and Xcode\nare there.\n\u003C\u002Fdetails>\n\n> [!IMPORTANT]\n> Codex runs new hooks only after you trust them: start Codex and run `\u002Fhooks` once. OpenCode loads\n> plugins when its background server starts, so quit OpenCode once after installing.\n\n## Usage\n\n| Where | Keys | What |\n|---|---|---|\n| Rex | `⌘⇧E` | Show or hide the panel |\n| Rex | `⌘P` | Find a file in the agent's repository |\n| Panel | click a file | Open it in the editor pane |\n| Editor | `Space r` | Comment on the line, or on the selection in visual mode |\n| Comment box | `Ctrl+S` \u002F `Esc` | Save \u002F cancel |\n| Editor, on a noted line | `E` \u002F `D` | Edit \u002F delete that note |\n| Editor | `]r` \u002F `[r` | Next \u002F previous comment |\n| Editor | `Space R` | All comments of the repo: `Ctrl+S` sends pending ones, `Ctrl+X` deletes |\n\nPending comments head the panel's *Changes* tab, whose icon shows how many there are: click one to\nopen it in the editor, or send them all right away with *Send*. Otherwise they ride along with the\nnext message you type to the agent, as a short list of `file:line`, the code, and your note.\n\n**Several agents in one tab.** The panel, Last Turn and your comments follow the agent pane you\nfocused last; working in the editor or a shell doesn't change that. The agent name at the bottom of\nthe panel becomes a menu to switch, and the *Info* tab lists them all.\n\n## How it works\n\n```mermaid\nflowchart LR\n  subgraph Rex.app\n    panel[Changes panel\u003Cbr\u002F>RexModPanel.dylib]\n  end\n  agent[Agent pane\u003Cbr\u002F>Claude Code · Codex · OpenCode · Pi]\n  editor[Editor pane\u003Cbr\u002F>Neovim + rexmod.nvim]\n  cli((rexmod))\n  git[(.git\u002Frexmod\u003Cbr\u002F>turns · comments)]\n\n  panel -- \"state, open, send\" --> cli\n  agent -- \"hook prompt \u002F stop\" --> cli\n  editor -- \"comments\" --> cli\n  cli -- \"panes, splits, input\" --> rex[Rex server API]\n  cli --> git\n  cli -- \"--listen socket\" --> editor\n```\n\n- **The panel** is a Swift dylib. The installer adds a weak load command for it to Rex's executable and\n  re-signs the app ad hoc. It insets Rex's own chrome and draws on Rex's backdrop, so it looks native.\n- **`rexmod`**, a Go CLI, does the work: it finds the tab's agent pane through Rex's API, diffs git\n  trees, opens files in the editor pane, and keeps comments.\n- **Last Turn** comes from two snapshots of the working tree (written with a throwaway git index, so\n  your index is untouched): one when you send a message, one when the agent finishes.\n- **Comments** live in `.git\u002Frexmod\u002F` of the worktree, each tied to the agent pane it was written for.\n\n## Updating and uninstalling\n\nUpdates: `brew upgrade rexmod && rexmod-setup`, or run the one-line install again.\n\nRex itself: Sparkle can't update a patched Rex (its installer only accepts an app signed by\nSuperlogical), so rexmod turns Sparkle's checks off and its LaunchAgent updates Rex instead, every\nhour: it downloads the official build, checks its signature, Team ID and notarization, patches it\nand asks you to reopen Rex. To do it now: `~\u002FLibrary\u002FApplication\\ Support\u002Frexmod\u002Fscripts\u002Fupdate.sh`.\n\n\n\nUninstall, which restores the official Rex and removes the hooks, the `⌘P` block and the files:\n\n```sh\n~\u002FLibrary\u002FApplication\\ Support\u002Frexmod\u002Fscripts\u002Funinstall.sh\n```\n\n## FAQ\n\n\u003Cdetails>\n\u003Csummary>The panel doesn't show up\u003C\u002Fsummary>\n\nCheck that Rex is patched: `~\u002FLibrary\u002FApplication\\ Support\u002Frexmod\u002Fscripts\u002Fpatch.sh --check`. If Rex\njust updated, reopen it once the re-patch notification arrives. The panel logs to\n`~\u002FLibrary\u002FLogs\u002Frexmod-panel.log`; start Rex with `REXMOD_PANEL_DISABLE=1` to run it without the panel.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Last Turn stays empty\u003C\u002Fsummary>\n\nThe agent's hooks aren't running. Run `~\u002FLibrary\u002FApplication\\ Support\u002Frexmod\u002Fscripts\u002Finstall-hooks.sh`\nagain, then for Codex trust the hooks with `\u002Fhooks`, and for OpenCode quit it once.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Do my comments go to an agent outside Rex?\u003C\u002Fsummary>\n\nNo. A note is tied to the agent pane of the tab you wrote it in. An agent running elsewhere (another\nterminal or app) in the same repository only gets notes written outside Rex.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Two Codex panes in the same repository\u003C\u002Fsummary>\n\nCodex runs its hooks in one background server for every pane, so rexmod finds the pane by looking\nfor the Codex that works in that folder. With two of them in the same repository it can't tell\nwhich one sent the message, and rather than guess it leaves the notes pending and records the turn\nwithout a pane. Send those notes from the panel's *Changes* tab: it pastes them straight into the\npane the panel follows. Claude Code, OpenCode and Pi don't have this limit.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Debugging the panel\u003C\u002Fsummary>\n\nDarwin notifications drive it from a shell: `notifyutil -p dev.rexmod.toggle` (also `.refresh`,\n`.snapshot`, `.dumpviews`, `.dumpchrome`, `.dumpheader`, `.dumpsidebar`). Output lands in\n`~\u002FLibrary\u002FCaches\u002Frexmod\u002F`.\n\u003C\u002Fdetails>\n\n## Development\n\n`make build`, `make panel`, `make test`, `make lint`. See [CONTRIBUTING.md](CONTRIBUTING.md) for the\nsetup and how the pieces fit together.\n","rexmod 是一个为 Rex 编程代理平台设计的增强型代码审查工具，将 Rex 转变为支持完整人机协同闭环的开发环境。它自动捕获每次代理操作引发的代码变更，实时在右侧面板展示差异（Last Turn \u002F Uncommitted \u002F Branch），并一键在 Neovim 中打开变更文件（带 LSP、诊断与行级评论功能）；用户评论可即时反馈至代理作为下一轮输入。项目基于 Go 实现，深度集成 Rex 原生界面风格与 macOS Apple Silicon 环境，专为需要可追溯、可干预、可验证的 AI 编程协作场景设计，适用于 Claude Code、Codex、OpenCode 和 Pi 等代理的本地化增强使用。","2026-11-24 04:36:37","CREATED_QUERY"]