Skip to content

feat: choose how much agents write in pull request descriptions - #243

Merged
kalaspuff merged 1 commit into
mainfrom
fctl/207-it-should-be-possible-to-specify-verbosi
Oct 23, 2026
Merged

kalaspuff merged 1 commit into
mainfrom
fctl/207-it-should-be-possible-to-specify-verbosi

Conversation

@fctl-sh

@fctl-sh fctl-sh Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Projects now choose how much agents write in the descriptions of the pull requests they open: balanced (the new default), brief, or full (what agents wrote until now). The choice lives under Settings → Agents → Pull request descriptions, or fctl projects set --pr-descriptions <level>, and fctl-agent turns it into a "Pull request descriptions" section of Claude's system prompt. Balanced is the outline from the request, reworded as instructions for the agent. At every level, agents also keep each paragraph on one line, give links readable text, end with the session's link, and rewrite the description when later commits change what it says.

Older clients that leave the setting out keep the stored level, and agents from before this describe pull requests as before. Verified with unit tests for each level's prompt, the setting's wire format and updates, and the CLI flag, and in cargo xtask dev, where sessions at each level got the matching section in fake-claude's system prompt and the settings page saved a choice. ADR 0049 records the decision, and the wording is in crates/fctl-agent/src/prompt.rs.

Worth confirming

  • Decision: Balanced becomes the default for existing projects too, so their agents switch to shorter descriptions once their hosts upgrade. Projects that want the old ones choose Full.
  • Decision: Brief means a few sentences without headings, plus a sentence for anything a reviewer must know before merging. Full asks for the whole story: how it works, the choices and alternatives, detailed verification, and what's left.
  • Decision: Agents get the guidance whenever they may push, including in projects that don't ask them to open a pull request when done, since people still ask for pull requests.
  • Decision: When later commits change a pull request, the agent rewrites the description to describe the pull request as it now stands, rather than appending notes on what changed. This applies only to pull requests it opened.
  • Decision: A repository's own pull request template comes first, filled in at the chosen level of detail.
  • Decision: Balanced also leaves out a "Test plan" section, which is Claude Code's default format, since how the change was verified gets a sentence in the summary.
  • Decision: The setting sits in Settings → Agents, under "Open a pull request when done", rather than in the Pull requests section, which is about what brings agents back.
  • Assumption: GitHub shows a pull request URL that stands alone in a list item with its title and state, as the request says. The guidance relies on that for related pull requests.

Screenshots

At 2ee2890: a project's Settings → Agents, 1440 px wide, before and after, in both themes.

Before After
Before: Settings → Agents, light After: Settings → Agents with Pull request descriptions, light
Before: Settings → Agents, dark After: Settings → Agents with Pull request descriptions, dark

The list open, at 1440 px in the light theme and at 390 px in the dark theme:

The list of levels open, light

The list of levels open on a phone, dark

fctl session

…iptions

A new project setting, pull_request_descriptions (brief, balanced or full,
balanced by default), decides what fctl-agent tells Claude about the
descriptions of the pull requests it opens, in a section of the system
prompt. Every level keeps paragraphs on one line, links the session and
asks the agent to keep the description up to date as later commits change
the pull request. Settings -> Agents and fctl projects set
--pr-descriptions choose it.
@fctl-sh
fctl-sh Bot requested a review from kalaspuff as a code owner October 23, 2026 22:01
@kalaspuff
kalaspuff merged commit 520af56 into main Oct 23, 2026
10 checks passed
@kalaspuff
kalaspuff deleted the fctl/207-it-should-be-possible-to-specify-verbosi branch October 23, 2026 22:11
fctl-sh Bot added a commit that referenced this pull request Oct 23, 2026
main took ADR 0049 (#243), so this branch's ADR is 0050 now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant