
SAGE Wrapper
io.github.PsYcGoDPublished by GitHub account PsYcGoDv2.6.2Updated Oct 24, 2026
Command wrapper MCP server for coding agents, compression, workflows, and local automation.
Overview
A local-first command wrapper that runs terminal commands for coding agents and returns compressed summaries instead of full noisy output.
- What you can do
- Run terminal commands such as tests, builds and git through a wrapper that stores raw output locally and returns a compact summary to the agent, with shortcuts like sage pytest or sage git status and an explicit workspace option for host integrations. Review local metrics and history: token savings, compression reports, recent command history, and explanations or fix suggestions for the latest failed command, including an option to apply an automatic fix. Activate and verify the setup for supported local AI agents, and optionally start a local dashboard or configure MCP manually.
- When to use it
- Useful when an AI coding agent keeps burning context on repeated test logs, stack traces, install noise or build spam, and you want the raw output to stay on your machine while the agent sees only the useful summary.
- Requirements
- Runs as a local process on the user's machine (desktop only). Install the Python package psycgod-sage via pip, or the npm package psycgod-sage, which delegates to the Python core, so Python is needed either way. After installing, run sage install once to activate it for supported agents and restart open agent sessions. No accounts, API keys or environment variables are declared; SAGE_WORKSPACE_CWD can optionally set the workspace folder.
Installation
In SourceWeft
- Open SAGE Wrapper in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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.
Source: README.md at commit 0b57e69
Tools
0Version history
1- v2.6.2LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts