AgentIndex icon
AgentIndex
ToolsMCP ServersHOTCategoriesTrendingNewBest ListsCompareGuides
Submit Tool
ToolsMCP ServersHOTCategoriesTrendingNewBest ListsCompare
Home/
Code Assistant/
leantoken
leantoken logo

leantoken

Active·★ 123·Apache-2.0·Updated 2026-10-19

LeanToken provides local-first code intelligence for AI coding agents, optimizing token usage by enabling efficient code search, structure inspection, and Git history exploration. It narrows down the relevant code an agent needs, avoiding resending unchanged evidence and keeping responses within explicit token budgets.

#Code Intelligence#AI Agent Tooling#Token Optimization#Local-first Indexing#Code Search#Git History Exploration
© 2026 AgentIndex.app|Built by a 10-year iOS Developer.
Best by use caseAboutContactAdvertisePrivacy PolicyTerms of UseQYSGitHubBuy me a coffee ☕

Browse by Category

MCP ServersCode AssistantWorkflow AutomationRAG / Knowledge BaseMulti-AgentBrowser AutomationLLM InfraDev ToolingObservability

Not affiliated with Anthropic, OpenAI or Microsoft.

Guides
#Code Structure Analysis
#Developer Utility
$ Install
$ npx leantoken setup
↗ Visit site★ GitHub
01

Features

01Local-first indexing and retrieval from a local database, ensuring privacy and speed.
02Explicit token budgets for every response to prevent large files from dominating requests and optimize AI agent context.
03Specialized tools for agents to find files, search code, inspect structure, read exact ranges, and trace history efficiently.
04Avoids resending unchanged evidence across turns, significantly reducing token consumption for iterative agent workflows.
05Narrows broad repository exploration to relevant paths and code fragments based on task requirements.
02

Compatibility

Rust
Core Runtime
Verified via docs
Node.js
Package Manager
Verified via docs
macOS
OS
Verified via docs
Linux
OS
Verified via docs
Windows
OS
Verified via docs
Claude Code
Agent Integration
Verified via docs
03

Quick start

1
$ npx leantoken setup
04

Use cases

↳Orienting autonomous triage for uncertain broad tasks using `leantoken.context` to get a focused starting point.
↳Investigating observed failures by providing failure traces, paths, symbols, or test intent to pinpoint relevant code.
↳Reviewing code changes by comparing `base_revision` with `HEAD` and focusing on `strict_changed_paths`.
↳Efficiently searching for code with `leantoken.search` or inspecting definitions and imports with `leantoken.outline` for quick understanding.
↳Managing and auditing token usage for AI agents with `leantoken.savings` to monitor token economy.
05

Alternatives

⚡Top VS:
VSripwire★2.5k→VSAletheore★612→VShounddog★131→VS

Comments

Log in to leave a comment

No comments yet. Be the first!

On this page
01Features02Compatibility03Quick start04Use cases05Alternatives
code-index-mcp
★154
→
ripwire logo
ripwire★ 2.5k
The ripgrep of AI context: a zero-dependency C++23 CLI + MCP server giving coding agents a ranked, deterministic map of any repo, blast radius, tests-to-run and quality deltas. Signatures at 80% fewer bytes than bodies; ~5% of a grep-and-read pass's tokens.
VSCompare→
Aletheore logo
Aletheore★ 612
Evidence-grounded repository audit CLI - deterministic scanner, MCP server, live dashboard, and a GitHub Action that posts PR diffs.
VSCompare→
hounddog logo
hounddog★ 131
Privacy Code Scanner and Dataflow Context Engine for AI coding agents
VSCompare→
code-index-mcp logo
code-index-mcp★ 154
Rust-native code index MCP server with first-class 1C:Enterprise (BSL) support. Static binary, no runtime. 31 tools — 20 universal + 11 BSL-specific. Tree-sitter AST for 10 languages. Federation across multiple repos. Built for production-scale monorepos.
VSCompare→
srclight logo
srclight★ 57
Deep code indexing MCP server for AI agents. 25 tools: hybrid FTS5 + embedding search, call graphs, git blame/hotspots, build system analysis. Multi-repo workspaces, GPU-accelerated semantic search, 10 languages via tree-sitter. Fully local, zero cloud dependencies.
VSCompare→
django-orm-lens logo
django-orm-lens★ 93
Live sidebar, ER diagrams, CLI, and MCP server for Django models. VS Code + PyPI + MCP Registry + Glama. Zero-dep parser, no DB required.
VSCompare→
memi logo
memi★ 47
Shadcn-native Design CI for Tailwind apps: export registries that work with shadcn, v0, AI editors, and npm.
VSCompare→
symgraph logo
symgraph★ 16
Semantic code intelligence MCP server - build knowledge graphs of codebases to enhance AI-assisted code exploration.
VSCompare→
See all alternatives →
morluto /
leantoken
↗

Make every AI token leaner with one CLI, MCP. Search code, inspect structure, read ranges, and explore Git history.

123Apache-2.0
Last commit4d ago
StatusActive
CategoryCode Assistant
Links
Documentation↗Discussion↗Issues↗Releases↗
Cloud Infrastructure
Ad

Deploy on DigitalOcean

Host your MCP servers, Docker containers, and AI agents with $200 free credit over 60 days.

Claim $200 Free Credit