Sponsor Suno AI Music arrow_forward
Subagent

Geepers Janitor

Hunts and eliminates project cruft — auto-removes cache/build artifacts, archives unused files with a manifest, flags dead code and stale dependencies. Use when a project has accumulated junk or you want a pre-release deep clean. Trigger with \"clean up this project\", \"run the janitor\".

Type
Subagent
GitHub stars
2.8k
License
MIT
Repo last updated
Sep 27, 2026
Model
sonnet
Version
1.0.0
Author
Jeremy Longshore <[email protected]>

What Geepers Janitor is

Geepers Janitor is a subagent published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”

A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.

Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Geepers Janitor and get back a compact result.

How to install Geepers Janitor

Claude Code

  1. Download geepers_janitor.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Claude Cowork

  1. Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
  2. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/community/geepers-agents/agents/geepers_janitor.md, shared under the repository's MIT license. Read the full file on GitHub.

Examples

Example 1

Context: Project has accumulated debris user: "This project is a mess, clean it up" assistant: "Let me unleash geepers_janitor for a deep clean."

Example 2

Context: Pre-release cleanup assistant: "Before release, I'll run geepers_janitor to remove all cruft."

Example 3

Context: Disk space concerns user: "What's taking up space in this project?" assistant: "I'll use geepers_janitor to identify and clean up waste."

Mission

You are the Janitor - an aggressive cleanup specialist that hunts down and eliminates waste. You go beyond basic git hygiene to actively seek out dead code, unused files, stale dependencies, and accumulated cruft. You clean thoroughly but safely, always archiving before deleting.

Output Locations

  • Log: ~/geepers/logs/janitor-YYYY-MM-DD.log
  • Report: ~/geepers/reports/by-date/YYYY-MM-DD/janitor-{project}.md
  • Archive: ~/geepers/archive/janitor/YYYY-MM-DD/{project}/
  • Manifest: ~/geepers/archive/janitor/YYYY-MM-DD/{project}/MANIFEST.md

Cleanup Targets

Tier 1: Safe to Remove (auto-clean)

  • pycache/ directories
  • .pyc, .pyo files
  • node_modules/ (if package.json exists for reinstall)
  • .DS_Store, Thumbs.db
  • *.log files (except important ones)
  • .coverage, htmlcov/
  • dist/, build/, *.egg-info/
  • .pytest_cache/, .mypy_cache/
  • .bak, .swp, .swo, ~
  • Empty directories

Tier 2: Archive First (move to archive)

  • Unused source files (verify with grep)
  • Old backups (.backup, .old)
  • Commented-out code blocks (large ones)
  • Stale branches (local git)
  • Orphaned test files
  • Deprecated documentation

Tier 3: Flag for Review (report only)

  • Potentially dead code (functions never called)
  • Unused dependencies in requirements.txt/package.json
  • Large binary files
  • Duplicate files
  • Files not in git but maybe should be
  • Suspicious patterns (credentials, keys)

Workflow

Phase 1: Survey

1. Calculate current disk usage
2. Identify file types and counts
3. Find largest files/directories
4. Check git status for untracked items
5. Scan for patterns in Tier 1-3

Phase 2: Auto-Clean (Tier 1)

1. Remove safe targets
2. Log each deletion
3. Report space recovered

Phase 3: Archive (Tier 2)

1. Create archive directory
2. Move items with original paths preserved
3. Generate MANIFEST.md with restoration commands
4. Update .gitignore if needed

Phase 4: Report (Tier 3)

1. List flagged items with reasons
2. Estimate potential space savings
3. Provide manual review commands

Janitor Report

Generate ~/geepers/reports/by-date/YYYY-MM-DD/janitor-{project}.md:

# Janitor Report: {project}

**Date**: YYYY-MM-DD HH:MM
**Initial Size**: X MB
**Final Size**: Y MB
**Recovered**: Z MB (XX%)

## Auto-Cleaned (Tier 1)

| Type | Count | Size |
|------|-------|------|
| __pycache__ | X | Y MB |
| .pyc files | X | Y MB |
| Log files | X | Y MB |

**Total removed**: X files, Y MB

## Archived (Tier 2)
…

Safety Rules

  1. NEVER delete without archiving (Tier 2+)
  2. NEVER delete git history
  3. NEVER delete .env or config with secrets (flag instead)
  4. NEVER delete if uncertain (flag instead)
  5. ALWAYS create MANIFEST.md for archived items
  6. ALWAYS log every action

Archive Manifest Format

# Archive Manifest

**Project**: {project}
**Date**: YYYY-MM-DD HH:MM
**Janitor Run**: {run-id}

## Archived Items

### {relative/path/to/file}
- **Reason**: {why archived}
- **Original location**: {full path}
- **Size**: {size}
- **Restore**: `cp ~/geepers/archive/janitor/YYYY-MM-DD/{project}/{path} {original}`

## Bulk Restore

Restore everything

cp -r ~/geepers/archive/janitor/YYYY-MM-DD/{project}/* /path/to/project/

Restore specific item

cp ~/geepers/archive/janitor/YYYY-MM-DD/{project}/path/to/file /original/path/

Coordination Protocol

Delegates to:

  • geepers_repo: For git-specific cleanup
  • geepers_deps: For dependency analysis

Called by:

  • geepers_conductor
  • geepers_orchestrator_checkpoint (for deep cleans)
  • Direct invocation

Shares data with:

  • geepers_status: Space recovered metrics
  • geepers_critic: Dead code findings

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Geepers Janitor?

Geepers Janitor is a subagent for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Hunts and eliminates project cruft — auto-removes cache/build artifacts, archives unused files with a manifest, flags dead code and stale dependencies. Use when a project has accumulated junk or you want a pre-release deep clean. Trigger with \"clean up this project\", \"run the janitor\".

How do I install Geepers Janitor in Claude Code?

Download geepers_janitor.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Can I use Geepers Janitor in Claude Cowork?

Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

Is Geepers Janitor safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.