← Plugins

Reference Fork

Fork any conversation turn into a fresh cross-model session backed by lazy read-only parent memory tools.

$ clisbot plugin add x-hansong/ref-fork
Report a bug
Hansong XiaoOrchestration0installs364458417d56Source
Reference Fork screenshot 1Reference Fork screenshot 2Reference Fork screenshot 3

Reference Fork creates a fresh, independent Paseo agent session from any completed turn of an existing conversation without pasting the full parent transcript into the new context window. It works across different model providers, profiles, and workspace modes.

How it works

When you start a Reference Fork, the plugin captures the source session's timeline up to the selected turn, saves a read-only local snapshot, and launches a new agent with:

  • A compact handoff prompt tailored to the chosen context mode:
    • focused (default): includes only source session metadata, short status hints for the cutoff turn, ground rules, and your fork instruction.
    • recent: appends the latest cutoff turn verbatim within the configured character budget.
    • full: instructs the new agent to inspect the parent session through the external-memory tools before continuing.
  • Workspace-as-source-of-truth instructions so the new agent checks current files and git status before relying on historical turns.
  • Three read-only external-memory tools attached only to Reference Forked agents via agent.open.before: list_parent_turns, search_parent_session, and read_parent_session. Multi-generation forks can traverse ancestor snapshots via ancestorIndex.
  • An optional cleaned Markdown transcript file (parent-transcript.md) as a read-only fallback for runtimes where plugin tools are unavailable.
  • A lineage card at the top of the new agent's timeline linking back to the source session and cutoff turn.
  • Optional silent standby mode: skips sending an initial turn and instead injects the handoff reference via agent.open.before, leaving the new session idle with zero initial token usage until you send your first message.

You can trigger a Reference Fork from any completed turn using the inline per-turn Ref Fork row, through the /rfork slash command (with optional --go, --standby, --focused, --recent, --full, provider/model, or @profile arguments), or from the Command Center. You can also click Copy Ref next to Ref Fork on any completed turn to write a read-only snapshot through that turn and copy a formatted reference (turn content, Paseo Agent ID, and snapshot file paths) to paste into another session.

Setup

Requires Paseo 0.18.2 or later with plugins enabled on the target daemon. No external accounts, API keys, or external CLI tools are required.

Configurable host settings under Settings > Plugins > Reference Fork include:

  • Interface language (follow Paseo's app language, English, or Simplified Chinese).
  • Whether to append an inline Ref Fork trigger row after each completed turn.
  • Default workspace mode (same workspace or new worktree).
  • Default launch intent (continue immediately or standby ready).
  • Default context mode (focused, recent, or full) and character budget for recent mode.
  • Whether to export a fallback parent-transcript.md file alongside snapshot.json.

Capabilities, data access, and limits

  • Reads the source agent's Paseo timeline, daemon agent profiles, and provider catalog on the local daemon.
  • Writes read-only snapshots under <PASEO_HOME>/plugin-data/paseo-ref-fork/snapshots/.
  • Does not make direct external network requests. However, the handoff prompt and any parent-turn excerpts returned by the external-memory tools are sent to the target agent's configured model provider when the new session runs.
  • Mid-conversation forks truncate parent conversation memory to the selected turn without reverting files on disk; the handoff prompt directs the new agent to treat workspace files and git state as authoritative.