$ claude plugin install contextsaver --marketplace AlmogBaku/ContextSavertoken-pilot
v1.0.4减少读代码消耗的 token:大文件 Read 返回大纲,重型 Grep 和 Bash 被改道,节省量显示在 prompt 上方。
安装
在终端执行(提示添加 marketplace 时输入 y)
$ claude plugin install token-pilot --marketplace Digital-Threads/token-pilot
已在会话中?在 Claude Code 输入框里输入:
$ /plugin install token-pilot --marketplace Digital-Threads/token-pilot选择作用域后立即生效。需要 Claude Code 2.1.287 或更高版本,在终端执行。完整安装指南
token-pilot 能做什么?
- 对大代码文件的整文件 Read 改为返回 smart_read 大纲
- 默认 deny 模式拦截重型 Grep 和 Bash;可用 TOKEN_PILOT_MODE 切换 advisory 和 strict
- 25 个 MCP 工具,如 smart_read、read_symbol、read_for_edit
- prompt 上方显示节省量及 5 小时、7 天速率限制
- /tp-stats 在侧边 pane 打开本会话的统计
需要什么?
- Claude Code 2.1.287 或更高版本(终端)
- Node.js 18+
- ast-index(npx token-pilot install-ast-index)
这个 mod 能访问什么?
以下内容由 claude plugin validate 在 Claude Code 2.1.296 上读取 mod 代码得出(同步于 2026年10月12日)。这是能力清单,不是安全审计;mod 以你的权限运行,请只安装可信作者的 mod。
广泛访问
- 在你的机器上运行程序
- 可批准工具调用或修改设置
- 拦截或改写工具调用
- 读取或改写你的提示词
- 读取文件
- 读取环境变量或设置
Hook 与接口调用 (16 + 19)
hooks
- classic.SessionStart
- classic.SessionStart{source=clear|resume|compact|fork}
- command.run{command=?}
- prompt.compose
- session.start
- session.start{isInteractive=true}
- tool.call
- tool.call{tool=/"^Grep$"/}
- tool.call{tool=Agent}
- tool.call{tool=Bash}
- tool.call{tool=Edit}
- tool.call{tool=Read}
- tool.call{tool=Write}
- turn.complete
- ui.render{component=AbovePrompt}
- ui.render{component=Pane, requestId=tp-stats}
calls
- $.command.register
- $.env.get
- $.env.set
- $.fs.exists
- $.fs.list
- $.fs.read
- $.fs.stat
- $.process.run
- $.session.cwd
- $.session.id
- $.session.root
- $.session.usage
- $.state.get
- $.state.set
- $.tool.call
- $.ui.open
- $.ui.resolve
- $.ui.status
- $.ui.toast
怎样卸载 token-pilot?
$ claude plugin uninstall token-pilot只想暂时关闭:claude plugin disable 加同一个名称。
你是 token-pilot 的作者?
把这个徽章加到 README,用户可以直接跳到本页查看安装命令和访问能力报告。
[](https://ccmods.app/mods/token-pilot)相关 mod
把 Claude Code 接入 Constellation 代码图谱:影响、依赖、死代码命令,/constellation pane 和搜索提醒。
界面提示词工具调用广泛访问
$ claude plugin install constellation --marketplace ShiftinBits/constellation-claude$ claude plugin install context-view --marketplace kongyo2/context-view