code-simplifier

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

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/liatrio-labs/claude-code-gauntlet/code-simplifier
Clone the repo
git clone --depth 1 https://github.com/liatrio-labs/claude-code-gauntlet
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,698 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00017 $0.03698
Opus 5 $0.00009 $0.01849
Sonnet 5 $0.00003 $0.00740
Haiku 4.5 $0.00002 $0.00370

Measured 2d ago against content hash 0608861b84bf, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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 · 223 lines

How it starts

The opening of the file, as written. The whole thing — 223 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 project-rules section (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 · 223 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. 2d 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 (12 stars, last pushed 4d ago), licensed Apache-2.0. It adds 17 tokens to every session and 3,698 once invoked, about $0.0001 per session on Opus 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

deep-review-orchestrator

Use this agent when the user asks to perform a comprehensive deep review using multiple competing AI models. Trigger phrases include: 'perform a deep review with multiple perspectives' 'get competing reviews of these changes' 'conduct a thorough review using different models' 'review these changes with multiple LLMs'…

gitkraken/vscode-gitlens · 171 tokens

inspector-driver

Drives the vscode-inspector MCP against a live VS Code + GitLens instance and returns raw evidence (probe values, console/log excerpts, geometry, measurements) as text. Default executor for live-inspection driving so the Opus orchestrator only reasons over distilled results. Returns evidence; does NOT judge, fix, or…

gitkraken/vscode-gitlens · 72 tokens

cr-correctness

Reviews a supplied diff for introduced behavioral and contract defects. Use only when dispatched by the code-review skill.

srtab/daiv · 26 tokens

test-engineer

QA engineer specialized in test strategy, test writing, and coverage analysis. Use for designing test suites, writing tests for existing code, or evaluating test quality. Familiar with GitScape's pytest + FastAPI TestClient setup.

jmxt3/gitscape.ai · 49 tokens

code-reviewer

Senior code reviewer that evaluates changes across five dimensions — correctness, readability, architecture, security, and performance. Use for thorough code review before merge.

jmxt3/gitscape.ai · 33 tokens

architect

Proposes the stack and technical design, with justification and the simplest alternative considered. Input to the ADR.

harness-studio/harness-studio · 23 tokens