/awsh:docker-wsl2-disk-reclaimfrom awsh
Diagnoses and reclaims disk space from Docker Desktop on WSL2 by explaining the three-layer storage model (VHDX, ext4, Docker) and providing a sequence of prune, fstrim, and compaction commands.
Ships in awsh. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
docker system df is lying to youDocker Desktop on WSL2 stores everything in a dynamically-expanding VHDX that never
shrinks. You delete 200GB of images, docker system df drops, and your drive stays exactly
as full as before. People then go looking for the space in the wrong place — or buy a disk.
This skill is the accounting model that explains it, and the sequence that actually reclaims.
Measured on a real box (2026-07-25), a 3.7 TB drive at 98% full: VHDX allocated 2.0 TB · ext4 inside the VM 1.6 TB used ·
docker system df634 GB. Same data, three numbers, a 1.4 TB spread.
VHDX allocated on the host ≥ ext4 "used" inside the VM ≥ docker system df
2.0 TB 1.6 TB 634 GB
└─ what fills your drive └─ what the guest thinks └─ what Docker admits
fstrim.docker system df does
not count — orphaned overlay2 layers from crashed builds, buildkit state, container logs.
A prune will not find this. docker system df is the number everyone looks at and the
least useful of the three.wsl -d docker-desktop -e mount | grep docker-desktop-disk
# /dev/sdd on /mnt/docker-desktop-disk type ext4 (rw,relatime)
# ^^^^^^^^^^ no `discard`
Docker's data disk is mounted without discard. When ext4 frees blocks, nothing tells
the VHDX, so the host file stays pinned at its all-time high-water mark. Other WSL mounts on
the same box do carry discard — this one doesn't. That single missing mount option is the
whole reason a 634 GB working set occupies 2.0 TB.
Run the tool: tools/docker-wsl2-reclaim.sh
docker-wsl2-reclaim.sh # diagnose — read-only, prints all three layers
docker-wsl2-reclaim.sh --trim # prune + fstrim — no downtime, no admin
docker-wsl2-reclaim.sh --plan # prints the admin compaction recipe for YOUR path
1. Prune — shrinks LAYER 3 (and LAYER 2 by the same amount; it does not touch the 2→3 gap). Dangling images and build cache are safe to drop:
docker image prune -f && docker builder prune -af
🪤 Do not hand-roll an "unused images" list by diffing docker images against
docker ps -a --format '{{.Image}}'. Running containers report their image as a short
SHA, not the tag, so a tag-based grep marks in-use images as orphaned. That mistake was
one command away from deleting the images out from under ~15 live services. Stick to the
dangling-only prune above. docker image prune -a lets Docker compute the reference set,
but it deletes every image no container references — including the image of any service
that is currently down or removed — so only run it once you know each of those can be pulled
or rebuilt.
2. fstrim — the step everyone skips. Turns ext4's free blocks into holes the VHDX can
see. Without it, compaction reclaims almost nothing:
wsl -d docker-desktop -e fstrim -v /mnt/docker-desktop-disk
If this reports a small number while LAYER 2 still far exceeds LAYER 3, the space is live
data Docker under-reports — go hunting in /mnt/docker-desktop-disk/data, don't keep pruning.
3. Compact — the only step that shrinks the host file. Needs the VM stopped and administrator:
# Quit Docker Desktop from the tray first
wsl --shutdown
diskpart
select vdisk file="C:\path\to\docker_data.vhdx"
attach vdisk readonly
compact vdisk
detach vdisk
exit
🪤 Prefer diskpart over Optimize-VHD. Optimize-VHD emits no progress whatsoever, so
on a multi-TB file it is indistinguishable from a hang — it gets Ctrl-C'd by people who
assume it's stuck. diskpart compact vdisk prints a percentage. Both need admin; neither can
be run unattended from an agent session, because UAC elevation cannot be scripted away.
Verify it worked — check the host file, not docker system df:
du -h /c/path/to/docker_data.vhdx # allocated, the number that matters
ls -la /c/path/to/docker_data.vhdx # apparent — will still look huge
--trim step. Weekly is plenty; it needs no downtime or admin..wslconfig: [experimental] sparseVhd=true — but understand the limit: it applies to
newly created disks only. It does not retro-fit an already-allocated VHDX, which is
exactly why a box with it enabled still had a 2.0 TB file.Bulk-building images with a large fleet resident crashes the WSL2 backend outright and
produces tens of thousands of Windows disk I/O errors that look exactly like a dying drive.
Different problem, same VM — see docker-wsl2-build-safety for the guard and the
day-distribution check that tells hardware failure apart from load-induced collapse.
du -h on the VHDX actually dropped (not just docker system df)docker ps -q | wc -l at the expected count, --filter health=unhealthy emptyfstrim +
compaction close the 1→2 gap, and the 2→3 gap is live data Docker under-reports that only
hunting in /mnt/docker-desktop-disk/data finds. If the drive is still full, you worked the
wrong layerWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub aitherium/awdk --plugin awsh120 skills in this plugin
/acp-driveDrive any external ACP agent from your agent. The Agent Client Protocol lets one agent drive another. When your task needs a different model, a different tool surface, or a sandbox your loop doesn't have, you can hand a sub-problem to an external ACP agent — Claude Code (claude-agent-acp), Codex (codex-acp), Gemini CLI (gemini-cli), or any binary that speaks ACP on stdio — and read back its answer. Your memory, faculties and approval gate stay in charge; the external agent runs its own loop underneath./acp-serveExpose an AitherOS agent to ACP editors. ACP editors — JetBrains IDEs, Zed, VS Code, neovim, Obsidian — drive coding agents over the Agent Client Protocol. adk acp serve makes any AitherOS agent one of those agents: the editor spawns it as a subprocess, and every prompt, permission request and tool round-trip goes over stdio JSON-RPC. Your agent's approval gate maps onto ACP permission requests./adk-deepseek-coderFill-in-the-middle, repo packing, and a reward that can fail. DeepSeek-Coder is two useful things at once, and most people only take the first./adk-harnessesOne shell that drives every coding shell. Your agent can hand a task to another coding agent's real product — Claude Code, Codex, Gemini CLI, Aider, OpenCode — and read back one answer./adk-unslothLocal training and serving, wired to your agent. [Unsloth](https://github.com/unslothai/unsloth) trains LoRA/QLoRA 2x faster with ~70% less VRAM and serves GGUF locally. Pairing it with the ADK gives you a loop that runs entirely on your own hardware: your agent serves from a local model, you fine-tune on what it produced, you swap the adapter, you measure again./adversarial-verificationStop grading your own homework. There is one failure that costs more agent-hours than any bug: the agent reads its own diff, decides it is correct, and reports success. Every expensive incident has that shape. A green healthcheck. An HTTP 200. A passing import. A test that goes green. All true, all at the same time as the feature being completely inert.Other plugins' skills for the same job