Skip to content

PR Templates and AI PR Bodies

PR templates

stax discovers templates from your repository.

Single template

If .github/PULL_REQUEST_TEMPLATE.md exists, stax uses it automatically.

Multiple templates

Use .github/PULL_REQUEST_TEMPLATE/ with one file per template.

.github/
  PULL_REQUEST_TEMPLATE/
    feature.md
    bugfix.md
    docs.md

st submit shows a fuzzy template picker.

Template flags

  • --template <name> choose template directly
  • --no-template skip template
  • --edit always open editor

AI PR body generation

Generate and update PR body based on diff, commits, and template:

st generate --pr-body

Prerequisites

  • Current branch must be tracked by stax
  • Current branch must already have a PR (for example created via st submit / st ss)

If no PR exists yet, submit first:

st ss
st generate --pr-body

Options

  • --agent <name> override configured agent for one run
  • --model <name> override model for one run
  • --edit review/edit generated body before update
  • Supported agents: claude, codex, gemini, opencode

You can also generate during submit:

st submit --ai-body
st generate --pr-body --agent codex
st generate --pr-body --model claude-haiku-4-5-20251001
st generate --pr-body --agent gemini --model gemini-2.5-flash
st generate --pr-body --agent opencode
st generate --pr-body --edit