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.
curl -O https://raw.githubusercontent.com/unbound-force/gaze/main/.opencode/commands/uf.rebase-pr.mdgit clone --depth 1 https://github.com/unbound-force/gazeWrote 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.
[](https://agentmods.dev/commands/unbound-force/gaze/uf.rebase-pr)<a href="https://agentmods.dev/commands/unbound-force/gaze/uf.rebase-pr"><img src="https://agentmods.dev/badge/commands/unbound-force/gaze/uf.rebase-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.
<a href="https://agentmods.dev/commands/unbound-force/gaze/uf.rebase-pr"><img src="https://agentmods.dev/badge/commands/unbound-force/gaze/uf.rebase-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00043 | $0.02143 |
| Opus 5.5 | $0.00017 | $0.00857 |
| Sonnet 5.5 | $0.00009 | $0.00429 |
| Haiku 4.5 | $0.00004 | $0.00214 |
Grade A, and why
uf.rebase-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 3d 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.
How it starts
The opening of the file, as written. The whole thing — 237 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Resolve Branch Conflict
You are a token-efficient developer. The user provides a GitHub pull request number. You resolve the merge conflict on the PR's head branch by rebasing it onto its base branch, so that once the PR is approved it can be merged with a rebase.
Session-resume guard: If this session was resumed from compressed context, re-read this entire template before continuing. Do NOT infer step completion from compressed summaries. When in doubt, re-read — false re-reads are harmless; skipping steps due to stale context causes skipped validation, wrong-remote pushes, or corrupted conflict resolutions.
Arguments
- PR number (required): The GitHub pull request number to fix
(e.g.,
42).
Argument parsing (before any tool calls): Check the user's
message for a PR number argument. Validate that it matches
^[1-9][0-9]*$ (positive integer, no leading zeros). If the
argument is missing, invalid, zero, negative, or contains
non-numeric characters: STOP with error:
"Invalid PR number. Must be a positive integer."
No gh CLI commands are permitted until the argument passes
validation. Set PR_NUMBER to the validated value. All subsequent
steps use <PR_NUMBER>.
Phase 1: Prerequisites
Verify the gh CLI is available and authenticated:
which gh
If not found: STOP with error:
"GitHub CLI (gh) is not installed. Install from https://cli.github.com/"
gh auth status
If not authenticated: STOP with error:
"GitHub CLI not authenticated. Run
gh auth loginto authenticate."
Detect the current repository:
gh repo view --json nameWithOwner --jq '.nameWithOwner'
Record {owner}/{repo} for all subsequent API calls. Repository
identifiers MUST NOT be hardcoded.
Phase 2: Fetch the PR
gh pr view <PR_NUMBER> --json number,title,state,headRefName,baseRefName,mergeable,mergeStateStatus,baseRepository,headRepository
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.
- 3d ago First seen · 237 lines · 43 tokens per session scan A 5a15a4ad0a11
uf.rebase-pr is a command published in the GitHub repository unbound-force/gaze (4 stars, last pushed yesterday), licensed Apache-2.0. It adds 43 tokens to every session and 2,143 once invoked, about $0.0002 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-11-03.
uf.rebase-pr compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| uf.rebase-prunbound-force/gaze | Command | 4 | yesterday | Apache-2.0 | A | 43 | Claude Code, OpenCode |
| merge-conflict-analysisrjmurillo/ai-agents | Command | 49 | yesterday | MIT | A | 0 | GitHub Copilot |
| release-notesOpenHands/extensions | Command | 176 | yesterday | MIT | A | 44 | Claude Code |
| commitechoVic/blade-code | Command | 181 | 24d ago | MIT | A | 8 | Claude Code |
| repo-audittractorjuice/arc-kit | Command | 2.3k | 2d ago | none | A | 29 | Claude Code |
| propsmill/infrahub-mcp | Command | 10 | yesterday | Apache-2.0 | A | 18 | Claude Code |
| codex-reviewoalders/kitchen-sink | Command | 5 | 3d ago | MIT | A | 41 | Claude Code |