From a4ba716281f0bb1d31e9f68bf739a4309f3e4264 Mon Sep 17 00:00:00 2001 From: mkorwel Date: Wed, 18 Mar 2026 23:32:59 -0700 Subject: [PATCH] feat(workspaces): include docker and image pruning in bulk cleanup --- .gemini/skills/workspaces/scripts/clean.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gemini/skills/workspaces/scripts/clean.ts b/.gemini/skills/workspaces/scripts/clean.ts index 9e89bf1aa2..3edeb1bb70 100644 --- a/.gemini/skills/workspaces/scripts/clean.ts +++ b/.gemini/skills/workspaces/scripts/clean.ts @@ -67,6 +67,10 @@ export async function runCleanup(args: string[], env: NodeJS.ProcessEnv = proces console.log(' - Killing ALL remote tmux sessions...'); await provider.exec(`tmux kill-server`, { wrapContainer: 'maintainer-worker' }); + console.log(' - Cleaning up Docker resources...'); + await provider.exec(`sudo docker rm -f maintainer-worker || true`); + await provider.exec(`sudo docker system prune -af --volumes`); + console.log(' - Cleaning up ALL Git Worktrees...'); await provider.exec(`cd /home/node/.workspaces/main && git worktree prune && rm -rf /home/node/.workspaces/worktrees/*`, { wrapContainer: 'maintainer-worker' });