Development docsHookeUI guide
Agents and research

Connect your agent to Hooke

Use the bundled command to approve a local connection, run prepared capabilities and inspect retained results.

View Markdown

Claude Code, Codex, Cursor or another coding agent can use Hooke's local agent interface. The app keeps the admitted work in an agent-owned Project so you can inspect it. Your agent's provider terms still apply; no Hooke account is needed.

Choose the instructions for your app

Beta 0.6.0 includes the basic connection and local example described below; Stable 0.5.2 does not. For Beta's quickest start, ask your agent: “Fetch https://hookeui.org/get-started-beta.md and follow it.”

This guide also reviews merged development source 225fd52. Its named connections, retained-input research and Project access controls are not in those published releases. Use them only in a build that includes these changes; a newer version number alone does not establish support. Shared Projects and Studies explains that development path and its qualification limits.

Connect once

Find the bundled command

Install and open the intended HookeUI channel. The command is inside the Mac app:

  • Stable: /Applications/HookeUI.app/Contents/Helpers/hooke
  • Beta: /Applications/HookeUI Beta.app/Contents/Helpers/hooke

If both are installed, choose the app you intend to use. Quote the full path because the Beta name contains a space. If your app has no command at that path, check its release notes and install a compatible build rather than downloading an unrelated command.

Open and check Hooke

Ask your agent to run the following, replacing claude-code with codex, cursor or other when appropriate. Keep the same agent selector on every command.

"/Applications/HookeUI Beta.app/Contents/Helpers/hooke" status --wait --json --agent claude-code

This opens Hooke if needed and waits for readiness. On a first launch, complete Download and Open in Hooke when requested. If the command names a missing prerequisite, finish that step in the app before continuing.

Approve the matching code

If not connected, run:

"/Applications/HookeUI Beta.app/Contents/Helpers/hooke" connect --agent claude-code

The command prints a code and Hooke's Mac dialog shows the same code. Choose Connect only for the intended matching request. An agent's displayed name is self-described. A source-browser confirmation is not a substitute for the packaged app's native approval.

The connection is kept for later sessions. Normal connection also installs Hooke's skill for the selected agent unless --no-skill is used; it does not overwrite a folder Hooke did not install. hooke skill update refreshes that installed guidance without reconnecting. Here and below, hooke means the full path plus your --agent selector and, for a named development connection, the same --connection selector.

Keep two connections of the same agent separate

Merged development only — not Beta 0.6.0

Named connections use the newer bundled command. Check that build's support before adding these options to the basic release commands.

Use a name when two instances of Codex, Claude Code or another agent kind need separate credentials. For example, in a compatible build:

"/Applications/HookeUI Beta.app/Contents/Helpers/hooke" connect --agent codex --connection analyst
"/Applications/HookeUI Beta.app/Contents/Helpers/hooke" connect --agent codex --connection reviewer
"/Applications/HookeUI Beta.app/Contents/Helpers/hooke" status --wait --json --agent codex --connection reviewer

Confirm each matching-code request separately. Keep the intended --connection on every command, including status, runs, recovery and downloads. The name selects a separate Keychain credential within that app channel and agent kind. Use 1–64 letters, digits, dots, underscores or hyphens, starting with a letter or digit.

HOOKE_CONNECTION can provide the selector; an explicit --connection takes precedence. To use the earlier unnamed connection, omit the option and unset that environment variable. Named connections do not fall back to an unnamed credential after a refusal. Never work around a disconnection by choosing another identity.

--label changes only the displayed name at connection time. Names and labels do not grant Project access: the server's stable ac_… connection ID owns the attribution. Settings → Connected agents shows each connected label and connection time, with independent Disconnect controls. Project access is a separate owner decision.

Discover what this installation can run

Run hooke tools --json. Read each operation's inputs, outputs, inputSchema, exact generation, state and next step. Only an available listed capability can run. The list is restricted to agent-enabled operations, not every UI control or every installed model. Missing setup remains the researcher's explicit choice in Hooke.

