Skip to content

LienLocal-First Code Intelligence for AI

Structural analysis + fast lexical search that give AI agents deep understanding of your codebase. 100% local, 100% private.

Quick Start โ€‹

text
/plugin marketplace add getlien/lien
/plugin install lien

That's it. Lien's MCP tools and the Explore agent are available in every Claude Code session, in every repo, with no per-project setup. First use in a new git repo triggers a one-time index automatically. See the Claude Code plugin guide for what its hooks do beyond the MCP config.

Other editors (Cursor, Windsurf, OpenCode, Kilo Code, Antigravity) โ€‹

1. Install Lien:

bash
npm install -g @liendev/lien

2. Configure your editor:

bash
lien init

This writes the correct MCP config for your editor.

3. Restart your editor and start asking questions about your codebase!

Lien auto-detects your project structure and indexes on first use.

How It Works โ€‹

Lien parses your code with Tree-sitter into a local SQLite database, then answers structural questions ("what depends on this?", "how complex is this?") with indexed SQL, and handles discovery with FTS5/BM25 lexical search. See How It Works for the full pipeline.

Use Cases โ€‹

Impact analysis before a refactor, tech-debt hotspots, test coverage lookups, and keyword-based code discovery. See Use Cases in the guide for examples.

Privacy First โ€‹

Your code stays on your machine during indexing and search: no external API calls, no telemetry. The one network step is fetching the published npm package itself (via npm install or the Claude Code plugin's npx) on first setup. See How It Works for details.

Free & Open Source โ€‹

Lien is licensed under AGPL-3.0 and free forever for local use. Questions about licensing? Contact alf@lien.dev


Lien /ljษ›ฬƒ/: French for "link"

Released under the AGPL-3.0 License. Free forever for local use.