Topics / #refactoring

Refactoring projects on GitHub

Tools and automation for restructuring and cleaning up code safely.

As of , the most-starred Refactoring projects on GitHub are GitNexus (48.9K stars), serena (31.7K stars) and YouCompleteMe (25.9K stars). GitHub.Locker tracks 16 Refactoring repositories with 229.4K stars combined. The fastest-growing on November 30 was repowise, with +46 stars in a day.

16Projects
229.4KStars in total
+156Stars in a day

Hot right now

Most stars gained in a day · Nov 30

The all-time top

16 projects · by stars

  1. #1 · abhigyanpatwari/GitNexus

    GitNexus

    It indexes any codebase into a knowledge graph — dependencies, call chains, clusters, execution flows — and serves it to AI coding agents via MCP tools so they stop making blind edits.

    48.9K
  2. #2 · oraios/serena

    serena

    A free, open-source MCP toolkit that gives AI coding agents IDE-grade semantic tools: symbol-level code retrieval, editing, refactoring and debugging. Its tagline: the IDE for your coding agent.

    31.7K
  3. #3 · ycm-core/YouCompleteMe

    YouCompleteMe

    YouCompleteMe (YCM) is a fast, as-you-type, fuzzy-search code completion, comprehension and refactoring engine for Vim. It has several completion engines built in and supports any protocol-compliant Language Server, so it can work with practically any language.

    25.9K
  1. 4

    PHP-Parser

    17.5Knikic/PHP-Parser · PHP

    A parser written in PHP that turns PHP code into an abstract syntax tree (AST). Its purpose is to simplify static code analysis and manipulation of PHP code.

  2. 5

    rust-analyzer

    17Krust-lang/rust-analyzer · Rust

    rust-analyzer is a language server that provides IDE functionality for writing Rust programs — the code-intelligence engine you use while writing Rust in an editor.

  3. 6

    ast-grep

    16.6Kast-grep/ast-grep · Rust

    ast-grep (sg) is a CLI tool for structural search, linting and rewriting of source code — like grep, but matching the abstract syntax tree instead of raw text.

  4. 7

    vim-go

    16.2Kfatih/vim-go · Vim Script

    vim-go is a Vim plugin that adds Go language support to your editor: compiling, running and testing code, richer syntax highlighting, debugging, and gopls-powered completion and navigation.

  5. 8

    pre-commit

    15.7Kpre-commit/pre-commit · Python

    pre-commit is a framework for managing and running git pre-commit hooks across many programming languages, so you can catch issues (formatting, lint errors, secrets, etc.) before a commit is made.

  6. 9

    rector

    10.5Krectorphp/rector · PHP

    Rector is a PHP tool that instantly upgrades and refactors PHP codebases: it automates upgrades from PHP 5.3 up to 8.5 plus framework migrations, and can keep code quality high continuously via CI.

  7. 10

    jscodeshift

    10.1Kmeta/jscodeshift · JavaScript

    A codemod toolkit from Meta for running transform scripts across many JavaScript or TypeScript files at once. Under the hood it wraps recast, an AST-to-AST transformer that tries to preserve the style of your original code.

  8. 11

    repowise

    8.3Krepowise-dev/repowise · Python

    Repowise indexes a codebase once (code, dependency graph, git history, tests, docs, and architectural decisions) and then gives AI agents and developers cited answers, change-impact analysis, and concrete code-health fixes instead of making an agent rediscover the code every time.

  9. 12

    desloppify

    4.1Kpeteromallet/desloppify · Python

    Desloppify is an agent harness that gives AI coding agents the tools to detect, triage, and fix code quality issues in a codebase — combining mechanical checks (dead code, duplication, complexity) with LLM-based review of naming, abstractions, and module boundaries — and tracks progress with a score.

  10. 13

    Skills

    4KDimillian/Skills · Shell

    This is a collection of 16 reusable Codex Skills for Apple-platform engineering: SwiftUI/Xcode code review, refactoring, debugging, performance audits, GitHub workflow automation, and multi-agent review and bug-hunt swarms.

  11. 14

    clice

    1.8Kclice-io/clice · C++

    clice is a language server for C, C++, Objective-C and CUDA, built on Clang and LLVM. It is written in modern C++ and also ships a command-line tool that uses the same engine.

  12. 15

    simplify-codebase

    518tt-a1i/simplify-codebase · HTML

    An Agent Skill that helps coding agents prove and safely remove accidental complexity from an existing codebase without changing its real behavior.

  13. 16

    cyclomatic-complexity-skill

    409saurabhkumar8112/cyclomatic-complexity-skill

    A Claude Skill that teaches Claude to measure a function's cyclomatic complexity and refactor the worst offenders instead of leaving tangled branch-heavy code behind.

Often tagged together