pr-review-ci

pr-review-ci is a command for Claude Code from morpho-org/sdks. It costs 0 tokens per session (1,911 once invoked), scanned A, original, MIT.

A GitHub Actions command that reviews a pull request and posts an inline GitHub review with either an approval or a request for changes. It is designed to run in continuous integration (CI), automated checks that run during development.

In plain words
What is it for?
Use it to review a numbered GitHub pull request from a GitHub Actions workflow and publish the formal result.
Why use it?
It adds a repeatable pull-request review step to the CI pipeline and prevents the command from running in an unsupported environment.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: installed under .agents/ (shared by several agents).

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/morpho-org/sdks/pr-review-ci
Clone the repo
git clone --depth 1 https://github.com/morpho-org/sdks

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 pr-review-ci

README.md
[![agentmods](https://agentmods.dev/badge/commands/morpho-org/sdks/pr-review-ci.svg)](https://agentmods.dev/commands/morpho-org/sdks/pr-review-ci)
Your own site
<a href="https://agentmods.dev/commands/morpho-org/sdks/pr-review-ci"><img src="https://agentmods.dev/badge/commands/morpho-org/sdks/pr-review-ci.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,911 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00000 $0.01911
Opus 5 $0.00000 $0.00955
Sonnet 5 $0.00000 $0.00382
Haiku 4.5 $0.00000 $0.00191

Measured yesterday against content hash 0a4080a3abb0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

pr-review-ci 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 yesterday.

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.

.agents/commands/pr-review-ci.md · 185 lines

How it starts

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

pr-review-ci

CI-mode pull request review. Posts an inline GitHub review with a formal APPROVE / REQUEST_CHANGES verdict. Runs in GitHub Actions on a PR.

Usage

/pr-review-ci <PR_NUMBER>

Pre-conditions:

  • CI=true OR GITHUB_ACTIONS=true MUST be set in the environment.
  • A <PR_NUMBER> argument is required.
  • --watch is not supported (no cron in CI).
  • --local is not supported (use /pr-review-local for that).

If any pre-condition fails, abort with a clear error and exit 1.

Step 1: Validate environment + arguments

if [ "$CI" != "true" ] && [ "$GITHUB_ACTIONS" != "true" ]; then
  echo "pr-review-ci must run in CI (CI=true or GITHUB_ACTIONS=true). Use /pr-review-gh for local-PR review." >&2
  exit 1
fi
if [ -z "${1:-}" ]; then
  echo "pr-review-ci requires a PR number." >&2
  exit 1
fi

Parse <OWNER> and <REPO> from git remote get-url origin (handles both [email protected]:owner/repo.git and https://github.com/owner/repo.git).

Step 2: Fetch PR details

PR_JSON=$(gh pr view <PR_NUMBER> --json title,body,baseRefName,headRefName,headRefOid,state 2>&1)
if [ $? -ne 0 ]; then
  echo "gh pr view <PR_NUMBER> failed: $PR_JSON" >&2
  exit 1
fi

Extract <BASE_BRANCH>, <HEAD_BRANCH>, <HEAD_SHA>, state. Validate that all three branch/SHA fields are non-empty AND not whitespace-only (use [ -z "${X//[[:space:]]/}" ] — bare [ -z "$X" ] lets whitespace pass). If state is not OPEN, inform the user and stop. Then fetch the base branch and the PR head by pull ref (works for fork PRs, where <HEAD_BRANCH> does not exist under origin):

git fetch origin <BASE_BRANCH> "+refs/pull/<PR_NUMBER>/head:refs/remotes/origin/pr/<PR_NUMBER>"

Verify git rev-parse origin/pr/<PR_NUMBER> equals <HEAD_SHA>; if not, the PR moved mid-run — stop and report. Also verify git rev-parse HEAD equals <HEAD_SHA> (the engine reads full file contents from the worktree, so it must be at the reviewed revision); if not, run git checkout --detach <HEAD_SHA> before continuing.

Read the full file on GitHub · 185 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. yesterday Changed · +6 lines 0a4080a3abb0
  2. 4d ago First seen · 179 lines · 0 tokens per session scan A 8f4b71c586c4

Subscribe to this mod's changes

pr-review-ci is a command published in the GitHub repository morpho-org/sdks (40 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,911 tokens. 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-01.