omp packages

@howaboua/pi-reactions0.0.3

React to assistant replies in Pi without starting another turn

howaboua Published 6 days ago MIT ~0 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 Reactions

Install with pi install npm:@howaboua/pi-reactions. Requires Pi 1.7 and fullscreen mode for mouse interaction.

Click ๐Ÿซฅ below a finished reply to open its reaction picker. Select the same emoji again to remove it.

Reaction Meaning
๐Ÿ‘ OK
๐Ÿ‘Ž Reconsider
โฌ†๏ธ Push to the existing remote branch, not merge or release
๐Ÿ” Verify the claim or run the check discussed

By default, Pi sends reactions as separate context on your next ordinary prompt without changing what you typed. Commands and messages queued during a run leave them pending. Reactions don't interrupt a turn or approve pending tool calls.

Custom reactions

On first load, Pi Reactions creates reactions.json in your Pi agent directory (normally ~/.pi/agent) with the four defaults. It won't overwrite your edits. Change, add, remove or reorder entries, then run /reload.

[
  { "id": "ship", "icon": "๐Ÿš€", "label": "Ship it" },
  {
    "id": "simplify",
    "icon": "โœ‚๏ธ",
    "label": "Simplify",
    "startTurn": true,
    "shortcut": "alt+shift+v"
  }
]

Use unique IDs and icons. Each icon is one visible glyph. The label goes in the note sent to the agent. Keep an entry's ID when reordering or restyling it. Use a new ID if its meaning changes. An empty list ([]) disables reactions without recreating the defaults.

Set "startTurn": true on a reaction to send it immediately and start a turn when Pi is idle. Removing a reaction does not start a turn.

Set "shortcut" on a reaction to toggle it on the latest finished reply. Shortcuts respect startTurn and none are assigned by default. Use a Pi chord with ctrl, alt or super, or a function key from F1 to F12. Pick a key that Pi and your other extensions aren't using.

To try it from the checkout, run pi -e ./packages/pi-reactions/src/index.ts.