cleanup

cleanup is a command for Claude Code from solanabr/solana-ai-kit. It costs 21 tokens per session (532 once invoked), scanned A, original, MIT.

A setup command for turning a forked Solana AI Kit configuration repository into a usable project. It creates project guidance files and removes files used only to maintain the original configuration repository.

In plain words
What is it for?
Use it to create CLAUDE.md and private CLAUDE.local.md notes, copy .env.example to .env when needed, update .gitignore, and remove template maintenance files.
Why use it?
It clears away repository-maintenance clutter and preserves local environment setup when starting from a template fork.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: model in frontmatter; mentions .claude-plugin; mentions CLAUDE.md.

Good fit Use it to create CLAUDE.md and private CLAUDE.local.md notes, copy .env.example to .env when needed, update .gitignore, and remove template maintenance files.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/solanabr/solana-ai-kit/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/solanabr/solana-ai-kit

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 cleanup

README.md
[![agentmods](https://agentmods.dev/badge/commands/solanabr/solana-ai-kit/cleanup/github.svg)](https://agentmods.dev/commands/solanabr/solana-ai-kit/cleanup)
Your own site
<a href="https://agentmods.dev/commands/solanabr/solana-ai-kit/cleanup"><img src="https://agentmods.dev/badge/commands/solanabr/solana-ai-kit/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/solanabr/solana-ai-kit/cleanup"><img src="https://agentmods.dev/badge/commands/solanabr/solana-ai-kit/cleanup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 532 The whole file, excluding the scripts and references it only reads on demand.
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.
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.00021 $0.00532
Opus 5.5 $0.00008 $0.00213
Sonnet 5.5 $0.00004 $0.00106
Haiku 4.5 $0.00002 $0.00053

Measured 25d ago against content hash 50f355c30c37, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cleanup 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 25d 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.

.claude/commands/cleanup.md · 19 lines

What it actually says

Turn a fork or clone of the solana-ai-kit repo into a working project: install the project CLAUDE.md and delete the files that only serve maintaining or publishing the kit.

Steps

  1. CLAUDE.md. If it is missing, or is the maintainer version (contains "Meta Configuration"), copy CLAUDE-solana.md to CLAUDE.md, create a starter CLAUDE.local.md for private notes if absent, and add CLAUDE.local.md to .gitignore. Leave an existing project CLAUDE.md alone.
  2. .env. If .env is missing and .env.example exists, copy .env.example to .env before anything is removed.
  3. Plan the removals, each only if present (a missing path is not an error):
    • Maintenance: install.sh, update.sh (deprecation wrapper), validate.sh, tests/, CLAUDE-solana.md, QUICK-START.md, README.md (the kit's; the user writes their own), .claude/CHANGELOG.md (the kit's changelog), .github/workflows/ci.yml (keep .github/templates/claude-code.yml)
    • Distribution infra, only needed to publish the kit: .claude-plugin/ (plugin marketplace manifest), plugin/ (symlinked plugin subtree), vercel.json (install-endpoint redirect)
    • Keep: the rest of .claude/ (agents, commands, skills, settings, bin/ self-update tooling), CLAUDE.md, CLAUDE.local.md, .mcp.json, .env, .env.example (the tracked list of keys that /setup-mcp and /doctor read), .gitmodules, .gitignore, LICENSE (unless the user wants another), and anything the user created. If another file looks kit-specific, flag it instead of deleting it.
  4. Confirm. Show the CLAUDE.md action and the exact removal list, and wait for the user's go-ahead.
  5. Execute, print a summary of what was done, and suggest git add -A && git commit -m "chore: initialize project from solana-ai-kit template".
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. 25d ago Changed · -45 lines · +5 tokens per session 50f355c30c37
  2. 26d ago Changed · +1 lines 54e87b8a52a1
  3. 1mo ago First seen · 63 lines · 16 tokens per session scan A 66ae75873543

Subscribe to this mod's changes

cleanup is a command published in the GitHub repository solanabr/solana-ai-kit (104 stars, last pushed 26d ago), licensed MIT. It adds 21 tokens to every session and 532 once invoked, about $0.0001 per session on Opus 5.5. 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-08-30.