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

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**Agent**](../classes/Agent) class in the [**agent**](../modules/agent) 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

<ResponseField name="Returns" type="bool">
  True if redo was successful, False if nothing to redo.
</ResponseField>

## Uses

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

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agent/agent.py#L3477">
  `praisonaiagents/agent/agent.py` at line 3477
</Card>
