pi-orca-bot-mention0.1.0
@-mention Orca bots from Pi running in an Orca terminal, like the Orca Chat UI's bot mentions.
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.
Reports 0
No reports yet.
Readme
pi-orca-bot-mention
Mention Orca bots with @ from Pi running in an Orca terminal, the way Orca's Chat UI lets you mention them.
In the Chat UI, picking a bot under @ adds a note to your message that tells the agent who the bot is and how to ask it. Pi running in a terminal tab has no such picker. This extension adds one.
Install
pi install npm:pi-orca-bot-mention
Then run /reload in Pi.
Use
- Type
@in Pi's editor. Your Orca bots show up above the usual file suggestions. Keep typing to filter, for example@pull. - Pick one. The editor gets
@bot:<name>, such as@bot:pull-request-review. - Send the message. For each mentioned bot, the extension appends an
<orca_context>block telling the agent what the bot is for and the exact command to ask it:
orca orchestration send --to bot:<id> --type question|handoff --subject … --body …
The agent decides whether to message the bot, and is told not to unless you asked. Nothing is sent to a bot by the extension itself. The wording follows Orca's own Chat UI bot mention context.
How it works
- Bots come from
orca bot list --json, cached for 60 seconds. - Paused bots and names that match no bot are ignored.
- The command addresses the bot by id, so a bot name can't inject anything into it. Bot names and descriptions are flattened to one line and HTML-escaped inside the block.
- The extension only loads inside an Orca terminal, detected by
ORCA_TERMINAL_HANDLEorORCA_PANE_KEY. Elsewhere it registers nothing.
Requirements
- Orca with bots, and the
orcaCLI onPATH - Pi with extension autocomplete providers (
ctx.ui.addAutocompleteProvider)
Limits
- Bots are written as
@bot:<slug>, not as chips. - Bots on paired computers and specific bot chats (which the Chat UI supports) are not offered.
pi -p "@bot:…"doesn't work: Pi reads a leading@CLI argument as a file. Use the interactive editor.
Development
npm test
License
MIT