pr-describe

Generate a PR description for the current branch.

Command for Codex

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/morpho-org/sdks/pr-describe
Clone the repo
git clone --depth 1 https://github.com/morpho-org/sdks

Made for: Codex.

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 1,174 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.01174
Opus 5 $0.00000 $0.00587
Sonnet 5 $0.00000 $0.00235
Haiku 4.5 $0.00000 $0.00117

Measured yesterday against content hash 2169ba6e4f1b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pr-describe 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 yesterday.

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.

.agents/commands/pr-describe.md · 155 lines

How it starts

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

pr-describe

Generate a PR description for the current branch.

Usage

/pr-describe

Instructions

You are helping the user generate a PR description. Derive all information from the current changes - do not ask the user any questions.

Step 1: Check Current Branch, Determine Base, and Analyze Changes

First, check what branch the user is on and determine the base branch:

git rev-parse --abbrev-ref HEAD
gh pr view --json number,title,url,baseRefName 2>/dev/null || echo "No PR exists"

Determine the base branch to diff against:

  • If a PR already exists, use baseRefName from the PR view output.
  • If no PR exists, fall back to the repo's default branch: gh repo view --json defaultBranchRef -q .defaultBranchRef.name

Then diff against the resolved base branch:

git diff <base-branch> --stat
git diff <base-branch>

Analyze the changes to understand:

  • What type of change this is (feat, fix, or chore)
  • What the change does (for the PR title and description)

Step 2: Generate PR Content

Derive all PR content from the changes:

  • Title: Use conventional commits format: <type>: <short description> — no emoji in the title.
    • Examples: feat: add dark mode toggle, fix: resolve login redirect issue, chore: update dependencies

PR Body — High-level, concise, precise. No file-level details. Every word must earn its place.

## Motivation

[WHY in one or two sentences — the problem or need, not the implementation]

## Solution

[WHAT changed at a conceptual level — no file names, no line-by-line commentary]

## What's New (feat PRs only)

[Include ONLY for `feat` PRs that introduce new features.
Do NOT use this section for refactors, fixes, or internal changes.

Use colored circle badges (🟣🔴🟤🟠🟡🔵🟢) ONLY when presenting new features.
Pick a different color per row. Keep descriptions ultra-short.]

|     | Feature  | Description                                            |
| --- | -------- | ------------------------------------------------------ |
| 🟣  | deposit  | Route deposits through bundler3 via general adapter    |
| 🔵  | withdraw | Direct vault withdrawal with share-to-asset conversion |

[Additionally, present each new function with a simple summary table
to give reviewers a quick overview of signatures and purpose:]

| Function            | Parameters                         | Returns       | Purpose                                    |
| ------------------- | ---------------------------------- | ------------- | ------------------------------------------ |
| `vaultV1Deposit()`  | `client, { vault, assets, owner }` | `Transaction` | Build a deposit tx routed through bundler3 |
| `vaultV1Withdraw()` | `client, { vault, assets, owner }` | `Transaction` | Build a direct vault withdrawal tx         |

## Architecture (optional)

[Include ONLY if the change introduces or modifies architectural relationships.

- If the PR adds a **new transaction feature** (deposit, withdraw, redeem, etc.),
  create a **transactional flow** mermaid diagram showing the call chain from
  user entry point to on-chain execution:

```mermaid
graph LR
  User -->|"deposit()"| Client
  Client --> VaultEntity
  VaultEntity --> DepositAction
  DepositAction -->|"bundle"| GeneralAdapter
  GeneralAdapter --> Bundler3
  Bundler3 -->|"tx"| Vault
```

- If the PR adds **non-transactional features or modules**, create a
  **component architecture** mermaid diagram showing how the new pieces
  relate to existing ones:

```mermaid
graph TD
  NewModule --> ExistingLayerA
  NewModule --> ExistingLayerB
  ExistingLayerA --> SharedDependency
```

Pick whichever style best represents the change. Do NOT include both unless
the PR genuinely covers both cases.]

Read the full file on GitHub · 155 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. yesterday First seen · 155 lines · 0 tokens per session scan A 2169ba6e4f1b

Subscribe to this mod's changes

pr-describe is a command published in the GitHub repository morpho-org/sdks (40 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,174 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-09-01.