> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Is Doom Loop • AI Agent SDK

> is_doom_loop: Check if we're in a doom loop.

# is\_doom\_loop

Method

> This is a method of the [**DoomLoopTracker**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/DoomLoopTracker.md) class in the [**autonomy**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/autonomy.md) module.

Check if we're in a doom loop.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def is_doom_loop() -> bool
```

### Returns

**Returns** `bool`

True if doom loop detected

## Uses

* `is_doom_loop`

## Used By

* [`DoomLoopTracker.is_doom_loop`](../functions/DoomLoopTracker-is_doom_loop)
* [`DoomLoopTracker.get_recovery_action`](../functions/DoomLoopTracker-get_recovery_action)
* [`DoomLoopDetector.record_action`](../functions/DoomLoopDetector-record_action)
* [`EscalationPipeline.execute_at_stage`](../functions/EscalationPipeline-execute_at_stage)

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agent/autonomy.py#L473)
>
> `praisonaiagents/agent/autonomy.py` at line 473


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.