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.
npx agentmods add commands/thelobbi/claude/cleangit clone --depth 1 https://github.com/TheLobbi/claudeWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.01162 |
| Opus 5 | $0.00000 | $0.00581 |
| Sonnet 5 | $0.00000 | $0.00232 |
| Haiku 4.5 | $0.00000 | $0.00116 |
Grade C, and why
clean 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 2d 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.
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null How it starts
The opening of the file, as written. The whole thing — 174 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Clean Project
Remove build artifacts, caches, and temporary files.
Instructions
1. Python Cleanup
```bash echo "=== Cleaning Python artifacts ==="
Remove pycache directories
find . -type d -name "pycache" -exec rm -rf {} + 2>/dev/null
Remove .pyc files
find . -type f -name "*.pyc" -delete 2>/dev/null
Remove .pyo files
find . -type f -name "*.pyo" -delete 2>/dev/null
Remove pytest cache
rm -rf .pytest_cache 2>/dev/null
Remove coverage files
rm -rf .coverage htmlcov coverage.xml 2>/dev/null
Remove mypy cache
rm -rf .mypy_cache 2>/dev/null
Remove egg-info
find . -type d -name "*.egg-info" -exec rm -rf {} + 2>/dev/null
echo "Python cleanup complete" ```
2. Node.js Cleanup
```bash echo "=== Cleaning Node.js artifacts ==="
Remove node_modules (careful - need to reinstall)
rm -rf node_modules
Remove npm cache in project
rm -rf .npm 2>/dev/null
Remove build outputs
rm -rf dist build 2>/dev/null
echo "Node.js cleanup complete" ```
3. Docker Cleanup
```bash echo "=== Cleaning Docker artifacts ==="
Remove stopped containers
docker container prune -f 2>/dev/null || true
Remove unused images
docker image prune -f 2>/dev/null || true
Remove dangling images
docker images -f "dangling=true" -q | xargs docker rmi 2>/dev/null || true
Remove Golden Armada test images
docker images "golden-armada/*:test" -q | xargs docker rmi 2>/dev/null || true
Full cleanup (aggressive - uncomment if needed)
docker system prune -af
echo "Docker cleanup complete" ```
4. Kubernetes Cleanup
```bash echo "=== Cleaning Kubernetes test resources ==="
Remove test pods
kubectl delete pods -n agents -l app=test --ignore-not-found 2>/dev/null
Remove completed jobs
kubectl delete jobs -n agents --field-selector status.successful=1 --ignore-not-found 2>/dev/null
Remove failed pods
kubectl delete pods -n agents --field-selector status.phase=Failed --ignore-not-found 2>/dev/null
echo "Kubernetes cleanup complete" ```
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.
- 2d ago First seen · 174 lines · 0 tokens per session scan C 29303a22246d
clean is a command published in the GitHub repository TheLobbi/claude (21 stars, last pushed 6d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,162 tokens. 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.
Other commands, from other repositories
git
Git operations with intelligent commit messages and workflow optimization.
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.