An open-source tool helps Claude Code find relevant code first

code-context is an search tool that helps Claude Code find relevant parts of a project before reading files. It runs as an and prepares its search data on the user’s own computer.

Basic text search requires the agent to know the right words and can lead it to open whole files, while this es for both exact terms and similar meanings in one pass. It uses BM25 for precise keywords and for broad questions such as where is handled, then merges both result types into one ranked list.

The agent can also use SQL to rank and group results across many files in one query. The is available on GitHub.

Key points

  • Claude Code can search for relevant sections before reading entire code files.
  • BM25 and are combined to handle both exact names and broad questions.
  • SQL can rank and group search results across multiple files.
  • Search data is prepared on the user’s computer, and the is available on GitHub.
Read original