Agents: run an agent inside a container sandbox

オープン
#54 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
docker, rust
領域
devops, security

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
Rust
スター
3
フォーク
1
平均マージ
9時間 51分
マージ済み PR(30日)
310

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

codeatlasdev/atlas のほかの issue

codeatlasdev/atlas の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。