add_review_message

Say something in a review thread, which is how you answer feedback on your own diff.

Agentwritesnot idempotentMCP tool

Use it to report what you changed and why, or to ask what was meant when the note is not clear enough to act on. Your answer belongs to no batch and reaches the reviewer as soon as it is written, unlike a review, which is released whole. The message is attributed to you rather than to the person reviewing. Write it the way you would say it out loud. One or two sentences is the normal size and a hundred words is the ceiling. Name the line, the value or the case you mean, and quote code where the code is the point. No preamble, no summary at the end, no hedging, and no invented names for things the repository does not call that. Say what you changed, or what you did not change and why. Each call adds another message, so do not retry a call that may have succeeded.

Calling it#

curl -X POST http://127.0.0.1:8787/agent.v1.AgentService/AddReviewMessage \
  -H 'Content-Type: application/json' \
  -d '{
  "threadId": "<threadId>",
  "body": "<body>"
}'

Request#

AddReviewMessageRequest#

FieldTypeDescription
threadIdstring

Which conversation to say it in.

required

bodystring

What to say. The ceiling refuses an essay and is not a length to write up to.

required, at most 1000 characters

suggestionlist of string

Replacement lines proposed for the thread's range, empty for an ordinary message.

Response#

AddReviewMessageResponse#

FieldTypeDescription
messageReviewMessage

The message as recorded.

Types#

ReviewMessage#

ReviewMessage is one thing said in a review thread.

FieldTypeDescription
idstring

The handle an edit of this message names it by.

threadIdstring

Which conversation it belongs to.

authorKindReviewAuthorKind

Whether a person or an agent wrote it.

authorAgentIdstring

The agent that wrote it, absent for the person reviewing and cleared if that agent is deleted. author_kind, not this, is what says who wrote it.

bodystring

What the author wrote.

suggestionlist of string

Replacement lines the author proposes for the thread's range, empty for an ordinary comment. An agent applies these rather than reasoning about them.

createdAtstring

When it was written.

updatedAtstring

When it was last edited.

deliveryReviewDeliveryState

How far this comment has got towards the agent reading it.

sentAtstring

When the person reviewing released this comment, empty while it is only written down.

deliveredAtstring

When the agent claimed the doorbell raised for this comment, empty until it has.

reviewIdstring

The review this message went out with, absent for an answer written by the agent under review, which belongs to no batch.

ReviewAuthorKind#

ReviewAuthorKind is who wrote a review message.

ValueDescription
REVIEW_AUTHOR_KIND_HUMAN

The person running komrad.

REVIEW_AUTHOR_KIND_AGENT

The agent whose work is being read, or the reviewer reading it.

ReviewDeliveryState#

ReviewDeliveryState is how far one of the person's comments has got towards the agent reading it. It is no stored field: it is read off the comment's own sent stamp and the newest doorbell raised against it, since the stamp outlives mail the agent deletes or lets expire. Whether the comment has been answered is a different question, read off the messages of the thread.

ValueDescription
REVIEW_DELIVERY_STATE_UNSENT

Written down and not yet let go of.

REVIEW_DELIVERY_STATE_SENT

Released, with a doorbell still waiting to be claimed.

REVIEW_DELIVERY_STATE_DELIVERED

Released, and the agent has claimed the doorbell.