/awsh:repo-is-not-a-runtimefrom awsh
Enforces two architectural rules for agent-driven repos: keep runtime data outside the checkout and attach TTLs with reapers to all ephemeral resources. Prevents disk-filling bloat from abandoned worktrees, caches, and service state.
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.
Two rules. Both sound obvious. Both are violated by nearly every repo that has had agents working in it for a few months, and the violation is invisible until a disk fills at 3am.
RULE 1 — A repository is a SOURCE artifact, not a runtime. Nothing a service or an agent writes may live inside the checkout.
RULE 2 — Every ephemeral resource an agent creates must have a REAPER. Created-by, a TTL, and something that actually deletes it. Otherwise it is forever.
Measured on a real platform (2026-07-26): a checkout at 1.15 TB, of which .git
was 4.7 GB. The repository was 0.4% repository.
| what | size | which rule |
|---|---|---|
data/ — service runtime state | 490 GB | Rule 1 |
.claude/worktrees/ — 32 abandoned agent worktrees | 295 GB | Rule 2 |
AitherOS/ — training data + models beside source | 237 GB | Rule 1 |
.iso-out/, .build-tars/, .hf-cache/, .cache/ | 62 GB | Rule 1 |
.git — the actual repository | 4.7 GB | — |
Reaping the worktrees alone returned 326 GB.
Runtime data inside a checkout is not merely untidy — it multiplies:
git status becomes noise, so real changes hide among generated files, and
"744 uncommitted files" stops meaning anything.The fix is one line of indirection: services take their data path from an env var that points outside the tree.
# not this
DATA_DIR=./data
# this
DATA_DIR="${APP_DATA_ROOT:?set it outside the checkout}"
Then the checkout can be deleted and recloned at any time without losing state — which is the actual definition of "source artifact".
Agent harnesses create throwaway resources constantly: git worktrees per isolated task, build tarballs, image layers, scratch containers. Each one is individually reasonable. None of them clean up. There is no natural back-pressure — you notice at 100% disk, never at 60%.
Anything an agent creates needs three properties:
If you cannot name the reaper, you have not built a feature, you have built a leak.
Doctrine without a gate is a wish. Wire
tools/repo-hygiene-audit.sh into CI or a
pre-push hook:
repo-hygiene-audit.sh # fast checks, exit 1 on violation
repo-hygiene-audit.sh --deep # adds the .git : working-tree ratio (slow walk)
repo-hygiene-audit.sh --warn # report only, never fail the build
It fails on: bulk runtime directories inside the tree, agent worktrees older than
REPO_WT_MAX_AGE_DAYS, and worktree registration drift.
Pair it with agent-worktree-reaper.sh for
Rule 2, and see agent-disk-hygiene for the safety gate
that makes reaping non-destructive.
🪤 Every size probe must be time-boxed. The repos that most need this audit are
exactly the ones where du -sm . never returns — the first cut of this tool hung
for nine minutes on the tree it was written for. A directory too large to measure is
itself the finding; report it and move on rather than blocking the gate.
Do it in this order — the cheap reversible steps first:
git diff archive is NOT a backup: it
silently leaves out untracked files, which is exactly where an agent's new work lives.
Use agent-worktree-reaper.sh, which commits
tracked and untracked changes into a reclaim/<name> branch and verifies the snapshot
before removing anything; restore one with git worktree add <dir> reclaim/<name>.
Biggest win (326 GB here), and low risk only while that snapshot is verified..hf-cache, .build-tars, .cache, .iso-out — pure
regenerable output. Point them at a path outside the tree by env var.data/, logs/. Needs a service restart, so schedule
it; verify each service reads the new path before deleting the old one.git worktree list matches what is on diskWhat SKILL.md sets; muted values are Claude Code's defaults
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