code-simplifier — Claude Code plugin: tidy up recent changes
A subagent that rewrites recently modified code for clarity and consistency while keeping behaviour identical.
/plugin install code-simplifier@claude-plugins-official
/plugin marketplace add anthropics/claude-plugins-officialWhat code-simplifier does
code-simplifier is a subagent shipped in Anthropic's official Claude marketplace. It reads the code you just touched and rewrites it for clarity and consistency. Behaviour stays the same: no new features, no edits to parts of the repo you did not change.
It runs as an agent rather than a slash command, so you invoke it through Task or just ask for it in chat. The focus on recent changes is the real limit here. Point it at specific files if you want older code covered, because it will not go looking on its own. No API keys or external services involved — it works inside your current session.
Worth installing if your diffs tend to be working but bulky. Commit before running it on anything important. The agent edits files in place, and without history there is nothing to roll back to.
What it helps with
- simplify a function you just wrote in a hurry
- match freshly added code to the style of the surrounding file
- strip redundant branches and duplication from a recent edit
- clean up a messy diff before code review
- tidy code after a quick fix without breaking its logic
Example prompts for the agent
- Simplify the code I just changed in
src/api/handler.ts - Run code-simplifier over my latest edits in this file
- Make the functions I just added consistent with the rest, keep behaviour the same
How to install code-simplifier
Plugin marketplace
/plugin install code-simplifier@claude-plugins-official/plugin marketplace add anthropics/claude-plugins-officialStep by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own
Questions about code-simplifier
How do I install code-simplifier in Claude?
Add the marketplace with /plugin marketplace add anthropics/claude-plugins-official, then install the plugin: /plugin install code-simplifier@claude-plugins-official.
What does code-simplifier do?
It simplifies and refines recently modified code — removing clutter and evening out style — while preserving functionality.
Which code does it look at?
Recently modified code. It does not scan the rest of the repository by itself, so name those files explicitly.
Source text
code-simplifier · Apache-2.0
Agent that simplifies and refines code for clarity, consistency, and maintainability while preserving functionality. Focuses on recently modified code.
© Anthropic · Apache-2.0 · anthropics/claude-plugins-official