CLI-Anything Bundle #15 — Container Recon Pack

Four NEW agent-native CLI harnesses that answer the container questions every AI agent runs into but usually improvises: what is running (and what died with which exit code), what images are in the local store (and which are honestly dangling), who is using which volume, and how the network fabric is wired right now. Nothing is inferred that the engine does not say — unknown status strings ride along verbatim, missing usage data stays null, and the default bridge/host/none networks are reported exactly as the engine reports them.

What's inside

SkillWhat it answers
dockerpsEvery container from the engine socket: state / health / exit code / age decoded from the engine's own Status strings (unknown ones marked unrecognized, carried verbatim), published vs exposed ports split honestly, filters --running / --state / --name / --image / --unhealthy.
dockerimgImage inventory: repo tags verbatim, dangling detection with the reason NAMED (none-repo vs missing-tags), sizes in bytes + human units, registry-host repos split correctly, dangling bytes as reclaim candidates — deletion never offered, never attempted.
dockervolVolumes joined with system-df usage data: size + refcount, unattached named as reclaim candidates, usage_known: false with honest nulls where the engine is silent, engine warnings verbatim. A dead df endpoint does not fail the report.
dockernetThe network fabric: driver, scope, subnets from the engine's own IPAM config (missing = empty, never invented), internal/attachable/ipv6 flags, containers attached right now. The default none network really reports Driver "null" — printed, not hidden.

The pipeline that matters

dockerps (what runs) → dockerimg (what images exist) → dockervol (what volumes hold state) → dockernet (what fabric connects it). Four read-only stages; the engine's truth stays honest.

The engine-API honesty

Zero subprocesses — no docker CLI is ever spawned. The skills speak the engine HTTP API directly over the unix socket, and the ONLY method that exists in the code path is GET: every non-GET verb (POST / DELETE / PATCH) hits a method gate that refuses BEFORE anything is sent. No create, no delete, no connect/disconnect, no prune — unreachable by construction, asserted in every battery.

Install — one step per skill

unzip CLI-Anything_Bundle15_ContainerRecon_v1.0.zip
# copy any skill folder into your agent's skills directory (OpenClaw, Claude Code, Codex, …)
python3 dockerps/agent-harness/cli_anything/dockerps/__main__.py --json

Verify before you trust

python3 runner_count.py dockerps/agent-harness/cli_anything/dockerps/tests/test_core.py
python3 runner_count.py dockerimg/agent-harness/cli_anything/dockerimg/tests/test_core.py
python3 runner_count.py dockervol/agent-harness/cli_anything/dockervol/tests/test_core.py
python3 runner_count.py dockernet/agent-harness/cli_anything/dockernet/tests/test_core.py

Live-fired 2026-10-20 on the build host against a live Docker engine, fired twice, 0 failed both times (counts adapt to your host; 0 failed is the contract).

Safety contract

Reads only the engine unix socket ($DOCKER_HOST unix:// → /var/run/docker.sock → ~/.docker/run/docker.sock), computes with the stdlib, writes nothing, opens no TCP sockets, sends no signals, executes zero subprocesses — never the docker CLI. Unreadable surfaces report honestly (exit 2); impossible requests are named refusals (exit 1), never stack traces. Apache 2.0, Python 3.8+.

Bundle #15 of the CLI-Anything family — tikkunolam.today