Devcontainer addon
Give the repository a reproducible, isolated development container — one that people, editors and coding agents can all use. In DWP v8 (pack v8.0.6) this addon integrates devcontainer-kit, an MIT product that works without Deep Work Plan. It is optional: a repository is fully conformant without it.
Deep Work Plan has four pillars: spec-first plans, the repository as the harness, loop engineering, and measured efficiency. Addons and integrations can extend the harness and loop; the methodology works on its own.
What devcontainer-kit provides
- A template, built on the Dev Containers specification, that
dck initrenders into the repository in one fixed layout:.devcontainer/devcontainer.json,docker/local/<service>/Dockerfile,docker/local/docker-compose.yamlanddev.sh. Run again later, it reconciles and never clobbers your edits; any change to an existing file is shown first and needs consent. - The repository’s own container. The Dockerfile starts from the runtime’s official image pinned by digest —
node-24,python-3.13ordebian— and copies the kit’s build steps intodocker/local/<service>/dck/. No shared base image is involved. dev.shanddck.bash dev.sh upbuilds, starts and attaches the container from a plain terminal;shell,rebuild,doctorand the rest work with or without VS Code or Cursor.- Herdr both ways. The host’s Herdr attaches each container as a machine over a loopback-only SSH server, and the container opens with the standard sidebar: App, Editor, Development and Agents. Every workspace and pane, including the ones opened later, starts in the app path (
/appby default). Inside, herdr-peers lets agents ask agents on the host and in other containers. - The
dck-dockerfileskill. An agent creates or regenerates a repository’s container on request and proves it with a real build.
Install
git clone --branch v1.4.4 https://github.com/DailybotHQ/devcontainer-kit && ./devcontainer-kit/install.sh
cd your-repo && dck init && bash dev.sh up
Requirements: bash 3.2 or newer and python3 3.11 or newer on a Linux or macOS host, and Docker with Compose v2 for the container commands. Verify a release with its SHA256SUMS asset. Pin v1.4.4: v0.2.0 is unsupported.
| Item | Value |
|---|---|
| Product | DailybotHQ/devcontainer-kit, tag v1.4.4, interface 2 |
| Registry key | devcontainer in .dwp/config.json |
| Per-repository config | .devcontainer/dck.toml |
| Detection | dck doctor --json |
Stable since v1.0.0. The public interface follows semantic versioning and changes incompatibly only in a new major version (and, for the files, a new interface number): the dck verbs with their documented flags and exit codes (0 ok, 1 failed, 2 usage, 3 configuration, 4 environment, 5 refused), the dck.toml, host-profile and dck doctor --json schemas (interface 2), and the render contract — the files dck init writes and owns, the dck:managed markers and user blocks it preserves, and the environment the entrypoint reads. Nothing breaks from v0.3.7: run dck init and dck rebuild so the image carries the current pins. The v1.4.4 image bakes Herdr 0.9.5, herdr-peers 2.2.1, coding-agents-kit 1.5.1 and DeepWorkPlan Vim 1.1.0.
Layers
Every container carries the development tools — git, gh, ripgrep, an SSH server, Herdr and herdr-peers — and no secret unless you opt in to host accounts. The rest is a layer you choose in dck.toml:
| Layer | Default | What it adds |
|---|---|---|
agents |
off | coding-agents-kit from its verified release and the CLIs you list, each with its own persistent volume, plus the classic (claudex, codexx, …) and providers (claude-glm, codex-azure, …) presets. Agents run in autonomy by default — the container is the sandbox. Opt-out: AGENTKIT_PERMISSIONS=ask in the service .env. |
editor |
on | Neovim with DeepWorkPlan Vim pinned by tag; off gives a plain editor. |
dailybot |
off | The Dailybot CLI, for the dailybot addon. |
Logins, gh, the Herdr configuration and the git identity survive bash dev.sh rebuild. With the agents layer, the image also carries coding-agents-kit’s three skills (agentkit, agentkit-setup, agentkit-orchestrate), linked into every agent’s skills directory at each start, so a recreated container keeps them.
The state volume (SSH host key, ~/.ssh, gh login, Herdr client state, history) is named state. When several services share one compose project, give each its own name with [compose] state_volume in dck.toml (or dck init --state-volume NAME); otherwise they all mount the same volume, and dck doctor says so.
Agents across machines
Since v0.2.3, dck up wires a two-way mesh with no hand step, on Docker Desktop:
- Containers and the host. Agents inside reach Herdr agents on the host, in every other dck container and in the other loopback containers your host’s Herdr already manages — and those reach back. Every peer carries a pinned host key; nothing is trusted on first use.
- An optional host listener.
dck setupoffers, once, a user-level SSH server on127.0.0.1that accepts only the dck key and is kept running by launchd (macOS). If you already run a loopback listener, point the host profile at it instead.dck host listener disableremoves it. - Survives rebuilds. The container’s Herdr machine catalog lives on a volume, so
bash dev.sh rebuildkeeps every machine registered inside. Sincev0.3.2,rebuild,startandrestartrun the same steps asup: the container is registered with the host’s Herdr again, its host key re-pinned, and the mesh pushed, so a container built from scratch reaches the host and its peers at once. - Codex panes inside a container. A Codex agent needs
HERDR_PEERS_SELF, the container’s machine id as saved on the host, to ask peers on other machines. Sincev0.3.3the kit records that id at every registration and the container’s login shells export it, so no agent sets it by hand;dck doctorflags a mismatch. Sincev0.3.4the container’s own Codex configs skip Codex’s startup update check and its background daemon (the kit pins every CLI version), never touching your host’s Codex home or a shared profile. - Replies from the host too.
dck setupinstalls a verified herdr-peers on the host, sodck agentsanddck askwork there, and host agents answer withherdr-peers reply. - Containers the kit did not create. List the public keys they log in with under
[ssh] authorized_extrain your host profile, and they can reach dck containers too.
Pair it with coding-agents-kit on the host and in the container, and the same ak launches agents on both sides.
Host accounts inside the container
A container can use the accounts you already have on the host, the way git already works through the host’s SSH agent, with no login inside. It is opt-in and lives in your host profile, never in a repository’s dck.toml:
[agents]
host_profiles = true # default false
host_env_keys = ["ZAI_CODING_API_KEY"] # allow-list of env names to share
With host_profiles on, dck up shares only the profiles of the CLIs the repository installs:
- Claude Code through a long-lived token per profile:
CLAUDE_CODE_OAUTH_TOKENfor@defaultandCLAUDE_CODE_OAUTH_TOKEN_<SUFFIX>for@name(the suffix uppercased, any character outsideA-Z,0-9and_turned into_). - Codex through its auth file, for
@defaultand for each profile. - The kit’s env file, read-only and reduced to the names in
host_env_keys.
The whole agentkit home is never mounted, and profiles that hold absolute host paths are skipped. A Codex login shared read-write can be refreshed by two writers at once: keep one active agent per Codex account. [agents] default_profile in the host profile (for example { claude = "@work3" }) makes a bare ak claude inside use that shared account (coding-agents-kit ≥ v0.5.2); a macOS @default Claude login lives in the Keychain and cannot be shared. Since v0.3.4 the container’s shells also point a plain claude or codex at that account, so panes Herdr restores open on it instead of a login screen. Inside the container, the same ak <kind> @<profile> runs on the same account as on the host, which is what lets a lead hand container lanes the accounts ak pick chose — see Running many agents.
Several repositories, one compose stack
Since v0.3.3, a repository whose service is one part of a larger compose project (an API, a web app, workers and a database sharing one project) can join it without hand-editing what dck renders. Everything is additive: a repository that sets none of these keys renders exactly as before.
- One project, one state volume per service.
[compose] projectnames the shared project in every repository;state_volume,[compose] networksand[compose] volumeskeep each service’s state and the stack’s data volumes and networks apart. - A user block. Lines between
# >>> user:<service> >>>and# <<< user:<service> <<<inside the dck service are kept verbatim: plain keys for what dck does not render (depends_on,healthcheck), andx-dck-merge:for keys it does. A file with only some of dck’s markers is refused with the fix instead of being rewritten. - Port strings.
ssh_portandportsaccept compose expressions such as"${API_PORT:-8000}:8000"; they stay on127.0.0.1unless the string names a host IP. - Shared builds and your own launcher.
[build] contextand[build] dockerfilecover a Dockerfile shared by several services;dev_sh = falsekeeps a repository’s owndev.sh. - Workspace satellites. Since
v0.3.5, a second instance of the service in its own compose project starts and stops through dck (dck --project P --compose-file F --service S upordown), so it gets the same host key, accounts, git identity and Herdr machine as the main one;up --seed-state-from VOLUMEcopies only the logins into its empty state volume. In an overlay file,extendsmust name the file it extends. - Node for agents. The agents’ own Node lives under
/opt/dck/nodeand never replaces the image’s;[agents] node_first = trueputs it first on PATH when the repository’s tooling needs that.
The host’s SSH keys inside the container
Some tools read only key files and ignore the forwarded agent: gh auth login, for example, offers to generate a new key. Since v0.3.2 you can opt in, in your host profile only (a repository’s dck.toml cannot set it; dck setup asks once, default no):
[ssh]
copy_keys = true # default false
While it is on, dck up binds the host’s ~/.ssh read-only at ~/.ssh_host, and every start copies its id_* keys into the container’s ~/.ssh (private keys 0600), kept in step with the host. Agent forwarding is unchanged, and turning it off removes the copies at the next start. The cost: the whole host ~/.ssh is readable inside the container, and the private keys rest in the state volume.
From devcontainer-kit 1.3.0 (interface 2)
Release 1.3.0 keeps interface 2 and adds one opt-in key; a repository that does not set it renders exactly as before.
[compose] container_only. Workspace subpaths listed here are mounted as project-scoped named volumes (co-<path-slug>, for exampleco-app-node_modulesover/app/node_modules), read-write, on the main service. What the container builds there never reaches the host’s checkout. The case it exists for: the workspace is a bind mount, and annpmorpnpminstall inside the container on a macOS or Windows host replacesnode_moduleswith its own platform’s build, breaking the host’s install.- Ownership at every start. The entrypoint gives each mount point to the configured user at every container start; once the user owns it, this does nothing.
- One mount per path. A path the user block also mounts is refused, and so is a derived volume name already used by
compose.state_volumeor[compose] volumes. Thedck.tomlschema (dck-config-v2.json) gains the key.
The 1.3.0 image baked the same versions as 1.2.0: herdr-peers 1.3.1, coding-agents-kit 1.4.0 and DeepWorkPlan Vim 1.0.1, with the vendored pack 7.12.1.
From devcontainer-kit 1.4.0 (interface 2)
Release 1.4.0 keeps interface 2 and moves the versions the image bakes; dck’s own surface is unchanged.
- herdr-peers 2.1.0 (protocol 2). Lead appointment on the human’s explicit word, the opt-in fail-closed autopilot brain and the plan queue arrive with 2.0.0; asks, notices and replies stay compatible with 1.x peers. 2.1.0 adds the
fleet uiviews, denies a permission the daemon cannot accept instead of leaving the agent waiting, and reads pack 8.0’s blocker classes. dck never starts the daemon. - coding-agents-kit 1.5.0 (interface 1). Under
AGENTKIT_PERMISSIONS=askor--ask, each CLI’s own ask mode is enforced, so an account whose settings default to an autonomous mode no longer starts autonomous;ak run --jsonreports token counts only when the CLI does. Theagentslayer still spells no autonomy flag. - DeepWorkPlan Vim 1.1.0. The same Neovim (0.12.5); the editor renders the pack 8.0 plan queue, structured blockers and autonomy posture read-only, and a v7 plan renders as before.
- The repository dogfoods DeepWorkPlan 8.0.1. New plans write
plan-contract/v8; v7, v6 and v5 plans keep their generation.
From devcontainer-kit 1.4.1 (interface 2)
Release 1.4.1 is a patch: the image bakes herdr-peers 2.2.0, which adds the opt-in autopilot --loop --revive (one fresh agent for a plan whose lead and successors are all gone, granted by the human who starts the daemon), and the repository dogfoods DeepWorkPlan 8.0.2. Interface 2, coding-agents-kit 1.5.0, DeepWorkPlan Vim 1.1.0 and dck’s own surface are unchanged; dck never starts the daemon.
From devcontainer-kit 1.4.2 (interface 2)
Release 1.4.2 is a patch: the node-24 image moves to the Node 24.22.3 security release (1.4.1 pinned 24.21.0, so dck init could downgrade a repository on 24.22.x), and herdr-peers’ state — the delegation log, lead records, replies and autopilot state under ~/.local/state/herdr-peers — now stays on the container’s state volume (mode 0700) and survives a rebuild. Interface 2, herdr-peers 2.2.0, coding-agents-kit 1.5.0 and DeepWorkPlan Vim 1.1.0 are unchanged.
From devcontainer-kit 1.4.3 (interface 2)
Release 1.4.3 is a patch: the image moves to Herdr 0.9.5, now downloaded from herdrdev/herdr (where the project moved) and checked against the vendor’s release digests — 0.9.4 keeps the Herdr server running when the shell that started it closes — and to herdr-peers 2.2.1, whose autopilot --loop --revive refuses to start without coding-agents-kit 1.3.0 or newer. Interface 2, coding-agents-kit 1.5.0, DeepWorkPlan Vim 1.1.0 and dck’s own surface are unchanged; dck never starts the daemon.
From devcontainer-kit 1.4.4 (interface 2)
Release 1.4.4 is a patch: the agents layer moves to coding-agents-kit 1.5.1, whose ak install and ak update keep the native platform binary of npm-installed CLIs (Codex first) and fail an install whose CLI cannot start, and the dailybot layer moves to the Dailybot CLI 3.29.2, its wheel checked against PyPI’s SHA-256. Interface 2, Herdr 0.9.5, herdr-peers 2.2.1, DeepWorkPlan Vim 1.1.0 and dck’s own surface are unchanged.
Security defaults
- Every published port binds
127.0.0.1unlessdck.tomlsetsbind. - Git over SSH goes through the host’s SSH agent — its socket, never a key file and never a mounted
~/.sshor~/.gitconfig, unless you turned oncopy_keysin your host profile. The git identity comes fromDCK_GIT_*values thatdck setupfills. - SSH host keys are generated at runtime into a per-project volume, never baked into an image; the server accepts public keys only, with no root login and no passwords.
- The template adds no
cap_add, noprivilegedmode and no Docker socket. - Every download is pinned by version and verified by checksum; the base image is pinned by digest.
- The Herdr mesh that lets agents in one container reach the others is on by default and documented with its off switches in the kit’s threat model. The host listener lets code in a running container open a shell on the host as you: it is opt-in, loopback-only, accepts only the dck key and comes off with
dck host listener disable.
Notes
Optional and never required. A repository is fully conformant with zero optional addons. Linux and macOS hosts are supported; the mesh between containers needs Docker Desktop.