own-pr

own-pr is a command for Claude Code from abstractonion/cadence. It costs 29 tokens per session (569 once invoked), scanned A, original, MIT.

A pull-request monitoring workflow that repeatedly checks a proposed code change until required checks pass and actionable review comments are addressed.

In plain words
What is it for?
Use it to inspect pull-request status, work on valid review feedback, diagnose failed checks, and keep the work isolated from the main checkout.
Why use it?
It removes the need to watch CI checks and review discussions manually. A pull request is a proposed change submitted for review before it is merged.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions subagents; mentions Claude Code.

Part of the cadence plugin — 38 skills, 15 commands, 5 agents shipped together

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/abstractonion/cadence/own-pr
Clone the repo
git clone --depth 1 https://github.com/abstractonion/cadence

Made for: Claude Code.

Or install cadence, the plugin that ships this one along with the rest of its 38 skills, 15 commands, 5 agents.

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 own-pr

README.md
[![agentmods](https://agentmods.dev/badge/commands/abstractonion/cadence/own-pr.svg)](https://agentmods.dev/commands/abstractonion/cadence/own-pr)
Your own site
<a href="https://agentmods.dev/commands/abstractonion/cadence/own-pr"><img src="https://agentmods.dev/badge/commands/abstractonion/cadence/own-pr.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 569 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.00029 $0.00569
Opus 5 $0.00015 $0.00284
Sonnet 5 $0.00006 $0.00114
Haiku 4.5 $0.00003 $0.00057

Measured 6d ago against content hash 4511dbf0603a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

own-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 6d 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.

commands/own-pr.md · 36 lines

How it starts

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

Own PR

Manual/user-invoked only — do not auto-select this workflow from description matching. Enter PR babysit mode only when the user explicitly invoked /own-pr (or /cadence:own-pr).

Babysit PR #N until settled — required CI green AND no unresolved actionable review threads. Ongoing loop, not a single pass. In Cursor/Claude Code, prefer delegating to the cadence-pr-owner subagent when available.

Pass the PR number from the user's message (or ask if missing). Work in sibling worktree {repo}-pr{N} per isolated-worktree. Do not merge the PR into base (gh pr merge, Merge button) or force-push; merging base into head when behind is allowed.

How to operate

  1. gh pr view N --json url,headRefName,baseRefName,mergeable,mergeStateStatus,statusCheckRollup; create worktree at {repo}-pr{N} if missing; confirm branch matches.
  2. Fetch unresolved review comments; filter resolved. Read only bodies/locations needed to act.
  3. Partition before fixing. Fan out fresh subagents per parallel-workstreams when comment triage, CI diagnosis, and conflict resolution are disjoint; serialize shared wiring.
  4. Fix valid issues; run lint, typecheck, targeted tests per run-lint-and-typecheck / verify-with-runtime; integrate subagent diffs before push.
  5. If mergeStateStatus is BEHIND, BLOCKED, or DIRTY: merge base into head — prefer git fetch origin && git merge origin/{baseRefName}; or gh pr update-branch then git fetch origin && git merge origin/{headRefName} (or ff-only pull) before push. Resolve conflicts. Rebase only if user explicitly approves force-with-lease.
  6. Stage PR-scoped files only; commit; push; reply on addressed threads.
  7. Settle loop — repeat: triage new threads while CI runs; poll gh pr checks N --required; fix and push.
  8. Stop when: required checks pass AND no unresolved actionable threads — or explicit human blocker (permissions, product decision, ambiguous scope).

Return PR URL, CI status, review state, blockers.

Read the full file on GitHub · 36 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. 6d ago First seen · 36 lines · 29 tokens per session scan A 4511dbf0603a

Subscribe to this mod's changes

own-pr is a command published in the GitHub repository abstractonion/cadence (4 stars, last pushed 2mo ago), licensed MIT. It adds 29 tokens to every session and 569 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.