misc/lean-ctx 3.10.5.146 DragonFly
Hybrid Context Optimizer: MCP Server, reduces LLM token consumption
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- MIT
- Categories
- misc
- Package size
- 17400.4 KiB, 95500.9 KiB installed
Description
LeanCTX is a hybrid context optimizer designed to reduce token consumption in AI-assisted software engineering workflows. It acts as a cognitive filter between AI tools and Large Language Models (LLMs), stripping noise like comments and whitespace to lower costs and maximize context efficiency.
Features:
- AST-Aware Compression: Uses Tree-sitter to parse 14 languages, preserving critical types and logic while reducing token counts by up to 90%25.
- MCP Server Integration: Provides 24 tools that replace standard file reads with compressed alternatives for any MCP-enabled AI client.
- Automated Shell Hook: Intercepts and compresses output from over 90 common command patterns (git, npm, cargo, docker, kubectl, etc.).
- Privacy and Performance: Single Rust binary with zero dependencies and no cloud requirements.
In the other systems
The newest version among them is 3.12.6, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| DragonFly | misc/lean-ctx | 3.10.5.146 behind since 2026-10-11 | none known | - | [email protected] | - |
| FreeBSD | misc/lean-ctx | 3.12.6 newest | none known | - | [email protected] | 2026-11-16 |
| MidnightBSD | ai/lean-ctx by name | 3.11.4_1 behind since 2026-10-30 | no data | - | [email protected] | 2026-11-13 |
| HardenedBSD | misc/lean-ctx | 3.12.2 behind since 2026-11-11 | no data | - | [email protected] | - |
| GhostBSD | misc/lean-ctx | 3.12.0 behind since 2026-11-05 | no data | - | [email protected] | - |
Version history 1
- 3.10.5.146
Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.
Install
Binary package:
pkg install lean-ctx
From DPorts:
cd /usr/dports/misc/lean-ctx && make install clean
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.
Dependencies
Run dependencies 1
No port depends on this one.
Configuration
No options to configure.
- Service scripts
- none