Signal Garden

AI 工具AI TOOLS· CHAT-AGENT

lean-ctx

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.

适用平台Platforms
claude-code · cline · cursor · codex · windsurf · gemini-cli · vscode · opencode · copilot
已识别的要求Documented requirements
API key · Local runtime
许可LICENSE
Apache-2.0

每周一 1 封:本周热度最高的 10 个 GitHub 新项目。免费,随时退订。One email each Monday: the 10 hottest new GitHub projects this week. Free, unsubscribe any time.

订阅即表示你同意我们按隐私政策发送每周一周刊。我们会记录这次订阅的来源页面和活动标签,这条记录不包含 IP 地址。Subscribing means you agree that we email the Monday weekly digest as described in the privacy policy. We record the referring page and campaign tag for the signup, and that record does not include an IP address. 隐私政策Privacy Policy

Featured on Signal Garden
徽章主题Badge theme

能力CAPABILITIES

它能帮你做成什么What it helps you do

  1. 01

    压缩代码和文件,省token

  2. 02

    实时查看用量和节省情况

  3. 03

    恢复之前的项目现场

  4. 04

    打包上下文随身携带

  5. 05

    记录每次AI工作的成本

  1. 01

    Read files with compressed output to save tokens

  2. 02

    Search across archives for past tool results

  3. 03

    Refactor code using language server intelligence

  4. 04

    Track savings and generate value reports

  5. 05

    Create portable context packages for sharing

上手GET STARTED

怎么装How to install

CURL-PIPE
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.

打开项目文档Open project documentation ↗

使用限制LIMITATIONS

限制与风险Limits and risk

以下要求与风险来自文档静态检查,未执行项目代码;扫描没有命中,不代表使用安全。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

01需要 API KeyREQUIRES API KEY
是Yes
02需要本地环境NEEDS LOCAL RUNTIME
是Yes
03需要 DockerNEEDS DOCKER
未在文档中发现Not found in the docs
04难度DIFFICULTY
需要本地环境Needs a local runtime
05许可LICENSE
Apache-2.0Apache-2.0
06阶段STAGE
持续活跃Active
创建于 23 MAR 2026Created 23 MAR 2026

静态扫描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

它现在处在什么位置Where it stands right now

首次发现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).

每周一周刊Monday weekly digest

每周一 1 封:本周热度最高的 10 个 GitHub 新项目。免费,随时退订。One email each Monday: the 10 hottest new GitHub projects this week. Free, unsubscribe any time.

看第 1 期Read issue 1

订阅即表示你同意我们按隐私政策发送每周一周刊。我们会记录这次订阅的来源页面和活动标签,这条记录不包含 IP 地址。Subscribing means you agree that we email the Monday weekly digest as described in the privacy policy. We record the referring page and campaign tag for the signup, and that record does not include an IP address. 隐私政策Privacy Policy

订阅每周一周刊Subscribe to the Monday weekly digest
PROVENANCE · 这些结论的依据是什么Where these conclusions come from
来源 URLSource URL
https://github.com/yvgude/lean-ctx
原始数据哈希Raw data hash
d880ec1d174324ee1bce26b88b790408
解析时间Parsed at
2026-11-16T23:58:13.101Z
最后一次验证Last verified
2026-11-16T22:14:42.920Z
增长测量时间Growth measured
2026-10-06T23:30:22.083Z
发现查询Discovery queries
focus:token:repo:topic-context-engineering, focus:token:repo:topic-token-optimization
分类来源Category source
rules
焦点Focus
token · motion (6)
完整解析证据 JSONFull parse evidence JSON
{
  "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
}