# CircleDetectorOptions

**Kind:** Interface

**Source:** [`atloria-monorepo/libs/agent-core/src/autonomous/circle-detector.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/agent-core/src/autonomous/circle-detector.ts#L16)

Circle/Loop Detector

Detects when an agent gets stuck in repetitive cycles:
editing the same files without progress, running the same
failing commands, or alternating between approaches.

Standalone class, consumed by AutonomousTurnHook.
Called every turn with O(windowSize) cost.

## Properties

| Property | Type |
|---|---|
| `windowSize` | `number` |
| `minTurnsBeforeDetection` | `number` |
| `signatureRepetitionThreshold` | `number` |
| `fileRepetitionThreshold` | `number` |
| `testStagnationCount` | `number` |
