opik-mcp: Command for Claude Code

.claude/commands/address-pr-comments.md

address-pr-comments is a command for Claude Code from comet-ml/opik-mcp. It costs 23 tokens per session (516 once invoked), scanned A, original, Apache-2.0.

A command for handling open review comments on the current GitHub pull request, which is a proposed code change awaiting review. It collects unresolved comments, lets you choose whether to fix, answer, or skip them, and posts replies.

In plain words
What is it for?
Use it to find pending pull-request feedback, make requested fixes, answer comments when the code is already correct, and reply in each review thread.
Why use it?
It prevents review comments from being missed, including comments beyond the first page and comments from automated reviewers. It keeps code changes and explanations tied to the relevant discussion.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

This is comet-ml/opik-mcp's own configuration. It tells Claude Code how to work on opik-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything opik-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to comet-ml/opik-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/comet-ml/opik-mcp/main/.claude/commands/address-pr-comments.md
Clone the repo
git clone --depth 1 https://github.com/comet-ml/opik-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for address-pr-comments

README.md
[![agentmods](https://agentmods.dev/badge/commands/comet-ml/opik-mcp/address-pr-comments/github.svg)](https://agentmods.dev/commands/comet-ml/opik-mcp/address-pr-comments)
Your own site
<a href="https://agentmods.dev/commands/comet-ml/opik-mcp/address-pr-comments"><img src="https://agentmods.dev/badge/commands/comet-ml/opik-mcp/address-pr-comments/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for address-pr-comments

Your own site · 80×15
<a href="https://agentmods.dev/commands/comet-ml/opik-mcp/address-pr-comments"><img src="https://agentmods.dev/badge/commands/comet-ml/opik-mcp/address-pr-comments.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 516 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.00516
Opus 5.5 $0.00009 $0.00206
Sonnet 5.5 $0.00005 $0.00103
Haiku 4.5 $0.00002 $0.00052

Measured 24d ago against content hash bf6af80299c8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

address-pr-comments scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 24d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/address-pr-comments.md · 57 lines

What it actually says

Handle the open review comments on this branch's PR in comet-ml/opik-mcp.

1. Find the PR

  • gh auth status; stop if not logged in.
  • gh pr list --head <branch> --state open. If none, say so and stop.

2. Collect comments

Always --paginate; without it, comments past the first 30 are missed.

gh api repos/comet-ml/opik-mcp/pulls/<n>/comments --paginate
gh api repos/comet-ml/opik-mcp/issues/<n>/comments --paginate
gh api repos/comet-ml/opik-mcp/pulls/<n>/reviews --paginate

A comment is pending when its thread is unresolved (GraphQL, step 5) and it has no reply from us yet. Include bot reviewers.

3. Propose

One line each: id, file:line, a short quote, and what you propose: a code change, an answer (the code is already right), or skip with a reason. Then ask me: fix, answer, or skip, per comment.

4. Act and reply

Reply in the thread with in_reply_to:

gh api repos/comet-ml/opik-mcp/pulls/<n>/comments -f body="…" -F in_reply_to=<id>
  • Answer or skip: reply now, one or two lines.
  • Fix: make the change, run the relevant tests, commit, and push. Only after the push succeeds, reply Fixed in <sha>: <what changed>. Never post a "Fixed" reply for a commit that isn't on origin.

5. Resolve

Ask before resolving. Page through reviewThreads with GraphQL (first: 100, follow endCursor until hasNextPage is false), and resolve only the threads we replied to:

gh api graphql -f query='mutation { resolveReviewThread(input: {threadId: "<id>"}) { thread { isResolved } } }'

Report how many threads were resolved.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 24d ago First seen · 57 lines · 23 tokens per session scan A bf6af80299c8

Subscribe to this mod's changes

address-pr-comments is a command published in the GitHub repository comet-ml/opik-mcp (223 stars, last pushed 2d ago), licensed Apache-2.0. It adds 23 tokens to every session and 516 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-25.