Comments XML

Schema for agent handoff comment documents.

Exported via diffing comments, await-review, MCP list/await tools, and UI clipboard.

Elements

ElementRole
<code-review-comments>Root
<instructions>Self-documenting agent instructions
<general-comment>Optional round-level markdown (CDATA)
<file path="…">Groups threads per path
<comment>Thread — attrs below
<code>Optional line context (+/- prefixes)
<body>Markdown (CDATA)
<replies> / <reply>Thread replies

comment attributes

AttrValues
idUUID
line"15" · "10-15" (inclusive) · "file"
sideadditions | deletions
statusopen | resolved
severityoptional blocking | nit | question | praise
created-atISO-8601

reply attributes

AttrValues
idUUID
roleuser | agent
modelset when role is agent
created-atISO-8601

Example

<code-review-comments>
  <instructions></instructions>
  <general-comment><![CDATA[Looks good overall.]]></general-comment>
  <file path="src/utils/parser.ts">
    <comment id="c1" line="42-45" side="additions" status="open" severity="blocking" created-at="2026-05-24T22:00:00.000Z">
      <code><![CDATA[
+ const parsedToken = tokenize(input);
]]></code>
      <body><![CDATA[Guard undefined inputs.]]></body>
      <replies>
        <reply id="r1" created-at="2026-05-24T22:05:00.000Z" role="agent" model="claude">
          <![CDATA[Added a guard.]]>
        </reply>
      </replies>
    </comment>
  </file>
</code-review-comments>

Severity policy for agents

SeverityAction
blockingMust address before resolve
nitOptional
questionAnswer; usually leave open
praiseNo code change
omittedTreat as normal open request