feat: opencode - #2
Open
BhautikChudasama wants to merge 7 commits into
Open
Conversation
BhautikChudasama
force-pushed
the
feat/opencode
branch
2 times, most recently
from
August 5, 2026 10:36
a27da8b to
65cd144
Compare
Open
BhautikChudasama
force-pushed
the
feat/opencode
branch
from
August 5, 2026 12:36
2ca2efb to
87d4dad
Compare
BhautikChudasama
force-pushed
the
feat/opencode
branch
from
August 5, 2026 12:53
d7bfcf7 to
c6d77bf
Compare
Port the Pi extension's CreateOS Sandbox integration to OpenCode's plugin system. The plugin registers 40 tools (sandbox_exec, sandbox_pull, sandbox_push, lifecycle, networks, disks, VPN, sync) and injects a Pi-style system prompt into all agents directing them to use sandbox_exec for all shell commands. Key differences from Pi: - Cannot replace built-in tools (bash/read/write) — uses system prompt injection via config hook instead - Uses child_process.execSync instead of OpenCode's $ shell (routing fix) - Lazy sandbox creation on first tool call - No TUI integration (OpenCode limitation)
…dit/ls/find/grep) OpenCode cannot replace built-in tools — having duplicate names just confuses the LLM. Keep only sandbox_* prefixed tools (33 total). The plugin shim in .opencode/plugins/createos.ts already uses sandbox_exec/pull/push directly.
The CLI now expects `<network> <sandbox|device>` instead of `<sandbox|device> <network>`.
BhautikChudasama
force-pushed
the
feat/opencode
branch
from
August 6, 2026 05:21
cfbc937 to
d8af3c4
Compare
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.
Summary
Adds
packages/opencode-plugin/— OpenCode plugin with 33 sandbox tools that route commands to remote CreateOS Sandboxes.Install
# From npm (global) opencode plugin @createos/opencode --globalLocal development
Usage
Stacked on
feat/pi(must merge first)