gaze: Command for Claude Code

.opencode/commands/uf.review-pr.md

uf.review-pr is a command for Claude Code, OpenCode from unbound-force/gaze. It costs 15 tokens per session (9,884 once invoked), scanned A, original, Apache-2.0.

A pull-request review command for GitHub, where a pull request is a proposed code change awaiting review. It checks whether the change matches its intent, follows security expectations, and obeys project principles.

In plain words
What is it for?
Use it with a pull-request number, or let it find the open pull request for the current branch.
Why use it?
It brings together automated checks and focused human-style review so important issues are less likely to be missed.

Command for Claude CodeOpenCode

Written for Claude Code and OpenCode: $ARGUMENTS substitution, but also installed under .opencode/. Also seen: mentions subagents; mentions OpenCode.

This is unbound-force/gaze's own configuration. It tells Claude Code and OpenCode how to work on gaze 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 gaze configures →

Reuse

Borrowing it

Nothing to install: this file belongs to unbound-force/gaze. 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/unbound-force/gaze/main/.opencode/commands/uf.review-pr.md
Clone the repo
git clone --depth 1 https://github.com/unbound-force/gaze

Made for: Claude Code, OpenCode.

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 uf.review-pr

README.md
[![agentmods](https://agentmods.dev/badge/commands/unbound-force/gaze/uf.review-pr/github.svg)](https://agentmods.dev/commands/unbound-force/gaze/uf.review-pr)
Your own site
<a href="https://agentmods.dev/commands/unbound-force/gaze/uf.review-pr"><img src="https://agentmods.dev/badge/commands/unbound-force/gaze/uf.review-pr/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 uf.review-pr

Your own site · 80×15
<a href="https://agentmods.dev/commands/unbound-force/gaze/uf.review-pr"><img src="https://agentmods.dev/badge/commands/unbound-force/gaze/uf.review-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 9,884 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.00015 $0.09884
Opus 5 $0.00008 $0.04942
Sonnet 5 $0.00003 $0.01977
Haiku 4.5 $0.00002 $0.00988

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

Security

Grade A, and why

uf.review-pr 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 5d 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.

.opencode/commands/uf.review-pr.md · 1,160 lines

How it starts

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

Review Pull Request

You are a token-efficient code reviewer. The user will provide a PR number or you will auto-detect it from the current branch. Delegate deterministic checks to local tools and CI results first, then apply AI judgment only where tools cannot reach: intent alignment, security patterns, and architectural concerns.

Arguments

  • PR number (optional): The pull request number to review (e.g., 42). If omitted, the command auto-detects the open PR for the current branch.

Argument parsing (before any tool calls): Check the user's message for a PR number argument. If present, set PR_NUMBER to that value immediately. All subsequent steps use <PR_NUMBER> — no auto-detection commands are needed or permitted.

Execution Steps

0. Prerequisites

Verify the gh CLI is available and authenticated before proceeding:

which gh

If gh is not found: STOP with error:

"gh CLI is not installed. Install it from https://cli.github.com/ or via your package manager."

If gh is found, verify authentication:

gh auth status

If not authenticated: STOP with error:

"gh is installed but not authenticated. Run gh auth login to authenticate."

Execution Mode Check

This command requires running local tools (build, test, lint) as part of the review. Verify you can execute commands by running a harmless probe:

echo "mode-check-ok"

If the probe cannot be executed (the agent runtime returns a tool-access-denied error, or you are in plan mode, read-only mode, or otherwise restricted from running commands): STOP with message:

"This review requires running local tools (build, test, lint) to verify the PR. I am currently in plan/read-only mode which prevents executing these checks. Switch to a mode that allows command execution (e.g., full mode / auto mode) and re-invoke /uf.review-pr <N>."

Do NOT proceed with a partial review that skips local tool execution. The local tool results are the foundation of the review — without them, AI-only findings lack verification and the review does not meet the command's quality standard.

Read the full file on GitHub · 1,160 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. 5d ago Changed · +60 lines 7bf4103d1c06
  2. 8d ago First seen · 1,100 lines · 15 tokens per session scan A a5bcbc8376ad

Subscribe to this mod's changes

uf.review-pr is a command published in the GitHub repository unbound-force/gaze (2 stars, last pushed 4d ago), licensed Apache-2.0. It adds 15 tokens to every session and 9,884 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-31.