
SAGE Wrapper
io.github.PsYcGoD由 GitHub 账号 PsYcGoD 发布v2.6.2更新于 Oct 24, 2026
Command wrapper MCP server for coding agents, compression, workflows, and local automation.
概览
本地优先的命令包装器,为编码代理运行终端命令,并返回压缩后的摘要而非冗长的原始输出。
- 可以做什么
- 通过包装器运行测试、构建、git 等终端命令,原始输出保存在本地,只向代理返回精简摘要,支持 sage pytest、sage git status 等快捷写法,并可为宿主集成显式指定工作目录。查看本地指标与历史:token 节省量、压缩报告、最近命令历史,以及针对最近失败命令的解释和修复建议,并可选自动应用修复。为受支持的本地 AI 代理激活并验证配置,可选启动本地仪表板或手动配置 MCP。
- 适用场景
- 当 AI 编码代理反复因测试日志、堆栈跟踪、安装噪音或构建刷屏而消耗上下文时适用,可让原始输出留在本机,代理只看到有用的摘要。
- 运行要求
- 作为本地进程在用户机器上运行(仅桌面端)。通过 pip 安装 Python 包 psycgod-sage,或安装 npm 包 psycgod-sage(其委托给 Python 核心,因此仍需 Python)。安装后需运行一次 sage install 为受支持的代理激活,并重启已打开的代理会话。未声明账户、API 密钥或环境变量;可选通过 SAGE_WORKSPACE_CWD 指定工作目录。
安装
在 SourceWeft 中
- 打开 控制台中的 SAGE Wrapper,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
SAGE - Smart Agent Guidance Engine
[CI] [Python] [PyPI] [npm] [License] [SAGE Wrapper MCP server]
SAGE is a local-first command wrapper for AI coding agents. It keeps full terminal output on your machine, sends agents a clean compressed summary, and tracks proof metrics without uploading your raw logs.
Use it with Claude Code, Codex, Cursor, Windsurf, OpenCode, Cline, custom agents, CI scripts, and normal terminal workflows.
Start Here: Install SAGE, Use once sage run -- python -m pytest, Then Use Any AI Agent
Package installation is passive for package-registry safety. After installing, run sage install once to activate SAGE for supported local AI agents.
PyPI / pip
npm / npx
After install, restart any open AI-agent sessions. New sessions should read the SAGE instructions automatically and route terminal commands through SAGE.
Example prompt after restarting your AI agent:
Natural shortcuts also work:
These are treated as:
What SAGE Does
SAGE does not auto-enable MCP. MCP is optional and manual for users who want it.
Recorded Local Metrics
Latest pulled stats as of 2026-08-01:
Why It Helps
AI coding agents burn context on repeated logs, failed test output, install noise, stack traces, and build spam. SAGE sits between the command and the agent.
Distribution
The npm package delegates to the Python implementation so both install paths use the same local database, telemetry rules, compression, and command behavior.
Common Commands
Privacy Modes
SAGE is designed to keep prompts, source code, credentials, raw command output, and project files local unless the user deliberately enables a feature that requires sending data.
Known Limitations
Demos
Links
License
MIT. See LICENSE.
来源:README.md,提交 0b57e69
工具
0版本历史
1- v2.6.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分