Building It: Iteration Roadmap
If you want to build this yourself, here’s the phased approach:
Phase 1: Backend Foundation (Days 1-5)
HTTP API server + Docker sandbox manager + session CRUD + basic JWT auth.
Phase 2: Agent Integration (Days 6-10)
Reuse the terminal agent’s QueryEngine. Create sandbox-adapted tools (Bash, FileRead, FileWrite that execute inside the container).
Phase 3: WebSocket Streaming (Days 11-14)
Real-time streaming with the message protocol. Support cancellation and permission request/response channels.
Phase 4: Frontend Basics (Days 15-20)
Vite + React project setup. Chat panel, WebSocket client, typewriter text rendering, tool call UI cards, responsive layout.
Phase 5: Sandbox Visualization (Days 21-25)
File tree component reading from the container. xterm.js real-time terminal. File preview with syntax highlighting. Auto-refresh on file changes.
Phase 6: Security Hardening (Days 26-30)
Command filtering, resource limits, timeout enforcement, network isolation, image signing.
Phase 7: UX (Days 31-35)
Session history, reconnection, token usage display, permission dialog UI, dark/light theme, mobile adaptation.
Phase 8: Production (Days 36-40)
Dockerized deployment, CI/CD, sandbox pre-warming, horizontal scaling, monitoring and logging, rate limiting.