primitive code security
Last updated 29 November 2026
To report a security concern, email hello@primitive.com.au. Tell us the product, version and what you observed. Do not include a live pairing code, sign-in code, token, API key or private source. We do not claim an independent security audit.
Coding on your computer
The desktop app and CLI run locally. The desktop's run settings require approval to send code to the selected model. A patch run also requires approval for test execution. Review the files and settings yourself. Tool results and checkpoint content can reach the model. Do not rely on a file selection, test runner or secret scan to make sensitive material safe to send.
For Anthropic direct, the client sends your environment key to Anthropic in an HTTPS header. It does not follow redirects or use a proxy for that request. For Pass routing, the client sends the request and a gateway token to a local HTTP address on 127.0.0.1. Pass supplies the provider key upstream. A configured environment key takes precedence. Protect the environment and the Pass gateway connection file. For a local model, discovery and inference use HTTP on 127.0.0.1. Use a model server you trust.
The desktop Apply flow requires a saved verified patch, a full review matching its hash and confirmation. You can separately authorise a paired phone to decide on that patch. Passing checks do not prove a patch is safe. If an operation is interrupted or the result is unclear, inspect the checkout before trying again. Local history and patches can be read by someone with sufficient access to your computer.
Android pairing
- Start sharing on a trusted private network. The desktop creates a certificate. The code contains its SHA-256 fingerprint, the desktop's private IPv4 address and a one-time invite. The raw code is available to copy on the desktop while the invite is usable. The invite is valid for five minutes and can be redeemed once. Protect copies on the clipboard too.
- Pair with that desktop. The Android release client checks both the certificate's validity and its fingerprint. It connects directly using HTTPS, without a proxy or redirects, to an address in
10/8,172.16/12or192.168/16. The desktop pairing service uses TLS 1.2 or later. The phone exchanges the invite for a bearer token. Subsequent session authentication on the desktop uses a hash of the token. - Choose what the phone can do. Patch preview, cancellation and patch approval are opt-in desktop settings. The desktop asks for confirmation before allowing phone approval of a reviewed patch. That approval window is 15 minutes, shorter than the paired session. A patch over 16,000 characters cannot be approved on the phone. Android checks the current run and approval before sending a decision. Cancel and Apply ask for confirmation; Decline sends the decision without a second prompt.
- Stop sharing to revoke access. A phone session lasts up to eight hours. Backgrounding pauses polling. Losing the connection hides the controls but can leave the last preview on screen. The phone does not queue an offline decision. Disconnect clears the session on the phone. It does not invalidate the token on the desktop.
The Android app holds pairing and preview data in memory and disables Android app backup. Copies you make, including screenshots, are separate. Pinning protects the connection to the desktop identified by the code; it does not make a compromised device or a pairing code from an untrusted source safe. These details have not been verified for iOS.
Accounts
The production account service is hosted on Google Cloud in Sydney. The desktop uses an HTTPS service address. Account requests use a bearer token, not a browser cookie. The account database stores a hash of each session token, not the token itself. The desktop keeps its token in the main process and encrypts a persistent sign-in record with Electron safeStorage only when secure storage is available.
A six-digit email code is specific to an address and purpose. The database stores a salted hash. Resend and the recipient's inbox receive the actual code. A code expires after ten minutes, works once and is invalidated after five wrong guesses. Request and verification limits use IP and email counters. These measures limit guessing; they cannot protect an inbox someone else controls.
Account sessions expire after 30 days. Signing out revokes the current session if the service is reachable. Account deletion requires a signed-in session and a fresh deletion code. Confirmation removes the account, sessions and codes from the live database immediately. Deleted account data leaves backups within 30 days. Server logs and account backups are each kept for no more than 30 days. See the privacy policy for what is logged and what deletion does not cover.