conventionalcomments.iogithub ↗LanguageEN/FRBring it to your team

docs / ai-assisted review

AI-assisted review

Agents write review comments, and the same convention applies to them as to any other reviewer. Two things are specific to agents. Several of them can work on the same pull request, often under the same account, so a comment can say which review session wrote it. And an agent has to be told how a review is run: the toolkit ships two skills for that, one for the reviewer and one for the author.

The session marker

The platform tells you who wrote a comment. It does not tell you which review session produced it — and when three agents review the same pull request in parallel under one technical account, or when the same agent comes back for a second review, that is the question a reader has. A comment can therefore carry a session marker: one line, on its own, usually the last.

issue (blocking): this state can produce a wrong result

When `value` is null, this branch returns a success, against the contract.

[session:melancholy-coordinated-value-object]

In a published comment, the extension hides that line and puts a single discreet mention at the very bottom of the comment, in muted text:

🤖 session: melancholy-coordinated-value-object

The marker is metadata, not review content. It is set aside before the comment is validated, so it is never the label, the subject or the discussion, and it changes no verdict: neither the label, nor the decorations, nor whether a thread is blocking. What the platform stores is never modified either — the mention is drawn in your browser, and editing the comment shows the line as it was written.

What is writtenWhat happens
[session:tedious-debated-branch]Recognized on any line where it stands alone: the last one, the middle of the body, even above the label. The last line is the recommended place; a signature that a tool appends after it does no harm.
[session:Tedious-Debated-Branch]Recognized. The value is free text and no format is imposed; lowercase words separated by hyphens are recommended. The mention shows it in lowercase.
see [session:a] aboveNot a marker: the line carries something else. A sentence that talks about a marker does not carry one.
[Session:a] · [session :a]Not a marker: session is written in lowercase, right against the bracket and the colon.
inside a code block or a quoteNot a marker.

A marker that is not recognized stays ordinary text and raises no diagnostic: the convention does not require a marker, so it does not penalize a failed attempt. And a marker is a statement, not a proof — it attests neither identity nor provenance, and the extension offers no filter or search by session.

A description, shown on hover

A readable identifier can be followed by a sentence that describes it, after an em dash with a space on each side. Writing the sentence in italics sets it apart for readers who do not have the extension.

[session:disheartening-reviewed-implementation — *We reviewed the implementation, and frankly, it was disheartening.*]

The mention still shows the identifier alone; the description appears when you hover over it. Without a description, hovering shows nothing.

One marker per comment

A comment that carries several markers — identical or not — designates no session at all. The mention then reads 🤖 session: #ERROR, and the comment raises W-SESSION-MULTIPLE.

a metadata mistake never holds a comment back

W-SESSION-MULTIPLE is a warning, and it stays one. It does not block sending, not even in enforce: a repository's severities can turn it off, never raise it to an error.

Changing the icon

The robot is a default, chosen because the marker serves first to follow agents' review sessions. A repository or an organization can replace it with sessionIcon, which takes any non-empty string. Like colours and label icons, it changes no verdict.

{
  "version": 1,
  "sessionIcon": "🧭"
}

The other settings are described under configuration.

Two skills for review agents

A skill is a set of instructions an agent follows. The toolkit publishes two, each as a directory under skills/ ↗ in its repository. Claude Code loads a skill's SKILL.md as it is; any other agent can be given the same file as instructions. Both are written for pull requests on GitHub.

for the reviewer

review-pull-request

Reviews the pull request in depth and publishes its findings on it as Conventional Comments, inline where possible. Each finding is rated from P0 to P3, in the discussion and never in the header line. On later passes it checks every fix in the code itself, recaps the pass under summary:, and closes its review with reviewed: only once each of its points is dealt with.

for the author

respond-to-review

Answers every finding and every question, in its own thread, with the label that says what was done: done: once the fix is pushed, naming the commit; ack:; disagree:, with a verifiable reason; thanks:. It answers questions with note: and asks for clarification with question:. It fixes what needs fixing and pushes.

issue (blocking): an empty result is reported as a success

[P1] When the query returns nothing, this branch returns a success, against the contract.

[session:melancholy-coordinated-value-object — *The value object was well coordinated, yet strangely melancholy.*]

done: fixed in a1b2c3d, an empty result now returns an error

The code now returns the error the contract requires, with a regression test.

[session:melancholy-coordinated-value-object — *The value object was well coordinated, yet strangely melancholy.*]

A finding from the reviewer, then the author's reply in the same thread. The reviewer ends each of its comments with its session marker; the author copies the marker of the comment it answers, exactly as written. The priority is published as a small badge whose fallback text is [P1].

What the two skills have in common:

  • They read the repository's .conventional-comments.json first and use only the labels it leaves enabled. The organization's configuration and the enterprise floor reach the extension through the browser's policy, so an agent usually cannot see them: it says so in its report instead of guessing.
  • They write in the language the repository requires. Where it sets none, the reviewer follows the language of the pull request, and the author the language of the comment it answers. Labels and decorations are never translated.
  • They leave to people what belongs to people. Neither approves or merges. The reviewer does not change the code and never uses the reply labels; the author never posts reviewed, which closes a reviewer's review, nor decision: giving up on what a reviewer asked for is a call for the pull request's author and maintainers, and the agent tells them one may be needed.
  • They do not take a reply for a fix. For the reviewer, a done: or a resolved thread proves nothing until the code has been checked.

Install or hand over the whole directory, not the SKILL.md alone: the reviewer's skill relies on the files beside it. The labels these skills use — summary, reviewed and the reply labels — are described under labels & decorations.

How a session gets its identifier

A review session is one review of one state of the pull request, run by one conversation: it starts with the first comment published and ends with the reviewed: that closes it. The reviewer skill gives each session an identifier under four rules.

  • Drawn, never chosen. The identifier comes from a random source, once, before anything is published, and is kept for the whole session. Two agents that make up a name tend to pick the same words.
  • Never borrowed. Not from the pull request, not from another session, not from an earlier conversation. Every session of the same account posts as the same author, so nothing on the pull request proves a marker was yours.
  • Checked before the first comment. If the pull request already carries that identifier, the draw collided with another session: the agent draws again.
  • Renewed when the pull request changes. After a reviewed:, new commits, a new base branch or an edited description make a new state, hence a new review under a new identifier. A reader sees each review end where its marker stops.

The identifier is a readable name drawn by Slugger ↗ from code-review vocabulary, or a GUID. Where Slugger already runs, the skill uses it without asking. Otherwise it asks the person it works for — Slugger, or a GUID — and records the answer in a session-id.md file beside the skill, so that the question is not asked again. A Slugger name also gets its description: one sentence that renders the words of the name, in the language of the review's comments. A GUID gets none — it has no words to render.