September 22, 2025 · Cheolwan Park
Have you ever wished your AI coding assistant actually read your code instead of pretending it did?
That was exactly my frustration.
I often found myself repeating the same things to Claude:
“Here’s that chunk of code I wrote before — please reuse it,”
“This is how I used that library in another project,”
“Follow this coding style, not the default one.”
Sound familiar? 😅
That’s why I hacked together something like a local version of Context7 — but one that actually digs into your source code . I call it Snippets , and I’d love for you to try it out and give me feedback.
Context7 is a neat tool, but I hit some walls with it:
The vision is simple:
👉 Give your AI a searchable memory of code snippets — your repos, your patterns, your style.
Snippets can analyze real source code, so it may give deeper insight for codebases.
Context7 is more limited to documentation formats like markdown.
Snippets wins in privacy: your data never leaves your machine.
Context7 depends on external servers (less control).
Context7 is easier to use out-of-the-box (cloud).
Snippets requires local setup (Docker). But that gives more control and avoids potentially paid features for private repos.
Snippets is open source — you can inspect, modify, trust what it's doing.
Context7 is closed source — less visibility into its internals.
Here are a few practical ways I’m already using Snippets:
Getting Snippets running locally is straightforward.
git clone <https://github.com/cheolwanpark/snippets>
cd snippetscp docker/.env.example docker/.envAdd your Claude OAuth Token and Gemini API key in docker/.env .
Claude OAuth Token: You can get one from claude setup-token command!
Gemini API key: It is for Embedding. You can get one from Google AI Studio !
cd docker
docker-compose up -dThis spins up:
Hook it up to Claude Code via MCP:
claude mcp add --transport http snippets <http://localhost:8080/mcp>Now you can literally ask Claude things like:
search error handling patterns in Python. use snippets.
search JWT authentication middleware. use snippets.
search async database queries in Rust. use snippets.Instead of vague memory, Claude pulls real snippets directly from your repos.
At the end of the day, here’s what I want:
Snippets is still early, but it’s a step toward “AI that actually understands your context.”
I’d love your thoughts:
Let’s make our coding assistants a little smarter — together.