claude-folder-janitor

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

A cleanup plug-in for Claude's own data folder. It finds old backups, empty session folders, stale cache files, and transcripts belonging to projects whose folders no longer exist.

In plain words
What is it for?
Use it to preview and then remove the specific safe-to-delete clutter in the Claude folder.
Why use it?
It helps find wasted disk space while reducing the risk of deleting useful Claude settings or history. It lists candidates first and deletes only after an explicit apply action.

Plugin for Claude Code

Written for Claude Code: a Claude Code plugin manifest. Also seen: reads .claude/ paths; mentions CLAUDE.md.

Good fit Use it to preview and then remove the specific safe-to-delete clutter in the Claude folder.

Compare 6 plugins from other repositories ↓
Install in Claude Code
/plugin marketplace add MSApps-Mobile/claude-plugins
/plugin install claude-folder-janitor
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 claude-folder-janitor

README.md
[![agentmods](https://agentmods.dev/badge/plugins/msapps-mobile/claude-plugins/claude-folder-janitor/github.svg)](https://agentmods.dev/plugins/msapps-mobile/claude-plugins/claude-folder-janitor)
Your own site
<a href="https://agentmods.dev/plugins/msapps-mobile/claude-plugins/claude-folder-janitor"><img src="https://agentmods.dev/badge/plugins/msapps-mobile/claude-plugins/claude-folder-janitor/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 claude-folder-janitor

Your own site · 80×15
<a href="https://agentmods.dev/plugins/msapps-mobile/claude-plugins/claude-folder-janitor"><img src="https://agentmods.dev/badge/plugins/msapps-mobile/claude-plugins/claude-folder-janitor.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 121 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

claude-folder-janitor 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 10d ago.

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/claude-folder-janitor/.claude-plugin/plugin.json · 43 lines

How it starts

The opening of the file, as written. The whole thing — 43 lines — stays where its author put it; the contents beside it link to each section on GitHub.

{
  "name": "claude-folder-janitor",
  "description": "Dry-run-first cleanup of ~/.claude: old .claude.json backups, empty session-env folders, a stale changelog cache, and the transcripts of projects whose folders no longer exist. Lists every candidate with size and reason; deletes only on /janitor apply. Never touches skills, plugins, scheduled tasks, settings or history.",
  "version": "0.1.1",
  "author": {
    "name": "MSApps",
    "url": "https://claudeservices.ai"
  },
  "license": "MIT",
  "homepage": "https://github.com/MSApps-Mobile/claude-plugins/tree/main/plugins/claude-folder-janitor",
  "repository": "https://github.com/MSApps-Mobile/claude-plugins",
  "privacy_policy": "https://opsagents.agency/privacy",
  "terms_of_service": "https://opsagents.agency/terms",
  "keywords": [
    "claude-code",
    "cleanup",
    "disk",
    "transcripts",
    "maintenance",
    "sosa-agents"
  ],
  "platforms": [
    "claude-code",
    "cowork"
  ],
  "sosa": {
    "compliant": true,
    "level": 2,
    "impact": "medium",
    "methodology": "https://github.com/MSApps-Mobile/claude-plugins/blob/main/docs/SOSA.md",
    "whitepaper": "https://github.com/MSApps-Mobile/claude-plugins/blob/main/docs/sosa-whitepaper.pdf",
    "pillars": {
      "supervised": "Dry run is the default and lists every candidate with rule, size and reason; deletion happens only on an explicit /janitor apply, which re-derives the same list and removes exactly those paths",
      "orchestrated": "dry run → review → apply → summary (removed, failed, KB freed, elapsed); one eligibility function per rule decides both the listing and the deletion",
      "secured": "Local filesystem only, no network, no credentials, never sudo; every path is checked to resolve inside ~/.claude under one of four rule roots and never under skills/, plugins/, scheduled-tasks/, CLAUDE.md, settings*.json or history.jsonl",
      "agents": "R=claude-folder-janitor, T=bash+find+du, M=none (stateless), P=dry-run-then-apply"
 

Read the full file on GitHub · 43 lines

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 — 121 tokens a session between them. Each is measured on its own page, and each can be installed alone.

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. 10d ago First seen · 43 lines scan A b89be45a968a

Subscribe to this mod's changes

claude-folder-janitor is a plugin published in the GitHub repository MSApps-Mobile/claude-plugins (10 stars, last pushed yesterday), 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-27.

Related

claude-folder-janitor compared with plugins from other repositories

claude-folder-janitor next to 6 plugins from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
claude-folder-janitorMSApps-Mobile/claude-pluginsPlugin10yesterdayMITA—Claude Code
moai-coworkermodu-ai/moai-coworkPlugin31528d agoApache-2.0A—Claude Code
moai-officermodu-ai/moai-coworkPlugin31528d agoApache-2.0A—Claude Code
agentic-osnaveedharri/benai-skillsPlugin7828d agoMITA—Claude Code
file-lifecyclechoiyounggi/groundworkPlugin42d agoMITA—Claude Code
ai-psychiatryihabkhaled/AI-PsychiatryPlugin111mo agoMITA—Claude Code
rad-google-workspaceRadOrigin-LLC/RAD-Claude-SkillsPlugin52mo agoApache-2.0A—Claude Code