FAQ

Questions, and honest limits

What pr-brief does not do is as useful to know as what it does.

Privacy and trust

Does it send my code anywhere?

The pr-brief binary makes no network calls and keeps no log. The launcher downloads the binary once from this repo's GitHub release and checks it against the release checksums. The skill runs inside Claude Code, so the diff and files that the reader agents read go to your model as part of that session, under your Claude Code settings. The hook only looks at the command text, locally.

Is the gate a security control?

No. It is a quality control. Anyone can edit a description in the web UI, call the REST API, or use the skip line. See the gate.

Why are the binaries committed to the repo?

So an install needs no runtime and no build. CI rebuilds them with a pinned Go version and fails if they differ from the committed bytes. Each release attaches the same files with SHA256SUMS and a build provenance record.

What it understands

Which languages does it read?

pr-brief shape finds changed functions in Go, C#, Java, TypeScript and JavaScript, and Python, and reads Terraform, Bicep and GitHub workflow files. Other code files still count as changed and are ranked, but give no function nodes. It is regex-based, not a compiler: it resolves a call by name, class and folder, and skips a call when two functions could match. The skill starts a reader agent for each flow to check and fix the draft.

A flow is too big. What happens?

The tool collapses it: functions of one class become one node, then the least important nodes fold into a +N more node. The Review guide lists what was folded. Past three flows, the rest are named in the guide with a note that the PR may be too big.

Why can I not raise the node limit?

The limits come from what stays readable at the width of a PR page, and from what renders on GitHub. See convention over configuration.

Hosts

Does it work on GitLab?

The hook handles glab mr create|update and MCP tools named create_merge_request or update_merge_request, and pr-brief gate --host gitlab checks a description. GitLab draws fenced Mermaid in merge request descriptions, so diagram.format auto picks mermaid. There is no GitLab CI file yet: pr-brief init --workflow refuses a GitLab repo. GitLab gets the GitHub length limit until its own is checked. None of this is tested against a live GitLab.

Does it work on Azure DevOps?

The hook and the skill handle az repos pr create|update, and the diagrams use graph LR, which Azure DevOps accepts. Because Mermaid support there depends on the version, diagram.format auto draws plain text (ascii) on Azure DevOps. Microsoft's May 2026 release (Sprint 274) says fenced Mermaid now renders in pull requests, so a current organisation can set diagram.format to mermaid. The init line, the invisible layout links and the per-edge styling are not verified there, and Azure DevOps does not say which Mermaid version it runs. The GitHub Action does not run in Azure Pipelines. pr-brief init --workflow --host azure-devops writes a pipeline that pipes the description into pr-brief gate --stdin --host azure-devops. That pipeline is not tested against a live organisation yet. Azure DevOps accepts 4,000 characters in a description, against 65,536 on GitHub, and the check uses the limit of the host.

GitLab, Bitbucket?

No automation. pr-brief gate --file works anywhere, but the diagrams depend on that host’s Mermaid.

The diagram does not render.

GitHub draws Mermaid in a sandboxed frame from viewscreen.githubusercontent.com. A network that blocks that host shows “Unable to render rich display”. The GitHub mobile app shows the source, not the picture.

Do I need Claude Code?

The skill does. The pr-brief CLI and the GitHub Action do not: you can write a description by hand, draw each flow with pr-brief diagram, and check it with pr-brief gate.

Using it

Does it keep my Jira and Linear tickets?

Yes, and it cannot drop one. Jira and Linear link a PR to a ticket by the key in its description, so a rewrite that loses the key unlinks the PR. improve collects every ticket from the old description (links, bare keys such as ABC-123, and words like Closes ENG-45) and from the branch name, and writes them in a Tickets line above the markers. It refuses to write if one would be lost. For a new PR, pr-brief tickets does the same from the branch name. The gate warns when the branch names a ticket that the description lacks. It warns and does not fail, because a branch name can look like a key when it is not one. What counts as a ticket is the tickets.pattern setting. By default pr-brief guesses at keys such as ABC-123. To name your projects, or to add Azure DevOps work items (AB#[0-9]+) or GitHub issues (#[0-9]+), set a regular expression: pr-brief config set tickets.pattern "(PAY|OPS|ENG)-[0-9]+" --scope repo.

Does it change my PR title?

Never. Not the skill, not improve, not the gate.

Can I make the description shorter to read?

Yes. Type quiet after the command: /pr-brief quiet or /pr-brief improve 12 quiet. The Brief stays visible. The Change map and the Review guide sit under it in a collapsed block, with a summary line that can name who wrote it. It is off by default and not a setting. The gate reads the same sections, so the same rules apply. The idea comes from a post by Simon Willison. Azure DevOps may not collapse the block in a PR description, so look at the PR there.

Why does an older version reject a quiet description?

Before 0.8.1 the gate counted the fold’s opening lines as a second paragraph in the Brief, and it fails a description with two. The fix is in the gate, so upgrade the plugin and the CI check together. Until then, a hook or a CI job on an older version blocks a quiet description.

My hook stopped catching things after an update.

A hook that an older version installed names the binary of one release, so after a plugin update it keeps running the old gate. That gate does not know a newer rule, and it can reject a description that the new one accepts. Run pr-brief hook check: it prints “out of date” and exits 1 when this is the case. Then run pr-brief hook install --scope user (or --scope repo) and restart the session. The new entry finds the newest installed version when it runs, so this happens once. /pr-brief runs the check each time it starts, and shows you the command.

Where did my earlier description go?

A copy is saved on your machine before every rewrite: ~/.local/state/pr-brief/. pr-brief body restore --owner O --repo R --pr N prints the oldest. With improve.previous: fold (the default) the original text also stays in the PR, in a collapsed section, unless pr-brief wrote it. With comment it stays hidden in a comment, and pr-brief body uncomment makes it visible. GitHub also keeps its own edit history.

My custom theme was rejected.

Run pr-brief theme validate FILE. It says which colour is not hex, which key is unknown, or the contrast ratio it measured. Text needs 4.5:1 against the background and the node fill.

How do I turn it off?

Uninstall the plugin, delete the workflow, or put > pr-brief skipped: <reason> in one description.