clean

clean is an agent for Claude Code from mystilleef/spae-framework. It costs 10 tokens per session (235 once invoked), scanned A, original, MIT.

An agent that coordinates other agents to clean up code.

In plain words
What is it for?
Use it when you want agents organized around improving code quality.
Why use it?
It delegates code-cleaning work instead of handling every cleanup task directly.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions subagents.

Good fit Use it when you want agents organized around improving code quality.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/mystilleef/spae-framework/clean
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/mystilleef/spae-framework

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 clean

README.md
[![agentmods](https://agentmods.dev/badge/agents/mystilleef/spae-framework/clean/github.svg)](https://agentmods.dev/agents/mystilleef/spae-framework/clean)
Your own site
<a href="https://agentmods.dev/agents/mystilleef/spae-framework/clean"><img src="https://agentmods.dev/badge/agents/mystilleef/spae-framework/clean/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 clean

Your own site · 80×15
<a href="https://agentmods.dev/agents/mystilleef/spae-framework/clean"><img src="https://agentmods.dev/badge/agents/mystilleef/spae-framework/clean.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 235 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.00010 $0.00235
Opus 5.5 $0.00004 $0.00094
Sonnet 5.5 $0.00002 $0.00047
Haiku 4.5 $0.00001 $0.00023

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

Security

Grade A, and why

clean 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 4d 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.

antigravity/agents/clean.md · 35 lines

What it actually says

Role

Embody an expert software engineer. You specialize in orchestrating agents that clean code.

Directives

  • Always invoke the clean skill immediately, regardless of input.
  • The subagent tool is invoke_subagent. Set TypeName to the agent name, spawn one subagent per call, and await its result message before continuing.
  • Keep a compact ledger of objective, active constraints, decisions, and progress distilled from loaded instructions. Quote hard constraints verbatim. Rewrite it after loading instructions and after each completed step. Latest supersedes earlier copies. Source files win on conflict.
  • Full autonomy: never perform or request human execution, an attended or interactive terminal, or human presence.
  • Finally, ALWAYS ensure you emit unmodified result to calling agent.

Constraints

  • No operation requires user input or interactivity.
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. 4d ago Changed d7d4293db149
  2. 8d ago Changed · +16 lines b7b112ddf119
  3. 1mo ago First seen · 19 lines · 10 tokens per session scan A 85deb2d34bf9

Subscribe to this mod's changes

clean is an agent published in the GitHub repository mystilleef/spae-framework (2 stars, last pushed 3d ago), licensed MIT. It adds 10 tokens to every session and 235 once invoked, about $0.0000 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-31.

Related

Other agents, from other repositories

react-reviewer

Frontend-only React/Next.js quality reviewer — audits component design for composition and reuse, not just correctness. Use on React changes (alongside code review, in parallel) to catch boolean-prop proliferation, one-off components that should be composed/reused, and design tokens defined top-down instead of from…

gitgitWi/council-flow · 115 tokens

reviewer

In-harness fresh-eyes reviewer of a plan and its implementation (or a diff / PR). Use for a fast local review pass when you do not want to spin up external agents — it complements, and does not replace, the code-review-brief → user-run-external-agents path. Read-only; reports findings, does not fix or post.

gitgitWi/council-flow · 75 tokens

agent-creator

Use this agent when the user asks to "create an agent", "generate an agent", "build a new agent", "make me an agent that...", or describes agent functionality they need. Trigger when user wants to create autonomous agents for plugins. Examples: Context: User wants to create a code review agent user: "Create an agent…

ronmkr/PromptBook · 254 tokens

skill-reviewer

Use this agent when the user has created or modified a skill and needs quality review, asks to "review my skill", "check skill quality", "improve skill description", or wants to ensure skill follows best practices. Trigger proactively after skill creation. Examples: Context: User just created a new skill user: "I've…

ronmkr/PromptBook · 249 tokens

type-design-analyzer

Use this agent when you need expert analysis of type design in your codebase. Specifically use it (1) when introducing a new type to ensure it follows best practices for encapsulation and invariant expression, (2) during pull request creation to review all types being added, and (3) when refactoring existing types to…

ronmkr/PromptBook · 110 tokens

code-reviewer

Reviews code for bugs, logic errors, security vulnerabilities, code quality issues, and adherence to project conventions, using confidence-based filtering to report only high-priority issues that truly matter.

ronmkr/PromptBook · 39 tokens