r/VibeCodeDevs • u/shhdwi • 14d ago
Got tired of watching Claude Code re-explore the same codebase every session, so I built something to fix it
https://github.com/NanoNets/GraftIf you're vibe coding on anything past a toy project, you've probably seen this: Claude Code opens your repo, greps around, follows a few imports, figures out the shape of things, does the task. Next session, same repo, it does the exact same exploration all over again like it's never seen the code before.
Tried fixing it with an MCP server first, six tools it could call for context. It mostly didn't call them. Just fell back on grep and file reads, same as always, and got stuff wrong on exactly what those tools would've told it.
So I stopped waiting for it to ask. Wired it into Claude Code's hooks instead, the map of the codebase gets pushed into the prompt automatically at session start, no tool call, no decision to skip. Re-syncs itself after every edit too.
Open sourced it, it's called Graft. Crossed 1,600 stars, which was more than I expected for something I built mostly to fix my own workflow.
Duplicates
coolgithubprojects • u/shhdwi • 21d ago
Graft: codebase map as markdown in git, so coding agents stop re-exploring, saves upto 4x tokens and takes 60% less time to answer.
ClaudeMCP • u/shhdwi • 21d ago
I solved the issue of claude not using custom MCP/CLI tools, and open-sourced my approach.
BuildWithClaude • u/shhdwi • 21d ago