Skip to content

About

Self-hosted code intelligence hub. Uses VoyageAI embeddings for semantic searching code. CLI + server modes, MCP for Claude Desktop, FTS/regex, git history search, and SCIP searches. Automatic inter repository domain mapping. Automatic wiki generation for repos containing .md files and images.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

5,070 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Indexer (cidx)

Semantic code search for your repositories: find code by what it does, not only by the words it contains.

CI/CD Release Python License: MIT

What it is

CIDX indexes a git repository into a local vector index (VoyageAI or Cohere embeddings, HNSW) and a full-text index (Tantivy), and answers natural-language, keyword and regex queries over it. It can also index git history, build SCIP code-intelligence indexes, and run structural AST searches. Everything lives in the project's .code-indexer/ directory; nothing runs in a container.

It is for:

  • developers who want to search their own code by meaning from the command line;
  • AI coding assistants, through instructions installed by cidx teach-ai or through the server's MCP endpoint;
  • teams, through the CIDX server: shared, centrally indexed repositories with REST, MCP and a Web UI.

Quickstart

Requires Python 3.9-3.12, a C/C++ compiler (for the hnswlib build) and a VoyageAI API key. Details: Installation.

pipx install git+https://github.com/LightspeedDMS/code-indexer.git@master
export VOYAGE_API_KEY="your-voyage-key"

cd /path/to/your/git/repository
cidx init
cidx index --fts
cidx query "where are requests rejected when the limit is exceeded" --limit 5
cidx query "authenticate_user" --fts            # exact text
cidx query "token bucket" --fts --semantic      # hybrid: keyword and meaning

Each semantic result shows the score, file and line range, then the matching code; add --quiet for a compact listing.

Capabilities

All documentation, by audience: docs/README.md. Design: Architecture overview.

Project

About

Self-hosted code intelligence hub. Uses VoyageAI embeddings for semantic searching code. CLI + server modes, MCP for Claude Desktop, FTS/regex, git history search, and SCIP searches. Automatic inter repository domain mapping. Automatic wiki generation for repos containing .md files and images.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages