morluto

Leantoken — Development skill for Claude Code

Development community

Code intelligence for agents: find the code that matters and keep your context window and tokens lean.

How to install Leantoken

This entry records only its repository, not the path inside it, so there is no exact command to give. Open morluto/leantoken and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Leantoken does

Code intelligence for agents: find the code that matters and keep your context window and tokens lean.

Alternatives in Development

README

LeanToken

**Code intelligence for agents: find the code that matters and keep your context window and tokens lean.**

**Language:** English · [简体中文](docs/i18n/zh-CN/README.md) · [日本語](docs/i18n/ja-JP/README.md) · [한국어](docs/i18n/ko-KR/README.md)

  • MCP Registry name: mcp-name: io.github.morluto/leantoken
LeanToken narrowing a large codebase to the files and code an AI agent needs

[![npm](https://img.shields.io/npm/v/leantoken?logo=npm&label=npm)](https://www.npmjs.com/package/leantoken) [![npm downloads](https://img.shields.io/npm/dm/leantoken?logo=npm&label=downloads)](https://www.npmjs.com/package/leantoken) [![Rust 1.95+](https://img.shields.io/badge/Rust-1.95%2B-000000?logo=rust)](https://www.rust-lang.org/) [![License: MIT OR Apache-2.0](https://img.shields.io/badge/license-MIT%20OR%20Apache--2.0-blue)](#license)

[Install](#quick-start) · [Why LeanToken](#why-leantoken) · [Tools](#available-tools) · [CLI](#cli-usage) · [How it works](#how-it-works) · [Docs](#documentation)


**Measured token savings:** In a controlled 60-run study, LeanToken used 20.1% fewer model input tokens than the agent's built-in tools with limited repository exploration, and 37.6% fewer than those tools with broad exploration. See exactly how it was measured in the [measurement methodology](https://github.com/morluto/leantoken/blob/main/docs/measurement.md).

Quick start

Add LeanToken to Claude Code, Cursor, OpenCode, Codex, Gemini CLI, or Antigravity:

npx leantoken setup
Setup behavior and safety

Current releases stop setup before writing when `npx` resolves a stale project-local or ancestor install, and point to `npx leantoken@latest setup`. Older releases that predate this check can be bootstrapped directly with that versioned command.

The interactive setup wizard preselects supported clients it detects