使用 Token Savior 降低编码代理的上下文负载
Connect coding agents to a Token Savior MCP server for structural code navigation, persistent recall, compact command output, and token-aware project context reuse.
Prerequisites
MCP-compatible coding agent, Python, pip or uv, token-savior-recall package, access to local project files and optional shell/test output hooks
Installation
Use the upstream install or setup path that matches your environment:
- git clone https://github.com/1991513ccie-png/skills && cd tsbench
Requirements and caveats from upstream:
-
- push/commit/add, pytest, cargo test/build/clippy, tsc, docker
- python
Basic usage or getting-started notes:
- Fixed pytest regex: now matches python3 -m pytest, uv run pytest,
- venv-prefixed forms, poetry/hatch/pdm/rye run pytest.
- prints a unified diff, backs up settings.json, idempotent on re-run.
- Source: https://github.com/1991513ccie-png/skills
- Extracted from upstream docs: https://raw.githubusercontent.com/Mibayy/token-savior/HEAD/README.md
Documentation
- https://mibayy.github.io/token-savior/
```