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 clean-code-javascript (94.7K stars), GitNexus (47.9K stars) and serena (30.3K stars). GitHub.Locker tracks 18 Refactoring repositories with 325K stars combined. The fastest-growing on October 16 was serena, with +37 stars in a day.
Hot right now
Most stars gained in a day · Oct 16
serena
oraios/serena · ★ 30.3KA 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.
+19repowise
repowise-dev/repowise · ★ 7.8KRepowise 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.
GitNexus
abhigyanpatwari/GitNexus · ★ 47.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.3Kast-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
18 projects · by stars
- 94.7K
#1 · ryanmcdermott/clean-code-javascriptclean-code-javascript
This is a guide that adapts the software engineering principles from Robert C. Martin's book 'Clean Code' specifically for JavaScript, with practical bad/good code examples.
- 47.9K
#2 · 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.
- 30.3K
#3 · 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.
- 4

YouCompleteMe
25.9Kycm-core/YouCompleteMe · PythonYouCompleteMe (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.
- 5

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.
- 6
rust-analyzer
16.9Krust-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.
- 7
ast-grep
16.3Kast-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.
- 8

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.
- 9

pre-commit
15.6Kpre-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.
- 10

rector
10.4Krectorphp/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.
- 11

sourcegraph-public-snapshot
10.3Ksourcegraph/sourcegraph-public-snapshot · GoSourcegraph is a code AI platform for working with big, complex codebases: it combines universal code search, code intelligence, and tooling to fix and refactor code at scale.
- 12

jscodeshift
10Kfacebook/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.
- 13

repowise
7.8Krepowise-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.
- 14

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.
- 15

simplify-codebase
508tt-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
405saurabhkumar8112/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.
- 17

reclaim-code-entropy
205Yevanchen/reclaim-code-entropyThis is an Agent Skill that guides an AI coding agent through safely simplifying a codebase by hunting down dead code, duplicate logic, and unnecessary abstractions using proof instead of guesswork.
- 18
Coding-Agent-Skills
2MiniPrincipal/Coding-Agent-SkillsA library of structured 'skills' that teach AI coding agents (Claude Code, Cursor, GitHub Copilot, Windsurf, OpenAI Codex) how to explore a codebase, implement features, debug, review, test, and refactor code using consistent engineering workflows.
Related topics
Often tagged together
- developer-tools2,924
- linux4,184
- macos3,544
- windows3,403
- open-source5,666
- static-analysis125
- automation1,183
- mit3,312
- tool1,295
- code-quality100
- cross-platform2,623
- ai-agents1,289
- cli2,227
- code-review102
- ai1,955
- codex710
- agent821
- agent-skills553
- typescript1,821
- claude-code903
- code-analysis37
- developers435
- javascript1,842
- python2,383