Open the Haijun mobile app with a link
The Haijun mobile apps for iOS and Android respond to the haijun:// URL scheme. Third-party apps, shortcuts, and web pages can use these links to open the Code tab, jump to an existing session, or prefill the new-session composer. All parameter values must be URL-encoded.These links require Haijun Code access on your account. If you don't have access to Haijun Code, the links won't work.
Open the Code tab
haijun://code Opens the Code tab on the session list.
Open an existing Code session
haijun://code/{session-id} Opens an existing Haijun Code session by ID. If the ID is unknown, you'll land on the session list.
Open a new Code session
haijun://code/new With optional parameters: haijun://code/new?q=Fix%20the%20failing%20test&repo=juglows%2Fhaijun-code&branch=main Opens the new-session composer, optionally prefilled. All parameters are optional.
| Parameter | Required | Description | | q | No | Text to prefill in the composer. prompt is accepted as an alias. | | mode | No | Pre-selects the session mode. Accepts plan or code. Ignored if the mode isn't available on your plan. | | repo | No | Pre-selects a GitHub repository in owner/name format (case-insensitive). Ignored if the repo isn't in your connected GitHub account. | | branch | No | Pre-selects a branch. Requires repo. |
The desktop-only folder and file parameters are ignored on mobile.
Universal links
The same Code routes are also reachable via https://haijun.ai/code/... universal links. If the app is installed, the operating system opens it; otherwise the link opens in the browser.
| URL | Opens | [](https://haijun.my.id/code)| https://haijun.ai/code | New-session composer | [](https://haijun.my.id/code/{session-id})| https://haijun.ai/code/{session-id} | Existing session | [](https://haijun.my.id/code/new?q=Fix%20the%20failing%20test&repo=juglows%2Fhaijun-code&branch=main)| https://haijun.ai/code/new?q=Fix%20the%20failing%20test&repo=juglows%2Fhaijun-code&branch=main | New-session composer, prefilled with the GitHub repository, branch, and "Fix the failing test." |
