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.
Hot right now
Most stars gained in a day · Nov 30
+46repowise
repowise-dev/repowise · ★ 8.3KRepowise 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.
+35serena
oraios/serena · ★ 31.7KA 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.
+25GitNexus
abhigyanpatwari/GitNexus · ★ 48.9KIt 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.
ast-grep
ast-grep/ast-grep · ★ 16.6Kast-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.
The all-time top
16 projects · by stars
- 48.9K
#1 · abhigyanpatwari/GitNexusGitNexus
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.
- 31.7K
#2 · oraios/serenaserena
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.
- 25.9K
#3 · ycm-core/YouCompleteMeYouCompleteMe
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.
- 4

PHP-Parser
17.5Knikic/PHP-Parser · PHPA 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.
- 5
rust-analyzer
17Krust-lang/rust-analyzer · Rustrust-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.
- 6
ast-grep
16.6Kast-grep/ast-grep · Rustast-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.
- 7

vim-go
16.2Kfatih/vim-go · Vim Scriptvim-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.
- 8

pre-commit
15.7Kpre-commit/pre-commit · Pythonpre-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.
- 9

rector
10.5Krectorphp/rector · PHPRector 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.
- 10

jscodeshift
10.1Kmeta/jscodeshift · JavaScriptA 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.
- 11

repowise
8.3Krepowise-dev/repowise · PythonRepowise 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.
- 12

desloppify
4.1Kpeteromallet/desloppify · PythonDesloppify 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.
- 13

Skills
4KDimillian/Skills · ShellThis 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.
- 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.
- 15

simplify-codebase
518tt-a1i/simplify-codebase · HTMLAn Agent Skill that helps coding agents prove and safely remove accidental complexity from an existing codebase without changing its real behavior.
- 16

cyclomatic-complexity-skill
409saurabhkumar8112/cyclomatic-complexity-skillA 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.
Related topics
Often tagged together