Agents: run an agent inside a container sandbox

Offen
#54 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
30/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Ruhig
Tech-Stack
docker, rust
Bereich
devops, security

Rechercherichtung

No files are named, so start from where an agent preset is defined and where the agent CLI is spawned for a terminal tab, since container mode changes that launch step. Read the existing runtime rules referenced under 'Proposed behavior' before touching any Docker/Podman calls, then trace how agent state hooks reach Atlas. Done means the three acceptance criteria hold in tests: an in-container agent cannot read outside the worktree, hooks still fire, and a missing container runtime produces a clear error, with the image and requirements documented.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

area: desktop status: needs-triage type: feature

Problem

Running agents with auto-approve on the host is risky (they can touch anything in HOME). Users want auto-approve speed with a blast radius limited to the worktree.

Evidence

From research on parallel-agent desktops and worktree tools, this is a recurring user request:

A recurring request across agent-workspace and parallel-agent tools, with high upvote counts in their public trackers. Public examples: https://github.com/stravu/crystal/issues/178 (run without --dangerously-skip-permissions); https://github.com/winfunc/opcode advertises sandboxed background agents.

Proposed behavior

  • Per-agent-preset option Sandbox: none | container. Container mode runs the agent CLI in Docker/Podman/OrbStack with only the worktree mounted rw, agent config mounted ro, and network policy (on/off/allowlist).
  • The terminal/agent tab works the same (PTY via docker exec -it); hooks still reach Atlas.
  • Never restarts or tears down the docker daemon (keeps the existing runtime rules).

Acceptance criteria

  • An agent in container mode cannot read files outside the worktree (test).
  • Agent state hooks work from inside the container.
  • Documented with the image/requirements; clear error when no container runtime is present.
Vorherrschende Sprache
Rust
Sterne
3
Forks
1
Ø Merge
9 Std. 51 Min.
Gemergte PRs (30 T.)
310

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus codeatlasdev/atlas

Alle Issues in codeatlasdev/atlas

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.