保持Claude代码上下文清晰。开源工具包:漂移检测、重读去重、完整性评分、AST感知读取、15个MCP工具。62.6%的测量节省,可复现。
概览
保持Claude Code的上下文清晰,以便获得更清晰的答案和更低的成本,自动完成。 就这些。您的下一次 Claude Code 会话将自动使用 Sipcode。几分钟后请验证: 如果输出没有漂移,上下文健康稳定,说明 Sipcode 正在完成它的工作。 Sipcode 不会进行任何网络调用,所以不会弹出“可用更新”通知。养成每周习惯:运行 sipcode update(或 npm i -g sipcode@latest)来获取最新修复。详细信息请参见更新 Sipcode。 Sipcode 是一个免费的命令行工具,位于你和 Claude Code 之间。它有三件事: 1. 它会监控 Claude Code 的上下文窗口,并在开始膨胀时警告你(我们称之为“上下文腐烂”);2.它会在文件读取重复和其他浪费到达 Claude 之前捕捉,这样你为同样的答案支付更低的费用 3.它会给你收据。每一次保存都能在你的终端中衡量。 它是开源的,采用MIT许可证。正常使用时完全不进行网络调用。你的数据从未离开过你的笔记本电脑。
概述(AI 翻译)
Sipcode
保持Claude Code的上下文清晰,以便获得更清晰的答案和更低的成本,自动完成。
网站 ·比较 ·发行
30秒内安装
就这些。您的下一次 Claude Code 会话将自动使用 Sipcode。几分钟后请验证:
如果输出读数为no drift, context health stable,说明Sipcode正在完成工作。
已经安装了吗?保持更新。 Sipcode 不进行任何网络调用,因此不会弹出“可用更新”通知。养成每周习惯:运行
sipcode update(或npm i -g sipcode@latest)来获取最新的修复。详细信息请参见更新 Sipcode。
什么是Sipcode?
Sipcode 是一个免费的命令行工具,位于你和 Claude Code 之间。它有三件事:
- 它会监控Claude Code的上下文窗口,并在开始膨胀时警告你(我们称之为“上下文腐烂”)
- 它能在文件读取重复和其他浪费到达Claude之前捕捉,这样你就能为相同的答案支付更少的费用
- 它会给你收据。每一笔节省都可以在你的终端里衡量。
它是开源的,采用MIT许可证。正常使用时完全不进行网络调用。你的数据从未离开过你的笔记本电脑。
Sipcode的比较
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Sipcode
Keep Claude Code’s context clean for sharper answers and lower cost, automatically.
Website · Compare · Releases
Install in 30 seconds
npm i -g sipcode
sipcode init
That is it. Your next Claude Code session will use Sipcode automatically. Verify a few minutes later:
sipcode drift
If the output reads no drift, context health stable, Sipcode is doing its job.
Already installed? Keep it fresh. Sipcode makes zero network calls, so it can’t pop an “update available” notice. Build a weekly habit: run
sipcode update(ornpm i -g sipcode@latest) to pull the latest fixes. Full details in Updating Sipcode.
What is Sipcode?
Sipcode is a free command-line tool that sits between you and Claude Code. It does three things:
- It watches Claude Code’s context window and warns you when it starts to bloat (we call this “context rot”)
- It catches duplicate file reads and other waste before they reach Claude, so you pay less for the same answers
- It gives you receipts. Every saving is measurable in your terminal.
It is open source under the MIT license. It makes zero network calls during normal use. Your data never leaves your laptop.
How Sipcode compares
| Sipcode | Tool A | Tool B | Tool C | |
|---|---|---|---|---|
| Approach | Live PreToolUse hook | Cross-session memory store | Static methodology | RAG retrieval server |
| Caps verbose tool output | ✓ | ✗ | docs only | ✗ |
| Dedups same-session re-reads | ✓ | ✗ | docs only | ✗ |
| Mid-session install support | ✓ Verified Warm-Fill | n/a | n/a | n/a |
安装
npx -y @openai/codex plugin marketplace add Anuj7411/sipcode