/aicontainer:setupfrom aicontainer
Sets up aicontainer sandboxed devcontainer for AI coding agents in bypass/auto-approve mode. Detects project stack, customizes per-project wiring (Python venv, language servers, DB access), and walks through user tool settings.
Ships in aicontainer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Your job is to take a project from "no sandbox" to "the AI agent runs behind the aicontainer devcontainer boundary, configured for this project's stack." You detect the stack, sanity-check that a Linux devcontainer is even the right tool, propose a concrete customization plan, and — once the user approves — apply it.
aicontainer's whole point is letting Claude Code / Codex / OpenCode run with
permissions skipped without handing a prompt-injected dependency your real
$HOME, .env, SSH keys, or gh token. Good setup is what makes that sandbox
actually usable for the project — a Python repo needs a writable .venv, an
agent that uses go-to-definition needs a language server on PATH, a Postgres
app needs the DB reachable. That per-project wiring is the work here.
The other half is the person: their tool settings, prompt, aliases, and statusline. Some of that is seeded automatically, some is deliberately dropped, and some needs an explicit opt-in they'd never guess at. Step 6 walks them through it — a sandbox the user can't stand working in doesn't get used.
These come straight from how aicontainer is designed; violating them creates work
that silently gets wiped or breaks aic sync.
aic from the host, never from inside the container. Setup happens
before (or outside) the sandbox. If you detect you're inside an aicontainer
already (see Step 0), stop and tell the user to run this from a host terminal —
.devcontainer/ is mounted read-only in the sandbox by design..devcontainer/devcontainer.json or
.devcontainer/docker-compose.yml. They are template-managed: aic init
writes them and aic sync overwrites them (only the AIC_TOOLS / AIC_SHELL
choices survive). All per-project customization goes in the project-owned
files instead (listed in the next rule). Edits to the managed files get reset on the
next sync.aic sync never
touches: Dockerfile.project, docker-compose.override.yml, chown-paths,
post-create.project.sh, vscode-extensions, vscode-settings.json,
firewall-allowlist, firewall-enable, firewall-presets, shell-rc.zsh,
p10k.zsh, statusline.{sh,mjs,js,py}. These are opt-in by presence.aic rebuild is the verb that builds — aic up is not. aic up runs a
plain devcontainer up, and the managed pull-mode Compose sets
pull_policy: missing: when the resolved image tag is already cached, Compose
reuses it and never runs your Dockerfile.project. The stack comes up
looking healthy on the plain base image, with every baked tool missing and
every named volume still root:root. aic rebuild adds
--remove-existing-container --build-no-cache, which is what actually builds.
So: if the plan writes a Dockerfile.project, the first boot is aic rebuild,
and so is every boot after you edit it.Dockerfile.project (or an added mount, a protected env key, Docker socket
exposure) makes aic validate / up / rebuild fail closed until the human
runs aic trust, which requires a TTY and so cannot run from your Bash
tool. Hand it to them; never route around it with --allow-unsafe. Trust
binds to an exact config hash, so any later edit to
docker-compose.override.yml or Dockerfile.project revokes it — settle the
config completely before you ask (Step 8).aic init / aic sync. Confirm before
the first boot — it pulls or builds a multi-gigabyte image and can take
minutes — but once the user says go, drive it yourself: verify the container
actually boots and fix what's broken (Step 9). Don't just hand back a command
and hope.Before anything, confirm the ground is solid:
/etc/aic exists,
or env vars like REMOTE_CONTAINERS / DEVCONTAINER / AIC_TOOLS are set,
you're inside the sandbox — .devcontainer/ writes are blocked by the
PreToolUse hook. Stop and tell the user to run setup from a host terminal.aic init expects a project directory. If there's no
repo, that's fine, but note it (the sandbox bind-mounts $PWD as /workspace
regardless).aic CLI installed? Check command -v aic. If it's missing,
don't abort — offer to install it, since nothing else in this skill works
without it:
node --version) — it's the one
prerequisite for the npm install (and the bundled @devcontainers/cli). If
Node is too old or absent, say so and point the user at it rather than
attempting the install.npm install -g aicontainer. If the user prefers a git checkout, the
alternative is
git clone https://github.com/stefanoginella/aicontainer ~/.aicontainer && ~/.aicontainer/install.sh
(a checkout also needs npm install -g @devcontainers/cli separately).command -v aic (or aic --version)
and confirm it's now on PATH before continuing. If the install failed or
aic still isn't found, stop and surface the error; don't push ahead into
the steps below.docker info should succeed (Docker Desktop / OrbStack
/ Colima). Setup can still proceed without it, but Step 9's boot verification
(and aic up generally) will need it — note it rather than blocking..devcontainer/devcontainer.json
exists and references aicontainer (the GHCR image or AIC_TOOLS), this is a
re-setup, not a fresh install — you're in update mode. Don't regenerate
from scratch and don't re-propose files that already exist and are correct.
Still read the docs (Step 1) and re-detect/confirm the stack (Steps 2–3),
then follow "Update mode" below instead of the greenfield Step 5. (If no
.devcontainer/ exists, it's a fresh setup — continue straight through
Steps 1–10.) A missing .devcontainer/ still isn't proof of a clean slate: a
repo set up under an older aic can leave a stale legacy Docker volume/stack
that aic up migrates automatically (aic: migrating legacy session transcripts …). That's expected, not an error — don't treat it as a failure.aic-<basename>-<hash>), so a previous
setup for this directory — even one whose .devcontainer/ is long gone — can
still own containers and volumes in the same namespace. aic up deliberately
does not pass --remove-orphans (it can't attribute them), so those
services keep running and resurface later as mystery containers in docker compose ps. Look now:
docker ps -a --filter "name=aic-<basename>-" and
docker volume ls --filter "name=aic-<basename>-". The clean sweep is
aic down (which does use --remove-orphans) once a config exists. Stale
named volumes may hold real data — surface them and let the user decide;
never delete a volume unasked.When Step 0 found an existing aic setup, the job is not "generate config." It
is "check whether this project's personalization still fits its stack, and update
only what's missing, stale, or drifted." A project set up months ago may have
gained a language, a service, browser e2e tests, or new build artifacts — or had
the global aic upgraded under it. Read the docs (Step 1) and refresh the
stack profile (Steps 2–3) first, then:
Dockerfile.project, docker-compose.override.yml,
chown-paths, post-create.project.sh, vscode-extensions,
vscode-settings.json, firewall-allowlist, firewall-enable,
firewall-presets, shell-rc.zsh, p10k.zsh, statusline.{sh,mjs,js,py}. Also
note the current AIC_TOOLS / AIC_SHELL in devcontainer.json (the only
managed values that survive aic sync), and which host-global overlays
already exist at ~/.config/aicontainer/ (rc.zsh, p10k.zsh,
statusline.*). This is your baseline — what's already covered.post-create.project.sh and no editor
extension; a Python project with no writable .venv volume; a newly-added
Postgres/Redis service not wired in docker-compose.override.yml;
Playwright/Chromium added with no Dockerfile.project. Compare each
confirmed stack against its ## Stack: section in the stack reference
(Step 1) — that section lists everything the stack should have.chown-paths line for a volume that's no longer declared; a
vscode-settings.json interpreter path that no longer exists; an LSP install
or extension for a language the project dropped; a tool in AIC_TOOLS the
user no longer wants.npm update -g aicontainer, a Dockerfile.project whose FROM …:vX.Y.Z
lags the tag now pinned in docker-compose.yml. aic sync warns; the
fix is aic sync --bump-base (it rewrites the FROM in place — never
hand-edit a project-owned file's base for this).aic sync (the re-setup verb) so override wiring and the
vscode-extensions / vscode-settings.json merges refresh. Then move to
Step 9 to confirm the refreshed setup actually boots — an update that
"should" fix a gap isn't done until you've watched it come up clean.Fetch the user-guide pages from the release tag of the installed aic, not
from main. main can describe features the user's aic doesn't have (e.g. a
firewall-presets file an older aic ignores — the user would believe the
firewall allows hosts, or is on, when it isn't). Tags are never rewritten, so
a tag fetch is also fixed content.
aic --version prints aic vX.Y.Z (Step 0 made sure
aic is installed). Base URL:
https://raw.githubusercontent.com/stefanoginella/aicontainer/vX.Y.Z/docs/user/stack-reference.md — the stack → files mapping. Always fetch this
one. For each stack (Node.js, Python, Go, Rust, Ruby, PHP, Java, C/C++):
marker files, Dockerfile.project toolchain lines, named volumes +
chown-paths, post-create.project.sh steps (incl. the agent's LSP
server), editor extensions/settings, firewall presets, and
trust/caveats. Also: the shared Dockerfile.project /
post-create.project.sh parts, how to combine stacks, the volume reset,
and the devcontainer-fit matrix. Steps 2, 4, and 5 use it.customization.md — docker-compose.override.yml, named volumes +
chown-paths, post-create.project.sh, VS Code extensions/settings, LSP
and .venv recipes. Always fetch this one.extra-tools.md — Dockerfile.project and the Playwright recipe. Fetch
when the project needs OS packages or a browser.personal-config.md — shell overlay and statusline. Fetch when the user
asks about their prompt or statusline.…/vX.Y.Z/docs/README.md on the same host.https://github.com/stefanoginella/aicontainer/tree/vX.Y.Z/docsWhen the version-matched page isn't available, pick the safe path. Never
fall back to main silently:
aic --version fails or prints no vX.Y.Z): don't
fetch any stack page. Fix the install first (back to Step 0.3); without a
known version, generate only what the user explicitly asks for.stack-reference.md (HTTP 404 — an aic older than the
page): tell the user their aic predates the stack reference and recommend
npm update -g aicontainer (then aic sync in an existing project), and
re-fetch from the new tag. If they decline:
main, but say so first, and drop every item whose
(since …) marker is Unreleased or a version newer than the installed
one. Name each dropped item to the user.~/.aicontainer whose package.json version
equals the installed version. Any other copy (e.g. the plugin marketplace
clone at ~/.claude/plugins/marketplaces/aicontainer/) tracks main:
treat it exactly like the main case above (say so, apply the markers).
For the managed-vs-project-owned split, the version-matched
.devcontainer/README.md that aic init writes and aic help also work.
With no usable copy of stack-reference.md, don't invent stack snippets
from memory: tell the user, and generate only what they explicitly ask for.The docs are the source of truth for what to generate — stack-reference.md
for the stack mapping, the other pages for recipe syntax. This skill carries
the flow and judgment: reading the repo, confirming with the user, choosing
the optional pieces, and sequencing trust and boot
(references/stack-and-suitability.md has the detection judgment the page
leaves out).
Build a picture of what this project actually is. Read, don't guess. Cover:
package.json, pyproject.toml / requirements.txt
/ uv.lock, go.mod, Cargo.toml, Gemfile, pom.xml / build.gradle,
composer.json, *.csproj / *.sln, mix.exs, pubspec.yaml,
Package.swift, *.xcodeproj, CMakeLists.txt..nvmrc, .python-version, .tool-versions,
.ruby-version, Dockerfile, existing docker-compose.yml.docker-compose.yml services, .env.example
/ .env.sample keys (DATABASE_URL, REDIS_URL, …), ORM/migration config.
These become host-service or sibling-container wiring.@playwright/test,
cypress, puppeteer) and native build steps, which need a Dockerfile.project..md design docs — README.md, ARCHITECTURE.md, docs/, PRD / spec /
design files. Lean on these when code signals are thin or the repo is greenfield;
a spec saying "React + FastAPI + Postgres" is a real signal.The "Detect a stack" table in stack-reference.md maps marker files to stack
sections; references/stack-and-suitability.md covers the signals a marker
table can't (services, design docs, greenfield repos). The goal is a short
profile: language(s) + package manager(s) + runtime versions +
services + test tooling + any GUI/mobile/native/hardware signals.
Don't proceed on a guess. Present the detected profile compactly and ask the user to confirm or correct it — use AskUserQuestion when the choice is crisp, plain prose when it's open. If detection was inconclusive (sparse repo, unfamiliar layout), ask the user directly what the stack is rather than inventing one. The customization plan is only as good as this profile, so it's worth the round-trip.
aicontainer is a headless Linux devcontainer. Most server / web / CLI /
library / data / ML-on-CPU work is a great fit. Some work fundamentally can't run
here — flag it before generating config so the user isn't surprised after a
rebuild. The fit/non-fit list (iOS/macOS-native, Windows-native, host-display
GUI, hardware passthrough, Android emulator, GPU/CUDA) is the "Check the fit"
section of stack-reference.md — classify against it. Also a non-fit here: no
Docker runtime at all (Step 0) — nothing runs without one.
When you hit a non-fit, say so plainly, explain what specifically won't work, and note whether a partial setup still helps (e.g. an iOS app with a Node backend — sandbox the backend, build the app on the host). Then let the user decide whether to proceed. Don't silently generate a config that can't work.
First the two aic init choices (ask, or take the defaults and say so):
--with): claude-code, codex, opencode, or a comma-list.
Default is all three.--shell): zsh (default), bash, or fish.Then map the confirmed stack to project-owned files with
stack-reference.md (Step 1). That page is the single source for the
mapping — take the snippets from it; don't keep or improvise a private copy:
## Stack: <name> section per confirmed stack. Every section has the
same subheadings in the same order — Detect, Toolchain, Named volumes and
chown-paths, Post-create, Editor, Firewall presets, Trust and caveats — so
read each one and carry its snippets into the plan.FROM, one override services.devcontainer block, one post-create
header, merged chown-paths / vscode-extensions / vscode-settings.json.Dockerfile.project
FROM line and the override build: block with its own image: tag, the
post-create.project.sh header, and the post-create constraints (guard on
the manifest, read-only .git/hooks, NPM_CONFIG_IGNORE_SCRIPTS).Judgment that stays with you:
node_modules volume, a C/C++ build-dir volume, the Poetry
variant). Offer them; don't impose them.firewall-enable / firewall-presets /
firewall-allowlist fit stricter containment (reviewing untrusted code,
corporate LAN). Off by default; mention it, don't impose it. If the user opts
in, take the preset names and extra hosts from the stack sections.Dockerfile.project costs one aic trust and makes aic rebuild
the boot verb — the golden rules above. Plan the sequence around them.shell-rc.zsh, p10k.zsh, statusline.*) are
personalization, not stack mapping, and they're the piece users most often
assume happens automatically. Handle them in Step 6, not here.LSP is a first-class concern (the user cares about it). Make explicit that
there are two LSP surfaces: the editor's IntelliSense (extensions +
settings) and the agent's LSP tool (a language-server binary on PATH,
installed from Dockerfile.project or post-create.project.sh). A project
usually wants both. Each stack section of stack-reference.md has both: the
Editor subsection, and the server in Toolchain or Post-create.
A sandbox that builds the project but feels alien to work in is a half-done setup. This step closes the gap between "the container runs" and "it's my environment." Do it for fresh setups and update-mode runs alike.
Lead with what's already handled — most users assume nothing carries over, and that's wrong. Don't re-explain the whole boundary; tell them what to do.
Before every aic up/rebuild, a root-only, networkless one-shot sanitizer
reads four fixed host files and emits allowlisted JSON the container consumes
read-only. The user edits these on the host and re-runs aic rebuild:
| Host file | Carries over |
|---|---|
~/.claude/settings.json | model, effort, editor mode, theme, plugins/marketplaces, MCP servers, verbosity… |
~/.codex/config.toml | model, reasoning effort, personality, [mcp_servers.*], [projects.*] |
~/.config/opencode/opencode.json | provider/model, agents, instructions, theme, keybinds, formatter, lsp, mcp |
~/.gitconfig | identity + non-executable workflow prefs (pull/push/rebase/diff/merge) |
Not bugs — the allowlist exists because these either defeat the sandbox or carry host-only paths/secrets. State the replacement, not just the removal:
permissions, hooks, Codex approval_policy / sandbox_mode — the
container enforces its own at root-managed precedence. That's the whole point.env blocks, inline MCP env/headers, API keys/tokens — never
forwarded. Replacement: log in inside the container once (claude,
codex, opencode auth login, gh auth login, npm login); credentials
persist in a global volume across rebuilds and projects.statusLine — a command string pointing at a host path. Replacement: the
statusline overlay in 6.3.credential.helper, aliases, include/includeIf, core.hooksPath,
signing key paths — command/path-bearing. Replacement for signing: aic signing provisions a sandbox-only key (the host key is never forwarded).~/.zshrc / ~/.p10k.zsh — never auto-forwarded. Replacement: 6.3.Three independent slots, all opt-in by file presence, all surviving aic sync, each available host-globally (once, every project) or per-project:
| What | Host-global seed | Project file |
|---|---|---|
| zsh startup (aliases, functions, exports) | ~/.config/aicontainer/rc.zsh | .devcontainer/shell-rc.zsh |
| powerlevel10k prompt | ~/.config/aicontainer/p10k.zsh | .devcontainer/p10k.zsh |
| Claude Code statusline | ~/.config/aicontainer/statusline.{sh,mjs,js,py} | .devcontainer/statusline.{sh,mjs,js,py} |
Mind the filename asymmetry: the shell rc is rc.zsh host-side but
shell-rc.zsh project-side. p10k.zsh and statusline.* use the same name in
both places. The project file wins when both exist. All take effect on the next
aic rebuild.
The statusline slot is the script only — aicontainer supplies the command
(/usr/local/bin/aic-statusline, a fixed launcher) and picks the interpreter
from the extension: .sh→bash, .mjs/.js→node, .py→python3. So:
imports sibling modules
breaks; vendor it or pick a different one. Its own state under
~/.claude/statusline/ is writable and per-project, so caches work.git does; host-only
binaries don't).~/.config/aicontainer/statusline.mjs
and point the host ~/.claude/settings.json there too — one file, no drift.
Otherwise it's a copy that will go stale; say so.⚠️ All three are code, not data: they cross verbatim (they can't be sanitized) and the in-container agent can read them. No secrets, ever — and flag that host paths/usernames baked into them become visible in the sandbox. They land root-owned
0444, so once installed the agent can't modify them, and they run only as the unprivilegedvscodeuser.
Users who want "my shell/statusline inside the sandbox" usually already have a
host ~/.p10k.zsh, ~/.zshrc, or statusline script and reasonably expect them
to appear. They don't — host dotfiles routinely hold secrets and host-specific
breakage, and this sandbox runs an untrusted agent that can read whatever is
mounted. So offer to bridge that gap: draft the overlay from their host
files — an assisted, reviewed draft, never a silent transform.
This is safe to do here because you run on the host, as the user's permissioned session — a different trust context from the sandboxed bypass-permissions agent the threat model targets, and you can already read these files. The trust anchor holds only if the user stays the approver: you move them from author to reviewer, you don't remove them. Do not auto-place a drafted file.
When the user opts in:
~/.p10k.zsh, ~/.zshrc, and the script
named by their host statusLine.command (parse the path out of
~/.claude/settings.json; don't guess a location).p10k.zsh — near-verbatim. Almost always p10k configure output:
declarative typeset -g POWERLEVEL9K_*, no secrets. Copy it, but scan for
the unusual — custom segment functions that shell out, hardcoded host paths,
anything secret-shaped — and flag those.rc.zsh — whitelist-extract, don't blacklist-strip. Pull only
clearly-safe categories (aliases, simple functions, setopt, keybindings,
prompt tweaks). Leave everything else behind: export *_KEY/_TOKEN/_SECRET=…,
sourced secret/env files, plugin managers and eval "$(tool init)" for
tools not in the sandbox, aliases to host-only binaries. When in doubt,
leave it out.statusline.* — copy whole, then audit. Unlike an rc file you can't
extract "the safe half" of a program, so it's all-or-nothing: read the whole
script and report what would break or leak — a hardcoded host path, a
host-only binary it shells out to, an API token, a network call, a sibling
import. If any of those are present, say so and let the user decide between
fixing the script, dropping the slot, or accepting it.~/.config/aicontainer/ (host-global — one setup
for every project) or .devcontainer/ (this project only), as the user
prefers, using the filenames in 6.3's table.If the user declines, or you can't confidently produce a clean draft, fall back
to the manual path: they place the files by hand — no secrets — then aic rebuild. Either way, verify the result in Step 9 (aic run test -r /etc/aic/user-config/statusline/statusline.mjs, aic run /usr/local/bin/aic-statusline, or a login zsh -lic true) rather than assuming
it landed.
Show the user, before touching anything:
aic init invocation (with --with / --shell).~/.config/aicontainer/
or this project's .devcontainer/.aic trust, stated up front — name the
finding it will produce (almost always the Dockerfile.project root build)
and that they'll run one command in their own terminal at a known point. A
user who meets the gate only when the build stops thinks setup broke.aic rebuild when there's a
Dockerfile.project, plain aic up otherwise — watched to completion and
fixed if broken, pending their okay since it's a multi-gigabyte pull/build.Get an explicit yes. If they want changes, fold them in and re-show.
Order matters (so the override gets wired into dockerComposeFile):
Initialize: aic init --with <tools> --shell <shell> for a fresh project,
or aic sync --with <tools> --shell <shell> if Step 0 found an existing aic
setup. (Both are non-interactive when you pass the flags.)
Read the pinned tag from .devcontainer/docker-compose.yml if you're
writing a Dockerfile.project, and use it in its FROM.
Write the project-owned files from the approved plan.
Re-wire: run aic sync once more so the freshly-created
docker-compose.override.yml gets appended to dockerComposeFile in
devcontainer.json (it's wired only when the file is present). Verify with
grep dockerComposeFile .devcontainer/devcontainer.json — both files should
appear.
Validate, and stop the hash from moving. Run aic validate — it applies
the same gate as up/rebuild but never prompts and never writes trust, so
it's the one safe way for you to read the findings. Fix everything
mechanical it reports now (rejected mount targets, managed-file drift,
override syntax). Every fix changes the config hash, and the hash must stop
moving before the user trusts it.
De-risk the build before spending the user's approval — only when there's
a Dockerfile.project. A plain docker build against it, tagged with the
same image name the override sets, needs no trust, proves the Dockerfile
compiles, and warms the layer cache so the post-trust aic rebuild is quick:
docker build -f .devcontainer/Dockerfile.project -t <override's image tag> .devcontainer
A Dockerfile bug caught here costs nothing; caught after trust, it costs another round-trip through the user.
Hand the trust step to the user. When aic validate ends in unsafe configuration is not trusted, stop: show the exact ! finding lines, say in
one sentence why the plan needs each, and ask them to run aic trust in their
own terminal. Then re-run aic validate — configuration valid — managed files and resolved Compose model are accepted. is the confirmation that it
landed. Do not pass --allow-unsafe, and do not edit any project-owned file
after they approve without telling them it needs re-approval.
Config is on disk and trusted now, but not yet proven to work. Move to Step 9 before calling this done.
Writing the files isn't the job — a sandbox the project can't actually start in isn't done. Prove it boots and that Step 5's customization took effect before reporting success.
aic rebuild if the plan
wrote a Dockerfile.project — it is the only verb that builds one (golden
rules); plain aic up otherwise. Either can pull a multi-gigabyte GHCR image,
take minutes, and use real disk, so confirm with the user first. In update
mode the container usually already exists, and aic up will happily leave
it as-is — anything that must re-run (a changed post-create.project.sh, a
new named volume, a rebuilt image) needs aic rebuild too. If they'd rather
run it themselves, or Step 0 flagged Docker isn't running, skip straight to
Step 10 and hand off the commands instead.aic up 2>&1 | tail -60 returns
tail's exit status, so a config aic refused reads as a clean exit-0
success. Capture the full output (background it if it's long) and actually
read it — the exit code alone won't distinguish a refusal, a
Dockerfile.project build failure, a bad override key, and a stale pinned
tag.unsafe configuration is not trusted → the config changed since the user
approved it (or was never approved). Back to Step 8's items 5–7: validate,
settle, re-ask. Never --allow-unsafe.aic up where a
Dockerfile.project needs aic rebuild.Dockerfile.project's FROM matches the pinned
tag (grep image: .devcontainer/docker-compose.yml).docker-compose.override.yml
syntax and that it only extends the devcontainer service.chown-paths, under an allowed prefix (/workspace/,
/home/vscode/.cache/).post-create.project.sh step didn't take effect (its failures are logged,
not fatal to boot) → fix the script, then aic rebuild (or
aic destroy && aic up if state needs a clean slate) to re-run it.
After any project-owned-file fix, re-run aic sync so wiring stays current,
then retry aic up / aic rebuild. Iterate until it's clean — don't stop at
the first fix without confirming it actually resolved the failure.aic run <cmd> (no need for
an interactive shell):
Dockerfile.project; it catches a skipped build in a
single command:
docker compose --env-file .devcontainer/.env -f .devcontainer/docker-compose.yml -f .devcontainer/docker-compose.override.yml ps --format '{{.Service}}\t{{.Image}}'.
If devcontainer shows the base ghcr.io/stefanoginella/aicontainer:… tag,
your build never ran — aic rebuild. It also flags any unexpected service
in the list, which is usually a Step 0.6 orphan from a prior stack.PATH: aic run command -v pyright-langserver (or whatever
Step 5 installed).aic run test -w /workspace/.venv && echo ok.aic run curl -sS host.docker.internal:5432 (or
whatever the stack needs).aic run ls -l /etc/aic/user-config/shell /etc/aic/user-config/statusline
should show root … 444 files. Then prove they run: aic run /usr/local/bin/aic-statusline should print a status line (a silent exit
means nothing was installed; an error is the script's own), and aic run zsh -lic 'alias' should show a personal alias. If a slot is empty, the
usual cause is a filename typo — rc.zsh vs shell-rc.zsh, or an
extension outside {sh,mjs,js,py}.aic preflight to confirm the trust boundary (firewall mode, mounts)
matches the plan.
aic run proves the agent LSP (binary on PATH), volumes, and services —
but not the editor side: vscode-extensions / vscode-settings.json only
take effect in a VS Code Dev Containers session, so don't report editor
IntelliSense as "verified." That's the expected limit of a headless boot check,
not a gap.aic down stops the
container (volumes persist) if they're not about to start working; leave it
up if they are.If verification genuinely isn't possible (no Docker, offline, user declined), say so plainly and fall back to the Step 10 handoff.
Tell the user what to run next and how to confirm it worked. This differs a little depending on whether Step 9 ran:
aic down, and give them the resume path — aic shell (or aic up again
if stopped), then claude / codex / opencode.aic trust first if aic validate is still refusing, then
aic rebuild (or aic up when there's no Dockerfile.project) to
pull/build and start the stack, then aic shell, then claude / codex /
opencode.Cmd+Shift+P → Dev Containers: Reopen in Container.aic preflight to re-print the trust boundary;
aic signing if they sign commits (the host signing key isn't forwarded);
the firewall opt-in for stricter network containment.claude / codex / opencode auth login, gh auth login),
and — for host-global overlays they placed by hand — that editing
~/.config/aicontainer/* or their host config files takes effect on the next
aic rebuild, in this project and every other one.Keep the handoff concrete — these are copy-pasteable commands, not prose.
docs/user/stack-reference.md (fetched in Step 1) — the stack → files
mapping, the shared files, how to combine stacks, and the fit matrix. Read it
during Steps 2, 4, and 5.references/stack-and-suitability.md — the detection judgment the page
leaves out (services, design docs, greenfield repos) and how to handle a
project that doesn't fit. Read it during Steps 2 and 4.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub stefanoginella/aicontainer --plugin aicontainerOther plugins' skills for the same job