TonPC64

Workspace Storage Guard — Git skill for Claude Code

Git community

A shared low-disk-space guard for Hermes Agent, Claude Code, GitHub Copilot CLI, and Codex.

How to install Workspace Storage Guard

This entry records only its repository, not the path inside it, so there is no exact command to give. Open TonPC64/workspace-storage-guard and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Workspace Storage Guard does

A shared low-disk-space guard for Hermes Agent, Claude Code, GitHub Copilot CLI, and Codex.

Alternatives in Git

  • Skill Copilot Provider — GitHub Copilot CLI as optional zero-cost provider via copilot -p programmatic mode 2.8k ★
  • MCP Memory Service — GitHub Repo stars MCP server providing semantic memory and persistent storage for Claude Memory service MCP 1.5k ★
  • Memorix — Open-source cross-agent memory layer for coding agents via MCP 392 ★

README

Workspace Storage Guard

Workspace Storage Guard is a local MCP server and command-line tool for software developers on macOS and Linux. It reports free space, ranks workspace directories by size, and reclaims allowlisted build output such as Cargo debug artifacts, Next.js caches, and `node_modules`. Optional cleanup covers developer caches and unused container resources on Rancher Desktop, Colima, Docker Desktop, Podman, and Kiri.

How it helps

  • See what's taking space. Check free space on your workspace volume and find large directories from your agent or terminal.
  • Reclaim space for development. Clean configured, eligible build outputs when space runs low. You can also opt in to developer cache and container cleanup.
  • Keep an eye on storage. Configure agent hooks or a macOS LaunchAgent to check in the background and optionally notify you.
  • Choose the cleanup scope. Workspace cleanup uses your local allowlists and checks whether paths are safe to clean. Generated files may need to be rebuilt afterward.

How it works

flowchart LR
    A[Agent via MCP
or terminal] --> B[Check or scan storage] A --> C[Request cleanup] D[Configured hooks
or LaunchAgent] --> C C --> E{Free space below
the minimum?} E -- Yes --> F[Clean eligible
allowlisted output] F --> G[Optionally clean caches
and container resources] G --> H[Aim for the
free-space target] E -- No --> I[No normal cleanup needed]

The minimum triggers normal cleanup, and the target controls when it stops trying new candidates. Cleanup can finish below the target if there is nothing else eligible or it runs out of time. Forced cleanup can process eligible workspace output regardless of free space. [See the cleanup flow](docs/usage.md#how-cleanup-works)

Install from PyPI

Install uv and create your local config. Then run the published MCP server with `uvx` in Hermes Agent, Claude Code, GitHub Copilot CLI, or Codex. [Setup