explaingit

iohub/codexray

Analysis updated 2026-05-18

21RustAudience · developerComplexity · 2/5LicenseSetup · easy

TLDR

A local code search tool that plugs into AI coding assistants, combining keyword search, semantic search, and a code call graph to answer questions about your codebase.

Mindmap

mindmap
  root((CodeXRay))
    What it does
      Code search
      Call graph
      AI plugin
    Tech stack
      Rust
      Tree-sitter
    Use cases
      Find logic fast
      Trace callers
      Offline search
    Audience
      Developers
      AI coding tools

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Ask an AI coding assistant where a specific piece of logic lives in a large codebase.

USE CASE 2

Trace every function that calls a given function using the built-in call graph.

USE CASE 3

Search code offline with keyword and call-graph fallback when no AI embedding API key is available.

What is it built with?

RustTree-sitter

How does it compare?

iohub/codexrayavelino/roam-tuidanilaa1/auditkit
Stars212121
LanguageRustRustRust
Setup difficultyeasyeasymoderate
Complexity2/53/53/5
Audiencedeveloperdeveloperops devops

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Single curl install script, falls back to keyword search and call graph without an AI embedding API key.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

CodeXRay is a code search tool that plugs directly into AI coding assistants like Claude Code or OpenAI Codex. It reads your codebase, builds an index of every function, class, and method it finds, and then answers questions like "where is the login logic" or "what calls this function" by combining two different search techniques at once. The first technique is keyword search, which finds exact matches for names and tokens in your code. The second is semantic search, where your question gets converted into a mathematical representation (a vector) and the tool finds code that means the same thing, even if the words are different. Results from both techniques are merged and then scored a second time by a separate ranking model for precision. If you do not have access to an AI embedding API, the tool falls back to keyword search and a code call graph, so it still works offline. The call graph is built by parsing your source files with a tool called Tree-sitter, which understands the structure of code in seven languages: Rust, Python, JavaScript, TypeScript, Go, C/C++, and Java. From that parsing, CodeXRay maps out which functions call which other functions, so you can ask about dependencies in either direction. Indexing is incremental. The first time you run it, every file gets processed. After that, only files that changed are re-indexed, tracked by a checksum of each file's contents. The index is stored in a folder in your home directory and is never sent anywhere, everything stays on your own machine. Installation is a single curl command that downloads the right binary for your operating system, installs it, and registers it with Claude Code or Codex automatically. After restarting your AI assistant, CodeXRay starts alongside it, indexes your project, watches for file changes during the session, and exits when the session ends. There is no background process running when you are not using it. The project is written in Rust and released under the MIT license.

Copy-paste prompts

Prompt 1
Install CodeXRay and index my current project so my AI coding assistant can search it.
Prompt 2
Use CodeXRay to find where the login logic is implemented in this repo.
Prompt 3
Show me every function that calls parseConfig using CodeXRay's call graph.
Prompt 4
Set up CodeXRay for offline keyword search since I don't have an embedding API key.

Frequently asked questions

What is codexray?

A local code search tool that plugs into AI coding assistants, combining keyword search, semantic search, and a code call graph to answer questions about your codebase.

What language is codexray written in?

Mainly Rust. The stack also includes Rust, Tree-sitter.

What license does codexray use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is codexray to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is codexray for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.