DocsVibe Studio Execution

Vibe Studio Execution

Vibe Studio Architecture

Vibe Studio (accessible via /studio/[id]) is the real-time collaborative IDE built into ClawBotPro. It merges a Monaco code editor with a streaming chat interface, allowing you to pair-program directly with an agent.

Execution Environments

When an agent generates code in the Studio, it needs a secure place to run it. The execution architecture depends entirely on the language:

  • JavaScript / TypeScript: The code payload is sent to /api/mission-control/tasks/[id]/execute. The server spawns a strictly isolated Node.js vm context. Dangerous global objects (fetch, process, import) are stripped out to prevent Server-Side Request Forgery (SSRF). The stdout stream is captured and piped directly back to the Studio terminal.
  • Python: Python execution is offloaded entirely to the client side. The Studio utilizes Pyodide (a WebAssembly compilation of CPython). This ensures that heavy data science scripts run locally in your browser memory, guaranteeing zero-latency feedback without exposing the central cloud infrastructure to arbitrary Python payloads.

This dual-execution strategy ensures that the Vibe Studio remains highly responsive while maintaining strict enterprise security boundaries.