Agents
Should AI-Generated Pull Request Descriptions Be Collapsed?
Simon Willison puts a short opener above a collapsed agent-written PR description. Here is what the pattern does, what it risks, and how a team could test it.
A pull request from Claude Code or Codex can be accurate and comprehensive, yet still feel like too much to read at a glance. Simon Willison’s approach is to put a short explanation at the top and place the agent’s fuller account inside an expandable <details> block. The information remains available without being the first thing a reviewer sees. 1
That’s a layout choice, not evidence that reviews get faster or better. The practical question for a team is what a reviewer needs to see immediately and what can wait until they choose to look.
What problem collapsing AI-generated pull request descriptions solves
Willison describes the pull request as his unit of work: he uses PRs to bundle commits, document decisions, iterate until a feature is complete, and then merge it. He says most of the changes he makes to his projects come as PRs opened for him by Claude Code or Codex. 1
He says agent-written descriptions can accurately cover the problem, the detailed solution, and verification steps, but that there is a lot to absorb. 1 Useful information can still be hard to approach when it arrives as a long block of text.
Collapsing the text changes its prominence, not its existence. In Willison’s pattern, the short introduction remains visible while the longer description is available to expand. 1 The source reports no test of whether this changes review speed, quality, or comprehension, so treat the format as a hypothesis rather than a demonstrated improvement. 1
What a collapsed pull request description looks like
Willison’s pattern puts a short introduction above the agent’s longer description, wrapped in HTML <details> and <summary> tags. He says GitHub supports these tags in PR descriptions and issue comments, displaying the summary with an expansion control. 1
[Short, human-approved explanation of the change]
<details>
<summary>[Model name and, optionally, effort level]</summary>
[Longer agent-written description, such as implementation notes
and verification steps.]
</details>
The introduction should give a high-level explanation of the change and indicate whether it deserves more attention. Willison sometimes includes a screenshot, and says he uses the model name—and often the effort level—in the summary. 1 He aims for a human-approved introduction, but says he sometimes keeps an agent-written opener when it already gives him what he needs. 1
What goes above the fold in a pull request review
A practical opener can tell a reviewer what changed, why it changed, and whether it needs extra attention. That’s a reading of Willison’s stated goal of providing a high-level explanation and helping the reader judge whether a PR deserves more attention; the source does not test or rank this format against alternatives. 1
As a rule of thumb, keep information needed to orient or triage the change visible. Place details mainly useful for a deeper pass—such as implementation and verification notes—behind the fold when they are still available there. This is a suggested way to apply Willison’s pattern, not a rule established by the source. 1
Short does not mean simple: an opener can be brief about a risky change. Brevity alone should not be treated as a verdict on how carefully the change needs reviewing.
What breaks: risks to weigh before adopting it
One possible failure mode is that a reviewer never expands the section and misses context about implementation or verification. The source does not report this happening; it is a risk to consider before making collapsed descriptions the default. 1
A subtler risk is that the visible opener frames how a reviewer understands the change. If it is vague or overconfident, it may orient the reader poorly; if it is written by an agent, a team should decide who checks it. Willison says he sometimes keeps an agent’s opener when it already says what he needs, while also describing the introduction as representing his own judgment about what is worth the reader’s time. 1
Readability and trust are separate concerns. A shorter first view does not establish that an explanation is correct or that the change is safe. The source does not compare outcomes on those questions. 1 The expandable section should provide depth, not be the only place a reader can discover what the PR does.
How to try collapsed descriptions in your AI coding agent workflow
Treat this as a lightweight convention to evaluate, not a mandate:
- Ask for a short, visible opener that states the change and the attention it needs.
- Put agent-generated detail behind
<details>when it remains useful after initial triage; do not use the collapsed section to hide information a reviewer needs up front. - Decide who is accountable for the opener. An agent can draft it, but someone should check that it orients the reader. Willison says he keeps an agent-written opener when it already gives him what he needs; a team could use that as a reason to set a clear standard rather than require every draft to be rewritten. 1 Teams that already think about governance for AI workloads may find this kind of ownership question familiar.
- Tell reviewers to expand the section before assessing rationale or verification, and not to interpret a collapsed description as a sign of low risk.
What to measure
If a team wants evidence from its own workflow, it could compare collapsed and always-visible descriptions over a defined trial. Possible measures include review turnaround time, comments pointing to missing context, how often reviewers expand the section, and whether reviewer comprehension holds up. These are proposed measures, not results reported by the source. 1
Keep the comparison consistent by recording the same review information in both cases, and capture a baseline before changing the format; speed claims about agent workflows mean little without one. Treat the result as evidence about that team’s workflow, not a general rule.
Where it fits, where it doesn’t
This is a presentation choice within a pull-request workflow, not a substitute for code review, testing, or reviewer judgment. Willison describes PRs as the place he bundles commits, documents decisions, works toward a complete feature, and merges it. A concise opener may help orient a reader, but the source does not establish more than that as an outcome. 1
The source’s rendering claim is specific to GitHub: it says <details> and <summary> work in GitHub Markdown for issue comments and PR descriptions. It does not establish support in other review tools. 1
Collapsing agent-written detail is a bet on information hierarchy, not a settled practice. A team could try it in a limited setting, watch for expansion and missing-context patterns, and decide based on what it observes. For a similar habit of separating claims from evidence, see our look at a Codex customer story.
Questions
- What is the collapsible pull-request description pattern?
- It places a short explanation at the top of a pull request and puts the longer agent-written description inside an expandable HTML <details><summary> section. GitHub supports these elements in pull request descriptions and issue comments. [1]
- Why collapse an AI-generated pull request description?
- The source says agent-written descriptions can be accurate and comprehensive but long enough to discourage readers. Collapsing the longer text keeps it available while making the initial view shorter. [1]
- What should appear before the expandable section?
- The visible opening should give a high-level explanation of the change and indicate whether it merits more attention. The source also notes that a screenshot can be useful in that opening. [1]
- Does collapsing the description improve code-review speed or quality?
- The supplied source provides no measurements or comparison showing an effect on review speed, quality, or comprehension. Teams should treat those as questions to measure, not established benefits. [1]
- Can an agent write the visible opening?
- It can, but the source frames the opening as a judgment about what readers should see first. Willison sometimes uses an agent-provided opening when it already contains what he needs. [1]
Sources
- Hide your slop PR descriptions behind <details><summary> · Simon Willison’s Weblog · Nov 9, 2026
How this article was made: an AI writer persona researched and wrote it from the sources listed above; separate AI passes edited it, checked its claims against those sources and audited it; it was published after passing automated editorial checks, without an individual editor's approval. How the Yelno blog works · Follow Yelno on LinkedIn
