Lean Context: Claude Code Plugin Converts Verbose Docs to Agent-Optimized Files

A Claude Code plugin called Lean Context automates the conversion of human-centric technical documentation into agent-optimized context files. The tool is based on findings that verbose context files can reduce agent success rates by approximately 3% and increase costs by 20%, as indicated by research linked in the source. The plugin's purpose is to retain only the information an AI agent cannot easily discover on its own, such as non-obvious commands, gotchas, and environment-specific quirks.
How It Works
The plugin scans your project documentation and strips out content that an agent could find by using grep or similar search methods. This filtering process aims to keep the essential context that provides unique guidance beyond what's already embedded in the codebase.
Performance Example
When tested against a .NET e-commerce project, the plugin processed 8 documents containing 1,263 lines of input documentation and produced a condensed output of just 23 lines.
Installation and Access
The plugin is available for installation directly within Claude Code using the command:
/plugin marketplace add asarnaout/lean-contextIt is free and open-source, released under the MIT license. The source code and further details can be found on GitHub at https://github.com/asarnaout/lean-context.
The author, who posted about the tool on Reddit, is soliciting reviews and feedback from users.
📖 Read the full source: r/ClaudeAI
👀 See Also

Benchmarking Nemotron 3 Super 120B with 1M token context on M1 Ultra
A user tested Nemotron 3 Super 120B with a Q4_K_M quantized model using llama.cpp on an M1 Ultra, achieving a 1 million token context window that consumed approximately 90GB of VRAM. Performance benchmarks show token generation speeds ranging from 255 t/s at 512 prompt processing down to 22.37 t/s at 100,000 token context.

HostMyClaudeHTML: One-Click Sharing for Claude HTML Artifacts
A developer built hostmyclaudehtml.com, a free tool that lets you share Claude-generated HTML artifacts as live URLs by dragging and dropping the .html file. No account is required for uploaders or viewers.

cstat: A Native Rust Status Line for Claude Code with 2ms Performance
cstat is a native Rust binary that replaces claude-hud's 62ms status line with a 2ms implementation by eliminating 24 subprocess spawns per invocation. It displays model info, rate limits, git status, context window usage, active tools, subagents, and task progress.

Debugging Claude Code's Build-Check Logic: Why Name Search Fails and Structural Footprint Search Fixes It
Claude Code told a user 'feature not built' four times in one session — all wrong. The fix: replace name-based search with structural footprint search (routes, schemas, registered tools). Practical rule shared.