Lecarvalho/Pomegr/tree/main/plugins/claude-code
关于这个 mod
Pomegr 是面向编码代理会话的本地优先只读观察器。此插件会加载仓库自有的报告策略,让 Claude Code 报告有界的项目专属信号,并通过本地 Pomegr 监视器已经提交的规范化观测结果提供只读查询。
插件不会将转录内容、源代码、提示、响应、命令、工具输出或供应商凭据发送到 Pomegr。报告通过 .pomegr/signals.md 按仓库选择启用;本地观察器不可用时,查询工具会安全失败。只读查询只连接到回环地址上的 Pomegr 进程,并使用短期本地能力;该能力不是账户凭据,也永远不会离开计算机。
开始使用
- 在与 Claude Code 相同的计算机上安装并运行 Pomegr。
- 安装此插件并重新加载插件。
- 在仓库中运行
/pomegr:init,审查并创建报告策略。 - 运行
/pomegr:doctor,执行只读设置检查。
会话提示行
在 Claude Code 2.1.288 或更高版本中,插件会在提示上方绘制一条安静的提示行,以仓库文件夹名称开头,显示主代理的上下文、最近 5 个请求、代理自己的进度估计、账户使用窗口以及当前提示的子代理。它只读取 Claude Code 已为该会话提供的数字,不需要 Pomegr 应用,也不会阻塞或改变提示或工具调用。运行 /pomegr-hud 可移动或隐藏它。
文档和源代码位于 Pomegr 仓库。请通过 GitHub Issues 报告问题。
分发说明
随附的图标是 Pomegr 的第一方产品标志,应用和 favicon 也使用它。生成的 JavaScript bundle 让插件无需安装 node_modules 即可运行;规范源代码、固定的依赖版本、构建脚本和保留的第三方法律声明都位于 Pomegr 仓库中。
安装
请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。
claude plugin marketplace add Lecarvalho/Pomegr claude plugin install pomegr
原文 / README
Pomegr for Claude Code
Pomegr is a local-first, read-only observer for coding-agent sessions. This plugin loads a repository-owned reporting policy, lets Claude Code report bounded project-specific signals, and exposes read-only queries over normalized observations already committed by the local Pomegr monitor.
The plugin does not send transcript contents, source code, prompts, responses, commands, tool output, or provider credentials to Pomegr. Reporting remains opt-in per repository through .pomegr/signals.md, and query tools fail closed when the local observer is unavailable. Read-only queries connect only to the loopback Pomegr process and use its short-lived local capability; that capability is not an account credential and never leaves the computer.
Get started
- Install and run Pomegr on the same computer as Claude Code.
- Install this plugin and reload plugins.
- Run
/pomegr:initin a repository to review and create its reporting policy. - Run
/pomegr:doctorfor a read-only setup check.
Session line
On Claude Code 2.1.288 or newer the plugin draws one quiet line above the prompt, led by the repository's folder name: the main agent's context, its last 5 requests, the agent's own progress estimate, account usage windows, and the subagents of the current prompt. It reads only the figures Claude Code already has for the session, works without the Pomegr app, and never blocks or changes a prompt or tool call. Run /pomegr-hud to move or hide it.
Documentation and source are available in the Pomegr repository. Report problems through GitHub Issues.
Distribution notes
The included icon is Pomegr's first-party product mark, also used by the app and favicon. The generated JavaScript bundles let the plugin run without installing node_modules; their canonical sources, pinned dependency versions, build script, and preserved third-party legal notices are available in the Pomegr repository.
