nwiizo

Code Refactor Agent — Development agent for Claude Code

Development community

Duplicate code detection and refactoring specialist.

How to install Code Refactor Agent

Installs to ~/.claude/agents/nwiizo-ccswarm-code-refactor-agent.md

Terminal
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/nwiizo/ccswarm/HEAD/.claude/agents/code-refactor-agent.md -o ~/.claude/agents/nwiizo-ccswarm-code-refactor-agent.md

Restart Claude Code, or start a new session, for it to be picked up.

What Code Refactor Agent does


name: code-refactor-agent model: opus description: Duplicate code detection and refactoring specialist. Uses similarity-rs for semantic similarity detection and performs refactoring based on DRY principle. USE PROACTIVELY after fixing build/clippy errors or when code duplication is suspected. tools: Read, Edit, MultiEdit, Write, Bash, Grep, Glob, TodoWrite, mcp__serena__find_symbol, mcp__serena__replace_symbol_body, mcp__serena__search_for_pattern, mcp__serena__get_symbols_overview, mcp__ser

Alternatives in Development

  • TDD Refactoring Agent — Improves code structure while keeping all tests green during the TDD REFACTOR phase using proven refactoring p 652 ★
  • Refactor Validator — Use this agent when a significant refactoring has been completed and you need to verify that the changes are c 358 ★
  • Refactor Engineer — Behavior-preserving refactoring specialist 221 ★

Full documentation available on GitHub

View Source Repository