Index your codebase.
Query with intent.
LENS indexes your repos locally and serves context packs to AI agents. Zero LLM calls on the query path.
$ npm install -g lens-engineHow It Works
Three steps. No API keys required. Everything runs locally.
Install & Register
Install the CLI globally, then register your repo.
$ npm install -g lens-engine $ lens repo register /path/to/repo
Index
Build TF-IDF scores, import graph, and co-change analysis automatically.
$ lens index Scanning files... 847 files Building import graph... done Analyzing git history... done Index complete in 2.3s
Query
Ask with intent. Get a context pack for your AI agent instantly.
$ lens context "add auth middleware" Context pack: 12 files, 3.2KB src/middleware/auth.ts src/routes/login.ts src/lib/tokens.ts ...
Built for AI-Assisted Development
Every feature is designed to give AI agents the right context, fast.
TF-IDF Scoring
Code-domain stopwords, segment-aware path tokens. Filenames weighted 4x, directories 2x. Exports and docstrings included.
Import Graph
Forward/reverse imports, 2-hop dependencies, indegree boost for hub files. Dynamic file cap based on import depth.
Co-Change Analysis
Git history patterns surface files that change together. Cluster-based promotion for related modules.
MCP Integration
Claude Code auto-discovers LENS via .mcp.json. Zero configuration for MCP-compatible agents.
Local-First
SQLite database at ~/.lens/data.db. Zero network calls. Works offline, works everywhere.
Zero LLM Queries
Context packs in ~10ms cached, ~0.5-7s cold. No API calls, no token costs, no latency.
Pricing
Free forever for local-only workflows. Upgrade for cloud-powered features.
Free
- UnlimitedContext queries
- TF-IDF + Import graph
- MCP integration
- UnlimitedLocal repos
- —Voyage embeddings
- —Purpose summaries
- —Vocab clusters
Pro
- UnlimitedContext queries
- TF-IDF + Import graph
- MCP integration
- UnlimitedLocal repos
- Voyage embeddings
- Purpose summaries
- Vocab clusters
Pro Yearly
Save 17%- UnlimitedContext queries
- TF-IDF + Import graph
- MCP integration
- UnlimitedLocal repos
- Voyage embeddings
- Purpose summaries
- Vocab clusters
Enterprise
Custom volume, SLA, and on-prem deployment