A trusted-worker Orca plugin for ask-form. The worker polls the local `ask-form serve` admin API (loopback only, the machine's admin token) and reads agents' ask-form calls through the agent.tool.after hook: a form's link only exists in `ask-form create`'s output, and the hook also says which workspace and terminal asked. The HTML panel lists the waiting forms (the focused workspace's first) with Open, a QR code for the phone, Go to agent and Revoke, and the recently closed ones with their answers; it installs or restarts ask-form in a terminal when it is missing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ask-form for Orca
An Orca plugin for ask-form: your coding agents ask you structured questions in a private web form, and Orca shows you what is waiting.
- Forms panel (right sidebar): the forms waiting for you, the ones from the workspace you are in first, with the workspace, branch and agent that asked. Open answers it in your browser, Phone shows a QR code to answer it on your phone, Go to agent jumps to the agent's terminal, Revoke closes it unanswered. Recently closed forms show what you answered.
- Status bar:
2 forms waitingwhile an agent waits on you; a click goes to the agent that has waited longest. - A notification when an agent opens a form:
Claude asks: Project setup. - Setup: without ask-form on the computer, the panel installs it in a terminal (or starts it again when it stopped).
Requirements
- Orca 1.4.248 or newer (Go to agent needs 1.4.259), desktop app.
- ask-form on the same computer as Orca's agents (
curl -fsSL https://ask-form.xyz/install.sh | sh, or the panel's Install in a terminal). It installs the Claude Code skill that teaches agents to ask with it; for other agents,ask-form skill print --bodyprints the same instructions.
Install
Orca → Settings → Plugins → search ask-form, or:
orca plugin install GabrielVidal1/ask-form-orca
Orca asks you to approve the access below once.
How it works
ask-form runs a small server on your computer (ask-form serve). Agents create forms with
ask-form create and wait for the answers; you answer in a browser, here or on your phone through the
ask-form.xyz relay.
The plugin's worker reads that server's admin API on 127.0.0.1 with the computer's admin token,
the same calls ask-form list makes, and polls it every few seconds. ask-form keeps only a hash of a
form's token, so a form's link exists in one place: what ask-form create prints to the agent. The
plugin reads it there, through Orca's agent.tool.after hook on the agent's ask-form calls, which also
says which workspace and terminal asked. Forms opened outside Orca (another terminal, another app) are
listed too, without Open: their link went to whoever asked. A setting hides them.
Access it asks for
| Capability | Why |
|---|---|
Runs its own code (trusted-worker) |
Reads ask-form's admin API and token on this computer, and the hook on agents' tool calls. |
workspace:read |
Names the workspace and branch a form came from; puts the focused workspace's forms first. |
workspace:write |
Go to agent: focuses the agent's terminal. |
terminal:send |
Install in a terminal / Start it in a terminal: opens a terminal running the installer or ask-form setup, only when you click. |
notifications:show |
The notification when an agent opens a form. |
storage:own |
Keeps the captured links until their form closes, so a restart of Orca keeps Open. |
settings:own |
The settings below. |
The hook only reads: it never changes or blocks a tool call.
Privacy
Nothing leaves your computer. The plugin talks to 127.0.0.1 only (an admin address that is not a
loopback one is ignored, so the admin token cannot be sent elsewhere), keeps no copy of your answers,
and has no telemetry. A form's link is kept in the plugin's own storage while the form is open and
dropped when it closes. The QR code is drawn in the panel; nothing is fetched to make it.
Settings
| Setting | Default |
|---|---|
| Notify me when an agent opens a form | on |
| Check for new forms every (seconds) | 4 |
| Also list forms opened outside Orca | on |
| ask-form admin address | http://127.0.0.1:7461 |
Limits
- Agents on SSH or WSL hosts are not hooked by Orca yet: their forms show without Open and without the agent.
- Forms are answered in the browser: Orca's panels have no network, so the form page can't open inside Orca.
- The panel needs Orca's desktop app; in a browser client (
orca servein a web browser) it does not load.
Development
Orca runs the TypeScript sources as they are; there is no build.
npm install # typings only (TypeScript, @types/node)
orca plugin types . # Orca's typings into .orca/types
orca plugin dev watch . # load it into Orca, reload on save, stream its logs
orca plugin test . # the tests (node:test, Orca's mock host)
npx tsc -p . # type-check
orca plugin validate .
node scripts/preview.mjs # a browser preview of the panel with fixtures, in .orca/preview/
src/worker/ is the worker (main.ts: polling, the hook, commands, the status bar;
capture.ts: reading an agent's tool call; tracker.ts: the state; askform.ts: the admin API),
src/panel/ the panel (an HTML page; the QR code is Project Nayuki's
QR Code generator, MIT, vendored in
src/panel/vendor/), src/shared.ts and src/protocol.ts what they say to each other.
To release: bump version in orca-plugin.json, commit, tag vX.Y.Z and push the tag. Orca's
plugin directory lists the newest tag within the hour.
License
MIT
