
tokendoctor
rsaryev
tokendoctor: the same Claude Code for up to 38% less. Replays your own past sessions to show what each change would have saved, then changes only what you pick
AI 简介
tokendoctor 是一款运行在本地的 Claude Code 插件,用于优化大模型对话中的 token 消耗与成本。它通过回放用户历史会话、对比不同上下文窗口配置下的 token 使用,精准识别冗余开销;提供可预览差异(diff)的自动化优化建议(如上下文裁剪、摘要策略调整),并支持即时回滚。核心能力包括会话重放分析、细粒度 token 成本归因、无模型调用的本地撤销机制,以及实时滑动上下文(slide)替代默认摘要逻辑。适用于高频使用 Claude Code 进行长程开发协作、代码审查或复杂任务编排的工程师,尤其适合对 API 成本敏感、需审计 token 分布场景的团队与个人开发者。
TypeScript
MIT License 最后更新 2026年11月22日活跃176
Stars
12
Forks
2
Watchers
0
Issues
Star 增长
今日+4
近 7 天+104
近 30 天+122
综合评分81.34
默认分支main