omp packages

pi-hunk2.5.0

Review changes and commits in full-screen Hunk from Pi and OMP

GitHub Actions Published 2 days ago MIT ~1.4K downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

pi-hunk — review in Hunk, return with context

pi-hunk

Review your agent's changes in Hunk without leaving Pi or Oh My Pi. Leave comments and the agent gets them.

Install

You need Node.js 22.19+, Hunk 0.25.0+ on your PATH, and Oh My Pi 19.3.0+ if you use OMP.

omp plugin install pi-hunk   # Oh My Pi
pi install npm:pi-hunk       # Pi

Restart your agent afterwards. After upgrading Hunk, run hunk daemon restart so an older Hunk daemon left running does not replace pi-hunk's status line.

Use

Press Ctrl + Space, let go, then press:

Key Opens
h Uncommitted changes
s Latest commit
l Commit history
b Everything on your branch since main
c The whole codebase
  1. Comment on lines with Hunk's usual keys.
  2. Press q to close Hunk. Your saved comments go to the agent.

In history, select commits and press Enter to review them. q takes you back to the list; quit the list to send everything.

Only saved comments are sent. Closing Hunk with no comments sends nothing.

Hunk beside the agent

In Tern, Rex, or Herdr, set the mode to multiplexer in /hunk config. Hunk then opens in a pane next to the agent, and each comment goes to the agent as soon as you save it. Press r in Hunk to see the agent's latest changes.

Tern

Hunk opens beside OMP in Tern; a saved comment reaches the agent at once

Rex

Hunk opens beside OMP in Rex; a saved comment reaches the agent at once

Herdr

Hunk opens beside OMP in Herdr; a saved comment reaches the agent at once

Batch comments

If the agent changes code faster than you review it, set comments to batch in /hunk config. Your saved comments then wait in Hunk; the status line shows how many are queued. Press Ctrl + Space, then Enter in Hunk to send them all as one message. Quitting Hunk sends whatever is still queued.

Configure

Run /hunk config to change the keys, the mode, or what happens if the agent is busy when your comments arrive:

Setting Your comments...
steer (default) join the turn that's running
followUp wait until the turn finishes
interrupt stop the turn and are sent straight

If your main branch isn't main or master, add "base": "develop" (for example) to ~/.omp/agent/pi-hunk.json or ~/.pi/agent/pi-hunk.json.

If your OS already uses Ctrl + Space, pick another prefix.

To tell the agent how to handle your reviews, put it in AGENTS.md or a skill.

Contributing

See CONTRIBUTING.md.

License

MIT