
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 分