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.
@code-review-harness/stdout-sink provides a zero-configuration sink that writes the agent’s review payload as a single JSON line to process.stdout. It requires no authentication and accepts no options, making it the fastest way to test a review pipeline or inspect the raw output before wiring up a platform-specific sink.
createStdoutSink() is the default sink used by the CRH CLI when --sink is not specified.Installation
- npm
- pnpm
- yarn
Import
Signature
Output format
When the agent callssubmit_review, the sink serialises the full review object with JSON.stringify and writes it as a single line followed by a newline character (\n) to process.stdout.
The stdout sink uses Type.Record(Type.String(), Type.Unknown()) as its schema — it accepts any JSON object the agent produces. This means the output shape is determined entirely by what you prompt the agent to include. For a typical CRH review the output looks something like this:
If you need a predictable output shape with enforced fields, implement a custom
ReviewSink with an explicit TypeBox schema. See the ReviewSink interface for details.Usage example
When to use stdout-sink
- Local development — inspect the review shape without posting anything to a code host.
- CI pipelines — capture the JSON artifact for downstream steps (notifications, metrics, archiving).
- Schema exploration — run once to see what the agent produces before writing a custom
ReviewSink.
createLaunchpadSink() when you are ready to post reviews back to Launchpad.