> ## 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.

# redo • AI Agent SDK

> redo: Redo a previously undone set of file changes.

# redo

Method

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

Redo a previously undone set of file changes.

Re-applies file changes that were reverted by :meth:`undo`.

## Signature

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

### Returns

**Returns** `bool`

True if redo was successful, False if nothing to redo.

## Uses

* `get_current_hash`
* `restore`
* `logger.debug`

## Source

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


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