refactor-codebase
Skill3.2k starsChanged 22 days agoMITView on GitHub
Refactor a whole codebase in one run, tuned to clear the layered debt AI-written code piles up, so a typical change lands in one place. Worth running regularly.
4 other projects use a version of this.
Trending
Quiet since October.about the whole repository
Most recently taken up by
- mysteryon88/skillstheir own version, first seen Nov 29, 2026
- dzhng/yapword for word, first seen Nov 15, 2026
- dzhng/skillsword for word, first seen Nov 15, 2026
- DingGao1124/skillstheir own version, first seen Aug 26, 2026
Who's talking about dzhng/jevgrep
- Alex Hitt“Jevgrep GitHub Explained: Semantic Code Discovery for AI Coding Agents”YouTube · Sep 30, 2026 · 4.6k views
- Amplify Imagination“Find code by asking what it does — jevgrep”YouTube · Sep 28, 2026 · 618 views
- 아르사(Artsa)“파일 이름을 몰라도 코드 위치부터 찾는 jevgrep — 원리, 공개 평가 읽는 법, OpenRouter 설정”YouTube · Sep 29, 2026 · 520 views
- Kod Radarı“jevgrep: Yapay Zeka Kodlama Ajanlarının Maliyetini Düşüren CLI”YouTube · Sep 28, 2026 · 249 views
- LookOnThisGit“Cut AI Token Waste by 40% with jevgrep 🤖”YouTube · Sep 27, 2026 · 107 views
The biggest 5 of 45 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 45
Talked about on YouTube, GitHub, the web, Bluesky and Hacker News (45 times).
On YouTube · 21
- Sep 30, 2026Jevgrep GitHub Explained: Semantic Code Discovery for AI Coding Agents — Alex Hitt4.6k views · 3 comments
- Sep 28, 2026Find code by asking what it does — jevgrep — Amplify Imagination618 views
- Sep 29, 2026파일 이름을 몰라도 코드 위치부터 찾는 jevgrep — 원리, 공개 평가 읽는 법, OpenRouter 설정 — 아르사(Artsa)520 views
- Sep 28, 2026jevgrep: Yapay Zeka Kodlama Ajanlarının Maliyetini Düşüren CLI — Kod Radarı249 views
- Sep 27, 2026Cut AI Token Waste by 40% with jevgrep 🤖 — LookOnThisGitsays it tested it107 views
16 more on YouTube
- Oct 5, 2026Ask Your Codebase Where Things Live #shorts — Repo Rush100 views
- Oct 3, 2026Jevgrep GitHub Explained: Custom System One Gateways and 422 Errors — Alex Hitt74 views
- Oct 4, 2026Jevgrep GitHub Overview: How Offline File Inventories Scope AI Code Search — Alex Hitt43 views
- Sep 29, 2026jevgrep: a free CLI that finds code by asking it a question — ViewOS42 views
- Sep 29, 2026jevgrep - free open source tool — RepoDrop33 views
- Sep 29, 2026hotin.ai daily · Sep 29, 2026 · lemomo-ai/lemo-opuscar — HotInAI23 views
- Sep 30, 2026hotin.ai daily · Sep 30, 2026 · glanderness/beeftv — HotInAI20 views
- Sep 29, 2026hotin.ai daily · Sep 29, 2026 · lemomo-ai/lemo-opuscar — HotInAI20 views
- Sep 30, 2026hotin.ai daily · Sep 30, 2026 · glanderness/beeftv — HotInAI15 views
- Sep 30, 2026jevgrep 잡으러 클로드·GPT 출동… 코드 찾기 최강 셰프의 정체!? 직접 먹어봄😋jevgrep — Hell's Kernel14 views
- Sep 28, 2026hotin.ai daily · Sep 28, 2026 · sparkcpark/synthetic_hospital — HotInAI13 views · 1 comment
- Oct 5, 2026Same tasks solved, about a third less paid for the tokens. #sketchthestack #ai #software #tech — Sketch The Stack10 views
- Sep 28, 2026hotin.ai daily · Sep 28, 2026 · sparkcpark/synthetic_hospital — HotInAI10 views
- Oct 7, 2026jevgrep: The Hottest TypeScript Repo on GitHub Right Now — Repo Radar9 views
- Oct 6, 2026jevgrep : ton agent IA de code, un quart moins cher — GitTendance8 views
- Sep 30, 2026Find code with about 30% lower cost — 89labsays it tested it8 views
On GitHub · 13
- Oct 26, 2026Weekly spot-check 2026-10-26 — StefanKasamakov/ai-compass0 reactions
- Oct 19, 2026[사례] jevgrep: 동작 기반 코드 검색 — tourbut/decision-lib0 reactions · 1 comment
- Oct 18, 2026agent-skills.github.dzhng.jevgrep: 0.8.3 → 0.8.5 — sudosubin/agents.nix0 reactions
- Oct 18, 2026agent-skills.github.dzhng.jevgrep: 0.8.1 → 0.8.3 — sudosubin/agents.nix0 reactions
- Oct 17, 2026agent-skills.github.dzhng.jevgrep: 0.8.0 → 0.8.1 — sudosubin/agents.nix0 reactions
8 more on GitHub
- Oct 17, 2026[Candidate] dzhng/jevgrep/.agents/skills/codex - codex — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 17, 2026[Candidate] dzhng/jevgrep/.agents/skills/claude - claude — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 12, 2026Weekly spot-check 2026-10-12 — StefanKasamakov/ai-compass0 reactions
- Oct 12, 2026dzhng 'jevgrep' — Jev 디시전 모델로 코드 검색, 코딩 에이전트 파일 탐색 비용 ~30% 절감 주장 — roomedia/ax-trendsays it tested it0 reactions
- Oct 4, 2026Clean up the Google Sheet so the graph gets real topics (Category values, duplicates, empty tabs) — Amitro123/knowledgeBase-Agent0 reactions · 3 comments
- Oct 3, 2026agent-skills.github.dzhng.jevgrep: init at 0.8.0 — sudosubin/agents.nix0 reactions
- Sep 27, 2026jevgrep: init at 0.3.0 — NixOS/nixpkgs0 reactions · 1 comment
- Sep 26, 2026docs: add jevgrep (dzhng) listing — AppitStudio/awesome-jev0 reactions
On the web · 8
- Oct 5, 2026Jev Is the New AI Starlet. Should Claude Be Worried? — theairarchitect.substack.com
- Oct 2, 2026Jevgrep: Find Code by Asking What It Does - Inside dzhng/jevgrep | PyShine — pyshine.com
- Oct 1, 2026Abdullah Chaudhary — linkedin.com
- Sep 29, 2026Codex Rate Limits Discussion Thread - Codex - OpenAI Developer Community — community.openai.com
- Sep 29, 2026Codex Rate Limits Discussion Thread - Codex - OpenAI Developer Community — community.openai.com
3 more on the web
- Sep 28, 2026Codex Rate Limits Discussion Thread - Codex - OpenAI Developer Community — community.openai.com
- Sep 28, 2026Codex Rate Limits Discussion Thread - Codex - OpenAI Developer Community — community.openai.com
- Sep 26, 2026jevgrep Review: Ask Where the Code Is | MrJev — mrjev.com
On Bluesky · 2
- Oct 1, 2026jevgrep — AIのコード探索コストを約30%削減するTypeScript製CLI ・自然言語でコードの役割を質問し、関連ファイルや該当箇所を特定 ・Claude Code等のAIエージェントにスキルとして組み込み可能… — @sarubot.bsky.socialsays it tested it2 likes and reposts
- Sep 26, 2026RT @dzhng: Introducing jevgrep - a research agent CLI powered by jev from @typesafeai that reduces your coding agent cost by 40% (verified… — @theo-mir-rt.selfhosted.socialsays it tested it0 likes and reposts · 1 reply
On Hacker News · 1
- Sep 28, 2026Jevgrep: A CLI for coding agents that uses Jev to discover relevant files5 points
Other versions4 projects use a version of this.
Word for word · 2
- dzhng/skills★ 1.5k100% same
- dzhng/yap★ 118100% same
Edited · 0
None found.
Wrote their own version · 2
- DingGao1124/skills★ 2same name
- mysteryon88/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository35 other files it gives its agents.
- AGENTS.mdAGENTS.md
- audit-agentsSkill
- audit-decisionsSkill
- audit-performanceSkill
- audit-testsSkill
- auto-researchSkill
- claudeSkill
- close-specSkill
- code-reviewSkill
- codexSkill
- compare-screenshotsSkill
- design-with-imagesSkill
- eli5Skill
- eval-skillsSkill
- explore-unknownsSkill
- find-overengineeringSkill
- find-state-machinesSkill
- handoff-specSkill
- implement-specSkill
- implement-spec-with-codexSkill
- jevgrepSkill
- launch-videoSkill
- marketing-pagesSkill
- port-featuresSkill
- preview-shotsSkill
- ratchet-filesSkill
- refactor-changeSkill
- reviewSkill
- screenshot-critiqueSkill
- typesafe-aiSkill
- write-docsSkill
- write-skillsSkill
- write-specSkill
- write-testsSkill
- jevgrepSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Ask one question of everything: should these pieces change together?
- Distinctive: line 45
Write each fix above the problems it removes:
- Distinctive: line 65
Commit each fix on its own with the project's checks passing, and name any behavior it changes in the commit message, so a behavior change …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Refactor Codebase
Refactor this whole codebase until a typical change lands in one place. Treat this as a goal and run it to the end. If I named an area, start there.
Ask one question of everything: should these pieces change together? The code gets the answer wrong in three ways:
- Hidden links — pieces that must change together, where nothing shows it: copied logic or values, a module reading state another module sets, one feature spread across folders by layer, a call order callers just have to know.
- Needless links — pieces tied together that change for different reasons: callers reaching into internals, stable code importing volatile code, a general function with a parameter only one caller understands, a shallow module whose interface changes whenever its internals do.
- Surplus — pieces with no reason of their own to change: pass-through wrappers, extension points and config for things that never vary, dead code.
Workflow
- List every problem before changing anything. Go through the whole
codebase and write down each place it gets the question wrong. List every
special case too: an
iffor one value, a parameter for one caller, a swallowed exception, a retry or sleep, a disabled test. Each one is a requirement the design never accounted for. Have subagents run the specialist hunts and add what they report, changing nothing yet: find-state-machines for one lifecycle spread across flags, effects and callbacks, find-overengineering for guards and fallbacks nothing needs, and ratchet-files for files too big to read whole. To reason across all of it at once, script a skeleton with the function bodies stripped and a graph of what imports what, and use git history as evidence of what really changes together. Keep the list in a file so it survives compaction. Redesign from the list. Work out the system as if it had known today's requirements from the start. Look for the one fix behind several problems; it often looks nothing like them. Never patch special cases one by one. Write each fix above the problems it removes:
- Make `Dialog` give focus back to whatever had it before it opened. - `LogoutDialog` waits 100ms after closing and hopes the input can take focus. - `SettingsDialog` sets a global `skipRefocus` flag to stop that refocus. - Make every user action one command with a name, a handler and an undo. - Toolbar and menu call the same actions, each with its own disabled check. - The keymap has a switch with one case per action. - The command palette keeps its own action list, missing the newer ones. - Undo has a special case for every action.Each fix is one mechanism that lands as one commit. Land nothing until the list is only fixes: every problem and special case sits under the fix that removes it, or under Kept with the reason the system still needs it.
- Land one fix at a time, each time the one that removes the most of what is left; it often makes smaller ones moot. Follow refactor-change for each, then audit its diff with code-review and fix what it finds. Commit each fix on its own with the project's checks passing, and name any behavior it changes in the commit message, so a behavior change traces to one fix. Tests are the safety net here, so leave them alone until step 5.
- Search again. Have fresh subagents hunt for hidden links, needless links, surplus and special cases, rerun the specialist hunts, and return to step 1 with what they find.
- Audit the tests. Once the search comes back empty, run audit-tests over the suites the refactor touched, and land what it finds the same way.
Done when subagents find nothing worth fixing, a typical change lands in one place, nothing imports anything more volatile than itself, every test earns its keep, and behavior is the same as when you started, apart from bugs the refactor fixed. The number of special cases left is the best measure of how close you are.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

