{"added":null,"apiVersion":1,"behindSince":"2026-10-11","buildDepends":[],"categories":["misc"],"comment":"Hybrid Context Optimizer: MCP Server, reduces LLM token consumption","compare":null,"dependentCount":null,"description":"LeanCTX is a hybrid context optimizer designed to reduce token consumption\nin AI-assisted software engineering workflows. It acts as a cognitive filter\nbetween AI tools and Large Language Models (LLMs), stripping noise like\ncomments and whitespace to lower costs and maximize context efficiency.\n\nFeatures:\n- AST-Aware Compression: Uses Tree-sitter to parse 14 languages, preserving\n  critical types and logic while reducing token counts by up to 90%25.\n- MCP Server Integration: Provides 24 tools that replace standard file reads\n  with compressed alternatives for any MCP-enabled AI client.\n- Automated Shell Hook: Intercepts and compresses output from over 90 common\n  command patterns (git, npm, cargo, docker, kubectl, etc.).\n- Privacy and Performance: Single Rust binary with zero dependencies and no\n  cloud requirements.","flavors":[],"html":"https://daemonports.org/dragonfly/misc/lean-ctx/","kind":"port","lastUpdate":null,"license":["MIT"],"licenses":["MIT"],"maintainer":"yuri@FreeBSD.org","name":"lean-ctx","newest":false,"newestVersion":"3.12.6","noVulnData":false,"origin":"misc/lean-ctx","otherSystems":[{"maintainer":"yuri@FreeBSD.org","newest":true,"origin":"misc/lean-ctx","path":"/misc/lean-ctx/","system":"FreeBSD","updated":"2026-11-16","version":"3.12.6"},{"behindSince":"2026-10-30","maintainer":"ports@MidnightBSD.org","matchedBy":"name","noVulnData":true,"origin":"ai/lean-ctx","path":"/midnightbsd/ai/lean-ctx/","system":"MidnightBSD","updated":"2026-11-13","version":"3.11.4_1"},{"behindSince":"2026-11-11","maintainer":"yuri@FreeBSD.org","noVulnData":true,"origin":"misc/lean-ctx","path":"","system":"HardenedBSD","version":"3.12.2"},{"behindSince":"2026-11-05","maintainer":"yuri@FreeBSD.org","noVulnData":true,"origin":"misc/lean-ctx","path":"","system":"GhostBSD","version":"3.12.0"}],"packages":null,"pkgName":"lean-ctx-3.10.5.146","related":null,"repository":"DPorts","requiredBy":[],"requiredByCount":0,"runDepends":["archivers/zstd"],"status":null,"system":"dragonfly","systemLabel":"DragonFly","version":"3.10.5.146","versions":[{"date":"2026-11-11","version":"3.10.5.146"}],"vulnerabilities":null,"www":"https://leanctx.com"}
