/pragmatic-orchestration:stale-data-cleanupfrom pragmatic-orchestration
Finds and removes stale data on developer machines: finished agent workspaces, git worktrees, build output, caches, container images. Runs as a coordinated multi-agent job. Use when disk is full or user asks to free space.
Ships in pragmatic-orchestration. 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.
Read when SKILL.md points to them; scripts run unread.
A full disk on a machine where many agents work is rarely old junk. It is finished work nobody closed, caches, and a remainder only the owner can judge. The job is to tell the three apart by evidence, remove the first two without troubling the owner, and bring them a short list for the third.
The owner asked because they are at a loss. A list of two hundred checkboxes hands the problem back. They want verdicts. Every candidate ends in one of three states: REMOVED, KEPT with a one-line reason, or ASKED, and ASKED is rare.
coordinator-mode and enter it as that
skill describes (executors, journal, capsule); it loads
pragmatic-orchestration for the mechanics. Invoking this skill is the
explicit request that mode asks for: tell the user in one line that this runs
as a multi-agent job, and keep the mode on until they end it. After a
compaction reread this file and the journal first.porch sessions in this pack).| Decide and act | Keep and list | Ask the owner |
|---|---|---|
| Caches, through their tool's own command | Anything a process works in or runs from | Personal content: documents, downloads, recordings, messenger data, cloud-synced folders, the trash |
| Build output and dependency folders of idle projects | Checkouts with uncommitted work or commits that exist nowhere else | Only copies: raw experiment data, exports, backups, customer files |
| Old versions beside a current one; installers; exact duplicates | Session history, memory and settings of agents and applications | Data that waits for a product decision |
| Finished checkouts: work preserved elsewhere, task closed, idle, unoccupied | Records and data in a state that waits for a person | Discarding unfinished work nobody claims |
| Output of tasks whose record is final | Whatever no rule covers, and whatever cannot be proven | Anything that needs privileges, stops a process, or publishes; their own databases and volumes |
Full lists and the question patterns: owner-decisions.md.
scripts/disk_map.py and let every worker query it. Where scans of earlier
runs exist, disk_map.py trend over them shows what grew since: start
there. Name the blind spot
(used space the scan could not read). Find the other actors on the machine
now: live agent sessions, scheduled jobs. Check the access you will need. If
the disk is nearly out of room, free the zero-risk tier first (caches through
their own commands) so the work itself has space.scripts/apply_removals.py,
which re-checks and writes the manifest. Regenerable first, personal last.disk_map.py reconcile explains completely, live projects
still working, space measured again.Tell the owner in one line when a phase changes; an hour of silence on a full disk reads as nothing happening.
The steps in detail, with commands and the table of worker failures: method.md.
Per kind of object, with commands for git, jj, plain copies, task records and containers: evidence.md.
The owner's alone. A general mandate ("delete everything stale", "don't ask me again", an order given in a hurry) never covers these. Only the owner's explicit answer about the named thing does; then you carry it out, or they do where privileges or a running session are involved:
Nobody's to waive. Whoever asks, however urgent:
The user's standing instructions and the project's own rules bind you as well. Where they are stricter than this skill, they win; nothing looser lifts the second list. Workers get no credentialed network access, do not delegate, and do not inherit this role.
The signal that protects unrecoverable work or data wins for now; then find a third source; if none settles it, KEEP and name the open fact. The cases that come up most:
The full playbook and the corner cases: conflicts.md.
Done means: every zone has verdicts, every track is accepted, the control scan reconciles, no worker runs, the journal holds the final state, the report is delivered and the closing questions are asked. Stop earlier when the target is met and the rest is small, when a pass yields little, or when everything left needs the owner. Do not remove things for sport.
The report leads with the result and reads in a minute: before and after; removed, by kind; deliberately kept and why; unfinished work left to its owners; yours to decide, with a recommendation; why the disk filled and the one change that stops it. Stop conditions, the template and follow-ups: completion.md.
A cleanup empties the disk once; what fills it again is usually not what was
removed. The observer is a read-only run every couple of days: one scan,
then disk_map.py trend against the machine's list of stocks, the places
where things accumulate, each marked with who can empty it (rules, owner,
nobody). It reports the free space, the fill rate, the days until the volume
is full and a pressure level. It removes nothing.
File format, reading the result, the report and scheduling: upkeep.md.
Standard-library Python, macOS and Linux. SKILL_DIR is this file's directory;
use the Python launcher the user's instructions prescribe, else python3.
python3 SKILL_DIR/scripts/disk_map.py scan ROOT -o scan.json # macOS: /System/Volumes/Data; remote: ssh HOST python3 - scan / < disk_map.py
python3 SKILL_DIR/scripts/disk_map.py query scan.json DIR --depth 2 # size and age of the newest file per folder
python3 SKILL_DIR/scripts/disk_map.py diff before.json after.json
python3 SKILL_DIR/scripts/disk_map.py reconcile before.json after.json --manifest M.tsv
python3 SKILL_DIR/scripts/apply_removals.py LIST.tsv --allow-prefix DIR --manifest M.tsv [--apply]
python3 SKILL_DIR/scripts/disk_map.py trend SCANS_DIR --stocks stocks.tsv --target-free 100G # growth per stock, days until full
python3 SKILL_DIR/scripts/disk_map.py rotate SCANS_DIR --keep 8 # drop the oldest scans
uv run --no-project python SKILL_DIR/scripts/observe.py --config observer.ini # scheduled multi-machine observer
apply_removals.py is a dry run without --apply. It refuses or keeps paths
outside the allowed prefixes, protected names, checkouts with uncommitted or
unpushed work, trees with key-like files, anything changed in the last day and
directories a process works in; a row lifts one check only by naming it. Both
tools explain themselves with --help.
| File | Read when |
|---|---|
| method.md | starting; cutting zones; writing rules; a worker stalls; accepting |
| evidence.md | deciding whether a checkout, a cache, data or run output may go |
| conflicts.md | signals, rules, numbers or workers disagree; odd cases |
| owner-decisions.md | about to ask the owner anything, or unsure whether to |
| completion.md | deciding to stop; final checks; writing the report; follow-ups |
| platforms.md | a specific tool's cache, an AI tool's files, a filesystem that will not free space |
| upkeep.md | setting up or running the observer; reading what grew since the last scan |
| observer.ini, observer-launchd.plist, observe.py | script-only scheduled observation and macOS launchd template |
| assets/audit-contract.md, assets/cleanup-contract.md | briefing researchers and executors |
| assets/stocks.tsv, assets/observer-prompt.md | starting a machine's stocks file; a scheduled observation |
agents/openai.yaml (opens in a new tab)assets/audit-contract.md (opens in a new tab)assets/cleanup-contract.md (opens in a new tab)assets/observer-launchd.plist (opens in a new tab)assets/observer-prompt.md (opens in a new tab)assets/observer.ini (opens in a new tab)assets/stocks.tsv (opens in a new tab)references/completion.md (opens in a new tab)references/conflicts.md (opens in a new tab)references/evidence.md (opens in a new tab)references/method.md (opens in a new tab)references/owner-decisions.md (opens in a new tab)references/platforms.md (opens in a new tab)references/upkeep.md (opens in a new tab)scripts/apply_removals.py (opens in a new tab)scripts/disk_map.py (opens in a new tab)scripts/observe.py (opens in a new tab)scripts/tests/observe_test.py (opens in a new tab)scripts/tests/test_apply_removals.py (opens in a new tab)scripts/tests/test_disk_map.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
disk-cleanup, stale-data, workspace-cleanup, cache-cleanup, disk-space
npx claudepluginhub codealive-ai/pragmatic-orchestration --plugin pragmatic-orchestration5 skills in this plugin
/architecture-consiliumConvene a consilium, a council of independent architect models, on a large or risky change in an existing system: researched context, independent designs from several of the strongest models, a choice by evidence, a check by a model that did not write the design, and a specification at the end. Use when the user asks to design, architect or specify a complex change before implementation, wants several models or independent architects on a design, or names this workflow ("architecture consilium", "convene a consilium", "council of architects", "prepare a spec for this change", "собери архитектурный консилиум", "созови консилиум", "спроектируй сложное изменение", "подготовь спецификацию"). Runs as a coordinated multi-agent job in Coordinator Mode and ends with a specification and a status, never with code. Not for a clear local change or a single design question (use pragmatic-architecture or one review), not for implementing a specification, and never for a delegated worker./coordinator-modeSwitch this session into Coordinator Mode: a long-lived role that plans, designs verification, delegates implementation to cheaper executors, accepts results on evidence, and keeps a journal that survives context compaction. Use only when the user explicitly turns Coordinator Mode on or asks to resume it ("coordinator mode", "orchestrator mode", "режим координации"). Not for one-off delegation or reviews (use pragmatic-orchestration), and never for a delegated worker./pragmatic-orchestrationOrchestrate coding agents economically: reach accepted results cheaper and faster by delegating implementation, research, review and media work to the cheapest capable model, in parallel where possible, while the orchestrator keeps design and acceptance. Runs external coding agents (Codex, Claude Code, OpenCode, native Grok Build, Gemini, Devin CLI, Antigravity CLI, Cursor CLI) through the porch CLI; the same briefing and acceptance rules apply to built-in subagents. Use for delegating or parallelizing work across models, saving frontier-model quota, independent single-model opinions and code review, transcribing or describing audio and video, generating, editing or describing images, steerable research, full-access delegation, long-running work, reattaching to delegated runs, viewing subagents in the optional UI, or finding, searching, reading, starting, opening and archiving sessions of Claude Desktop and Codex apps. Not for simple questions answerable from docs or the current codebase./remote-agentsOperate dedicated remote Linux/Windows hosts that run coding agents. Use for provisioning and hardening an agent VM, SSH-over-SSM access with no public ingress, host power lifecycle, the WireGuard/SMB work bridge, running agents remotely through porch, a headless Windows desktop with read-only observation, bounded visual QA, durable managed-worker daemons, phone-visible Codex Remote threads, storage audits, and cleanup evidence. Not for running agents on the local machine — use pragmatic-orchestration directly for that.Other plugins' skills for the same job