cleanup

cleanup is a command for Claude Code from GoogilyBoogily/googilyboogily-claude-power-tools. It costs 14 tokens per session (2,412 once invoked), scanned C, original, MIT.

A cleanup command for removing temporary debug files, test artifacts, and development status reports from a project.

In plain words
What is it for?
Use it to inspect the project and clean up matching temporary files and reports.
Why use it?
Development leftovers can clutter the workspace and may be accidentally committed to version control.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; mentions subagents; mentions Claude Code.

Part of the dev-utilities plugin — 2 commands shipped together

Good fit Use it to inspect the project and clean up matching temporary files and reports.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/googilyboogily/googilyboogily-claude-power-tools/cleanup
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/GoogilyBoogily/googilyboogily-claude-power-tools

Made for: Claude Code.

Or install dev-utilities, the plugin that ships this one along with the rest of its 2 commands.

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 cleanup

README.md
[![agentmods](https://agentmods.dev/badge/commands/googilyboogily/googilyboogily-claude-power-tools/cleanup/github.svg)](https://agentmods.dev/commands/googilyboogily/googilyboogily-claude-power-tools/cleanup)
Your own site
<a href="https://agentmods.dev/commands/googilyboogily/googilyboogily-claude-power-tools/cleanup"><img src="https://agentmods.dev/badge/commands/googilyboogily/googilyboogily-claude-power-tools/cleanup/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 cleanup

Your own site · 80×15
<a href="https://agentmods.dev/commands/googilyboogily/googilyboogily-claude-power-tools/cleanup"><img src="https://agentmods.dev/badge/commands/googilyboogily/googilyboogily-claude-power-tools/cleanup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,412 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00014 $0.02412
Opus 5 $0.00007 $0.01206
Sonnet 5 $0.00003 $0.00482
Haiku 4.5 $0.00001 $0.00241

Measured 12d ago against content hash b4a8aeaf5e4d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade C, and why

cleanup scanned grade C with 1 finding 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 12d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- For untracked/ignored files: `rm -f` or `rm -rf` for directories
plugins/dev-utilities/commands/cleanup.md · 206 lines

How it starts

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

Purpose

Clean up temporary files and debug artifacts that Claude Code commonly creates during development sessions. These files clutter the workspace and should not be committed to version control.

Context

!git status --porcelain && git status --ignored --porcelain | grep "^!!" && echo "--- PWD: $(pwd) ---" && ls -la && if [ -z "$(git status --porcelain)" ]; then echo "WORKING_DIR_CLEAN=true" && git ls-files | grep -E "(analyze-.*\.(js|ts)|debug-.*\.(js|ts)|test-.*\.(js|ts|sh)|.*-test\.(js|ts|sh)|quick-test\.(js|ts|sh)|.*-poc\..*|poc-.*\..*|.*_poc\..*|proof-of-concept-.*\..*|verify-.*\.md|research-.*\.(js|ts)|temp-.*/|test-.*/|.*_SUMMARY\.md|.*_REPORT\.md|.*_CHECKLIST\.md|.*_COMPLETE\.md|.*_GUIDE\.md|.*_ANALYSIS\.md|.*-analysis\.md|.*-examples\.(js|ts))$" | head -20 && echo "--- Found $(git ls-files | grep -E "(analyze-.*\.(js|ts)|debug-.*\.(js|ts)|test-.*\.(js|ts|sh)|.*-test\.(js|ts|sh)|quick-test\.(js|ts|sh)|.*-poc\..*|poc-.*\..*|.*_poc\..*|proof-of-concept-.*\..*|verify-.*\.md|research-.*\.(js|ts)|temp-.*/|test-.*/|.*_SUMMARY\.md|.*_REPORT\.md|.*_CHECKLIST\.md|.*_COMPLETE\.md|.*_GUIDE\.md|.*_ANALYSIS\.md|.*-analysis\.md|.*-examples\.(js|ts))$" | wc -l) committed cleanup candidates ---"; else echo "WORKING_DIR_CLEAN=false"; fi

Launch ONE subagent to analyze the git status (including ignored files) and propose files for deletion. If the working directory is clean, also check for committed files that match cleanup patterns.

Target Files for Cleanup

Debug & Analysis Files:

  • analyze-*.js, analyze-*.ts - Analysis scripts (e.g., analyze-race-condition.js)
  • debug-*.js, debug-*.ts - Debug scripts (e.g., debug-detailed.js, debug-race-condition.js)
  • research-*.js, research-*.ts - Research scripts (e.g., research-frontmatter-libs.js)
  • *-analysis.md - Analysis documents (e.g., eslint-manual-analysis.md)

Test Files (temporary/experimental):

  • test-*.js, test-*.ts, test-*.sh - Test scripts (e.g., test-race-condition.js, test-basic-add.js, test-poc.sh)
  • *-test.js, *-test.ts, *-test.sh - Test scripts with suffix
  • quick-test.js, quick-test.ts, quick-test.sh - Quick test files
  • verify-*.md - Verification documents (e.g., verify-migration.md)
  • *-examples.js, *-examples.ts - Example files (e.g., frontmatter-replacement-examples.ts)

Read the full file on GitHub · 206 lines

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. 12d ago First seen · 206 lines · 14 tokens per session scan C b4a8aeaf5e4d

Subscribe to this mod's changes

cleanup is a command published in the GitHub repository GoogilyBoogily/googilyboogily-claude-power-tools (2 stars, last pushed 4mo ago), licensed MIT. It adds 14 tokens to every session and 2,412 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.