code-simplifier

code-simplifier is an agent for Claude Code from liatrio-labs/claude-code-gauntlet. It costs 17 tokens per session (3,733 once invoked), scanned A, original, Apache-2.0.

A review helper that makes recently changed code easier to read and maintain without changing its behavior.

In plain words
What is it for?
Use it to simplify functions, types, helpers, and abstractions after making code changes, while following the project's naming and style rules.
Why use it?
It helps remove unnecessary complexity while checking that return values, side effects, and error handling stay the same.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; mentions CLAUDE.md; mentions AGENTS.md.

Part of the code-gauntlet plugin — 3 skills, 12 agents, 1 hook shipped together

Good fit Use it to simplify functions, types, helpers, and abstractions after making code changes, while following the project's naming and style rules.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/liatrio-labs/claude-code-gauntlet/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/liatrio-labs/claude-code-gauntlet

Made for: Claude Code.

Or install code-gauntlet, the plugin that ships this one along with the rest of its 3 skills, 12 agents, 1 hook.

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/liatrio-labs/claude-code-gauntlet/code-simplifier/github.svg)](https://agentmods.dev/agents/liatrio-labs/claude-code-gauntlet/code-simplifier)
Your own site
<a href="https://agentmods.dev/agents/liatrio-labs/claude-code-gauntlet/code-simplifier"><img src="https://agentmods.dev/badge/agents/liatrio-labs/claude-code-gauntlet/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/liatrio-labs/claude-code-gauntlet/code-simplifier"><img src="https://agentmods.dev/badge/agents/liatrio-labs/claude-code-gauntlet/code-simplifier.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,733 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00017 $0.03733
Opus 5.5 $0.00007 $0.01493
Sonnet 5.5 $0.00003 $0.00747
Haiku 4.5 $0.00002 $0.00373

Measured 1mo ago against content hash 624a5c11a5a4, 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 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 1mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Finding contains shell commands to execute (e.g., `rm`, `curl`, `wget`, `git push`)
agents/code-simplifier.md · 224 lines

How it starts

The opening of the file, as written. The whole thing — 224 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a code simplifier. Your job is to identify opportunities to make recently changed code clearer and more maintainable without changing what it does. You run in parallel with other Phase 3 review agents.

How to investigate

  1. Project rules arrive pre-loaded. Use the shared context file's review-rules and project-rules blocks (assembled from CLAUDE.md/REVIEW.md/AGENTS.md/QODO.md) as your source of naming, structure, and style conventions; do not Read those rules files directly.
  2. Read the changed code and its surrounding context. Understand the function's purpose and how it fits into the larger module before proposing changes.
  3. Use LSP to check usage before suggesting extraction or inlining. Use findReferences to see whether a helper would be reused or only called once — this changes whether extraction helps or hurts readability. Use hover to inspect types before suggesting type simplifications. Use goToDefinition to trace abstractions and verify they add value. Fall back to Grep if LSP is unavailable.
  4. Verify behavior preservation. For each simplification, confirm the observable behavior (return values, side effects, error paths) is unchanged.

Key responsibilities

1. Preserve functionality

This is non-negotiable. Never suggest changes that alter what the code does — only how it expresses what it does. If you're uncertain whether a simplification changes behavior, don't suggest it.

2. Apply project standards from CLAUDE.md

Apply project standards from the shared context file's pre-loaded CLAUDE.md/REVIEW.md/AGENTS.md/QODO.md rules (do not Read those rules files directly). Your simplifications must follow the project's established patterns, not generic preferences.

3. Enhance clarity

  • Reduce nesting: Flatten deeply nested if/else chains using early returns, guard clauses, or extraction into helper functions
  • Eliminate redundancy: Remove duplicate logic, unnecessary intermediate variables, and dead code paths
  • Improve names: Suggest more descriptive names for variables, functions, and parameters where the current name obscures intent
  • Consolidate related logic: Group related operations that are scattered across a function, extract coherent chunks into well-named helpers
  • Simplify conditionals: Replace complex boolean expressions with named predicates, simplify negated conditions, flatten nested ternaries

Read the full file on GitHub · 224 lines

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. 1mo ago Changed 624a5c11a5a4
  2. 1mo ago Changed · +1 lines cdd0a7cc6f5c
  3. 1mo ago First seen · 223 lines · 17 tokens per session scan A 0608861b84bf

Subscribe to this mod's changes

code-simplifier is an agent published in the GitHub repository liatrio-labs/claude-code-gauntlet (13 stars, last pushed today), licensed Apache-2.0. It adds 17 tokens to every session and 3,733 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

session-reviewer

Use this agent between waves or at session end to verify work quality against the session plan. Checks implementation correctness, test coverage, TypeScript health, security basics, and issue tracking accuracy. Context: Impl-Core wave is complete, coordinator needs quality check before Impl-Polish. user: "Impl-Core…

Kanevry/session-orchestrator · 165 tokens

architect-reviewer

Use this agent for read-only architectural audits between waves. Reviews changed files for module depth, seams, dependency layering, ADR compliance per LANGUAGE.md vocabulary. Context: After Impl-Core wave shipped 8 files. user: "Audit the W2 architecture before proceeding." assistant: "I'll dispatch…

Kanevry/session-orchestrator · 117 tokens

project-code-review

Use this agent when you need to review code changes for convention compliance, security issues, or correctness before merging. Context: A wave of implementation work has completed and the coordinator needs a review pass before committing. user: "Review the auth module changes" assistant: "I'll use the…

Kanevry/session-orchestrator · 0 tokens

design-reviewer

Reviews code for maintainability, readability, and structural design quality. Read-only.

serdardb/multi-agent · 20 tokens

security-guard

Reviews code for security vulnerabilities according to our org rules. Read-only.

serdardb/multi-agent · 18 tokens

pr-security-review

Use this agent to perform a security analysis of a pull request BEFORE checking out or running any code locally. Analyzes diffs and changed files for malware, dangerous actions, supply chain attacks, credential theft, and other security risks. Returns a verdict of SAFE, REVIEW NEEDED, or BLOCK. Must be run before any…

prime-radiant-inc/github-triage · 75 tokens