Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.
TypeScript adeagent-ideai-agentsautomationbotclaude-codecodexghosttygrok-bothermes-agentmobile-appmuseopenclawopencodeorchestrationpiruntimeterminalworktreesyc-backed
Failure modes
Load this when a doctor, provision, clone, login, or snapshot step failed. Each entry maps a symptom to its cause; the rule that prevents it lives in the guide next to the step.
Reading a failed --provision result
The JSON result carries a provisionTranscript with each stage's captured output, so you can
diagnose without asking the user for logs:
{
"ok": false,
"checks": [{ "id": "recipe.provision", "status": "fail", "message": "…" }],
"provisionTranscript": {
"provision": { "exitCode": 0, "signal": null, "stdout": "…", "stderr": "…", "parseError": "…" },
"destroy": { "exitCode": 0, "signal": null, "stdout": "…", "stderr": "…" }
}
}
Streams are redacted and capped at both ends, keeping the start and the failure. Two common reads:
- A non-empty
stderrwithexitCode 0plus aparseErrormeanscreateran but printed something other than the single recipe-result JSON object on stdout. The offending stdout is in the transcript; the usual cause is a strayecho. - A non-zero
exitCodeis a provider or script failure, described instderr.
Build and clone
- Build exceeds the plan timeout, for example Vercel Hobby's 45 minutes. Use enough vCPUs and a timeout that covers the build, or split the work, or move to a higher plan. The same cap limits per-workspace runtime, so surface it to the user.
- Build exceeds plan RAM. Building the headless main only, dropping the renderer, is the single biggest fit.
- Private-repo clone hangs or fails. The token is wrong or missing.
GIT_ASKPASSplusGIT_TERMINAL_PROMPT=0makes it fail fast instead of prompting. - The
GIT_ASKPASShelper aborts the clone with$1: unbound variable. Theprintfor heredoc that wrote the helper insidebash -lcunderset -uexpanded$1and$GH_TOKENat write time instead of leaving them for git-runtime. The same mistake writes the real token into the file.
Agent auth
- The agent verifies as "not logged in" despite a good login.
codex login statusand similar print their success line to stderr, so a check that reads stdout only misses it. - A headless agent login hangs. Plain OAuth
loginstarted a loopback callback server on a port the host browser cannot reach. - Agent auth did not persist. Confirm
snapshotIdpoints at the authenticated snapshot rather than the base, and re-run the auth phase. If the agent's credentials are short-lived, the snapshot needs periodic re-auth; warn the user. - Agent auth copied from the host breaks. A bind-mounted or copied host agent home carries sqlite files that can be unwritable or host-specific, hooks that need approval again, and config that references local-only environment variables. Authenticate inside the runtime and snapshot or commit that layer instead.
Environment lifecycle
known_hostsmismatch on local Docker. A new container may reuse an old container's port. Read its public key through trusted local Docker access, verify the container identity, then replace only that endpoint's recorded key. Never reuse private host keys across workspace images.- Snapshot expired or evicted.
createhit an unknown snapshot id. Re-run the base and auth snapshot phases and updatesnapshotIdin state. - Docker auth image exits immediately. Read
docker image inspect … .Config.Entrypointanddocker logs. An image committed from an interactive shell keeps that shell as its entrypoint. - A paid resource leaked. A long script created an environment and then failed without a trap that removes it.