AI 工具AI TOOLS· CHAT-AGENT
yvgude/lean-ctx
给智能编程工具加一道信息闸门,只放行该看的内容,减少浪费。LeanCTX is an open-source context gateway that trims what your AI reads, so you spend fewer tokens and get better results.
根据公开文档整理,未运行实测;费用以项目官网为准。Based on public documentation, without runtime testing. Check the project site for pricing.
能力CAPABILITIES
压缩代码和文件,省token
实时查看用量和节省情况
恢复之前的项目现场
打包上下文随身携带
记录每次AI工作的成本
Read files with compressed output to save tokens
Search across archives for past tool results
Refactor code using language server intelligence
Track savings and generate value reports
Create portable context packages for sharing
上手GET STARTED
curl -fsSL https://leanctx.com/install.sh | sh # universal (no Rust needed)选择与你的环境对应的方式。命令来自项目文档,未运行实测。Choose the option for your environment. Commands come from project documentation and have not been run-tested.
使用限制LIMITATIONS
以下要求与风险来自文档静态检查,未执行项目代码;扫描没有命中,不代表使用安全。Risk here is evidence, not an alarm. These findings come from static scanning of the docs; we never execute a project’s code.
限制LIMITS
存在风险Risk found
静态扫描STATIC SCAN
01执行远程脚本Runs a remote scriptreadme
curl -fsSL https://leanctx.com/install.sh | sh # universal (no Rust needed)
02执行远程脚本Runs a remote scriptrust/src/templates/SKILL.md
which lean-ctx || curl -fsSL https://raw.githubusercontent.com/yvgude/lean-ctx/main/skills/lean-ctx/scripts/install.sh | bash
静态扫描命中两项高风险:安装和自动部署都是把远程脚本直接交给 shell 执行(curl ... | sh),等于没看过的代码直接在你机器上跑。想试的话先下载脚本读一遍再执行,或者用 npm、cargo 这类不经过远程脚本的安装方式。The static scan flagged that the install script runs remote code via curl-pipe, which carries risk. Always review scripts before executing.
项目动态PROJECT ACTIVITY
首次发现FIRST SEEN
03 OCT 202603 OCT 2026
增长GROWTH
+2.5%+2.5%
3.9k → 4.0k stars · 45 个快照3.9k → 4.0k stars · 45 snapshots
状态STATUS
持续活跃Active
质量 A-Quality A-
最近7天就有235次提交,项目迭代非常快,现在跟进能用到最新能力。It records costs and outcomes locally, with a metric called CPAO (Cost per Accepted Outcome).
{
"agents": [
{
"agent": "claude-code",
"evidence": "tree: .claude-plugin/"
},
{
"agent": "cline",
"evidence": "tree: .clinerules/"
},
{
"agent": "cursor",
"evidence": "tree: .cursor/"
},
{
"agent": "codex",
"evidence": "readme: …ctx init --agent augment` | | Codex CLI | ● | | `lean-ctx init --agen…"
},
{
"agent": "windsurf",
"evidence": "readme: …-ctx init --agent gemini` | | Windsurf | ● | | `lean-ctx init --agen…"
},
{
"agent": "gemini-cli",
"evidence": "readme: …an-ctx init --agent grok` | | Gemini CLI | ● | | `lean-ctx init --agen…"
},
{
"agent": "vscode",
"evidence": "readme: …tocol-only agents (JetBrains, VS Code, Zed, ...) | ### Agent compa…"
},
{
"agent": "opencode",
"evidence": "readme: …-ctx init --agent hermes` | | OpenCode | ● | | `lean-ctx init --agen…"
},
{
"agent": "copilot",
"evidence": "readme: …tx init --agent windsurf` | | GitHub Copilot | ● | | `lean-ctx init --agen…"
}
],
"apiKey": "request compression requires `ANTHROPIC_API_KEY`. See > [advanced proxy setup](docs/ref",
"docker": null,
"taxonomy": {
"scores": {
"design": 0,
"ai-tools": 6,
"dev-tools": 6,
"indie-web": 0,
"skill-agent": 12,
"productivity": 3
},
"primary": "ai-tools",
"secondary": "chat-agent"
},
"localRuntime": "open-source **LeanCTX | OSS** runs locally through CLI, MCP, hooks and proxy paths",
"skillMdTotal": 3,
"skillMdErrors": [],
"treeTruncated": false,
"categoryScores": {
"data": 0,
"agent": 3,
"media": 0,
"design": 0,
"browser": 0,
"devtool": 3,
"security": 5,
"marketing": 0,
"productivity": 0
},
"classification": [
{
"signal": "3 SKILL.md with name + description",
"weight": 0.95
},
{
"signal": "skills/ directory with 2 markdown files",
"weight": 0.75
},
{
"signal": "MCP topic + README",
"weight": 0.6
},
{
"signal": "description mentions AI",
"weight": 0.2
}
],
"scannedSources": [
"readme",
"rust/src/templates/SKILL.md",
"skills/lean-ctx-review/SKILL.md",
"skills/lean-ctx/SKILL.md"
],
"skillMdFetched": 3
}