post-pr-comments

post-pr-comments is a command for Claude Code from sjungling/sjungling-claude-plugins. It costs 12 tokens per session (921 once invoked), scanned A, original, MIT.

A command for posting code-review findings from the current conversation as inline comments on the GitHub pull request for the current branch.

In plain words
What is it for?
Use it to collect review findings, verify their current file and line locations, and publish actionable comments to the pull request.
Why use it?
It checks file locations and line numbers before posting, reducing the chance that comments appear on the wrong code.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the workflow plugin — 10 commands, 1 agent shipped together

Good fit Use it to collect review findings, verify their current file and line locations, and publish actionable comments to the pull request.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add sjungling/sjungling-claude-plugins
Claude Code
/plugin install workflow

Made for: Claude Code.

Or install workflow, the plugin that ships this one along with the rest of its 10 commands, 1 agent.

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 post-pr-comments

README.md
[![agentmods](https://agentmods.dev/badge/commands/sjungling/sjungling-claude-plugins/post-pr-comments/github.svg)](https://agentmods.dev/commands/sjungling/sjungling-claude-plugins/post-pr-comments)
Your own site
<a href="https://agentmods.dev/commands/sjungling/sjungling-claude-plugins/post-pr-comments"><img src="https://agentmods.dev/badge/commands/sjungling/sjungling-claude-plugins/post-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 post-pr-comments

Your own site · 80×15
<a href="https://agentmods.dev/commands/sjungling/sjungling-claude-plugins/post-pr-comments"><img src="https://agentmods.dev/badge/commands/sjungling/sjungling-claude-plugins/post-pr-comments.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 921 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.00012 $0.00921
Opus 5 $0.00006 $0.00461
Sonnet 5 $0.00002 $0.00184
Haiku 4.5 $0.00001 $0.00092

Measured 9d ago against content hash 8e5a936ec172, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

post-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 9d 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.

plugins/workflow/commands/post-pr-comments.md · 107 lines

How it starts

The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Post inline code review comments on the GitHub PR associated with the current branch.

Step 1: Gather Findings

Collect all code review findings, issues, or suggestions from the current conversation. For each finding, determine:

  • File path — relative to the repo root
  • Line number(s) — the specific line or line range in the current version of the file
  • Comment body — a clear, actionable description of the issue in markdown

If there are no review findings in the conversation, tell the user and stop.

Step 2: Resolve Line Numbers

For each finding, verify the line numbers are accurate:

  1. Read the file to confirm the code at the referenced line matches what was discussed
  2. If the line has shifted (e.g., due to edits since the review), find the correct current line
  3. For issues spanning multiple lines, use start_line and line to define the range

Step 3: Write Comments JSON

Write a JSON file containing the comments array:

COMMENTS_FILE=$(mktemp /tmp/pr-review-comments-XXXXXX.json)

Each comment object must have:

  • path (string) — file path relative to repo root
  • line (number) — the line number (or end line for ranges)
  • side (string) — always "RIGHT"
  • body (string) — markdown comment body

For multi-line ranges, also include:

  • start_line (number) — first line of the range
  • start_side (string) — always "RIGHT"

Required footer

Append an attribution footer to the end of every comment body, so reviewers know the finding was machine-generated and at what rigor. Format:

\n\n---\n<sub>🤖 Analysis: <MODEL> · <REASONING> reasoning effort<EXTRA></sub>
  • <MODEL> — the model that produced the analysis, e.g. Claude Opus 4.8.
  • <REASONING> — the reasoning/thinking level used, e.g. high.
  • <EXTRA> — optional · <note> suffix for extra provenance that genuinely applies, e.g. · red-teamed before posting when findings were adversarially verified. Omit entirely if nothing extra applies — do not fabricate it.

Read the full file on GitHub · 107 lines

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. 9d ago First seen · 107 lines · 12 tokens per session scan A 8e5a936ec172

Subscribe to this mod's changes

post-pr-comments is a command published in the GitHub repository sjungling/sjungling-claude-plugins (13 stars, last pushed 25d ago), licensed MIT. It adds 12 tokens to every session and 921 once invoked, about $0.0001 per session on Opus 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-08-30.