workspace-storage-cleaner
Audits and purges stale artifacts, nested .git clones in brain session directories, oversized task logs, and temporary files across Antigravity Brain and development workspaces.
Files5
View on GitHubSKILL.mdskills/workspace-storage-cleaner/SKILL.md
GitHubWorkspace & Brain Storage Cleaner
Overview
As agent sessions execute, various systems create local storage bloat:
- Antigravity Brain: Subagents or tasks that clone Git repos directly into conversation artifact folders leave behind multi-megabyte
.gitobject stores; long-running processes generate multi-megabytetask-*.logfiles. - Project Workspaces: Stale temporary files (
null,*.tmp,vault-sync.log, legacy dream logs) accumulate over time.
This skill provides an automated audit and cleanup tool to safely reclaim disk space without touching active source code, committed files, or active session memory.
Capabilities
- Brain Audit & Purge:
- Locates nested
.gitfolders in inactive conversation directories (~/.gemini/antigravity/brain/*). - Identifies oversized background task logs (> 2 MB) from completed sessions.
- Protects the currently running conversation session.
- Locates nested
- Workspace Audit & Purge:
- Removes stray root artifacts (
null,vault-sync.log). - Removes redundant installer executables and zip archives.
- Cleans legacy
.ijfw/logs/older than 14 days.
- Removes stray root artifacts (
Usage
1. Audit / Dry-Run (Read-Only)
python C:\dev\skills\workspace-storage-cleaner\scripts\clean-storage.py
2. Execute Cleanup
python C:\dev\skills\workspace-storage-cleaner\scripts\clean-storage.py --apply
Parameters
--brain-root: Custom path to Antigravity brain (defaults to~/.gemini/antigravity/brain).--workspace-root: Path to target workspace (defaults toC:\dev).--current-cid: Active conversation ID to exempt from cleanup.--apply: When provided, executes deletions; otherwise runs in read-only audit mode.