Code Simplifier

Refactor a small change with the Code Simplifier agent and use existing behavior checks to verify the result.

Published by Anthropic

Open publisher guide

Try a first task

Ask for simpler branching in a CSV import module without altering how it handles empty rows or invalid dates. Run those two existing fixtures and compare the reported row counts before and after the edit.

Setup and access

Use the publisher’s package if the subagent comes with a plugin. For a standalone agent definition, use the project’s .claude/agents/ directory and check that it appears under /agents.

Anthropic publishes this agent under the Code Simplifier plugin. Scope the review to the files changed for the task.

How Claude Code loads subagents

What to know before you start

Limit the task to the code that recently changed and explain which behavior must stay stable. Compare the resulting diff and tests with the original implementation to verify that clarity improved without losing a case.

Publisher references

Anthropic

Browse Agents