Obliviate: Recover a Spoiled AI Agent Session Without Starting Over

Published September 18, 2026 • 5 min read

A practical guide to removing or redoing a request sent to the wrong agent, while preserving the useful context already built in your Claude Code or OpenCode session.

You are coordinating two agent tasks. One session is focused on Task A, while another agent is handling Task B. Then you paste Task B's request into the Task A session by accident.

You correct yourself in the next message, but the incorrect request is still part of the history. The agent can keep treating it as relevant context, bringing the wrong domain, constraints, or implementation direction back into a task that was otherwise on track.

The problem is historical context. A correction tells the agent what you mean now. It does not make the accidental request disappear from the session it can still read.

What Obliviate Changes

Obliviate treats session history as an editable artifact. Instead of abandoning a useful conversation because one request was sent to the wrong agent, you can remove that turn or redo it with the correct instruction.

The edit is deliberately designed to be safe:

Install Obliviate

Claude Code

Add the marketplace, then install the plugin:

/plugin marketplace add J3ys/Obliviate
/plugin install obliviate@Obliviate

Verify that obliviate appears in /plugin. Restart Claude Code if it asks you to do so.

OpenCode

Install the OpenCode skill and editor agent into the current project:

curl -fsSL https://raw.githubusercontent.com/J3ys/Obliviate/main/install-opencode.sh | bash

Add -- --global to make it available to all projects:

curl -fsSL https://raw.githubusercontent.com/J3ys/Obliviate/main/install-opencode.sh | bash -s -- --global

For a project install, confirm that .opencode/skills/obliviate/SKILL.md and .opencode/agents/obliviate-editor.md exist. For a global install, confirm the same paths under ~/.config/opencode/. Restart OpenCode after installation because skills and agents are not hot-reloaded.

Recover the Session

  1. Identify the accidental request. Locate the turn containing the request intended for the Task B agent.
  2. Ask Obliviate to remove or redo it. Use a clear request such as "remove the request I sent to the wrong agent" or "redo my earlier request with the Task A instructions."
  3. Review the forked session. Obliviate shows the affected turns before making the history change.
  4. Confirm the affected set. Verify that the selected turns are the accidental cross-task instructions, then approve the edit.
  5. Continue with corrected context. Work in the forked session, where the mistaken Task B request no longer distracts the Task A conversation.

Your original session remains available. Obliviate works on a fork, so the original conversation stays untouched as a reference while you continue with corrected context.

When This Is Useful

Keep the Useful Context

Restarting a session is expensive when most of its context is still valuable. If one cross-task request spoiled an otherwise productive conversation, Obliviate lets you correct the history instead of throwing the whole session away.

Keep the Context That Still Matters

Install Obliviate, remove the wrong turn on a safe fork, and continue with the session you already built.

View Obliviate on GitHub

Open source • Claude Code and OpenCode • Safe session forks