Install larkx
Five steps. Under five minutes. Works on Windows, macOS, and Linux.
node --version. No other dependencies required.- 1
Install globally with npm
Run this once per machine:
bashnpm install -g larkxVerify the install worked:
bashlarkx --version # → larkx v0.1.0 - 2
Initialize your project
Open a terminal in your project root and run:
bashcd /path/to/your-project larkx initYou will be asked three questions:
- Set up MCP server? (Y/n), creates
.mcp.jsonfor VS Code / Claude Code - Which AI agents do you use?, pick any combination of Claude Code, Cursor, Copilot, Codex, Gemini
- Per-agent instruction files (
CLAUDE.md,.cursorrules, etc.) are created automatically
If you picked Claude Code, a
.claude/settings.jsonhook is added so Claude uses MCP tools first on every prompt. - Set up MCP server? (Y/n), creates
- 3
Build the index
bashlarkx indexYou'll see something like:
output✓ Found 342 files ✓ Parsed 342 files · 1,847 functions · 89 classes ✓ Built graph: 342 nodes · 4,612 edges ✓ Saved to .larkx/Subsequent indexes are incremental, only changed files are reparsed. A 1000-file project typically reindexes in under 2 seconds.
- 4
Restart your AI client
VS Code / Claude Code extension:
bash# Ctrl+Shift+P → Developer: Reload WindowClaude Code will detect the
.mcp.jsonfile and ask you to approve the larkx MCP server. Click Allow. - 5
Verify it's working
bashlarkx statsOutput includes file counts, detected frameworks, and token estimates per level:
stats outputProject Stats Files: 342 Functions: 1,847 Classes: 89 AI Token Estimates (per get_project_index call) Level 1 (paths ): ~1.2K tokens Level 2 (symbols ): ~8.5K tokens Level 3 (signatures): ~16K tokens Level 4 (summaries ): ~24K tokensThen, in Claude Code, ask: "Show me the project index." The AI should call
get_project_indexdirectly without opening any source files.
Common next steps
- Connect to other AI agents, Cursor, Copilot, Gemini, Codex
- CLI reference, every command with examples
- Token optimization, typical savings of ~60-85% (and how to push higher)
- Visual graph, see your codebase as an interactive graph
larkx is not found after install, your global npm bin folder may not be in PATH. On Windows: npm config get prefix and add that path to your environment variables.