Sitelet https://github.com/NodeOps-app/createos-plugins/commit/70aa489bbf34ad3b250f3a4a28dea03009f6476e
Skip to content

Commit 70aa489

Browse files
feat: opencode (#2)
* feat(opencode): add OpenCode plugin with 40 sandbox tools 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) * refactor(opencode): remove built-in tool overrides (bash/read/write/edit/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. * docs: update tool count to 33, remove stray files * chore: rename claude-code-plugin to @createos/claude-code * chore: apply lint fixes across opencode plugin * chore: remove accidentally committed node_modules * fix(opencode): swap network attach/detach arg order to match CLI The CLI now expects `<network> <sandbox|device>` instead of `<sandbox|device> <network>`. --------- Co-authored-by: pratikbin <68642400+pratikbin@users.noreply.github.com>
1 parent fc0ac9a commit 70aa489

16 files changed

Lines changed: 2473 additions & 40 deletions

File tree

‎.claude-plugin/marketplace.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"owner": { "name": "NodeOps", "url": "https://createos.sh" },
55
"plugins": [
66
{
7-
"name": "claude-code-plugin",
7+
"name": "@createos/claude-code",
88
"source": "./packages/claude-code-plugin",
99
"description": "Run ad-hoc/heavy/untrusted code in disposable CreateOS Sandboxes; offload, parallel fanout, scratch shell, reusable box with sync, port tunnel, public expose, network clusters, S3 disks, WireGuard VPN, fork, pause/resume, and custom images."
1010
}

‎.gitignore‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
node_modules/
2-
bun.lock
1+
packages/opencode-plugin/node_modules/
2+
packages/opencode-plugin/bun.lock
3+
package.json
34
package-lock.json
45
.pi*
56
.claude

0 commit comments

Comments
 (0)