Shell Hook
拦截 git、npm、cargo、docker、kubectl、pip、go、tsc 和 95+ 个更多命令。压缩输出量达 60–90%。
通用兼容性
一次安装。一条设置命令。LeanCTX 通过 shell-hook 压缩,为所有使用 MCP 的 AI 工具,乃至不使用 MCP 的工具添加上下文工程能力。
81 个 MCP 工具 + shell hook 上下文层
Supported agents share the same local context layer, setup workflow, and shell compression.
| Agent | Full MCP | Shell hook | Setup |
|---|---|---|---|
| Aider | Supported | Supported | lean-ctx init --agent aider |
| Amazon Q Developer | Supported | Supported | lean-ctx init --agent amazonq |
| Amp | Supported | Supported | lean-ctx init --agent amp |
| Antigravity IDE | Supported | Supported | lean-ctx init --agent antigravity |
| Antigravity CLI | Supported | Supported | lean-ctx init --agent antigravity-cli |
| Augment Code | Supported | Supported | lean-ctx init --agent augment |
| AWS Kiro | Supported | Supported | lean-ctx init --agent kiro |
| Claude Code | Supported | Supported | lean-ctx init --agent claude |
| Cline | Supported | Supported | lean-ctx init --agent cline |
| CodeBuddy | Supported | Supported | lean-ctx init --agent codebuddy |
| Continue | Supported | Supported | lean-ctx setup |
| Crush | Supported | Supported | lean-ctx init --agent crush |
| Cursor | Supported | Supported | lean-ctx setup |
| Emacs | Supported | Supported | lean-ctx init --agent emacs |
| Gemini CLI | Supported | Supported | lean-ctx init --agent gemini |
| GitHub Copilot | Supported | Supported | lean-ctx init --agent copilot |
| Hermes Agent | Supported | Supported | lean-ctx init --agent hermes |
| JetBrains IDEs | Supported | Supported | lean-ctx init --agent jetbrains |
| Neovim | Supported | Supported | lean-ctx init --agent neovim |
| OpenAI Codex | Supported | Supported | lean-ctx init --agent codex |
| OpenClaw | Supported | Supported | lean-ctx init --agent openclaw |
| OpenCode | Supported | Supported | lean-ctx init --agent opencode |
| Pi | Supported | Supported | lean-ctx init --agent pi |
| Qoder | Supported | Supported | lean-ctx init --agent qoder |
| QoderWork | Supported | Supported | lean-ctx init --agent qoderwork |
| Qwen Code | Supported | Supported | lean-ctx init --agent qwen |
| Roo Code | Supported | Supported | lean-ctx init --agent roo |
| Sublime Text | Supported | Supported | lean-ctx init --agent sublime |
| Trae | Supported | Supported | lean-ctx init --agent trae |
| Verdent | Supported | Supported | lean-ctx init --agent verdent |
| VS Code | Supported | Supported | lean-ctx init --agent vscode |
| VS Code Insiders | Supported | Supported | lean-ctx init --agent vscode-insiders |
| Windsurf | Supported | Supported | lean-ctx init --agent windsurf |
| Zed AI | Supported | Supported | lean-ctx setup |
| 任何基于 CLI 的 AI 工具 | — | Supported | lean-ctx setup |
One install. Every AI tool.
没有 MCP?没问题。
不支持 MCP 的工具仍然受益于 LeanCTX。shell hook 会拦截 CLI 命令(git, npm, cargo, docker, kubectl, ls, find 和 95+ 个更多),并在 AI 看到之前压缩其输出。
拦截 git、npm、cargo、docker、kubectl、pip、go、tsc 和 95+ 个更多命令。压缩输出量达 60–90%。
81 个专业工具:ctx_read、ctx_search、ctx_graph、ctx_intent、ctx_session、ctx_task、ctx_cost,以及 74 个更多。意图感知压缩、会话内存、上下文路由、多智能体交接、知识图谱。
零手动配置
查找 zsh、bash 或 fish 并安装拦截 CLI 命令的 shell hook。
扫描 Cursor、Claude Code、Copilot、Windsurf、Pi、Cline、Zed 等工具,并为每个工具配置 MCP。
为每个工具创建正确的 JSON 配置。无需手动编辑。
$ lean-ctx setup
◆ lean-ctx Setup Wizard
────────────────────────────────────
✓ Shell detected: zsh
✓ Hook installed: ~/.zshrc
✓ AI tool detected: Cursor
✓ Hooks installed: ~/.cursor/hooks.json
✓ AI tool detected: Claude Code
✓ MCP server added: claude mcp add
────────────────────────────────────
Setup complete. Restart your shell.
2 AI tools configured, shell hook activeUniversal compatibility
MCP (Model Context Protocol) 是连接 AI 工具与外部能力的开放标准。任何支持 MCP 的未来工具都能自动与 LeanCTX 协同工作——无需更新。
一个二进制文件。一个协议。所有 AI 工具。
一次安装,一次 <code>lean-ctx setup</code>,您使用的所有 AI 工具都能获得相同的 context engineering。无需为每个工具单独配置。
Cookie preferences
We use analytics to understand how our site is used. You choose what's allowed — no tracking runs until you decide.
Essential
Site functionality, security, preferences
Analytics
Pageviews & usage patterns · PostHog EU (Frankfurt) · No cross-site tracking
Read our Privacy Policy for full details. You can change your preferences anytime.