StuckDetector.ts
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.
Number of identical outputs before declaring stuck.
3 Copy
3
Number of identical errors before declaring stuck.
Time window in ms for detecting repetition.
300000 (5 min) Copy
300000 (5 min)
Maximum entries to track per agent.
50 Copy
50
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.