
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
lightning-code-index
Advanced tools
Lightning fast code indexing for AI assistants - Cross-platform distribution via npm
Lightning fast code indexing for AI assistants
Lightning Code Index is a high-performance code search and indexing tool designed for AI assistants like Claude Desktop. It provides sub-millisecond search across your codebase using advanced indexing techniques including trigram indexing and tree-sitter AST parsing.
Run without installation:
npx lightning-code-index version
npx lightning-code-index search "func" --root ./my-project
Install globally:
npm install -g lightning-code-index
lci version
Download pre-built binaries from Releases:
# Linux
curl -L https://github.com/standardbeagle/lightning-code-index/releases/latest/download/lci-linux-amd64 -o lci
chmod +x lci
# macOS
curl -L https://github.com/standardbeagle/lightning-code-index/releases/latest/download/lci-darwin-universal -o lci
chmod +x lci
# Windows (PowerShell)
Invoke-WebRequest -Uri "https://github.com/standardbeagle/lightning-code-index/releases/latest/download/lci-windows-amd64.exe" -OutFile "lci.exe"
Requires Go 1.21+:
git clone https://github.com/standardbeagle/lightning-code-index.git
cd lightning-code-index
make build
./lci version
# Check version
lci version
# Index a project
lci index ./my-project
# Search for code
lci search "func" --root ./my-project
# Get symbol definition
lci definition "MyFunction" --root ./my-project
# Find references
lci references "MyFunction" --root ./my-project
# Help
lci --help
LCI can run as an MCP (Model Context Protocol) server for integration with Claude Desktop:
Option 1: NPX (Simplest)
npm install -g @modelcontextprotocol/cli
Option 2: Build from Source
git clone https://github.com/standardbeagle/lightning-code-index.git
cd lightning-code-index
go install ./cmd/lci
Add to your Claude Desktop config file:
macOS/Linux:
{
"mcpServers": {
"lci": {
"command": "npx",
"args": ["lightning-code-index", "mcp"]
}
}
}
Windows:
{
"mcpServers": {
"lci": {
"command": "cmd",
"args": ["/c", "npx", "lightning-code-index", "mcp"]
}
}
}
Alternatively, if installed globally:
{
"mcpServers": {
"lci": {
"command": "lci",
"args": ["mcp"]
}
}
}
Claude Desktop:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/claude/claude_desktop_config.jsonVS Code/Cursor:
Here's a simple configuration for indexing a project:
{
"mcpServers": {
"lci": {
"command": "lci",
"args": ["mcp"]
}
}
}
Auto-Detection: LCI automatically detects your project root by searching for common config files (.lci.kdl, package.json, go.mod, Cargo.toml, etc.) in the current directory and parent directories.
Project-Level Config: To customize indexing for a specific project, create a .lci.kdl file in your project root. If no config is found, LCI uses sensible defaults.
Once configured, you can interact with Claude:
You: Can you search for all React components in my project?
Claude: I'll search for React components using LCI.
[Uses lci search "React" --root ./src to find components]
Found 15 React components in your project:
- src/components/Button.tsx
- src/components/Modal.tsx
- ...
Would you like me to analyze any specific component?
LCI supports semantic parsing and indexing for:
For building from source:
# Current platform
make build
# Cross-platform builds
make build-linux-amd64 # Linux x64
make build-linux-arm64 # Linux ARM64
make build-windows # Windows x64
make build-darwin-universal # macOS (Intel + Apple Silicon)
# Build all
make build-release
See BUILD.md for detailed build instructions.
make test # All tests
make test-unit # Unit tests only
make test-integration # Integration tests only
make test-race # Race detector
make test-coverage # Coverage report
# If using npx
npx lightning-code-index <command>
# If installed globally but binary not in PATH
npm rebuild -g lightning-code-index
# Build from source
cd lightning-code-index
make build
LCI_ROOT points to valid directoryView → Developer → Logsnpx lightning-code-index daemon# Verify index exists
lci stats --root ./project
# Rebuild index
lci index --rebuild ./project
# Check file inclusion
lci index --dry-run ./project --verbose
MIT License - see LICENSE file for details.
Contributions welcome! Please read CONTRIBUTING.md for guidelines.
FAQs
Lightning fast code indexing for AI assistants - Cross-platform distribution via npm
The npm package lightning-code-index receives a total of 0 weekly downloads. As such, lightning-code-index popularity was classified as not popular.
We found that lightning-code-index demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.