update-pr

update-pr is a command for Claude Code from nimble-giant/ailloy. It costs 0 tokens per session (295 once invoked), scanned A, original, Apache-2.0.

A command that rewrites the description of an existing GitHub pull request, a proposed code change awaiting review, for the current branch.

In plain words
What is it for?
It checks that a pull request exists, generates a new summary from the branch compared with the main branch, includes related issue references when available, and updates GitHub.
Why use it?
It keeps the request's summary aligned with the branch's current changes instead of leaving an outdated description.

Command for Claude Code

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/nimble-giant/ailloy/update-pr
Clone the repo
git clone --depth 1 https://github.com/nimble-giant/ailloy

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/nimble-giant/ailloy/update-pr.svg)](https://agentmods.dev/commands/nimble-giant/ailloy/update-pr)
Your own site
<a href="https://agentmods.dev/commands/nimble-giant/ailloy/update-pr"><img src="https://agentmods.dev/badge/commands/nimble-giant/ailloy/update-pr.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 295 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 $0.00000 $0.00295
Opus 5 $0.00000 $0.00148
Sonnet 5 $0.00000 $0.00059
Haiku 4.5 $0.00000 $0.00030

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

Security

Grade A, and why

update-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.

.claude/commands/update-pr.md · 48 lines

What it actually says

update-pr

Update the description of an existing pull request for the current branch.

Usage

/update-pr

Workflow

When this command is used, Claude will:

  1. Enter Plan Mode to outline the PR update process

  2. Verify PR exists for the current branch using gh pr view --json number,title,url,state

  3. Generate updated description using /pr-description command

    • Analyzes current branch changes against main
    • Creates comprehensive PR description
    • Includes issue references if /gh-issue was used
  4. Update PR description using gh pr edit --body-file <description-file>

  5. Confirm update and display PR URL

Integration

This command integrates with:

  • /pr-description - For generating updated PR descriptions
  • /gh-issue - Includes issue references in the description
  • /open-pr - Called automatically when PR already exists

Error Handling

  • If no PR exists for current branch, suggests using /open-pr instead
  • If unable to update PR, provides GitHub CLI troubleshooting steps

Notes

  • Assumes PR already exists for the current branch
  • Regenerates entire description from scratch for accuracy
  • Puts Claude into Plan Mode for transparency
  • Uses same description format as /pr-description command
  • Does not include Claude Code attribution in updated PR descriptions
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 First seen · 48 lines · 0 tokens per session scan A 7beb0d008a7f

Subscribe to this mod's changes

update-pr is a command published in the GitHub repository nimble-giant/ailloy (10 stars, last pushed 4d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 295 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-08-31.