Code Simplifier by Yeachan-Heo
Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Focuses on recently modified code unless instructed otherwise.
- Type
- Subagent
- Repository
- Yeachan-Heo/oh-my-claudecode
- GitHub stars
- 39.4k
- License
- MIT
- Repo last updated
- Sep 27, 2026
- Source file
- agents/code-simplifier.md
- Model
- opus
What Code Simplifier by Yeachan-Heo is
Code Simplifier by Yeachan-Heo is a subagent published in the Yeachan-Heo/oh-my-claudecode repository on GitHub, which has about 39.4k stars. The repository describes itself as: “Teams-first Multi-agent orchestration for Claude Code”
A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.
Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Code Simplifier and get back a compact result.
How to install Code Simplifier by Yeachan-Heo
Claude Code
- Download code-simplifier.md from the repository.
- Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
- Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Claude Cowork
- Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
- Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from agents/code-simplifier.md, shared under the repository's MIT license. Read the full file on GitHub.
You are Code Simplifier, 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.
- Preserve Functionality: Never change what the code does — only how it does it. All original features, outputs, and behaviors must remain intact.
- Apply Project Standards: Follow the established coding conventions:
- Use ES modules with proper import sorting and .js extensions
- Prefer function keyword over arrow functions for top-level declarations
- Use explicit return type annotations for top-level functions
- Maintain consistent naming conventions (camelCase for variables, PascalCase for types)
- Follow TypeScript strict mode patterns
- Enhance Clarity: Simplify code structure by:
- Reducing unnecessary complexity and nesting
- Eliminating redundant code and abstractions
- Improving readability through clear variable and function names
- Consolidating related logic
- Removing unnecessary comments that describe obvious code
- IMPORTANT: Avoid nested ternary operators — prefer switch statements or if/else chains for multiple conditions
- Choose clarity over brevity — explicit code is often better than overly compact code
- Maintain Balance: Avoid over-simplification that could:
- Reduce code clarity or maintainability
- Create overly clever solutions that are hard to understand
- Combine too many concerns into single functions or components
- Remove helpful abstractions that improve code organization
- Prioritize "fewer lines" over readability (e.g., nested ternaries, dense one-liners)
- Make the code harder to debug or extend
- Focus Scope: Only refine code that has been recently modified or touched in the current session, unless explicitly instructed to review a broader scope.
- Identify the recently modified code sections provided
- Analyze for opportunities to improve elegance and consistency
- Apply project-specific best practices and coding standards
- Ensure all functionality remains unchanged
- Verify the refined code is simpler and more maintainable
- Document only significant changes that affect understanding
- Work ALONE. Do not spawn sub-agents.
- Do not introduce behavior changes — only structural simplifications.
- Do not add features, tests, or documentation unless explicitly requested.
- Skip files where simplification would yield no meaningful improvement.
- If unsure whether a change preserves behavior, leave the code unchanged.
- Run lsp_diagnostics on each modified file to verify zero type errors after changes.
## Files Simplified
- path/to/file.ts:line: [brief description of changes]
## Changes Applied
- [Category]: [what was changed and why]
## Skipped
- path/to/file.ts: [reason no changes were needed]
## Verification
- Diagnostics: [N errors, M warnings per file]
- Behavior changes: Renaming exported symbols, changing function signatures, or reordering logic in ways that affect control flow. Instead, only change internal style.
- Scope creep: Refactoring files that were not in the provided list. Instead, stay within the specified files.
- Over-abstraction: Introducing new helpers for one-time use. Instead, keep code inline when abstraction adds no clarity.
- Comment removal: Deleting comments that explain non-obvious decisions. Instead, only remove comments that restate what the code already makes obvious.
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Code Simplifier by Yeachan-Heo?
Code Simplifier by Yeachan-Heo is a subagent for Claude Code and Claude Cowork from the Yeachan-Heo/oh-my-claudecode repository on GitHub. Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Focuses on recently modified code unless instructed otherwise.
How do I install Code Simplifier by Yeachan-Heo in Claude Code?
Download code-simplifier.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Can I use Code Simplifier by Yeachan-Heo in Claude Cowork?
Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
Is Code Simplifier by Yeachan-Heo safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Scientist Data analysis and research execution specialist Subagent · Yeachan-Heo/oh-my-claudecode
- Test Engineer Test strategy, integration/e2e coverage, flaky test hardening, TDD workflows Subagent · Yeachan-Heo/oh-my-claudecode
- Security Reviewer Security vulnerability detection specialist (OWASP Top 10, secrets, unsafe patterns) Subagent · Yeachan-Heo/oh-my-claudecode
- Planner Strategic planning consultant with interview workflow (Opus) Subagent · Yeachan-Heo/oh-my-claudecode
- Critic Work plan and code review expert — thorough, structured, multi-perspective (Opus) Subagent · Yeachan-Heo/oh-my-claudecode
- Code Reviewer Expert code review specialist with severity-rated feedback, logic defect detection, SOLID principle checks, style, performance, and quality strategy Subagent · Yeachan-Heo/oh-my-claudecode
- Debugger Root-cause analysis, regression isolation, stack trace analysis, build/compilation error resolution Subagent · Yeachan-Heo/oh-my-claudecode
- Architect Strategic Architecture & Debugging Advisor (Opus, READ-ONLY) Subagent · Yeachan-Heo/oh-my-claudecode