بنقرة واحدة
workbench-runtime-hygiene
Disk, swap, VM, agent workspace, and stale session hygiene for Multica workbench runtimes.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Disk, swap, VM, agent workspace, and stale session hygiene for Multica workbench runtimes.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Strict parser and validator for Workbench closeout comments, verdict/status discipline, PR reference types, and cross-issue REMAINING sync.
Scout, pilot, or review Mirage virtual-filesystem tool use for Workbench agents while preserving source-of-truth and public-safety boundaries.
Source-first, self-loop resistant guardrails for Capy GitHub dialogue responders before any write-capable PR, issue, or review action.
Advisory-only algorithm and data-structure review gate between Technical Design and Task List.
Durable memory, session summaries, decision logs, issue closeout synthesis, and compact handoffs.
Use when an operator asks what changed recently, what was left hanging, what can move now, "gm", "where are we", or when a session-derived update needs to become visible to the whole Workbench. Recall recent memory, verify live repo/issue/automation state, surface drift first, and produce a short evidence-labeled action menu.
| name | workbench-runtime-hygiene |
| description | Disk, swap, VM, agent workspace, and stale session hygiene for Multica workbench runtimes. |
Use this skill for runtime cleanup, disk/swap pressure, VM residue, stale conversation/session closeout, Codex/Multica/OpenClaw worktree growth, and Sanity-backed closeout checks.
Runtime hygiene is operations work. It protects throughput without destroying evidence.
Start with SELF_AWARENESS_BOOTSTRAP and name:
*/codex-home/.tmp plugin sync caches. Move to Trash or prune
with the named guard only after the exact batch is approved.Never hard-delete and never empty Trash.
Exception: scripts/multica-codex-cache-janitor.sh --apply may prune only
completed-run */codex-home/.tmp directories after dry-run review. Active runs,
missing .gc_meta.json, or missing completed_at are not eligible.
If mo is installed on the target machine, prefer it for A-tier cleanup:
mo clean --dry-run
mo clean
df -h /System/Volumes/Data
sysctl vm.swapusage
If the operator explicitly approves system-level cleanup, do not call sudo
ad hoc or inside repeated prompts. Use the shared sudo-session wrapper so the
operator authenticates once and nested cleanup stays on a non-interactive sudo
timestamp:
scripts/workbench-sudo-session.sh -- bash -lc 'mo clean --dry-run && mo clean'
The wrapper must not read password files, store passwords, or keep prompting.
If its non-interactive sudo refresh fails, stop and report BLOCK.
Treat mo clean as good evidence when it stays within cache/log/temp cleanup
and reports categories plus freed/free space. Do not run mo purge, Docker
prune, app uninstall, LaunchAgent removal, Colima/Lima cleanup, or project
artifact cleanup without a separate explicit approval.
A conversation/session can close only if:
done or latest review is PASS;Unknown state is FLAG, not permission to close.
df -h /System/Volumes/Data
sysctl vm.swapusage
command -v mo && mo clean --dry-run
scripts/multica-codex-cache-janitor.sh
multica --profile desktop-api.multica.ai daemon status
multica --profile desktop-api.multica.ai issue list --status in_progress --limit 100 --output json
multica --profile desktop-api.multica.ai issue list --status in_review --limit 100 --output json
du -xsh ~/.codex ~/.cache ~/.openclaw ~/.colima ~/Library/Caches 2>/dev/null
Use exact profile/workspace evidence when available, but do not paste private IDs into public docs.
RUNTIME_HYGIENE_REPORT
runtime_surface:
disk_state:
swap_state:
active_task_count:
conversation_count:
issue_backlog:
sanity_sync_state:
tier_a_candidates:
tier_b_candidates:
session_close_candidates:
actions_taken:
trash_batch:
raw_artifacts_kept_out_of_git:
validation:
residual_risk:
next_action:
VERDICT: PASS | FLAG | BLOCK
PASS: pressure is under threshold or approved cleanup/closeout completed
with readback.FLAG: useful candidates exist, but approval, Sanity sync, or active-run
proof is missing.BLOCK: destructive action, credential action, dataset write, daemon
mutation, or unknown source-of-truth risk requires the operator.