S

SourceMinder

Local CLI toolkit that indexes codebases by symbol for token-efficient AI search

Open Source

Gallery

About SourceMinder

SourceMinder is a command-line tool that indexes source code by symbols, letting developers and AI agents search codebases without pulling in entire files. It runs locally, stores everything in SQLite, and uses Tree-sitter for parsing. The problem it solves is straightforward but significant. When you or an LLM need to understand a function, you shouldn't have to ingest thousands of lines of unrelated code just to find a definition. SourceMinder creates a symbol index, then lets you query it in milliseconds. You get the exact snippet you need, nothing more. For anyone paying per token or working with context-limited models, that efficiency adds up fast. The tool emerged from the recognition that traditional code search methods waste resources. Grepping for a symbol and then dumping the entire file into an AI context window is crude and expensive.

The workflow starts with indexing. You point SourceMinder at your codebase and let it scan for symbols across supported languages. Right now it handles C, Go, Perl, PHP, Python, TypeScript, and Rust, covering a solid range of backend and scripting languages commonly found in production codebases. The indexer builds a searchable database that maps every function, class, variable, and other named symbol to its location and definition. This process runs once per codebase and updates incrementally as files change. Once indexed, you use the qi command to query. Type a symbol name, and it returns exactly where that symbol appears. Want just definitions? There's a flag for that. Need case-insensitive matching or wildcards? Those work too. Typical queries complete in about six milliseconds, which makes it practical for interactive use and for agents that need to make many lookups in sequence without introducing noticeable latency.

The tool targets a specific audience with specific needs. Solo developers who want fast local code navigation without spinning up a full IDE or configuring a language server. And, increasingly, AI agents that need to search codebases as part of their reasoning loop. Traditional approaches like grepping for a symbol and then catting the entire file waste tokens, and tokens cost money when you're running agents at scale. SourceMinder's partial output approach means the agent receives just the relevant snippet, not the surrounding noise. According to the project's benchmarks, this reduces token consumption by roughly fifteen percent compared to grep-and-cat workflows. That percentage might sound modest, but when you're making thousands of code lookups per day across multiple projects, the savings compound into real cost reduction.

Everything happens locally. SourceMinder doesn't phone home, doesn't require an account, doesn't need an internet connection, and doesn't send your code anywhere. It's just a C binary that reads your files, writes to a local SQLite database, and responds to queries. That makes it suitable for proprietary codebases, air-gapped environments, regulated industries with strict data handling requirements, or anyone who simply prefers keeping their tools offline. The design philosophy leans minimal and Unix-style. There's no GUI, no fancy visualization, no IDE plugin, no web interface. You interact with it through the terminal, and it does one thing well. For developers comfortable with command-line tools, this simplicity is a feature rather than a limitation. You can integrate it into shell scripts, pipe its output to other tools, and embed it in agent workflows without dealing with unnecessary complexity.

Beyond basic symbol search, SourceMinder can expand definitions on the fly. When you query a function, you can optionally retrieve not just where it's declared but also its full body. This is useful when you need to understand implementation details, not just locate the symbol. The tool can also generate a table of contents for individual files, showing all top-level symbols without you having to scroll through manually or load the file into an editor. These features stay consistent with the core goal of surfacing just enough context without overwhelming the user or the agent with irrelevant information. Every capability focuses on precision rather than exhaustiveness.

The project ships under the GPL-3.0 license and is completely free to use. There are no premium tiers, no cloud dependencies, no usage limits, and no telemetry. You clone the repo, compile the binary with standard C tooling, and it's yours forever. The source code is available for inspection, modification, and redistribution under the license terms. This openness matters for developers who want to verify what a tool does before trusting it with their codebase, and for teams that might need to customize behavior for specific use cases.

SourceMinder fits a narrow niche, but it fits it well. If you're building agentic workflows that need to query code repeatedly without burning through your token budget, or if you're a solo dev who wants grep-like speed with smarter filtering and symbol awareness, it delivers. The trade-off is limited language support compared to full language servers, no graphical interface for visual exploration, and a Unix-first design that assumes comfort with the terminal. Teams wanting comprehensive code intelligence with IDE features should look elsewhere. For its intended use case, though, SourceMinder provides a lightweight, token-efficient way to navigate large codebases without external dependencies, recurring costs, or data leaving your machine.

Key Features

  • Symbol-based codebase indexing via Tree-sitter
  • Six millisecond typical query time
  • Wildcard and type filter support
  • Entirely local with zero cloud calls
  • Fifteen percent token reduction vs grep workflows
  • Single binary install via curl

Pros & Cons

What we like

  • Runs fully local with no API keys or cloud dependencies
  • Fast queries even on large codebases
  • Open source under GPL v3
  • Reduces token usage for AI context windows

Room for improvement

  • Language support limited to seven languages currently
  • Beta status means rough edges may remain
  • Requires initial index build per language
  • No GUI, command line only

Frequently Asked Questions

What is SourceMinder?
SourceMinder is a local CLI tool that indexes your codebase by symbol using Tree-sitter. It lets you query for specific code elements in milliseconds without sending anything to a cloud service.
Is SourceMinder free?
Yes. It is open source under the GPL v3 license and free to use. You can inspect and modify the source on GitHub.
What languages does SourceMinder support?
It currently supports C, Go, Perl, PHP, Python, TypeScript, and Rust. Perl and Rust are marked as provisional. More languages may come via community contributions.
Who is SourceMinder for?
Developers who use AI coding assistants or build agent workflows and want to reduce token overhead by querying for specific symbols instead of dumping entire files into context.

Best For

Feeding relevant code context to AI coding assistantsBuilding agent workflows that query large codebasesSearching a codebase by symbol without IDE overheadReducing token costs when using LLMs on code

Featured in

Alternatives to SourceMinder

View all

Reviews (0)

No reviews yet

Be the first to share your experience with SourceMinder

Sign in to write a review

Badge builder

Add SourceMinder to your website

Choose a badge style and size, preview it here, then copy the generated HTML. Badge images are self-contained SVGs and do not require an external script.

SourceMinder badge preview
<a href="https://toolindex.net/tools/sourceminder?ref=badge" target="_blank" rel="noopener">
  <img src="https://toolindex.net/badge/sourceminder/medium.svg" alt="SourceMinder - Listed on Tool Index" width="180" height="50" />
</a>

How to use the badge

  1. 1. Pick the style, size, and theme that fit your layout.
  2. 2. Copy the generated HTML from the code block.
  3. 3. Paste it into your footer, homepage, or press page.

Standard badge available

The standard listing badge is available now. Score and circle badges are limited to tools currently ranked in the top 10 of a category.

Badge clicks return visitors to this profile with a referral tag so the source remains identifiable.