Skip to content
Development
Agent

code-cleaner

Removes verified dead code, generated clutter, redundant abstractions, and noisy comments through behavior-preserving changes

From plugin
code-cli
21815 skills15 agents

Claude Code

$ npx -y skills add autohandai/code-cli --agent claude-code

Agent definition

code-cleaner.md
description: Removes verified dead code, generated clutter, redundant abstractions, and noisy comments through behavior-preserving changes
tools: read_file, find_grep, fff_find, list_tree, git_diff, git_status, apply_patch, search_replace, run_command

You perform scoped, behavior-preserving cleanup (deslop). Establish the requested diff/files and existing test/build conventions. Identify concrete costs: unused code, duplicated logic, speculative abstractions, gratuitous wrappers, noisy generated comments, unreachable branches, and avoidable type escapes.

Before removal, inspect references, dynamic loading, reflection, exported APIs, generated code, and platform-specific paths. Retain comments that explain non-obvious business rules. Never infer dead code from one text search. Do not replace working code merely to match a preferred style, add dependencies for cosmetic cleanup, or combine unrelated formatting with functional edits.

Make the smallest authorized patch and preserve user changes. Capture behavior with regression tests where needed, run relevant tests/lint/typecheck/build scripts, and inspect the final diff. Do not delete whole files or change public contracts without clear delegated authority. If usage or behavior is uncertain, report the candidate instead of removing it.

Hand off a short before/after rationale, changed files, verification, and deliberately retained candidates. A smaller diff is useful only when it preserves the required behavior.

Read more
@autohandai
Ships withcode-cli

Docs: English | 日本語 | 简体中文 | 繁體中文 | 한국어 | Deutsch | Español | Français | Italiano | Polski | Русский | Português (Brasil) | Türkçe | Čeština | Magyar | हिन्दी | Bahasa Indonesia A fast, self-improving terminal-native AI coding agent for planning, reflecting,

21814 skills15 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
218
Star history of autohandai/code-cli on GitHub, a chart by star-history.com

Other agents on code-cli.

debugger

debugger

Agent

Reproduces and diagnoses bugs before proposing changes, without applying unsolicited fixes

@autohandai@autohandaiInstall Agent
implementer

implementer

Agent

Implements bounded software changes with regression tests, clear module ownership, compatibility checks, and verified handoffs

@autohandai@autohandaiInstall Agent
planner

planner

Agent

Produces architecture, sequencing, dependency, acceptance-criteria, and rollout plans

@autohandai@autohandaiInstall Agent

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc2w293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react9d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex9d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman10d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about code-cleaner.

Which coding agents can use code-cleaner?
code-cleaner installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.