mac-agent-hygiene

mac-agent-hygiene is a plugin for Claude Code from MSApps-Mobile/claude-plugins. Its manifest loads nothing; the 1 skill, 1 command it bundles cost 139 tokens per session together, scanned A, original, MIT.

A Mac cleanup plugin with a daily background task and an MCP server, a tool interface that lets an agent request system operations. It finds regenerable caches and stale Git worktrees, then requires a plan and confirmation before cleanup.

In plain words
What is it for?
Use it to inspect disk usage, review proposed removal of Xcode data, plugin clones, browser caches, or safe stale worktrees, and schedule daily checks on a Mac.
Why use it?
It helps prevent agent work from gradually filling the disk with disposable files. The confirmation step reduces the risk of deleting work that is dirty, unpushed, in use, or still needed.

Plugin for Claude Code

Written for Claude Code: a Claude Code plugin manifest. Also seen: mentions Claude Code.

Good fit Use it to inspect disk usage, review proposed removal of Xcode data, plugin clones, browser caches, or safe stale worktrees, and schedule daily checks on a Mac.

Compare 6 plugins from other repositories ↓
Install in Claude Code
/plugin marketplace add MSApps-Mobile/claude-plugins
/plugin install mac-agent-hygiene
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/MSApps-Mobile/claude-plugins

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mac-agent-hygiene

README.md
[![agentmods](https://agentmods.dev/badge/plugins/msapps-mobile/claude-plugins/mac-agent-hygiene/github.svg)](https://agentmods.dev/plugins/msapps-mobile/claude-plugins/mac-agent-hygiene)
Your own site
<a href="https://agentmods.dev/plugins/msapps-mobile/claude-plugins/mac-agent-hygiene"><img src="https://agentmods.dev/badge/plugins/msapps-mobile/claude-plugins/mac-agent-hygiene/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mac-agent-hygiene

Your own site · 80×15
<a href="https://agentmods.dev/plugins/msapps-mobile/claude-plugins/mac-agent-hygiene"><img src="https://agentmods.dev/badge/plugins/msapps-mobile/claude-plugins/mac-agent-hygiene.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured The manifest loads nothing itself; its 1 skill, 1 command cost 139 tokens a session between them.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Security

Grade A, and why

mac-agent-hygiene scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/mac-agent-hygiene/.claude-plugin/plugin.json · 31 lines

What it actually says

{
  "name": "mac-agent-hygiene",
  "displayName": "MSApps Mac Agent Hygiene",
  "version": "0.1.10",
  "description": "Keeps a Mac that runs Claude Code agents from filling its disk: a daily LaunchAgent plus an MCP server that clears regenerable caches (Xcode DerivedData, leftover plugin clones, browser-profile caches) and reaps stale git worktrees that are clean and already pushed. Plan first, apply on confirm.",
  "author": {
    "name": "MSApps",
    "url": "https://claudeservices.ai",
    "email": "[email protected]"
  },
  "homepage": "https://claudeservices.ai/plugins#mac-agent-hygiene",
  "documentationUrl": "https://github.com/MSApps-Mobile/claude-plugins/tree/main/plugins/mac-agent-hygiene#readme",
  "supportUrl": "https://github.com/MSApps-Mobile/claude-plugins/issues",
  "privacyPolicyUrl": "https://msapps.mobi/privacy",
  "termsOfServiceUrl": "https://msapps.mobi/terms",
  "repository": "https://github.com/MSApps-Mobile/claude-plugins",
  "license": "MIT",
  "keywords": [
    "mac",
    "macos",
    "disk",
    "cleanup",
    "worktree",
    "launchd",
    "mcp",
    "claude-code",
    "agents",
    "sosa-agents"
  ]
}
Contents

What it installs

The manifest is a name and a version. 1 skill, 1 command travel with it, and installing the plugin installs all of them — 139 tokens a session between them. Each is measured on its own page, and each can be installed alone.

Files

What ships with it

1 file beside plugin.json in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · -16 lines face4affc0be
  2. 10d ago Changed 08a944cba0ec
  3. 13d ago Changed 24ced0863785
  4. 1mo ago Changed e89a0511b2df
  5. 1mo ago Changed 65f8371ee530
  6. 1mo ago Changed d458312657ab
  7. 1mo ago Changed 5b9b79212de3
  8. 1mo ago First seen · 47 lines scan A e5186597b9ee

Subscribe to this mod's changes

mac-agent-hygiene is a plugin published in the GitHub repository MSApps-Mobile/claude-plugins (12 stars, last pushed today), licensed MIT. Its token cost is not measured: this kind of file is read by the harness, not the model. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-08.

Related

mac-agent-hygiene compared with plugins from other repositories

mac-agent-hygiene next to 6 plugins from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mac-agent-hygieneMSApps-Mobile/claude-pluginsPlugin12todayMITA—Claude Code
odin-gitOutlineDriven/odin-claude-pluginPlugin402mo agoApache-2.0A—Claude Code
pwdev-statuslinepwdev-solucoes/pwdev-claude-marketplacePlugin31mo agoApache-2.0A—Claude Code
vibe-extrasdoodledood/claude-code-pluginsPlugin401mo agononeA—Claude Code
commit-commandsDennisLiuCk/claude-plugin-marketplacePlugin298mo agononeA—Claude Code
humanizerblader/humanizerPlugin75k10d agoMITA—Claude Code
claude-plugins-official marketplaceanthropics/claude-plugins-officialPlugin49kyesterdayApache-2.0A—Claude Code