Skip to content

Latest commit

 

History

History
61 lines (46 loc) · 3.14 KB

prompt-links.md

File metadata and controls

61 lines (46 loc) · 3.14 KB

Prompt links

A prompt link opens Onicode with a prompt ready to send. Use one to share a prompt on social media, or to put a one-click fix in a pull request comment.

A link never runs anything. It opens a draft. You read the prompt, then press Send. A link cannot change your permission mode, branch, or worktree. Your own defaults apply.

Make a link

Open the command palette and choose Copy prompt link. It copies the draft in the composer. When the project is on GitHub, Copy prompt link with repo and model also adds the repository and the model you picked. Sent messages have a Copy prompt link button too.

You can also write a link by hand:

onicode://new?prompt=Rate%20my%20swearing
onicode://new?prompt=Fix%20the%20build&repo=owner/name&provider=codex&model=gpt-5.5
onicode://new?pr=owner/name/123&prompt=Fix%20the%20failing%20check
Parameter Meaning
prompt The prompt. Required, except on pull request links. At most 8,000 characters.
repo A GitHub repository, as owner/name or its URL.
provider A provider such as codex or claude.
model A model of that provider, by its id or name.
pr A GitHub pull request, as owner/name/123 or its URL.

Encode the prompt for a URL. In JavaScript, use encodeURIComponent.

Open a link

An onicode:// link opens in the desktop or mobile app.

  • No repo: the draft opens without a project, on the machine you used last.
  • repo: the draft opens in your most recently used project for that repository. A fork counts only for its own owner. When you do not have the repository, choose Clone or Use without project.
  • provider and model: used when you have that provider set up. Otherwise your default model is used, and Onicode tells you.
  • pr: opens the thread linked to that pull request on any connected machine, with the prompt in its composer. When no thread is linked, the draft goes on the pull request branch in a new worktree. Onicode checks the code out only after you confirm, because the checkout runs your setup script on it.

A thread link with a prompt, such as onicode://threads/<environment>/<thread>?prompt=…, puts the prompt in that thread's composer. If you already typed a draft there, Onicode asks before it replaces it.

Onicode removes characters you cannot see, such as zero-width and hidden tag characters, because they can hide instructions for the agent. When a prompt had them, Onicode warns you that it may be malicious.

Share a thread

Copy thread copies a Markdown link to the thread, such as [Fix the build](oni-thread://v2/<environment>/<thread>). Paste it into a composer to give the agent that thread as context. In Onicode, a thread link in a message opens the thread on any client paired with the machine that runs it. Only someone connected to that machine can see the thread.