Skip to content
Français

createReporter

import { createReporter } from "@elie-laloum/outpost/core";

Create an observe callback that prints one line per event: phases, tool calls, warnings, failures and each pass summary with its token counts. It writes to process.stdout unless write is given and never changes execution. The returned callable also implements ObservationSink and can be passed directly to createObservation({ sinks }); each dispatch/pass has independent text-stream state.

Complete example and detailed rules.

  • optionsOptional
    ReporterOptions | undefined
    Output label, verbosity, silence mode and optional custom writer.
  • options.labelOptional
    string | undefined
    Prefix printed in brackets on every line, default outpost; the pass number follows it.
  • options.verboseOptional
    boolean | undefined
    Also print tool inputs and result previews, prompts, raw protocol lines, conversation IDs, harness steps and compactions, the workspace directory and successful operations.
  • options.quietOptional
    boolean | undefined
    Suppress all reporter output, including warnings and failures.
  • options.writeOptional
    ((text: string) => void) | undefined
    Receives each formatted chunk of output instead of process.stdout.

ObservationReporter

export declare function createReporter(
  options?: ReporterOptions,
): ObservationReporter;