ClaudeMods
☰
ZH-CN
● 0 人在线 · 浏览 0 次
赞助提交作品
GitHub 仓库 · 发布者 iamalvisng

sieve-pane

一个 Claude Code mod,用 Tokyo Night 仪表板面板显示代理读取和编辑的代码的调用者、影响范围和记录的决策,并带有动画像素吉祥物和提示栏上方的状态带。

iamalvisng@iamalvisng

iamalvisng/sieve/tree/main/crates/sieve-cli/assets/claude-mod/sieve-pane

已翻译

关于这个 mod

sieve-pane 是一个 Claude Code 插件,通过 /sieve-pane 为代理读取和编辑的代码打开仪表板面板。面板从上到下依次为:带像素吉祥物、符号名称和 file:line · kind 上下文的页眉;SAVED TODAY、THIS WEEK 和 IMPACT 磁贴;深度为 2 的 WHO DEPENDS ON THIS 调用者树;用绿色(1–5)、橙色(6–20)或红色(>20)调用者着色的 IMPACT 条;记录的 WHY IT EXISTS 决策(已被取代的决策以红色显示并带警告);以及 SAVED · LAST 7 DAYS 柱状图。非代码文件会显示静止的吉祥物、节省量磁贴和 “not code” 通知。

吉祥物在终端中渲染为 Raster,在桌面端和 vscode 中渲染为 Svg,在手机上不显示。面板打开时每 600 ms 在两帧之间交替,并且只重绘变化部分;产生新的节省量后会摇摆,在影响范围为红色或决策为 SUPERSEDED 时会以帧 0 变暗。共有六个吉祥物(sieve、soya、cloud、sifty、hoot、grit);/sieve-mascot <name> 会将选择保存到 .sieve/config.json。吉祥物由 assets/mascots.json 通过 node scripts/gen-mascots.mjs 生成。

面板会响应 Read、Edit 和 Write 工具以及通过 Bash 和 MCP 发出的 Sieve 查询;在 Edit、MultiEdit 或 Write 之后,会在提示栏上方显示类似 ✎ checkApiKeyRateLimit → affects 6 callers in 2 routes 的状态带,并使用对应级别的颜色。保存的数字最多每 30 秒来自一次 sieve stats --json。试用方法:运行 sieve build,将 sieve 放入 PATH,然后执行 claude --plugin-dir <absolute path to this folder>;运行 claude plugin test <this folder> 进行测试。此 mod 从不修改工具调用,也不会发起模型调用。

安装

请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。

claude plugin marketplace add iamalvisng/sieve
claude plugin install sieve-pane
原文 / README

sieve-pane

A Claude Code mod. It shows a Tokyo Night dashboard for the code the agent reads and edits.

The pane (/sieve-pane) has these parts, top to bottom:

  • Header: a pixel mascot, the symbol name in bold, and file:line · kind · edited 9:58pm in dim.
  • Tiles: SAVED TODAY (green), THIS WEEK (blue) and IMPACT (green, orange or red).
  • WHO DEPENDS ON THIS: the callers to depth 2 as a tree, 4 rows, then "+N more".
  • IMPACT: a bar and "N callers · H hops". Green is 1 to 5, orange 6 to 20, red above 20.
  • WHY IT EXISTS: the recorded decisions. A superseded one is red with ⚠.
  • SAVED · LAST 7 DAYS: a bar chart, oldest left, today green. A non-code file shows the resting mascot, the savings tiles and "not code · Sieve indexes code files only".

The mascot is a Raster in the terminal and an Svg on desktop and vscode. The phone has none. It alternates 2 frames every 600 ms while the pane is open, and only blits a change. It wags (frame 1) after a new saving. A red impact or a SUPERSEDED decision dims it and keeps frame 0. The default mascot is sieve. The six mascots are sieve, soya, cloud, sifty, hoot and grit. The value none shows no mascot. /sieve-mascot <name> saves the choice in .sieve/config.json, as "mascot": "<name>". You can also set that key by hand. assets/mascots.json is the source. Run node scripts/gen-mascots.mjs to make hooks/mascots.ts. The pane reacts to the Read, Edit and Write tools, and to Sieve queries made through Bash and MCP. The band above the prompt shows, after an Edit, MultiEdit or Write: ✎ checkApiKeyRateLimit → affects 6 callers in 2 routes, in the level color. The saved numbers come from sieve stats --json, at most every 30 seconds. Try it: run sieve build, put sieve on PATH, then claude --plugin-dir <absolute path to this folder>. Run claude plugin test <this folder> for the tests. The mod never changes a tool call and makes no model call.

更多类似作品