CommunityOpinion

Hide your slop PR descriptions behind

In one sentence

Simon Willison shares a workflow for hiding lengthy AI-generated pull request descriptions inside GitHub's `<details><summary>` tags while keeping a human-curated introduction.

Key points

  • PR descriptions written by AI coding agents are accurate and comprehensive, but their length often puts readers off.
  • The author keeps a human-curated introduction and screenshots at the top, while collapsing the full AI-written text inside GitHub's `<details><summary>` tags.
  • He typically puts the model name and effort level in the `<summary>` tag, such as "Claude Opus 5.5 Medium".
  • He also shares a mnemonic for the tag order—"details-summary" rolls off the tongue better—and wishes GitHub would add a Markdown editor button for it.

In depth

An AI-written overview of the original article, not the article itself.

Developer Simon Willison notes that while Pull Request (PR) descriptions generated by coding agents like Claude Code or Codex are accurate and thorough, their length often makes them feel like AI slop. He proposes using HTML collapsible tags supported by GitHub Markdown to keep full details without overwhelming readers.

Hiding Long AI Descriptions

The article explains that agent-written PR descriptions cover the problem, detailed solution, and verification steps, creating too much information to absorb quickly. Willison argues that readers want human editorial judgment in the form of a brief introduction to decide if a PR merits more attention.

To achieve this, he places a short, human-curated opening paragraph—sometimes with a screenshot—at the top of the PR, and hides the full AI-generated text inside details and summary tags. He typically uses the model name and effort level, such as Claude Opus 5.5 Medium, as the summary label.

Examples and a Mnemonic

Willison has applied this pattern to several recent PRs in projects like datasette and llm, covering UI redesigns, pagination bars, and command-line updates. He notes that this keeps all technical details intact while making PRs feel much cleaner.

To remember the tag order, the article suggests saying details-summary out loud, as two syllables followed by three rolls off the tongue better than the reverse. Willison also wishes GitHub would add a button for this feature to its Markdown editor.

Read originalOpens simonwillison.net

This summary was generated by AI from the original article and may contain errors; the original is authoritative. Copyright belongs to the original author.

Recent stories from this source