Skip to main content
prompt GP ChatGPT

phase-10l-phantom-continuity-researcher — Claude Code prompt guide

phase-10l-phantom-continuity-researcher is a Claude Code prompt for diagnosing session continuity in Phantom, including context compaction, transcript recovery, and SQLite state analysis.

Apache-2.0 ★ 1,497 updated 2026-06-16

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/phase-10l-phantom-continuity-researcher.md
Open on GitHub

What phase-10l-phantom-continuity-researcher does

This prompt instructs Claude Code to act as a principal engineer, architect, and product manager investigating Phantom's web chat mechanics. It focuses on long-running Murph sessions, timeline persistence, and scenarios where compaction causes the agent to lose track of created pages.

The directive prohibits file modifications. The model must inspect local files in src/chat, src/agent, and chat-ui, alongside SQLite run event data, answering seven core questions regarding session reuse, context fidelity, and UI state truthfulness.

Because changing Murph internals carries risk, the prompt restricts outputs to a diagnostic memo with line numbers, verified facts, and a minimal testable fix.

What it helps with

  • trace lost artifact references after session context compaction
  • verify how Murph session IDs persist across chat queries
  • audit SQLite chat event logs against UI timeline states
  • outline a minimal fix before modifying Murph internals

Example prompts for the agent

  • Run the continuity research analysis using /phase-10l-phantom-continuity-researcher
  • Investigate Murph context compaction behavior with phase-10l-phantom-continuity-researcher

How to install phase-10l-phantom-continuity-researcher

Manually: put the files in place

.claude/commands/phase-10l-phantom-continuity-researcher.md

Questions about phase-10l-phantom-continuity-researcher

How to install phase-10l-phantom-continuity-researcher in Claude Code?

Save the prompt file to .claude/commands/phase-10l-phantom-continuity-researcher.md in your project repository.

What does this prompt do?

It directs the model to analyze long-running chat sessions, transcript recovery, and compaction failure modes in Phantom without touching source files.

Does the prompt modify project files?

No, it explicitly forbids file editing and requires read-only inspection of source code, Markdown specs, and SQLite test data.

Source text

phase-10l-phantom-continuity-researcher.md · Apache-2.0
ultrathink. ultrathink. ultrathink.

You are a principal engineer, principal architect, and principal product
manager at Anthropic, all three at once. You are researching Phantom's web chat
behavior around long-running Murph sessions, compaction, replay, and user
perception. Do not edit files. Read actual files and, if useful, inspect local
SQLite state from the recent test sessions.

Context:

- Phantom now runs locally on Murph with real OpenAI successfully.
- Tool cards, durable timeline, transcript search, and artifact cards exist.
- The operator observed a real long-running test where the agent created a
  page, compaction seemed to work, then follow-up questions about the page link
  got confused or stopped responding.
- The UI also needs to communicate long-running work better, but the immediate
  risk is whether the agent run state and transcript recovery are correct after
  compaction.

Reading list:

1. `/Users/truffle/work/phantom-murph-hardening/CLAUDE.md`
2. `/Users/truffle/work/phantom-murph-hardening/research/chat-experience/phase-10h-product-direction.md`
3. `/Users/truffle/work/phantom-murph-hardening/research/chat-experience/phase-10i-transcript-recovery-implementation.md`
4. `/Users/truffle/work/phantom-murph-hardening/src/chat/**`
5. `/Users/truffle/work/phantom-murph-hardening/src/agent/**`
6. `/Users/truffle/work/phantom-murph-hardening/chat-ui/src/**` areas related
   to status, run activity, messages, and tool rendering.
7. Recent local SQLite chat/run event data if available and safe to inspect.

Questions to answer:

1. How does a new user message in web chat become an AgentRuntime query, and
   how is the previous Murph session id reused?
2. Does Phantom send enough post-compaction context for the agent to recover
   created artifacts, page paths, and prior task state?
3. Does Phantom have a concept of "agent compacted, now continue the same task",
   or does every user message start a fresh query that depends on Murph memory?
4. Are durable timeline events sufficient to reconstruct what happened for the
   user and for the agent, or are they UI-only?
5. Where can the UI truthfully show compaction, recovery, waiting, and retry
   states with current wire events?
6. What caused the observed "done but confused about the created page link"
   failure mode most likely: Murph summary quality, Phantom prompt/context,
   transcript search tool availability, UI state, or agent behavior?
7. What is the smallest testable Phantom-side fix, if any, before changing
   Murph internals?

Deliverables:

- A concise note with file references and line numbers.
- One recommended next implementation slice, including exact tests and browser
  verification.
- A list of facts the agent should have after compaction and where each should
  live: Murph summary, Phantom transcript search, durable artifact record, or
  UI-only state.

Anti-patterns:

- Do not invent a separate hidden memory store if the transcript or artifact
  record is the right source of truth.
- Do not make the UI pretend work is happening after the backend is done.
- Do not expose secrets or magic-login links in summaries, tools, artifacts, or
  persisted timeline displays.
- Do not add a Phantom-specific hack if the right fix belongs in Murph.

Self-review:

Before finalizing, separate confirmed facts from hypotheses and note what would
prove or disprove each hypothesis.

© ghostwright · Apache-2.0 · ghostwright/phantom

Similar prompts

All prompts for Agent setup: memory, context, orchestration →

From the same set38

The whole set →
phase-10h-provider-thinking-research phase-10h-provider-thinking-research — a Claude slash command that digs through Murph, Pi and Phantom sources to find what providers really expose about thinking and reasoning events. GP ChatGPT ★ 1,497repo stars phase-10b-durable-timeline-re-reviewer The phase-10b-durable-timeline-re-reviewer prompt for Claude Code re-audits fixes in Phantom PR #106 Phase 10B, checking durable timelines for secret leaks and validating session resume states. GP ChatGPT ★ 1,497repo stars phase-10i-transcript-recovery-re-review The phase-10i-transcript-recovery-re-review prompt guides Claude Code through a second review of transcript-recovery fixes, including project file inspection, required checks, and a written report. GP ChatGPT ★ 1,497repo stars phase-10k-page-artifact-ui-builder phase-10k-page-artifact-ui-builder is a Claude Code prompt for extracting page artifacts from tool results and displaying them in a compact chat card. GP ChatGPT ★ 1,497repo stars phase-10l-murph-continuity-researcher phase-10l-murph-continuity-researcher investigates how Murph handles context compaction and interrupted turns, then produces a code-backed fix and test plan. It expects local Murph and Phantom repositories. GP ChatGPT ★ 1,497repo stars phase-10j-tool-card-collapse-research phase-10j-tool-card-collapse-research is a prompt for Claude Code and ChatGPT that examines Phantom tool cards: collapsing completed calls while keeping errors and blocked work visible. GP ChatGPT ★ 1,497repo stars phase-10i-transcript-search-research phase-10i-transcript-search-research guides an architectural study for historical chat transcript search in Phantom after Murph compaction. Useful when planning agent context retrieval. GP ChatGPT ★ 1,497repo stars phase-10a-activity-correctness-reviewer The phase-10a-activity-correctness-reviewer prompt asks Claude Code to review Phantom’s Phase 10A patch and report concrete findings with file and line references. It targets changes in the named project. GP ChatGPT ★ 1,497repo stars

Project sponsors

Companies that keep this analytics open