AIToday
Large Language ModelsAI Coding AssistantsAI Safety & AlignmentZenn AI/MLPublished: Nov 30, 2026, 10:01 JST

Claude Code kept off host, tests run in isolated containers

Send on LINE
Claude Code kept off host, tests run in isolated containers

3 Key Points

  1. What happened

    The developer gave Claude Code only a task folder and a clone, withholding host Docker access, secrets, the production working tree and write keys, then replaced host-run test scripts with a fixed host script that launches an isolated container for tests.

  2. Why it matters

    Because the agent's code never runs on the host, the human approval that used to gate test execution was no longer needed, and it moved to a single check after the spec, so the developer is called on only at the start and end.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

By signing up you agree to the Terms of Service and Privacy Policy.

Context & Analysis

The setup began from a prior decision: an agent that runs commands without step-by-step approval should not hold host Docker, because on the author's machine a user who can operate Docker can effectively reach any host file by mounting folders into a container. The agent was therefore given only a task document, a clone of the task repository and read-only development-rule documents, and each stage of work runs in a disposable container that disappears when the stage ends.

The conflict was testing. Unit tests could run inside the agent's container, but tests that start the app the way production does could not, since the agent cannot launch another container without Docker. The first design, built in 2026年10月, had a host-side scheduled script run only test scripts a human had approved. After a trial on 2026年11月7日 took 27分 with two human approvals, the author changed course the same day: the only thing the host truly needed to do was start a container, so the host script was reduced to that, copying the app to a temporary folder and mounting a test folder where production mounts a startup folder. That removed the pre-test approval, and a spec stage plus spec-check stage were added so the remaining human check looks at what to build rather than whether a script is safe to run. Production merging was likewise moved to a fixed host script, triggered by human completion confirmation, with an exception for tasks the author names explicitly. The author also reports a separate operational issue: hitting Claude's usage limit was initially counted as a failed run, stopping automated tasks until a fix on 2026年11月12日 read the reset time and resumed from the same conversation.

FAQ
What exactly was the agent not given?
It was not given host Docker access, secret files, the production working tree, or keys to write to the repository. It worked only in a clone inside the task folder.
How did the first trial go?
On 2026年11月7日 a small text-processing task ran from start to finish in 27分, with humans involved only for two approvals. There was one rejection from result checking, handled automatically.
What limits are placed on the test container?
It cannot reach other containers' networks or the production database and authentication, runs as a non-admin user with all privileges dropped, gets no production settings or secrets, and has a 30-minute time limit.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleSwitchBot AIアートキャンバス2: paper-like E Ink art frame, 15% off