The agent interface runs scientific work on this Mac. Cloud capabilities and spending through Hooke's provider keys are refused there; you can run supported cloud methods through the app's ordinary controls. Your outside agent can still use its own provider to reason about what it reads.

Try the example or your own image

Ask the agent to use hooke example for Hooke's guided specimen, or hooke open '/absolute/path/to/image.tif' for a file you choose. The file enters the Library and an agent-owned Project; inspect whether the app accepted its actual format. Keep private specimens out of shared prompts unless you intend that disclosure.

For example, ask: “Open my image in Hooke and use an available local segmentation method. Show me the retained result and its limitations.” The agent should discover the actual method rather than assume a named model is installed or checked.

After open reports the Project ID, an explicit capability request has this shape:

hooke run <listed-capability-id> '<arguments matching its inputSchema>' --project <agent-project-id> --key <new-request-key>

The bracketed fields are placeholders, not a command to paste unchanged. Use a new request key for new work and the same key with unchanged arguments to recover that request. Reusing a key with changed arguments is refused. This live-stage path requires the connection’s own currently open Project. That remains true in development even when another connection has Project access. The newer retained-input workflow path can work off-screen in an explicitly authorized Project.

An outcome can include counts, measurement columns, a few preview rows and an Open in Hooke link. Follow that link or use hooke open '<page>'. shownInHooke: false means retained output has not been shown, so the agent should say that rather than claim it is on screen. Bright regions, outlines and counts do not establish biological identity.

The basic open file route accepts individual files up to 4 GiB; file type, decoding and scientific memory limits are separate. The retained scientific-import transport has different limits and does not expand this older command’s contract.

Recover or stop work

  • If the agent loses its reply, use hooke operations and hooke operation <id> --follow to read its existing request. Do not start duplicate work.
  • A terminal interrupted operation stopped when Hooke did. Inspect what it retained. Restart only as explicit new work with a new key; the basic interface does not automatically resume its scientific attempt.
  • hooke cancel <id> requests cancellation. Wait for a terminal receipt: cancelled confirms cancellation; work that finished first can remain succeeded. cancelRequested alone is not a stopped receipt.
  • hooke-busy protects your active work or Talk session. Ask the person to open a new empty Project or close the app's window as directed. Do not take over their Stage.
  • If the command reports a locked Keychain, use Terminal in the logged-in Mac session and follow its reported next step. If a file is refused by macOS privacy, the app names System Settings → Privacy & Security → Files and Folders; either allow Hooke for that location or move the file to an allowed location, then try explicitly. This does not require blanket Full Disk Access.
  • no-window means the command did not see the app window after waiting. Use hooke open to bring it forward, then explicitly run again.
  • Pass the returned refusal and next step back to the person. A failed or unknown outcome is not a successful run.

Control access and data sharing

The basic door is local to your Mac. It provides no route to read your API keys or change Hooke's settings. Ask before installing or downloading software and before reading full tables or images; the installed skill instructs the agent to request consent, but that guidance is not a substitute for checking its actual behavior. What it reads may be sent to its provider.

Use Settings → Connected agents → Disconnect to revoke the connection. A new connection needs fresh confirmation. Cancel any work you want stopped and inspect its final receipt before disconnecting; cancellation calls need the active connection. Disconnecting blocks later calls from that token, but does not prove already-admitted work stopped. Keep tokens, connection state and private URLs out of shared reports.

What is not available yet

Remote-computer access and cloud model execution through the local door are not available. Beta 0.6.0 has no full-table/image retrieval route; its bounded outcome preview is not a full-data export. Newer development source supports explicit reads and downloads of authorized retained files, as described in the shared Project guide.

For owner-granted Project collaboration, retained Study evidence and the workflow API, see Use an agent with a Study. Launching subscribed coding-agent CLIs from Hooke remains deferred; connect an external agent you already run. Source and transport checks do not certify the packaged grant dialog or every agent/provider combination.

On this page