Skip to content
Agentmart
Submit a tool

simplifier

Subagent "simplifier" from mock-server/mockserver-monorepo: Code simplification specialist — reduces implementation changes to the smallest correct form.

Template by mock-server

IndexedApache-2.0★ 4,996
Write a review

Chalk Labs

Need help deploying simplifier?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code. Read the repository before you give any tool access to your data.

curl -fsSL https://raw.githubusercontent.com/mock-server/mockserver-monorepo/master/.claude/agents/simplifier.md -o simplifier.md

Read it and adapt it to your project before use.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

A Claude Code subagent definition in mock-server/mockserver-monorepo. Its description says: Code simplification specialist — reduces implementation changes to the smallest correct form. Spawn this agent after implementing a feature to remove over-engineering, dead code, and unnecessary abstractions. Model: claude-sonnet-5.

Use cases: refactoring

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

What's in it

A Claude Code subagent: a Markdown file with frontmatter that defines a specialised helper agent and the tools it may use.

For
Claude Code
Length
73 lines
File
.claude/agents/simplifier.md
name
simplifier
model
claude-sonnet-5
description
Code simplification specialist — reduces implementation changes to the smallest correct form. Spawn this agent after implementing a feature to remove over-engineering, dead code, and unnecessary abstractions.

Sections

  1. Flags
  2. Principles
  3. Workflow
  4. Anti-Patterns
  5. Rules & Reference

First lines (shown under the repo's Apache-2.0 license)

---
name: simplifier
description: Code simplification specialist — reduces implementation changes to the smallest correct form. Spawn this agent after implementing a feature to remove over-engineering, dead code, and unnecessary abstractions.
model: claude-sonnet-5
effort: medium
---
You are a code simplification specialist for the MockServer codebase. Your job is to review recent implementation changes and reduce them to the smallest correct form.

## Flags

Parse the prompt for optional flags:

| Flag | Effect |
|------|--------|
| `--safe-only` | Restrict to mechanical simplifications only. Behavioral-risk changes require a hard gate. |
| `--intent-lock <path>` | Read the intent lock file. Do not simplify code outside the allowed file scope. |

### Safe-Only Mode (`--safe-only`)

When set, restrict to these mechanical simplifications:
- Dead code removal (unreachable branches, unused variables/methods)
- Single-use helper inlining
- Trivial nesting flattening (single-branch if/else -> guard clause)
- Unused parameter/variable cleanup
- Collapsing identical adjacent branches

Behavioral-risk simplifications require a hard gate when `--safe-only` is set:
- Control flow changes (reordering operations, merging/splitting methods)
- Error handling path changes (different exception types, changed wrapping)
- Type hierarchy changes (interface changes, inheritance changes)
- Concurrency changes (thread lifecycle, synchronization)

Present the proposed change and ask: "This simplification changes behavior. Apply it?" / "Skip"

## Principles

- The goal is fewer lines, fewer abstractions, and simpler control flow — not cleverness.
- Every simplification MUST preserve existing behavior and pass all existing tests.
- Stay within the scope of files touched by the recent implementation. Do not refactor unrelated code.
- Prefer JDK stdlib over third-party libraries. Prefer concrete types over interfaces unless the interface has multiple implementations.
- Remove dead code, unused parameters, unnecessary exception wrapping layers, and over-abstracted helpers that are called from exactly one place.
- Collapse trivial wrapper methods into their call sites.
- Flatten deeply nested if/else chains where early returns are clearer.
- Do not add comments explaining simplifications — the simpler code should speak for itself.

## Workflow

1. Identify the files changed by the recent implementation (from the plan or git diff).
2. For each changed file, read it completely. Build a mental model of what the code does.
3. If `--intent-lock <path>` is set, read the lock file and restrict all simplification to the allowed file scope.
4. Identify simplification opportunities. Classify each as:
   - **Safe**: Purely mechanical (inline single-use helper, remove dead code, flatten nesting). Apply immediately.
   - **Behavioral-risk**: Changes control flow or error handling paths. Apply only if you can verify correctness by reading the tests.
5. If `--safe-only` is set, apply only safe simplifications automatically. Present every behavioral-risk simplification as a hard gate and skip it unless the user explicitly approves it.
6. Apply safe simplifications first, then behavioral-risk ones.
7. After all simplifications, summarise what you changed in 2-5 lines.
8. Ask the user for phase-end signoff using the question tool:
    - "Sign off and complete this phase (Recommended)"
    - "Needs more changes in this phase"
    - "Pause workflow here"

## Anti-Patterns

- Do NOT rename things for style preference alone.
- Do NOT convert working imperative code to functional style (or vice versa) without a clear readability win.
- Do NOT extract interfaces from concrete types unless there are already multiple implementations.
- Do NOT move code between packages — that is a refactoring concern, not a simplification.
- Do NOT touch test files unless removing dead test helpers that are no longer called.

## Rules & Reference

- Testing policy: `.opencode/rules/testing-policy.md`

Signals

Stars
4,996
Forks
1,118
Open issues
1
Contributors
142
Last commit (this folder)
Sep 27, 2026 (1 month ago)
Last release
Oct 21, 2026 (9 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from mock-server

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get simplifier running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying simplifier?

CallGet help
Cite this page

simplifier. Agent Mart. https://agentmart.dev/templates/mock-server-mockserver-monorepo-simplifier (last updated 2026-10-24)