Skip to content

[WIP] Add sandbox coding assistant example#1250

Draft
aron-cf wants to merge 1 commit intomainfrom
example-opencode
Draft

[WIP] Add sandbox coding assistant example#1250
aron-cf wants to merge 1 commit intomainfrom
example-opencode

Conversation

@aron-cf
Copy link
Copy Markdown

@aron-cf aron-cf commented Apr 1, 2026

Variant of the workspace-chat demo that uses a Sandbox SDK instead of @cloudflare/shell

image

Currently demonstrates:

  • Chat UI with streaming AI responses
  • PTY terminal that streams exec output to the browser.
  • Live file browser via sandbox file watcher
  • Web preview iframe
  • Coder subagent tool with streaming progress, uses same workers-ai auth as demo

The intention of this PR is to identify areas that need integration into either agents or sandbox-sdk. These have loosely been grouped by feature under src/server and this is probably where the interesting parts lie. The rest is just generated UI.

Full-stack example of an AI coding assistant running inside a Cloudflare
Sandbox. Includes:

- Chat UI with streaming AI responses
- Shared PTY terminal with resizable panels
- Real-time file browser via sandbox file watcher
- Web preview iframe with terminal/preview tab toggle
- Coder subagent with streaming progress and SSE
- Modular client/server architecture (src/client/, src/server/)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant