code-simplifier

code-simplifier is an agent for Claude Code from gosha70/code-copilot-team. It costs 33 tokens per session (467 once invoked), scanned A, original, MIT.

A code-review helper that examines recently changed files and suggests small edits to make them easier to read without changing what they do.

In plain words
What is it for?
Use it after a commit to simplify conditionals, remove dead code and unused variables, and identify repeated patterns that could become shared helpers.
Why use it?
It removes unused code, repeated logic, and overly complicated control flow that can make future changes harder to understand.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Good fit Use it after a commit to simplify conditionals, remove dead code and unused variables, and identify repeated patterns that could become shared helpers.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/gosha70/code-copilot-team/code-simplifier
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/gosha70/code-copilot-team

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 code-simplifier

README.md
[![agentmods](https://agentmods.dev/badge/agents/gosha70/code-copilot-team/code-simplifier/github.svg)](https://agentmods.dev/agents/gosha70/code-copilot-team/code-simplifier)
Your own site
<a href="https://agentmods.dev/agents/gosha70/code-copilot-team/code-simplifier"><img src="https://agentmods.dev/badge/agents/gosha70/code-copilot-team/code-simplifier/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 code-simplifier

Your own site · 80×15
<a href="https://agentmods.dev/agents/gosha70/code-copilot-team/code-simplifier"><img src="https://agentmods.dev/badge/agents/gosha70/code-copilot-team/code-simplifier.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 467 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.00033 $0.00467
Opus 5.5 $0.00013 $0.00187
Sonnet 5.5 $0.00007 $0.00093
Haiku 4.5 $0.00003 $0.00047

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

Security

Grade A, and why

code-simplifier 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 29d 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.

adapters/claude-code/.claude/agents/code-simplifier.md · 43 lines

What it actually says

Code Simplifier Agent

You are a code simplifier. Your job is to review recently changed files and make targeted simplifications that improve readability without changing behavior.

What to Do

  1. Find changed files. Run git diff --name-only HEAD~1 to get the list of files changed in the last commit. If that fails, ask what files to review.

  2. Read each changed file. Understand the code before modifying anything.

  3. Look for these patterns:

    • Dead code: unused imports, unreachable branches, commented-out code
    • Unnecessary complexity: nested ternaries, deeply nested conditionals that can be flattened with early returns
    • Repeated patterns: duplicate logic that can be extracted into a shared helper (only if used 3+ times)
    • Overly verbose code: explicit boolean returns (if (x) return true; else return false;), redundant else after return
    • Unused variables: declared but never referenced
    • Type assertion chains: unnecessary intermediate casts
  4. Make targeted edits. Use the Edit tool to simplify each issue. Keep changes small and focused.

  5. Report what you changed. For each file, list:

    • What was simplified
    • Why (the pattern that was addressed)
    • Confirm: behavior is unchanged

Rules

  • Never change behavior. This is strictly readability and simplicity improvements.
  • Never add new features, abstractions, or functionality.
  • Never add comments, docstrings, or type annotations that weren't there before.
  • Never rename public APIs (exported functions, class methods, route handlers).
  • Keep changes minimal. If something is borderline, leave it alone.
  • Match existing code style. Don't impose a different formatting convention.
  • Skip test files unless they have obvious dead code (unused imports, commented-out tests).
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. 29d ago Changed · +1 lines 74f1eecc4e05
  2. 1mo ago First seen · 42 lines · 33 tokens per session scan A 0d6ce16ca098

Subscribe to this mod's changes

code-simplifier is an agent published in the GitHub repository gosha70/code-copilot-team (7 stars, last pushed 19d ago), licensed MIT. It adds 33 tokens to every session and 467 once invoked, about $0.0001 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

style-analyzer

Use this agent after UI implementation or when the user requests design consistency audits. Ensures visual consistency, catches design drift from locked tokens, identifies technical debt in UI code, and guards the integrity of the design language. Context: Multiple UI components were built during the cycle. user…

drobins25/craft · 203 tokens

maze-architect

Route planner for perpendicular PR review. Reads a raw diff with ZERO intent context (no story files, no commit messages, no PR descriptions) and generates 2-4 questions that the code demands answers to. These questions become coordinates for parallel maze-runner review agents. The architect throws the frisbee blind …

drobins25/craft · 157 tokens

verifier

Verification agent for /craft:research-verify. Takes a single claim from existing research and attempts to disprove it using independent primary sources. Returns a verdict (CONFIRMED/REFUTED/PARTIALLYTRUE/UNVERIFIABLE) with evidence. NOT a researcher. Does not discover new topics or cast a wide net. Takes one claim…

drobins25/craft · 178 tokens

pact-reviewer

Use proactively before committing feature work or multi-file changes (3+ files), or when the main conversation says a task is "done", "finished", "ready to commit", or "looks good". Skip for trivial commits (typo fixes, version bumps, single-line config changes). Runs PACT's governance checklist in an isolated context…

jonathanmr22/pact · 89 tokens

pact-tracer

Use proactively before editing files that appear in SYSTEMMAP.yaml, feature flow docs, or any file with more than 3 downstream dependents. Also invoke when the main conversation is about to change a database table, service, state management class, or shared utility. Traces dependency chains and returns a concrete…

jonathanmr22/pact · 80 tokens

tester

Use this agent after chunk implementation to create comprehensive test suites, or when the user requests test generation. Creates unit, integration, and edge case tests to ensure code works correctly and provide shipping confidence. Context: All chunks are implemented, orchestrator invokes testing phase. user: "All…

drobins25/craft · 200 tokens