URL format
| Component | Required | Description |
|---|---|---|
p | Yes | URL-encoded prompt text (max 10,000 characters) |
#<repository-url> | No | Repository URL as the hash fragment. Sets the project context. |
Examples
Prompt only:& becomes %26:
Constructing a link
Build the URL manually by combining the base URL with your prompt and optional repository context:- Write your prompt text.
- URL-encode the prompt (replace spaces with
+, special characters with percent-encoding). - Append it as the
pquery parameter:https://app.ona.com/?p=<encoded-prompt>. - Optionally, add a repository URL as the hash fragment:
#https://github.com/org/repo.
Opening a shared link
When you open a shared link:- The prompt text is pre-populated in the input field.
- If a repository URL is included, Ona matches it to an existing project in your organization and sets it as context. If no project matches, the repository URL is used as a raw repository context.
- You review and optionally edit the prompt, then submit.
If the prompt exceeds 10,000 characters, it is truncated and a warning is shown. You can edit the truncated prompt before submitting.
Context matching
When a shared link includes a repository URL:- Ona checks if the URL matches a project in your organization.
- If a match is found, the project is selected as context with its configured environment class.
- If no match is found but the URL is a valid repository, it is used as a raw repository context with the repository owner, name, and branch extracted from the URL.
- Invalid URLs are ignored and a warning is shown. You can select a repository manually.
Related
- Open from URL: Create environments from repository URLs
- Projects: Configure default settings for repositories
- Agents overview: How Ona agents work