**Show HN: SourceMinder, a Context Aware Code Search for Solo Devs and Claude Code**
As a solo developer, I've often found myself struggling with the limitations of code search tools. The frustration mounts when working on large projects with thousands of lines of code, only to have your trusty LLM (Large Language Model) get lost in the sea of text. Enter SourceMinder, a context-aware code search tool designed specifically for solo devs and Claude Code users.
**A Brief Backstory**
In July, I made the ill-fated decision to quit my job. Fast forward to August, when I signed up for the Claude Pro plan, hoping to stay competitive in the job market. As I delved deeper into the world of LLMs, I encountered a host of challenges, including context window issues on my first two projects.
**The Genesis of SourceMinder**
Those early struggles with Claude Code led me to develop a tool that would make it easier for solo devs and Claude users to search their codebases efficiently. The first version was created using TypeScript, but as the project grew in size, I realized the need for something more robust. That's when I turned to C11, pairing it with sqlite and tree-sitter to create SourceMinder.
**What is SourceMinder?**
At its core, SourceMinder is a code index that provides context-aware search results, helping users avoid fruitless searches and eliminate unnecessary effort. With SourceMinder, you can query your codebase, exclude strings and comments, and focus on the "code proper." This not only saves time but also reduces the number of tokens consumed by Claude Code.
**How Does it Work?**
SourceMinder uses a combination of sqlite and tree-sitter to create an index of your codebase. When you query the index using the `qi` tool, SourceMinder returns search results that are context-aware, taking into account the project's specific terminology and syntax. This means that Claude Code can focus on implementing features without getting bogged down in unnecessary searches.
**Key Features**
Some of the key features of SourceMinder include:
* Context-aware search results * Exclusion of strings and comments * Fast querying using sqlite * Integration with tree-sitter for language-specific syntax * Open-source license (GPLv3)
**Getting Started**
SourceMinder is available on GitHub, and I invite you to try it out. The codebase is approximately 9,000 lines of C11, but don't worry if you're not an expert in the language – it's well-documented and understandable even for a C amateur like myself.
**Future Development**
While SourceMinder is complete for now, there are still many features to be added. Some potential areas of development include:
* Integration with other code editors and IDEs * Support for additional programming languages * Improved indexing algorithms for faster querying
If you're interested in contributing to the project or have questions about how to use SourceMinder, please don't hesitate to reach out.
**Conclusion**
SourceMinder is a game-changer for solo devs and Claude Code users. By providing context-aware search results, it helps reduce the time spent searching through codebases and allows developers to focus on writing code, not hunting down irrelevant information. Give it a try today and see how it can improve your development experience!