Golem undo agent state

From golemcloud/golem · View interactive version

Golem undo agent state is an AI agent skill from the GitHub repository golemcloud/golem. Reverting agent state by undoing operations. Use when reverting invocations, rolling back agent state, or recovering from errors by undoing recorded operations.

How to use this skill

Skill file

Undoing Agent State

Both golem and golem-cli can be used — all commands below work with either binary.

The <AGENT_ID> format depends on the agent's language — refer to the language-specific invocation skills for the exact syntax.

`agent revert` — Undo Operations

Reverts an agent by undoing its last recorded operations. Useful for recovering from errors or unwanted state changes.

golem agent revert <AGENT_ID> [OPTIONS]

Flags

| Flag | Description |

|------|-------------|

| --last-oplog-index <INDEX> | Revert to a specific oplog index. Cannot be combined with --number-of-invocations. |

| --number-of-invocations <N> | Revert the last N invocations. Cannot be combined with --last-oplog-index. |

Examples

Revert the last invocation:

golem agent revert <AGENT_ID> --number-of-invocations 1 --yes

Revert to a specific oplog index (use agent oplog to find the index):

golem agent revert <AGENT_ID> --last-oplog-index 42 --yes

Reverting is destructive and asks for interactive confirmation; pass --yes (-Y) when running non-interactively.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.