cleaning

cleaning is a command for Claude Code from stereosam/stereo-vibe-public. It costs 59 tokens per session (4,045 once invoked), scanned A, original, MIT.

A command for inspecting and safely cleaning a project or an entire server, including unused code, duplicates, conflicts, and leftover files.

In plain words
What is it for?
Finding dead code, duplicate files, old backups, logs, unused services, and other clutter across local or server projects.
Why use it?
It identifies what files and code are still needed before cleanup, while requiring confirmation for risky changes.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Finding dead code, duplicate files, old backups, logs, unused services, and other clutter across local or server projects.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/stereosam/stereo-vibe-public/cleaning
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/stereosam/stereo-vibe-public

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 cleaning

README.md
[![agentmods](https://agentmods.dev/badge/commands/stereosam/stereo-vibe-public/cleaning/github.svg)](https://agentmods.dev/commands/stereosam/stereo-vibe-public/cleaning)
Your own site
<a href="https://agentmods.dev/commands/stereosam/stereo-vibe-public/cleaning"><img src="https://agentmods.dev/badge/commands/stereosam/stereo-vibe-public/cleaning/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 cleaning

Your own site · 80×15
<a href="https://agentmods.dev/commands/stereosam/stereo-vibe-public/cleaning"><img src="https://agentmods.dev/badge/commands/stereosam/stereo-vibe-public/cleaning.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,045 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 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.00059 $0.04045
Opus 5 $0.00030 $0.02022
Sonnet 5 $0.00012 $0.00809
Haiku 4.5 $0.00006 $0.00404

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

Security

Grade A, and why

cleaning scanned grade A 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 9d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

3. Смоук-тест ПО ВЕТКЕ (Шаг 0.5): A/VPS — `systemctl restart <svc>` → `is-active` + `journalctl -u <svc> -n 30 --no-pager`; B/локально — `py_compile` правленых файлов, живой процесс НЕ убивать, есть `/health` — пингани;
commands/cleaning.md · 113 lines

How it starts

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

Ты выполняешь команду уборки /cleaning. Цель — навести порядок в коде/файлах БЕЗОПАСНО. Код может жить на VPS, локально на ПК/ноуте, или и там и там — СНАЧАЛА определи где (Шаг 0.5), потом действуй по ветке A/B/C.

VPS: ssh <user>@<your-server>. Боты: /path/to/bots/<bot>/ (у каждого свой venv). Память: /path/to/memory/. Сайты: /var/www/. Утилиты диагностики: /path/to/diagtools/bin/{ruff,vulture,radon,pip-audit,gitleaks,pylint}.

ГЛАВНОЕ ПРАВИЛО ОБЩЕНИЯ (не нарушать)

Пользователь НЕ технарь. Запрещено давить терминами и кишками кода.

  • Объясняй ЛОГИКОЙ: «этот файл отвечает за X», «эта штука дублирует ту», «меняю А на Б, потому что…», «риск такой-то / рисков нет».
  • НЕ «F401 unused import в модуле foo», а «бот подключает библиотеку, которой не пользуется — убрал, чтобы не мусорить».
  • Каждый пункт отчёта = четыре вещи простыми словами: ЧТО это · К ЧЕМУ относится · ЧТО меняю · ЧЕМ рискуем (или «рисков нет»).
  • Списки — с цифрами, чтобы можно было выбрать номером.

ШАГ 0 — ВЫБОР ОБЪЕКТА

Если номер не передан в аргументе — покажи список и жди номер:

0  — вся VPS (общая уборка: ничьи файлы, старые бэкапы, висячие pid/логи, выключенные сервисы)
1=work_bot 2=sell_bot 3=ii_bot 4=infra 5=metr_corp 6=wedding_bot 7=buh_bot
8=bonus_bot 9=nutrition_bot 11=stereo_ai 12=chatbot_friends 13=stereo_dictate
14=3d_print 15=visa_bot 17=stereo_ai_bot 21=fitness_bot 22=sell_bot_v2 23=dzen_bot

Жди число. Дальше работай только по выбранному объекту.

ШАГ 0.5 — ГДЕ ЖИВЁТ ПРОЕКТ (определить ДО инвентаризации)

Код проекта может быть на VPS, на локальной машине (ПК/ноут) или и там и там. Сначала определи:

  • VPS-часть ЕСТЬ, если: ls /path/to/bots/<proj> непусто, ИЛИ systemctl знает сервис, ИЛИ ps aux на VPS показывает процесс.
  • Локальная часть ЕСТЬ, если: локально нашёлся код (Glob **/<proj>/**/*.py), ИЛИ на ПК запущен процесс (Get-CimInstance Win32_Process по имени/CommandLine). Итог: только VPS → ветка A; только локально → ветка B; и там и там → ветка C. Объяви пользователю простым языком, какой случай.

Read the full file on GitHub · 113 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. 9d ago First seen · 113 lines · 59 tokens per session scan A 933c9b1706ef

Subscribe to this mod's changes

cleaning is a command published in the GitHub repository stereosam/stereo-vibe-public (1 stars, last pushed 26d ago), licensed MIT. It adds 59 tokens to every session and 4,045 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.