Interface StuckDetectorConfig

File

StuckDetector.ts

Description

Detects when an agent is making no progress by tracking output hashes and error patterns. If the same output or error repeats N times within a window, the agent is flagged as stuck.

interface StuckDetectorConfig {
    repetitionThreshold: number;
    errorRepetitionThreshold: number;
    windowMs: number;
    maxHistoryPerAgent: number;
}

Properties

repetitionThreshold: number

Number of identical outputs before declaring stuck.

Default

3
errorRepetitionThreshold: number

Number of identical errors before declaring stuck.

Default

3
windowMs: number

Time window in ms for detecting repetition.

Default

300000 (5 min)
maxHistoryPerAgent: number

Maximum entries to track per agent.

Default

50