evolve-cleanup-sweep

evolve-cleanup-sweep is an agent for coding agents from mickeyyaya/evolve-loop. It costs 18 tokens per session (373 once invoked), scanned A, original, Apache-2.0.

An analysis agent that looks for unreachable code and unused or outdated dependencies. It also records counts and writes a Markdown report, but does not make cleanup changes.

In plain words
What is it for?
Use it to inspect a target Go package for dead symbols and dependency issues, then produce a cleanup report.
Why use it?
It identifies possible cleanup work while keeping the codebase and configuration untouched during the review.

Agent

Part of the evo plugin — 53 agents, 3 hooks shipped together

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.

agentmods
npx agentmods add agents/mickeyyaya/evolve-loop/evolve-cleanup-sweep
Clone the repo
git clone --depth 1 https://github.com/mickeyyaya/evolve-loop

Or install evo, the plugin that ships this one along with the rest of its 53 agents, 3 hooks.

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 evolve-cleanup-sweep

README.md
[![agentmods](https://agentmods.dev/badge/agents/mickeyyaya/evolve-loop/evolve-cleanup-sweep.svg)](https://agentmods.dev/agents/mickeyyaya/evolve-loop/evolve-cleanup-sweep)
Your own site
<a href="https://agentmods.dev/agents/mickeyyaya/evolve-loop/evolve-cleanup-sweep"><img src="https://agentmods.dev/badge/agents/mickeyyaya/evolve-loop/evolve-cleanup-sweep.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 373 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00018 $0.00373
Opus 5 $0.00009 $0.00187
Sonnet 5 $0.00004 $0.00075
Haiku 4.5 $0.00002 $0.00037

Measured 3d ago against content hash d3dde18c5deb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

evolve-cleanup-sweep 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 3d 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.

agents/evolve-cleanup-sweep.md · 33 lines

What it actually says

Evolve Cleanup Sweep Agent

You are the Cleanup Sweep agent in the Evolve Loop. Your job is to run reachability-based dead-code and unused-dependency detection.

Workflow

  1. Dead Code Detection:

    • Run deadcode analysis tools (e.g. x/tools/cmd/deadcode) on the target package.
    • List all dead/unreachable functions and symbols.
  2. Unused Dependencies Check:

    • Check for unused or outdated dependencies (e.g., go mod tidy -diff).
  3. Detection Only Constraint:

    • This phase is strictly for detection-only purposes. You must not edit, modify, remove, or delete any source code files or configuration files. No edits, removals, or deletions of code are allowed in this phase; cleaning up dead code belongs to a later build cycle.
  4. Calculate Signals:

    • Record deadcode.symbols (number of unused symbols found) and deadcode.unused_deps (number of unused dependencies).
  5. Emit Report:

    • Write the report cleanup-sweep-report.md containing ## Dead Code Analysis, ## Unused Dependencies, and ## Verdict sections.
    • Log the namespaced signals deadcode.symbols and deadcode.unused_deps using the standard format.
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. 3d ago First seen · 33 lines · 18 tokens per session scan A d3dde18c5deb

Subscribe to this mod's changes

evolve-cleanup-sweep is an agent published in the GitHub repository mickeyyaya/evolve-loop (5 stars, last pushed today), licensed Apache-2.0. It adds 18 tokens to every session and 373 once invoked, about $0.0001 per session on Opus 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

Music Producer

AI-powered music production specialist for premium soundscapes and commercial tracks.

frankxai/agentic-creator-os · 16 tokens

review-rails

Rails conventions and architecture reviewer for PR audits. Spawned by /rpi:review-pr as subagenttype rpi:review-rails with artifact paths. Ensures existing framework features are used, not reinvented — reads changed files in full and compares them against siblings and the framework-native form.

hoblin/claude-ruby-marketplace · 64 tokens

boundary-tracer

Conditional agent invoked only when scanner produces candidates classified as T7 (write-only fields or intent-capture discard) or T10 (error downgrade). Input is one or more T7 or T10 candidate@1 entries from the scanner and the recon manifest. For Rust workspaces, the agent loads shared/references/rust-hazards.md…

orin-dx/agent-plugins · 197 tokens

architect

Software architect for system boundaries, design patterns, and integration tradeoffs.

fall-out-bug/sdp · 16 tokens

accessibility-auditor

Internal dynos-work agent. Audits UI changes for WCAG-oriented accessibility, keyboard behavior, semantics, focus, and assistive technology support. Spawned only by the dynos-work pipeline during an explicitly invoked /dynos-work:audit; never spawn this agent directly, from conversation, or outside a dynos-work task.

dynos-fit/dynos-work · 72 tokens

release-executor

Internal dynos-work agent. Implements release hygiene, changelog/version updates, feature flags, rollout, rollback, and migration sequencing. Spawned only by the dynos-work pipeline during an explicitly invoked /dynos-work:execute; never spawn this agent directly, from conversation, or outside a dynos-work task.

dynos-fit/dynos-work · 67 tokens