Skip to content
Français

WatchdogOptions

import type { WatchdogOptions } from "@elie-laloum/outpost/core";
  • repetitionRequired
    RepetitionPolicy
    Sliding activity window and occurrence threshold for identical tool name/input or identical file-change payloads, compared before redaction.
  • onStuckRequired
    "stop" | "warn" | StuckInstruction
    Required policy: stop aborts with code stuck; warn emits a warning and continues; an instruction object steers the active loop or resumes its CLI conversation. After the intervention limit, further repetition stops. Detection resets its window after each alert.
export interface WatchdogOptions {
  readonly repetition: RepetitionPolicy;
  readonly onStuck: "stop" | "warn" | StuckInstruction;
}