Documentation Index
Fetch the complete documentation index at: https://mintlify.com/goulinkh/code-review-harness/llms.txt
Use this file to discover all available pages before exploring further.
ReviewSink is the generic interface that controls where CRH sends its review output. The sink carries a TypeBox schema that defines the exact shape the agent must produce when it calls the built-in submit_review tool. When the agent calls submit_review, CRH validates the output against the schema at runtime and then calls emit() with the validated payload. Implement this interface to send reviews to any destination — a database, a webhook, a file, or a code hosting platform.
Interface definition
Members
A unique string identifier for this sink instance (e.g.
"stdout", "launchpad"). Used in logging and error messages.A TypeBox schema object describing the review payload shape. CRH passes this schema to the agent’s
submit_review tool so the agent knows exactly what fields it must produce. Validation happens at runtime — if the agent submits a payload that does not match the schema, submit_review returns an error and the agent must retry.Called by the
submit_review tool with the validated review payload and a context object containing:ctx.provider— theReviewProviderinstance used for this sessionctx.workspace— absolute path to the prepared workspace directory
How the schema works
Theschema field drives the entire output contract. When createReviewSession() sets up the submit_review tool, it reads sink.schema and generates the tool’s parameter description from it. The agent sees the schema as a JSON Schema and must produce a conforming object.
This means you can extend the schema with any custom fields and the agent will include them without any additional prompting: