NEW Workflows: agents follow the steps, you sign off. Read more →
Ulpi

Mulligan

PLUGIN

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

by onyebuchidaniel60 · v0.1.0

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

All listings →