redescribe

redescribe is a command for Claude Code from wangke19/gemini-ai-helpers. It costs 15 tokens per session (1,126 once invoked), scanned A, a copy of redescribe, Apache-2.0.

A pull-request helper that compares the actual code changes and commit messages with the existing pull-request description, then drafts a corrected version.

In plain words
What is it for?
Use it to rewrite a current or specified pull-request description so it accurately explains the problem, changes, and implementation.
Why use it?
It keeps the description aligned with the work after the pull request changes, commits are squashed, or the original text was incomplete.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it to rewrite a current or specified pull-request description so it accurately explains the problem, changes, and implementation.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/wangke19/gemini-ai-helpers/redescribe
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/wangke19/gemini-ai-helpers

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 redescribe

README.md
[![agentmods](https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/redescribe.svg)](https://agentmods.dev/commands/wangke19/gemini-ai-helpers/redescribe)
Your own site
<a href="https://agentmods.dev/commands/wangke19/gemini-ai-helpers/redescribe"><img src="https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/redescribe.svg" alt="Measured on agentmods" 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 1,126 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 100% copy Near-identical to another mod 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.01126
Opus 5 $0.00008 $0.00563
Sonnet 5 $0.00003 $0.00225
Haiku 4.5 $0.00002 $0.00113

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

Security

Grade A, and why

redescribe 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 4d 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.

Origin

This is a copy

100% identical to redescribe — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

extensions/git/commands/redescribe.md · 128 lines

How it starts

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

Name

git:redescribe

Synopsis

/git:redescribe              # Redescribe the PR for the current branch
/git:redescribe <pr-url>     # Redescribe a specific PR by URL

Description

The /git:redescribe command analyzes a Pull Request's actual code changes (diffs) and commit messages to generate an accurate, up-to-date PR description. It compares the existing description with the reality of the code, proposes a corrected description, and offers to update the PR.

This is particularly useful when:

  • A PR has evolved significantly since it was opened.
  • The initial description was placeholder text.
  • Commits have been squashed or rebased, changing the PR's scope.

The command ensures the description accurately reflects:

  • The problem being solved (from commit messages/Jira context).
  • The changes made (from code diffs).
  • The implementation details.

Implementation

1. Identify Target PR

Determine which PR to operate on:

  • If <pr-url> is provided: Use that PR.
  • If no argument:
    • Context Discovery: Run git remote -v to identify the repository (prefer upstream, then origin).
    • Run gh pr view --repo <owner>/<repo> --json url to find the PR associated with the current branch. This proactively avoids "No default remote" errors.
    • If no PR is found, error out and ask the user to provide a URL or push the branch/open a PR.

2. Gather Context

Collect necessary information using the GitHub CLI (gh) and git:

  1. Fetch PR Details:

    gh pr view <pr-url> --json title,body,baseRefName,headRefName,number
    
    • title: For context (often contains Jira ID).
    • body: The current description (to see what needs changing).
    • headRefName: The source branch.
  2. Fetch Commits:

    gh pr view <pr-url> --json commits
    # OR if local:
    git log <base>..<head>
    
    • Extract commit messages to understand the intent and history.
  3. Fetch Code Diffs:

    gh pr diff <pr-url>
    
    • Analyze the actual code changes.
    • Note: If the diff is very large, prioritize file names, structural changes, and distinct code blocks to avoid context window limits.

Read the full file on GitHub · 128 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. 4d ago First seen · 128 lines · 15 tokens per session scan A 60f7cae2091a

Subscribe to this mod's changes

redescribe is a command published in the GitHub repository wangke19/gemini-ai-helpers (2 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 15 tokens to every session and 1,126 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to redescribe, differing in 0 lines, and is treated as a copy.