
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.
@standardbeagle/lci
Advanced tools
Lightning Code Index - Sub-millisecond semantic code search and analysis
Lightning-fast code indexing and search for AI assistants.
@lci: vocabulary for marking up code with metadatanpm install -g @standardbeagle/lci
pip install lightning-code-index
brew install standardbeagle/tap/lci
Requires Go 1.24 or later (for go-fast JavaScript parser support).
go install github.com/standardbeagle/lci/cmd/lci@latest
Download pre-built binaries from GitHub Releases.
# Index and search in current directory
lci search "handleRequest"
# Find symbol definitions
lci def UserService
# Find all references to a symbol
lci refs CreateUser
# Display function call hierarchy
lci tree main
# Fast grep-style search
lci grep "TODO|FIXME"
# List files that would be indexed
lci list
Start the MCP server for AI assistant integration:
lci mcp
Add to your .mcp.json:
{
"lci": {
"command": "lci",
"args": ["mcp"],
"env": {}
}
}
Create .lci.kdl in your project root:
project {
name "my-project"
root "."
}
index {
include "**/*.go" "**/*.ts" "**/*.py"
exclude "**/node_modules/**" "**/vendor/**"
}
search {
max-results 100
context-lines 3
}
When running as an MCP server, LCI exposes these tools:
| Tool | Description |
|---|---|
search | Semantic code search with fuzzy matching |
get_context | Get detailed context for a code symbol |
find_files | Fast file path search with glob patterns |
code_insight | Codebase intelligence and analysis |
context | Save/load code context manifests |
semantic_annotations | Query @lci: semantic labels |
side_effects | Analyze function purity and side effects |
Mark up your code with @lci: annotations for enhanced AI understanding:
// @lci:risk[high] @lci:public-api
// @lci:requires[env:DATABASE_URL]
func HandleUserLogin(w http.ResponseWriter, r *http.Request) {
// ...
}
// @lci:purpose[Validate user credentials against database]
// @lci:must[Return error for invalid credentials]
func ValidateCredentials(username, password string) error {
// ...
}
@lci:risk[low|medium|high|critical], @lci:safe-zone, @lci:stability@lci:requires[env:VAR], @lci:requires[db:table], @lci:requires[service:name]@lci:convention[pattern], @lci:idiom[name], @lci:template[name]@lci:must[behavior], @lci:must-not[behavior], @lci:invariant[condition]@lci:purpose[description], @lci:domain[area], @lci:owner[team]lci/
├── cmd/lci/ # CLI entry point
├── internal/
│ ├── core/ # Trigram index, symbol store, reference tracker
│ ├── parser/ # Tree-sitter based multi-language parsing
│ ├── search/ # Search engine and scoring
│ ├── indexing/ # Master index and pipeline
│ ├── mcp/ # MCP server and tools
│ └── analysis/ # Code analysis and metrics
└── pkg/ # Public API
LCI is designed for speed:
# Run tests
go test ./...
# Build
go build ./cmd/lci
# Run with race detector
go test -race ./...
MIT License - see LICENSE for details.
Contributions are welcome! Please read the contributing guidelines before submitting PRs.
FAQs
Lightning Code Index - Sub-millisecond semantic code search and analysis
We found that @standardbeagle/lci 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.