Index your codebase.
Query with intent.

Give your AI agent the context it actually needs. LENS maps your repo — TF-IDF scoring, import graph traversal, co-change analysis — and delivers ranked files in one call. Fewer tokens wasted, smarter output.

Terminal
$ npm install -g lens-engine

How It Works

Three commands. No API keys. Your code never leaves your machine.

01

Install & Start

Install the CLI globally and start the background daemon.

$ npm install -g lens-engine
$ lens daemon start
02

Register & Index

Register a repo — indexing kicks off automatically. TF-IDF, import graph, and git history in one pass.

$ lens repo register

Registered: my-project
Scanning files... 847 files
Building import graph... done
Analyzing git history... done
Index complete in 2.3s
03

Query

Ask with intent. Get a ranked context pack for your AI agent.

$ lens context "add auth middleware"

Context pack: 12 files, 3.2KB
  src/middleware/auth.ts
  src/routes/login.ts
  src/lib/tokens.ts
  ...

Right Context, Right Code

AI agents are only as good as the files they see. LENS gives them exactly what they need — nothing more, nothing less.

Intent-Based Retrieval

Describe what you're building. LENS ranks every file by relevance using TF-IDF, path weight, exports, and docstrings — no keyword guessing.

Understands Structure

Import graph traversal, 2-hop dependency analysis, and hub-file boosting. Your agent sees the files that actually matter, not just string matches.

Learns from Git

Files that change together get surfaced together. Co-change analysis catches cross-cutting concerns grep never finds.

MCP Native

Drop a .mcp.json in your repo. Claude Code, Cursor, and any MCP-compatible agent auto-discover LENS. Zero configuration.

Your Code Stays Local

Everything runs on your machine. No code leaves your laptop. No cloud dependency. Works offline, works air-gapped.

One Call, Done

One context query replaces dozens of glob/grep tool calls. ~10ms cached, under 1s cold. Fewer tokens spent searching, more spent building.

Pricing

Free forever for local-only workflows. Upgrade for semantic search that makes your AI agent significantly more accurate.

Free

$0forever
  • UnlimitedContext queries
  • UnlimitedLocal repos
  • TF-IDF + Import graph
  • Co-change analysis
  • MCP integration
  • Voyage embeddings
  • Purpose summaries
  • Vocab clusters
Get Started

Pro

$9/mo
  • UnlimitedContext queries
  • UnlimitedLocal repos
  • TF-IDF + Import graph
  • Co-change analysis
  • MCP integration
  • Voyage embeddings
  • Purpose summaries
  • Vocab clusters
Subscribe

Pro Yearly

Save 17%
$90/yr
  • UnlimitedContext queries
  • UnlimitedLocal repos
  • TF-IDF + Import graph
  • Co-change analysis
  • MCP integration
  • Voyage embeddings
  • Purpose summaries
  • Vocab clusters
Subscribe

Enterprise

Custom volume, SLA, and on-prem deployment

Contact Sales