Code review inside thurbox, as a third tab of the agent pane: Agent / Shell / Review. The Review tab shows the diff of a session's worktree against its base branch. You can fold files, mark them seen, search, write notes on lines, and send the notes to the session's agent.
A plugin cannot add a tab to a pane it does not own, so this repository ships
its own agent pane: thurbox's ui/plugins/20_agent.lua with the Review tab
added. It replaces the bundled agent pane, and it cannot be combined with
another fork of that pane.
-
Check the version.
thurbox-cli versionmust print 2.35.0 or later (CI tests v2.35.2). Releases back to v2.25.0 still load the pane, without v2.35's focus frame. -
Install the plugin. This clones the repository into your interface directory and records it in
plugins.toml. Nothing is run.thurbox-cli plugin install git+https://github.com/Thurbeen/thurbox-code-review
Or add the entry to
plugins.tomlyourself and runthurbox-cli plugin sync:[[plugin]] src = "git+https://github.com/Thurbeen/thurbox-code-review" file = "thurbox-code-review/plugins/20_agent.lua"
-
Remove the bundled agent pane. No upgrade writes it back.
rm "$(thurbox-cli plugin dir --text | head -1)/plugins/20_agent.lua" -
Check that exactly one agent pane loads.
thurbox-cli plugin checkshould listagentonce. If it listsagent, agent, step 3 was skipped. -
Turn it on if it is off. In thurbox:
Ctrl+,(orF6) →]→j/ktothurbox-code-review/plugins/20_agent.lua→space. -
Optionally, grant
runon that same row witht. Without it the review still shows the kernel's diff. With it,tin the review can also show uncommitted changes and single commits, by runninggit. -
Open the Review tab with
F7, a click on its chip, orCtrl+P→review.
To update: thurbox-cli plugin update. To remove:
thurbox-cli plugin remove thurbox-code-review/plugins/20_agent.lua, then bring
back thurbox's own pane: Ctrl+, → ] → plugins/20_agent.lua → r.
On the Review tab. On the Agent and Shell tabs these letters go to the terminal.
| Key | Action |
|---|---|
F7 |
show the Review tab, or go back to Agent (Ctrl+X too, from outside the agent pane) |
j k ↑ ↓ |
move one line |
d u, PgDn PgUp |
scroll half a page, a page |
g G |
top, bottom |
⇥ ⇧⇥ |
next / previous file |
[ ] |
previous / next hunk |
h l ← → |
scroll sideways |
v |
side by side, or unified |
w |
soft-wrap long lines |
f |
show or hide the changed-files list |
/, n N |
find, next / previous match |
↵ |
fold or unfold this file |
m |
mark this file seen |
t |
review the branch, the working changes, or one commit |
r |
recompute the diff |
c |
note on this line or file |
s |
note on the whole review |
x Del |
delete the note under the cursor |
e |
send the notes to the agent |
Esc |
close the search, picker or note, or go back to Agent |
Notes and seen marks are kept until thurbox quits. They survive an F10 reload,
not a restart.
Under the agent pane in Ctrl+, → Plugins:
| Setting | Default | What it does |
|---|---|---|
review_side |
off | start side by side (v) |
review_wrap |
off | start with long lines wrapped (w) |
review_files |
on | show the changed-files list (f) |
review_syntax |
on | colour the code, not only the change |
code_review = false under thurbox's [features] turns the Review tab off, the
way shell_pane = false turns off Shell.
- docs/guide.md: troubleshooting, upgrading from v0.1.0, review targets, how it is built, keeping the fork current, and developing.
- KERNEL-GAPS.md: what thurbox would need to change to close this plugin's gaps.
- MEASUREMENTS.md: what the review costs per frame.
MIT. See LICENSE.
