FreePeak

FreePeak / LeanKG

Public

LeanKG: Stop Burning Tokens. Start Coding Lean.

187
19
100% credibility
Found Apr 14, 2026 at 15 stars 12x -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Rust
AI Summary

LeanKG creates a local map of your codebase so AI coding tools get exact context instead of scanning everything, saving 98% on tokens.

How It Works

1
๐Ÿ” Discover LeanKG

While using your favorite AI coding helper, you learn about LeanKG โ€“ a smart map that helps AI understand your entire codebase instantly.

2
๐Ÿ“ฅ Get it with one click

Run a simple command to download and set it up for your AI tool, like Cursor or Claude โ€“ no hassle, works right away.

3
๐Ÿ  Set up in your project

Tell LeanKG about your code folder, and it creates a private map just for your work.

4
โšก Build your code map

Hit index, and LeanKG scans your code super fast, connecting functions, files, and dependencies into a visual web you can explore.

5
๐Ÿ”— Link to your AI buddy

Your AI tool now pulls smart snippets from the map instead of guessing โ€“ everything auto-connects.

6
๐Ÿ’ฌ Ask away confidently

Chat with AI about changes or fixes โ€“ it knows exactly what's connected, saving tons of time and confusion.

๐ŸŽ‰ Code smarter, faster

Enjoy precise answers, 98% less wasted effort, and a beautiful graph view of your project โ€“ your AI feels like a teammate now.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 15 to 187 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is LeanKG?

LeanKG builds a local knowledge graph from your codebase, letting AI coding tools query precise dependencies and context instead of scanning entire repos. Written in Rust, it indexes multiple languages like Go, TypeScript, Python, and Java, then exposes an MCP server for seamless integration with Cursor, Claude Code, or OpenCode. Run simple CLI commands like `leankg index ./src` to stop burning tokens on full scans and start coding lean.

Why is it gaining traction?

It slashes token usage by 98% for impact analysisโ€”13-42 tokens per query versus 10,000+โ€”via targeted subgraphs, plus auto-triggers and session hooks that inject context automatically. The one-line install script configures plugins, skills, and MCP for your AI tool of choice, with a web UI for graph visualization and Obsidian sync for notes. No cloud dependency makes it instant for local-first devs tired of bloated context.

Who should use this?

AI-heavy developers on Cursor or Claude Code evaluating blast radius before refactors, or teams tracing microservice calls in monorepos. Ideal for Rust, Go, or TypeScript shops where token costs add up during debugging or navigation tasksโ€”skip if you're not using MCP-compatible tools.

Verdict

Promising token-saver for AI-assisted coding, but at 12 stars and 1.0% credibility, it's early-stage with basic docs and unproven scale. Try the live demo if you're in a supported workflow; otherwise, wait for more polish before production.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.