claude-devcontainer: Instructions file for Claude Code

CLAUDE.md

claude-devcontainer CLAUDE.md is an instructions file for Claude Code from ChrisSc/claude-devcontainer. It costs 1,860 tokens per session, scanned B, original, MIT.

Repository instructions for claude-sandbox, a Docker-based development container that provides a contained home for Claude Code.

In plain words
What is it for?
Use them when building or running this container, checking architecture support, handling startup order, maintaining Unix line endings, or configuring its firewall and Docker environment.
Why use it?
They explain how the container is built and started, plus details that prevent failures across Linux, macOS, and Windows environments.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is ChrisSc/claude-devcontainer's own configuration. It tells Claude Code how to work on claude-devcontainer itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-devcontainer configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ChrisSc/claude-devcontainer. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ChrisSc/claude-devcontainer/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/ChrisSc/claude-devcontainer

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for claude-devcontainer CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/chrissc/claude-devcontainer/claude-md/github.svg)](https://agentmods.dev/instructions/chrissc/claude-devcontainer/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/chrissc/claude-devcontainer/claude-md"><img src="https://agentmods.dev/badge/instructions/chrissc/claude-devcontainer/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for claude-devcontainer CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/chrissc/claude-devcontainer/claude-md"><img src="https://agentmods.dev/badge/instructions/chrissc/claude-devcontainer/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,860 This file is loaded in full into every session.
When invoked 1,860 The same file — it is already loaded in full.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01860 $0.01860
Opus 5.5 $0.00744 $0.00744
Sonnet 5.5 $0.00372 $0.00372
Haiku 4.5 $0.00186 $0.00186

Measured 23d ago against content hash 6e1de25d075d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

claude-devcontainer CLAUDE.md scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 23d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

`ENTRYPOINT` = `entrypoint.sh`, in order: (1) `sudo init-firewall.sh`,
CLAUDE.md · 108 lines

How it starts

The opening of the file, as written. The whole thing — 108 lines — stays where its author put it; the contents beside it link to each section on GitHub.

claude-sandbox

A modernized, security-sandboxed dev container that is a self-contained home for Claude Code. Container definition + config, not an app — the deliverable is the image and its startup behavior; there's nothing to run on the host. Everything lives in .devcontainer/.

What this repo is (and isn't)

  • Target runtime: any Docker host on arm64 or amd64 — native Linux, Docker Desktop on macOS, or Windows WSL2. Support is gated on arch, not OS (everything runs in a Linux container; install-tools.sh errors on non-arm64/amd64). Builds native to the host arch — no platform: pin (would force slow emulation). Native Linux runs the firewall fully (iptables/ipset in-kernel); macOS/Windows add a Docker Desktop VM layer — the source of the inode-pinned bind-mount and WSL2-vs-Hyper-V firewall caveats.
  • Scripts must stay LF (enforced by .gitattributes + a defensive sed 's/\r$//' in the Dockerfile); CRLF from a Windows checkout breaks the entrypoint with bad interpreter: …^M. The firewall needs Docker's WSL2 backend on Windows (NET_ADMIN + iptables/ipset); the legacy Hyper-V backend won't load the rules.

Build & run

docker compose -f .devcontainer/compose.yaml up -d --build   # or: make up
docker exec -it claude-code zsh -l                            # or: make shell

Compose project (group) = claude; container = claude-code. Makefile targets are self-documented — each carries a trailing ## … description.

Startup order (load-bearing)

ENTRYPOINT = entrypoint.sh, in order: (1) sudo init-firewall.sh, (2) seed-claude.sh, (3) claude update (bounded by timeout, non-fatal), (4) init-aws-toolkit.sh, (5) init-cron.sh, then execs the compose command (sleep infinity). Ordering matters — the firewall must be up before the auto-update reaches downloads.claude.ai, before the AWS skill catalog is fetched, and before cron jobs fire; the AWS step runs after the update so it drives the current claude CLI. The VS Code path re-runs firewall + update + aws-toolkit + cron via devcontainer.json postStartCommand as an idempotent safety net.

Read the full file on GitHub · 108 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 23d ago Changed · +1 lines · +35 tokens per session 6e1de25d075d
  2. 2mo ago First seen · 107 lines · 1,825 tokens per session scan B 7920e10749e1

Subscribe to this mod's changes

claude-devcontainer CLAUDE.md is an instructions file published in the GitHub repository ChrisSc/claude-devcontainer (2 stars, last pushed 23d ago), licensed MIT. It adds 1,860 tokens to every session, about $0.0074 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens