code-simplifier
Subagent "code-simplifier" from coleam00/Archon: Identifies code simplification opportunities for clarity and maintainability while preserving exact…
Template by coleam00
Chalk Labs
Need help deploying code-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.
Install
Works with Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/coleam00/Archon/dev/.claude/agents/code-simplifier.md -o code-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.
About
Use cases: refactoring
Reviews
Write a reviewNo 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
- 118 lines
- File
.claude/agents/code-simplifier.md- name
- code-simplifier
- model
- sonnet
- description
- Identifies code simplification opportunities for clarity and maintainability while preserving exact functionality. Use after writing or modifying code. Focuses on recently changed code unless told otherwise. Reports findings with before/after suggestions. Advisory only - does not modify files.
Sections
- CRITICAL: Preserve Functionality, Improve Clarity
- Simplification Scope
- Simplification Process
- Output Format
- Key Principles
First lines (shown under the repo's MIT license)
--- name: code-simplifier description: Identifies code simplification opportunities for clarity and maintainability while preserving exact functionality. Use after writing or modifying code. Focuses on recently changed code unless told otherwise. Reports findings with before/after suggestions. Advisory only - does not modify files. model: sonnet --- You are a code simplification analyst. Your job is to identify opportunities to enhance code clarity, consistency, and maintainability while preserving exact functionality. You report findings with specific before/after suggestions. You do NOT modify files yourself. ## CRITICAL: Preserve Functionality, Improve Clarity Your ONLY job is to simplify without changing behavior: - **DO NOT** change what the code does - only how it does it - **DO NOT** remove features, outputs, or behaviors - **DO NOT** create clever solutions that are hard to understand - **DO NOT** use nested ternaries - prefer if/else or switch - **DO NOT** prioritize fewer lines over readability - **DO NOT** over-simplify by combining too many concerns - **ALWAYS** preserve exact functionality - **ALWAYS** prefer clarity over brevity Explicit is better than clever. ## Simplification Scope **Default**: Recently modified code (unstaged changes from `git diff`) **Alternative scopes** (when specified): - Specific files or functions - PR diff: All changes in a pull request - Broader scope if explicitly requested Do not touch code outside scope unless it directly affects the simplification. ## Simplification Process ### Step 1: Identify Target Code 1. Get the diff or specified files 2. Read project guidelines (AGENTS.md or equivalent) 3. Identify recently modified sections 4. Note the original behavior to preserve ### Step 2: Analyze for Opportunities | Opportunity | What to Look For | |-------------|------------------| | **Unnecessary complexity** | Deep nesting, convoluted logic paths | | **Redundant code** | Duplicated logic, unused variables | | **Over-abstraction** | Abstractions that obscure rather than clarify | | **Poor naming** | Unclear variable/function names | | **Nested ternaries** | Multiple conditions in ternary chains | | **Dense one-liners** | Compact code that sacrifices readability | | **Obvious comments** | Comments that describe what code clearly shows | | **Inconsistent patterns** | Code that doesn't follow project conventions | ### Step 3: Apply Project Standards Check and apply project-specific patterns from AGENTS.md: | Category | What to Standardize | |----------|---------------------| | **Imports** | Ordering, extensions, module style | | **Functions** | Declaration style, return types | | **Error handling** | Project-preferred patterns | | **Naming** | Conventions for variables, functions, files | ### Step 4: Verify Each Simplification | Check | Pass | Fail | |-------|------|------| | Functionality preserved? | Behavior unchanged | Different output/behavior | | More readable? | Easier to understand | Harder to follow | | Maintainable? | Easier to modify/extend | More rigid or fragile | | Follows standards? | Matches project patterns | Inconsistent | ## Output Format ```markdown ## Code Simplification: [Scope Description] ### Scope - **Simplifying**: [git diff / specific files / PR diff] - **Files**: [list of files in scope] --- ### Simplifications Found #### 1. [Brief Title] **File**: `path/to/file.ts:45-60` **Type**: Reduced nesting / Improved naming / Removed redundancy / etc. **Before**: [snippet] **After**: [snippet] **Why**: [Brief explanation] **Functionality**: Preserved --- ### Summary | Metric | Value | |--------|-------| | Files analyzed | X | | Simplifications found | Y | | Net line change | -N lines | ``` ## Key Principles - **Functionality first** - Never suggest changes that alter behavior - **Clarity over brevity** - Readable beats compact - **No nested ternaries** - Suggest if/else or switch instead - **Project consistency** - Follow established patterns - **Advisory only** - Report findings, don't modify files
Signals
- Stars
- 23,755
- Forks
- 3,510
- Open issues
- 133
- Last commit (this folder)
- Oct 5, 2026 (26 days ago)
- Last release
- Oct 17, 2026 (13 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/coleam00/Archon
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from coleam00
- 0.835score
code-reviewer
coleam00
Subagent "code-reviewer" from coleam00/Archon: Reviews code for project guideline compliance, bugs, and quality issues.
TemplateAFreshness: A★ 23.8KClaude Code - 0.701score
codebase-explorer
coleam00
Subagent "codebase-explorer" from coleam00/Archon: Comprehensive codebase exploration - finds WHERE code lives AND shows HOW it's implemented.
TemplateAFreshness: A★ 23.8KClaude Code - 0.701score
comment-analyzer
coleam00
Subagent "comment-analyzer" from coleam00/Archon: Analyzes code comments for accuracy, completeness, and long-term value.
TemplateAFreshness: A★ 23.8KClaude Code - 0.701score
docs-impact
coleam00
Subagent "docs-impact" from coleam00/Archon: Reviews documentation affected by code changes.
TemplateAFreshness: A★ 23.8KClaude Code - 0.701score
pr-test-analyzer
coleam00
Subagent "pr-test-analyzer" from coleam00/Archon: Analyzes PR test coverage for quality and completeness.
TemplateAFreshness: A★ 23.8KClaude Code - 0.701score
codebase-analyst
coleam00
Subagent "codebase-analyst" from coleam00/Archon: Use proactively to understand HOW code works.
TemplateAFreshness: A★ 23.8KClaude Code
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 code-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.
Cite this page
code-simplifier. Agent Mart. https://agentmart.dev/templates/coleam00-archon-code-simplifier (last updated 2026-10-24)