Skip to content

reviewHeadingBlock

reviewHeadingBlock(command, model?, provider?): string

Defined in: packages/review/src/modules/reviewHeading.ts:58

Build the review’s opening header: Gaunt Sloth · <command> · <model> (<provider>), plus a trailing newline so the review body does not start flush against it.

The line is assembled by the SHARED runHeaderLine, and the model half by the SHARED model (provider) spelling (modelProviderLabel) — the same two the agent’s own run header uses, rather than a second spelling of the same facts.

Both halves of the model are allowed to be missing, and neither prints a placeholder:

  • No provider — a .gsloth.config.js module config hands the loader an already-built BaseChatModel and legitimately has no provider string. The bare model prints; there is no (unknown) and no empty ().
  • No model — the label is dropped entirely and the line ends after the command. A provider name on its own would sit exactly where a model name sits and read as one, and a misidentified model in a review someone later quotes is worse than an absent one. That is the same drop-rather-than-mislead rule the banner applies to a version that does not fit.

"pr" | "review"

string

string

string