通用兼容性

适用于所有 AI 编码工具。

一次安装。一条设置命令。LeanCTX 通过 shell-hook 压缩,为所有使用 MCP 的 AI 工具,乃至不使用 MCP 的工具添加上下文工程能力。

81 个 MCP 工具 + shell hook 上下文层

全 MCP 支持

Supported agents share the same local context layer, setup workflow, and shell compression.

AgentFull MCPShell hookSetup
Aider Supported Supportedlean-ctx init --agent aider
Amazon Q Developer Supported Supportedlean-ctx init --agent amazonq
Amp Supported Supportedlean-ctx init --agent amp
Antigravity IDE Supported Supportedlean-ctx init --agent antigravity
Antigravity CLI Supported Supportedlean-ctx init --agent antigravity-cli
Augment Code Supported Supportedlean-ctx init --agent augment
AWS Kiro Supported Supportedlean-ctx init --agent kiro
Claude Code Supported Supportedlean-ctx init --agent claude
Cline Supported Supportedlean-ctx init --agent cline
CodeBuddy Supported Supportedlean-ctx init --agent codebuddy
Continue Supported Supportedlean-ctx setup
Crush Supported Supportedlean-ctx init --agent crush
Cursor Supported Supportedlean-ctx setup
Emacs Supported Supportedlean-ctx init --agent emacs
Gemini CLI Supported Supportedlean-ctx init --agent gemini
GitHub Copilot Supported Supportedlean-ctx init --agent copilot
Hermes Agent Supported Supportedlean-ctx init --agent hermes
JetBrains IDEs Supported Supportedlean-ctx init --agent jetbrains
Neovim Supported Supportedlean-ctx init --agent neovim
OpenAI Codex Supported Supportedlean-ctx init --agent codex
OpenClaw Supported Supportedlean-ctx init --agent openclaw
OpenCode Supported Supportedlean-ctx init --agent opencode
Pi Supported Supportedlean-ctx init --agent pi
Qoder Supported Supportedlean-ctx init --agent qoder
QoderWork Supported Supportedlean-ctx init --agent qoderwork
Qwen Code Supported Supportedlean-ctx init --agent qwen
Roo Code Supported Supportedlean-ctx init --agent roo
Sublime Text Supported Supportedlean-ctx init --agent sublime
Trae Supported Supportedlean-ctx init --agent trae
Verdent Supported Supportedlean-ctx init --agent verdent
VS Code Supported Supportedlean-ctx init --agent vscode
VS Code Insiders Supported Supportedlean-ctx init --agent vscode-insiders
Windsurf Supported Supportedlean-ctx init --agent windsurf
Zed AI Supported Supportedlean-ctx setup
任何基于 CLI 的 AI 工具 Supportedlean-ctx setup

One install. Every AI tool.

没有 MCP?没问题。

Shell Hook 仅限

不支持 MCP 的工具仍然受益于 LeanCTX。shell hook 会拦截 CLI 命令(git, npm, cargo, docker, kubectl, ls, find 和 95+ 个更多),并在 AI 看到之前压缩其输出。

01

Shell Hook

拦截 gitnpmcargodockerkubectlpipgotsc 和 95+ 个更多命令。压缩输出量达 60–90%。

02

MCP Server

81 个专业工具:ctx_readctx_searchctx_graphctx_intentctx_sessionctx_taskctx_cost,以及 74 个更多。意图感知压缩、会话内存、上下文路由、多智能体交接、知识图谱。

零手动配置

如何设置 适用

01

检测您的 Shell

查找 zsh、bash 或 fish 并安装拦截 CLI 命令的 shell hook。

02

查找 AI 工具

扫描 Cursor、Claude Code、Copilot、Windsurf、Pi、Cline、Zed 等工具,并为每个工具配置 MCP。

03

写入 MCP 配置

为每个工具创建正确的 JSON 配置。无需手动编辑。

lean-ctx setup
$ 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 active

Universal compatibility

Built on an open standard.

MCP (Model Context Protocol) 是连接 AI 工具与外部能力的开放标准。任何支持 MCP 的未来工具都能自动与 LeanCTX 协同工作——无需更新。

一个二进制文件。一个协议。所有 AI 工具。

兼容您的工具。今天。

一次安装,一次 <code>lean-ctx setup</code>,您使用的所有 AI 工具都能获得相同的 context engineering。无需为每个工具单独配置。

Support this project