theonly1me/claude-code-mods/tree/main/plugins/decision-lens

查看 Claude 在每个回合做出的决定、做决定的原因,以及它选择不做的事。然后引导未来回合:保留喜欢的行为,或停止不喜欢的行为。
theonly1me/claude-code-mods/tree/main/plugins/decision-lens

查看 Claude 在每个回合做出的决定、做决定的原因,以及它选择不做的事。然后引导接下来的回合:保留喜欢的行为,或停止不喜欢的行为。

claude plugin marketplace add theonly1me/claude-code-mods
claude plugin install decision-lens@claude-code-mods
注册一次 marketplace。在已打开的会话中安装后运行 /reload-plugins。需要 Claude Code 2.1.289 或更高版本;不需要构建步骤或运行时依赖。
透镜会在 Claude 工作时记录每个回合:Claude 写了什么、模型分享了哪些思考,以及每次工具调用及其结果。回合结束后,一个辅助模型读取这份轨迹,并命名最多五个真正的决定。状态列随后显示 ◆ 3 decisions · /why。
每个决定都是一张卡片,包含:
◆ 3 decisions · /why。/why。透镜会打开最新回合并接管按键。命令随时可用,即使面板没有接管按键:
/why:在最新回合打开透镜。/why keep 2:保存卡片 2 中要求 Claude 重复该行为的规则。/why avoid 2:保存卡片 2 中要求 Claude 停止该行为的规则。/why ask 2:通过会话自己的模型和缓存对话询问 Claude,让它用自己的话解释卡片 2。答案会出现在卡片上。/why rules:打开 Rules 标签页。规则会从下一次请求开始写入 Claude 的 system prompt,并进入之后的每个会话。规则按项目保存。不会修改仓库文件。
标题下方的提示列会始终列出当前有效的按键。
| 按键 | 功能 |
| --- | --- |
| 1 到 5 | 选择卡片。选中的卡片有亮框,按钮会显示各自的按键。 |
| k | 继续这样做:保存选中卡片的 keep 规则。 |
| a | 不要这样做:保存选中卡片的 avoid 规则。 |
| w | 询问原因:Claude 用自己的话解释选中的卡片。 |
| p、n | 显示更早或更晚的回合(最近 20 个回合)。 |
| d、r | 显示 Decisions 标签页或 Rules 标签页。 |
| x | 关闭透镜。 |
| Tab、Enter | 移到下一个按钮并按下它。 |
| Esc | 把按键交还给提示。面板保持打开。 |
| ctrl+x tab | 再次把按键交给面板。 |
在 Rules 标签页中,每条规则都有编号和两个按钮:“Make global”(或“This project only”)以及“Remove”。使用 Tab 和 Enter 按下它们。
在 /plugin 中修改:
explainTurns(开启):使用辅助模型阅读每个回合。这会消耗额外 token。helperModel(claude-sonnet-5-5):阅读每个回合的模型。“询问原因”始终使用会话的模型。helperEffort(medium):辅助模型思考的力度(low、medium 或 high)。有些模型不会分享思考文本。这时透镜会根据 Claude 写下的内容和它发出的工具调用工作。
配置、隐私、更新和移除方式见 marketplace README。
请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。
claude plugin marketplace add theonly1me/claude-code-mods claude plugin install decision-lens
See the decisions Claude made in each turn, why it made them, and what it chose not to do. Then steer the next turns: keep a behavior you like, or stop one you do not.

claude plugin marketplace add theonly1me/claude-code-mods
claude plugin install decision-lens@claude-code-mods
Register the marketplace once. Run /reload-plugins in an open session after installing. Requires Claude Code 2.1.289 or later; no build step or runtime dependencies.
The lens records each turn as Claude works: what Claude wrote, any thinking the model shares, and every tool call with its result. When the turn ends, a helper model reads that trace and names up to five real decisions. The status line then shows ◆ 3 decisions · /why.
Each decision is a card with:
◆ 3 decisions · /why./why. The lens opens on the latest turn and takes the keys.Commands work at any time, also while the pane does not have the keys:
/why: open the lens on the latest turn./why keep 2: save a rule from card 2 that tells Claude to repeat the behavior./why avoid 2: save a rule from card 2 that tells Claude to stop./why ask 2: ask Claude, through the session's own model and cached conversation, to explain card 2 in its own words. The answer appears on the card./why rules: open the Rules tab.Rules go into Claude's system prompt from the next request and in every later session. They are saved for this project. No repository files change.
The hint row under the title always names the keys that work now.
| Key | What it does |
| --- | --- |
| 1 to 5 | Pick a card. The picked card has a bright frame, and its buttons show their keys. |
| k | Keep doing this: save the picked card's keep rule. |
| a | Don't do this: save the picked card's avoid rule. |
| w | Ask why: Claude explains the picked card in its own words. |
| p, n | Show the earlier or later turn (the last 20 turns). |
| d, r | Show the Decisions tab or the Rules tab. |
| x | Close the lens. |
| Tab, Enter | Move to the next button, and press it. |
| Esc | Give the keys back to the prompt. The pane stays open. |
| ctrl+x tab | Give the keys to the pane again. |
On the Rules tab, each rule is numbered and has two buttons: "Make global" (or "This project only") and "Remove". Use Tab and Enter to press them.
Change these in /plugin:
explainTurns (on): read each turn with the helper model. This uses extra tokens.helperModel (claude-sonnet-5-5): the model that reads each turn. Ask why always uses the session's model.helperEffort (medium): how hard the helper model thinks (low, medium, or high).Some models share no thinking text. The lens then works from what Claude wrote and the tool calls it made.
See the marketplace README for configuration, privacy, updates, and removal.