What is Vexus?
Vexus is a local code-retrieval tool for developers using AI coding agents in a git repository. Its prompt hook searches the project and gives Claude Code likely file and line locations before the agent starts searching, while an optional MCP server provides search and code-navigation tools to Claude Code and other MCP clients. Indexing and search run on the developer’s machine, and the index refreshes as files change.
Vexus Features:
Prompt Hook: A Claude Code hook runs on prompts, adds likely code locations to the agent’s context, and stays quiet on replies or reports that already identify the code.
Semantic Search: Vexus indexes repository code locally and uses semantic search to find likely entry points for questions phrased in everyday language.
Call Graph Mapping: Its search can return ranked locations, signatures, and call links, and trace callers, callees, or code that a change could affect.
Code Range Opening: The agent can open a symbol or an exact file range after reviewing a location map, rather than receiving full source with every search result.
Background Indexing: Vexus starts indexing in the background during setup and watches files for changes so the index stays current as developers edit.
MCP Server: An optional MCP server exposes explore, open, trace, and status tools to compatible clients, including Cursor, Windsurf, and Cline.
Vexus Benefits:
Lower Agent Costs: Across 288 reported Claude Code change-request sessions, using the hook cost 10% less overall while matching the pass rate of sessions without it.
Fewer Search Trips: By surfacing likely locations early, Vexus can cut down on repeated grep and file-reading calls while an agent works out where a feature lives.
Less Context Waste: Location maps let an agent check promising files and ranges before opening source, limiting how much irrelevant code it pulls into a task.
Local Processing: Keeping indexing and search on the machine means repository queries do not require sending code to a hosted search service.
Less Index Upkeep: Automatic background refresh reduces the need to stop work and manually rebuild the index after ordinary code edits.
Use Cases:
Understand a Feature: Ask a coding agent how a flow such as invoice creation works, then use the ranked locations and call links to inspect the relevant code.
Start a Change Request: Use the prompt hook when assigning an agent a repository change so it can begin with likely files instead of broad text searches.
Trace a Bug: Follow callers and callees to investigate how a behavior travels through handlers, services, and other connected code.
Explore an Unfamiliar Repo: Find likely entry points for a question about a codebase the agent has not worked in before, without asking it to return full source up front.
Use Another MCP Client: Connect the server to an MCP-compatible editor or agent when you want to search, open, or trace repository code outside the Claude Code prompt hook.

