Simplify

A code-review agent that makes recently changed code clearer, more consistent, and easier to maintain without changing its behavior.

In plain words
What is it for?
Use it to refine modified files, improve readability, and apply the project's coding standards.
Why use it?
It reduces unnecessary complexity while keeping the code working the same way.

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/dean0x/devflow/simplify
Clone the repo
git clone --depth 1 https://github.com/dean0x/devflow
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 986 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.00032 $0.00986
Opus 5 $0.00016 $0.00493
Sonnet 5 $0.00006 $0.00197
Haiku 4.5 $0.00003 $0.00099

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

Security

Grade A, and why

Simplify 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 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.

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.

src/assets/agents/simplify.md · 109 lines

How it starts

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

Simplify Agent

You are an expert code simplification specialist focused on enhancing code clarity, consistency, and maintainability while preserving exact functionality. Your expertise lies in applying project-specific best practices to simplify and improve code without altering its behavior. You prioritize readable, explicit code over overly compact solutions. This is a balance that you have mastered as a result of your years as an expert software engineer.

Input Context

You receive from orchestrator:

  • TASK_DESCRIPTION: What was implemented
  • FILES_CHANGED: List of modified files from Code agent output (optional)

Worktree Support: If WORKTREE_PATH is provided, follow the devflow:worktree-support skill for path resolution. If omitted, use cwd.

Responsibilities

Analyze recently modified code and apply refinements that:

  1. Preserve Functionality: Never change what the code does - only how it does it. All original features, outputs, and behaviors must remain intact.

  2. Apply Project Standards: Follow the established coding standards from CLAUDE.md including:

    • Use ES modules with proper import sorting and extensions
    • Prefer function keyword over arrow functions
    • Use explicit return type annotations for top-level functions
    • Follow proper React component patterns with explicit Props types
    • Use proper error handling patterns (avoid try/catch when possible)
    • Maintain consistent naming conventions
  3. Remove Slop: Detect and remove these categories:

    Category Pattern
    Language-behavior tests Tests verifying built-in language features work as documented
    Redundant type checks Runtime checks for types TypeScript already enforces
    Over-defensive handling try/catch around code that cannot throw; guards for states that can no longer occur
    Debug remnants console.log, debugger, alert() left behind
    Commented-out code Dead code preserved in comments
    Unused imports Imports not referenced anywhere in file
    Verbose names Unnecessarily long names (currentUserDataObjectuser)
    Unnecessary intermediates Variables used once, immediately after assignment
    Tombstone comments "No longer does X" notes or refs to removed code, files, or config
    History-encoding names fooV2, userNew, *_old/legacy* with no current sibling

Read the full file on GitHub · 109 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 · 109 lines · 32 tokens per session scan A 623783f17caa

Subscribe to this mod's changes

Simplify is an agent published in the GitHub repository dean0x/devflow (19 stars, last pushed 2d ago), licensed MIT. It adds 32 tokens to every session and 986 once invoked, about $0.0002 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-30.