update-pr-body

update-pr-body is a command for Claude Code from coleam00/Archon. It costs 0 tokens per session (904 once invoked), scanned A, original, MIT.

A pull-request editing command that updates the description so it matches the final code change. A pull request is a proposed change submitted for review before it is merged into a project.

In plain words
What is it for?
Use it after implementation and validation to compare the live description with the final diff and update inaccurate details without rewriting the whole description.
Why use it?
Pull-request descriptions can become inaccurate after the code, base branch, or validation results change. This keeps true claims and corrects only claims disproved by the final difference.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it after implementation and validation to compare the live description with the final diff and update inaccurate details without rewriting the whole description.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/coleam00/archon/update-pr-body
About the project

Archon is a workflow engine for AI coding agents that turns development processes into YAML-defined sequences with phases, validation gates, and artifacts. Developers use it to run repeatable processes such as planning, implementation, testing, code review, and pull-request creation across projects. The catalogue entries provide commands, agents, skills, hooks, instructions, and settings for working with Archon.

coleam00/Archon · 23,701 stars · on GitHub · archon.diy

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.

Clone the repo
git clone --depth 1 https://github.com/coleam00/Archon

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-body

README.md
[![agentmods](https://agentmods.dev/badge/commands/coleam00/archon/update-pr-body/github.svg)](https://agentmods.dev/commands/coleam00/archon/update-pr-body)
Your own site
<a href="https://agentmods.dev/commands/coleam00/archon/update-pr-body"><img src="https://agentmods.dev/badge/commands/coleam00/archon/update-pr-body/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 update-pr-body

Your own site · 80×15
<a href="https://agentmods.dev/commands/coleam00/archon/update-pr-body"><img src="https://agentmods.dev/badge/commands/coleam00/archon/update-pr-body.svg" alt="Reviewed on agentmods" width="80" 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 904 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.00000 $0.00904
Opus 5.5 $0.00000 $0.00362
Sonnet 5.5 $0.00000 $0.00181
Haiku 4.5 $0.00000 $0.00090

Measured today against content hash 47fe50c85e19, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

update-pr-body 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 today.

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.

.archon/workflows/sdlc/deliver/commands/update-pr-body.md · 60 lines

How it starts

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

Update the pull request description

Bring the pull request's description in line with the final change. It was written when the draft opened; the base merge and correction rounds since then may have falsified claims in it, and a validation may have passed red it has to disclose. Your product is an accurate description, nothing else.

The pull request: $INPUTS.pr. Its URL names the repository (host and <owner>/<repo>) and the number every command below uses. Read and write it through the source this run selected, $INPUTS.source:

  • forge: the Archon CLI, whose argv is the JSON string array in $ARCHON_CLI_COMMAND, run as <argv...> forge <op> --json …, with <ref> = {"repo":{"host":…,"path":…},"number":…}. Read with pr.view and --data '{"selector":{"kind":"number","ref":<ref>}}'; write with pr.edit-body and --data-file, so the description never reaches a command line. A failed operation is the answer: report it, and never repeat it through gh.
  • gh: the GitHub CLI, every command naming --repo <host>/<owner>/<repo>.
  1. Read the live description and base (pr.view, or gh pr view <number> --repo <host>/<owner>/<repo> --json body,baseRefName): a person may have edited it since, and their edits stay. Then read the full final diff: fetch the base from the remote whose URL is the pull request's repository (git remote -v; it need not be named origin) and diff <that remote>/<base>...HEAD.
  2. Check every concrete claim in the description against the diff: named functions and guards, described mechanics, file lists, "unchanged" claims. Change only what the diff falsifies. Keep the structure, the tone and every claim that is still true. Do not rewrite from scratch, add sections other than step 4's, or narrate the correction history.
  3. When $ARTIFACTS_DIR/implementation.md records a failing check the implementer judged inherited or environment, the description must say so near the top: the check and why it is not this change's. Keep an existing disclosure that is still true.
  4. Link the issue the description references by the latest review's contract coverage. What it left open, as a JSON list (empty text when no review judged coverage): $INPUTS.contract_left. On an empty list ([]), and only then, the reference becomes Closes #N, replacing a Refs #N. Anything else gets a non-closing reference (Refs #N) in place of any closing keyword (Closes, Fixes, Resolves and their variants), and a short "Left open" section listing each item, or saying no review judged coverage. An item left open as an operator check names the check the operator runs. Keep at most one "Left open" section, current, and remove it on an empty list. Change no other reference, and add none when the description links no issue.
  5. When something changed, apply the complete description. On forge, write the request {"ref":<ref>,"body":<description>} to $ARTIFACTS_DIR/pr-body-final.json and pass it with --data-file. On gh, write the description to $ARTIFACTS_DIR/pr-body-final.md and apply it with gh pr edit <number> --repo <host>/<owner>/<repo> --body-file "$ARTIFACTS_DIR/pr-body-final.md". When nothing changed, edit nothing.

Never modify files in the checkout, commit, push, change the pull request's draft state, or touch the review comment.

Read the full file on GitHub · 60 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. today Changed · +12 lines 47fe50c85e19
  2. yesterday Changed · +1 lines 3609069db777
  3. 2d ago First seen · 47 lines · 0 tokens per session scan A eb7850fb4d0f

Subscribe to this mod's changes

update-pr-body is a command published in the GitHub repository coleam00/Archon (23,701 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 904 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-10-15.