# Mulligan

Counterfactual replay for Ulpi: record a run, rewind to any step, edit one tool decision, replay forward in a fresh child session.

- Type: Plugin
- Version: 0.1.0
- Updated: 22 Nov 2026
- Publisher: onyebuchidaniel60
- Category: Tools

[Contact us](https://www.ulpi.io/en/support#contact)

## What it does

Counterfactual replay for Ulpi: record a run, rewind to any step, edit one tool decision, replay forward in a fresh child session, and diff the branch against the original. Replay-to-point reproduces the recorded steps with zero provider calls and zero tool side effects; the branch runs live with normal approvals.

Uses llm_execution, tool_execution and tool_request middleware, pre/post_tool_call hooks and ctx.subagent_lifecycle.launch; stdlib only, no dependencies. Stores append-only JSONL traces (prompts, tool arguments and tool results) under $ULPI_HOME/replay-traces/.

Disclosure — while enabled it records every session automatically (full model responses, tool arguments and tool results, and the last user message) as append-only JSONL under $ULPI_HOME/replay-traces/, which are sensitive, not rotated and persist until you delete them; mg_play launches a child session whose live tail spends provider tokens and runs tools with normal approvals; no network calls, no credential access, no shell execution, no self-update, and no approvals are bypassed or auto-answered.

## Tools it adds

The tools an agent gets once this plugin is installed.

- `mg_list`
- `mg_inspect`
- `mg_rewind`
- `mg_edit`
- `mg_play`
- `mg_diff`

## Review notes

What an owner reads and accepts before the install is approved.

- Ulpi has not reviewed this version: it is listed in the public plugin catalog, and the install still fetches it at its pinned commit, checks its shape and scans it before you approve

## More in Tools

- [Multiverse](https://www.ulpi.io/en/marketplace/plugins/multiverse): Best-of-N for coding agents, with real checks.
- [munin](https://www.ulpi.io/en/marketplace/plugins/munin): Munin meeting notes for Ulpi: ask what was decided in your last meeting, get a follow-up with every action item checked against the transcript and cited by meeting id.
- [muse-harness](https://www.ulpi.io/en/marketplace/plugins/muse-harness): Drive local Muse Code over MSP so Wonder Full can call MCP tools.

[All listings →](https://www.ulpi.io/en/marketplace) · [Publisher's guide →](https://www.ulpi.io/en/docs) · [Report a problem →](https://www.ulpi.io/en/security#report)
