Skip to content

Build inside a sandboxed Runner (Docker) instead of the host #229

Description

@suleimansh

Today framework "..." runs Claude Code (the driver) directly on the host cwd — the agent writes and runs code on your machine, unsandboxed. The only Runner it touches is LocalRunner, and only with --serve (to boot-verify the app on the host). The Docker/WebContainer adapters from #109/#223 exist behind the Runner seam but are not wired into the framework.

Goal: let a run build + verify inside a sandbox so untrusted, agent-authored code never touches the host.

Notes on feasibility:

  • Docker is the tractable target. Run the driver's work inside a container: either run claude in the container against a mounted workspace, or (smaller first step) route the --serve boot-and-serve check through DockerRunner instead of LocalRunner.
  • WebContainer does not fit the Claude Code driver — it's a browser Node runtime with no claude binary. It only fits a browser-hosted build where the agent is ai-autopilot's own (via runnerTools), which is a separate, larger path.

Suggested first slice: make the runner behind --serve pluggable (Local | Docker), so verification can be sandboxed, then tackle sandboxing the build itself.

Part of #110; builds on #109.

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions