Repository navigation
feat(cli): run Orca workspaces on BoxCompute VMs (0.14.0) - #32
Merged
Merged
Conversation
bxc orca create|suspend|resume|destroy|keep-open are the lifecycle steps of the BoxCompute plugin's Orca VM recipe: a VM per workspace running orca-ide serve on loopback, reached through a preview that keep-open renews while Orca runs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
bxc orca create|suspend|resume|destroy|keep-open: the lifecycle steps of the BoxCompute plugin's Orca (orca.dev) VM recipe (boxcompute/orca-plugin, published after this). Orca runs them in the user's repository with itsORCA_*variables;create/resumeprint one recipe-result JSON on stdout, the others read Orca's lifecycle payload on stdin.--sizeorBOXCOMPUTE_ORCA_SIZE; idempotency key from the Orca instance id, state saved before slow work so a retry reuses it), then a polled operation installs Orca's server build matching the desktop'sORCA_VERSION(checked against the release's sha256sums) and clones the repository's remote over HTTPS; a preview on 6768;orca-ide serve --bind 127.0.0.1 --pairing-address wss://<preview> --recipe-jsonstarted detached. Claude Code and Codex install in the background from their vendors' installers (the same ones the web agent's runtime catalog uses).orca-ide pair --addresswhen the server is still up), delete; destroy finds the VM by name when Orca never got a result.POST /api/v2/sandboxes/{id}/previews/{previewId}/keep-open(web-agent 0.272.0, #671) for each awake workspace; the plugin's worker runs it every 20 minutes while Orca is open, which keeps the link (pairing embeds the hostname) and the VM (a WebSocket counts as use only when it opens) up.Security
gh auth token, GitHub remotes only) reaches the VM as a file, never argv or env (execution logs keep those), via GIT_ASKPASS, deleted after the clone/fetch.orca/<instance>.json, VM + preview ids) is mode 0600 beside the credential.Verified
test/orca.test.ts(12). Full suite on an XL VM: 105 pass, 2 fail — the same twoVM creationtests fail on unmodified main there.orca-ide vm recipe doctor boxcompute-vm --provision(1.4.271) passed — create, result validation, destroy — in 76 s.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.