
Local, offline semantic search for your files and code — built for AI agents like Claude Code, with an MCP server.
Local, offline semantic search for your files and code — built for AI agents like Claude Code, with an MCP server.
Reference is a fully local semantic search engine for your files and code, purpose-built to feed AI coding agents like Claude Code. Nothing leaves your machine — a lightweight embedding model runs on-device and keeps a live index that updates as you save, using tree-sitter for code-aware chunking so results come back cited to the exact function or block. Instead of coding assistants burning tokens on grep loops, they can query Reference over its built-in MCP server (/search, /explain, /find_similar, /check_doc_drift) and get precise, citation-linked context. It ships as a Mac desktop app built with Tauri, is open source on GitHub, and is offered free during launch.

Reference is a local, offline semantic search tool designed to efficiently manage and retrieve files and code, specifically tailored for AI agents like Claude Code. It operates with an MCP (Multi-Core Processing) server, enhancing the search capabilities within various programming environments.
Reference operates by creating a local database of your files and code, allowing users to execute semantic searches. This means you can search not just for exact phrases but also for concepts and related terms. For example, if you search for "data analysis," Reference might return files related to "data interpretation," "statistical methods," or other relevant topics, providing a wider range of results.
Its design is particularly beneficial for software developers and data scientists who often work in environments with sensitive information or limited internet access. By using an MCP server, Reference can handle multiple queries simultaneously, dramatically improving search speed and efficiency.
Reference operates by leveraging a Local Semantic Index that runs on your machine, ensuring data privacy. It features Live Auto-Reindexing for real-time updates, Code-Aware Chunking for precise code citation, and built-in MCP Server endpoints for efficient querying, all enhancing grounded coding Q&A.
Reference is a powerful tool designed to enhance coding efficiency and accuracy. Here’s how each component works:
Local Semantic Index: This functionality runs a specialized embedding model directly on your local files and code, meaning sensitive data never leaves your environment, providing enhanced security for developers concerned about privacy.
Live Auto-Reindexing: As you save changes in your code, Reference automatically updates its index. This ensures that any search queries reflect the most current state of your codebase, which is critical for maintaining accuracy in real-time coding environments.
Code-Aware Chunking: By utilizing tree-sitter, a parser generator tool, Reference breaks down code into specific functions and syntactic units. This allows users to pinpoint results down to the exact region of their code, making it easier to find and reference specific implementations.
Built-in MCP Server: This server exposes several endpoints, including /search, /explain, /find_similar, and /check_doc_drift. These endpoints enable AI agents like Claude Code to query your codebase directly, facilitating more intelligent and context-aware responses.
Cited Answers: Unlike traditional AI advice that may lack specificity, every response from Reference links back to the exact file and function in your code. This grounded approach ensures that users receive verifiable references, providing clarity and confidence in their coding practices.
Claude Code Context Injection: By using the MCP server, Claude Code can pull precise snippets from your code without resorting to resource-intensive grep loops, resulting in faster and more relevant responses.
Refactoring Prep: The /find_similar endpoint helps identify analogous implementations across your repository, making it easier to consolidate or standardize your code.
Doc-Code Alignment: With the /check_doc_drift endpoint, developers can quickly identify discrepancies between documentation and actual code, ensuring that your documentation remains accurate and up-to-date.
Offline / Air-Gapped Work: Reference provides semantic code search capabilities for environments that cannot upload source code to cloud services, ensuring that developers can still leverage advanced search functionalities even in restricted settings.
/check_doc_drift command to ensure your documentation aligns with your code changes, preventing confusion for yourself and your team.Reference offers powerful features like Local Semantic Indexing, Live Auto-Reindexing, Code-Aware Chunking, a built-in MCP Server, and Cited Answers. These capabilities ensure that developers have an efficient, real-time, and grounded search experience tailored to their specific codebases without compromising data privacy.
This feature runs an embedding model locally, meaning that your files and code stay on your machine. It enhances privacy and security, allowing developers to query their code without sending sensitive information to external servers. For instance, a developer can quickly find relevant functions or classes in a large codebase without risking exposure.
Live Auto-Reindexing updates the search index automatically as developers save their files. This means that every time you modify your code, the search results reflect these changes in real-time. For example, if you add a new function, you can immediately search for it without needing to manually refresh or reindex the database.
Utilizing tree-sitter, Code-Aware Chunking helps break down code into syntactic units or functions. This intelligent parsing allows the search to pinpoint results down to the specific line of code. Imagine searching for a function name and receiving results that include the exact code snippet, enhancing both accuracy and context.
The built-in MCP Server provides several endpoints such as /search, /explain, /find_similar, and /check_doc_drift. This allows other AI agents, like Claude Code, to interact seamlessly with your codebase. For example, a query to /find_similar could return other functions that perform similar tasks, aiding in code reuse and optimization.
Each result generated by Reference includes citations back to specific files and functions. This feature replaces generic AI suggestions with grounded, verifiable references, enhancing reliability. A developer can trust the answer because it points directly to the code, facilitating better decision-making and learning.
Reference is designed for developers, programmers, and technical teams who need precise coding assistance. It enhances Grounded Coding Q&A, refactoring prep, documentation alignment, and enables offline semantic code searches, making it an invaluable tool for maintaining high-quality codebases.
Reference is a versatile tool tailored for individuals and teams involved in software development. Here’s a deeper look at its capabilities:
When developers encounter issues like rate limiting, they can ask specific questions such as, "How did I implement rate limiting here?" Reference returns the exact function used in the implementation. This feature saves time and provides clarity, enabling developers to focus on solutions rather than searching through endless documentation.
Using the MCP server, Reference allows for the extraction of precisely cited snippets. This method avoids the inefficiencies of traditional grep loops, which can be computationally expensive and time-consuming. By leveraging this tool, developers can optimize their coding processes and enhance productivity.
Before undertaking refactoring, developers can use the /find_similar command to identify analogous implementations across the code repository. This feature aids in recognizing patterns and consolidating similar code, facilitating a smoother standardization process.
The /check_doc_drift command is crucial for maintaining accurate documentation. This tool helps catch discrepancies between the code and its documentation, ensuring that developers always have up-to-date information. This alignment is vital for onboarding new team members and maintaining project integrity.
For teams working in secure environments where source code cannot be uploaded to cloud services, Reference provides semantic code search capabilities. This allows developers to efficiently search code locally, ensuring that they can still access valuable insights without compromising security protocols.
/find_similar and /check_doc_drift to streamline your workflow.Reference is completely free to use, making it accessible for anyone looking to leverage its features. There are no hidden fees or premium subscriptions, ensuring that users can benefit from the platform without any financial commitment.
Reference offers a user-friendly platform that is entirely free, allowing users to access its tools and features without any payment. This makes it an attractive option for students, professionals, and small businesses that may have budget constraints. The absence of fees means that users can explore various functionalities and benefits without the risk of incurring unexpected costs.
For example, if you're a student researching for a project, you can use Reference to gather data and insights without worrying about subscription fees. Similarly, small business owners can utilize the platform for marketing or operational needs at no cost, making it a valuable resource.
Additionally, Reference's free model can help foster a community of users who share tips, insights, and experiences, further enhancing the platform's utility. This collaborative environment allows users to learn from one another while accessing valuable resources.
To get started with Reference, visit tryreference.com to sign up for an account. After creating your account, explore various features and tools offered by Reference to enhance your research and writing process.
Starting with Reference is straightforward. First, navigate to tryreference.com and click on the “Sign Up” button. You will need to provide your email address and create a password. Once your account is created, you’ll receive a confirmation email to verify your account.
After logging in, take time to explore the dashboard. Reference offers various tools designed to streamline your research and writing. For instance, you can utilize citation generators, collaborative writing spaces, and document sharing features. These tools help researchers manage their references and create bibliographies efficiently.
Additionally, Reference provides tutorials and guides within the platform. These resources are beneficial for both beginners and seasoned users, helping you maximize the features available. If you encounter any issues, the support team is readily accessible to assist you.
By following these steps and utilizing the available resources, you’ll be well on your way to effectively using Reference for your research and writing needs.
Compare Reference: vs Mise · vs BiBimba · vs VoiceCap · vs NM Signals