Skip to main content
prompt GP ChatGPT

phase-10m-pi-murph-continuity-research — Claude Code prompt

phase-10m-pi-murph-continuity-research is a prompt for Claude Code and ChatGPT that investigates context recovery and compaction in Murph and Phantom, checking whether they reinvent Pi primitives.

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-10m-pi-murph-continuity-research.md
Open on GitHub

What phase-10m-pi-murph-continuity-research does

This is a research prompt for engineers maintaining long-running tasks in multi-agent systems. It assigns a triple role—principal engineer, architect, and product manager—and directs analysis toward a specific failure mode: agent completes a long task, compaction occurs, then the agent either confuses a created page link with a login link or stalls.

The prompt requires reading actual code files, not summaries: .claude/AGENTS.md, Murph and Phantom files, Pi adapters, compaction logic, and transcript recovery. The core question is whether Phantom PR #113's approach to live context injection and transcript search is the right direction, or whether the architecture needs rethinking.

Expected output is an executive verdict (three to six bullets), an evidence table with file paths, risks ranked P0 through P3, and a recommendation for one next testable slice without parallel memory systems or provider protocol violations.

What it helps with

  • determine whether Pi or pi-mono exposes better primitives for context transforms and transcript recovery than Murph uses
  • identify risks of post-compaction breakage when replaying tool calls or sending raw JSON to providers
  • decide whether user-facing memory and agent-side continuity should merge or stay separate
  • find the minimal next slice that improves correctness without Phantom-specific workarounds

Example prompts for the agent

  • Load the prompt in Claude Code and ask: 'Run the analysis from .claude/commands/phase-10m-pi-murph-continuity-research.md and deliver an architecture verdict on compaction.'
  • Use for PR #113 review: 'Does live context injection break the tool-call protocol for OpenAI or Anthropic?'
  • Run before the next cycle: 'Is there a Pi-mono primitive we should not reimplement?'

How to install phase-10m-pi-murph-continuity-research

Manually: put the files in place

.claude/commands/phase-10m-pi-murph-continuity-research.md

Questions about phase-10m-pi-murph-continuity-research

How do I install phase-10m-pi-murph-continuity-research in Claude Code?

Copy .claude/commands/phase-10m-pi-murph-continuity-research.md into your Claude Code command directory. The prompt is then ready to use as context for file reading and code analysis.

What does this prompt do?

It directs the agent to analyze compaction, transcript recovery, and context transformation code in Murph and Phantom. It checks whether existing solutions from Pi are being reinvented and flags architectural risks to providers like OpenAI and Anthropic.

When should I use it?

When building long-lived agents and you need confidence that context recovery after compaction works without losing facts. Also useful before code review of continuation and dialog flow changes.

Source text

phase-10m-pi-murph-continuity-research.md · Apache-2.0
ultrathink. ultrathink. ultrathink.

# Phase 10M Research Prompt: Pi/Murph Continuity Reuse

You are a principal engineer, principal architect, and principal product
manager at Anthropic, all three at once. You are working for Cheema on Phantom
running on Murph. Your job is read-only research. Do not edit files.

No context anxiety. No token limits. No time pressure. No cost anxiety. No
"v2" thinking. There is no v2. Build it right. Take as long as you need.

## Goal

Determine whether Phantom or Murph is reinventing continuity, compaction,
runtime progress, or transcript recovery behavior that Pi, Pi Code, pi-mono,
OpenClaw, opencode, Shelley, or local notes already handle better.

Focus on the post-compaction continuation failure mode Cheema observed:
the agent completed a long task, compaction happened, then the user asked for a
created page link and the agent either confused the page with a login link or
stalled. Murph main now has a stronger compaction continuation prompt and
Phantom PR #113 has live context injection plus transcript search. Verify if
that architecture is still the right direction.

## Required Reading

Read real files, not summaries:

1. `/Users/truffle/.claude/AGENTS.md`
2. `/Users/truffle/.claude/CLAUDE.md`
3. `/Users/truffle/work/murph/AGENTS.md`
4. `/Users/truffle/work/murph/QUALITY-BAR.md`
5. `/Users/truffle/work/murph/PROGRESS.md`
6. `/Users/truffle/work/phantom-murph-hardening/CLAUDE.md`
7. `/Users/truffle/work/phantom-murph-hardening/research/chat-experience/phase-10l-continuity-hardening.md`
8. `/Users/truffle/work/phantom-murph-hardening/src/agent/chat-query.ts`
9. `/Users/truffle/work/phantom-murph-hardening/src/agent/murph-context.ts`
10. `/Users/truffle/work/phantom-murph-hardening/src/chat/continuity-context.ts`
11. `/Users/truffle/work/phantom-murph-hardening/src/agent/in-process-reflective-tools.ts`
12. `/Users/truffle/work/murph/packages/core/src/compaction/summary-prompt.ts`
13. `/Users/truffle/work/murph/packages/core/src/query/query.ts`
14. `/Users/truffle/work/murph/packages/core/src/substrate/pi-adapter.ts`
15. `/Users/truffle/work/murph/packages/core/src/substrate/pi-summary.ts`
16. Relevant files in `/Users/truffle/work/pi-mono`, `/Users/truffle/work/research-clones/pi-mono-latest`, `/Users/truffle/work/openclaw`, `/Users/truffle/work/opencode`, `/Users/truffle/work/shelley`, and `/Users/truffle/work/notes-main`.

Use `rg` aggressively. If a referenced repo lacks the expected files, say so
and continue with the repos that exist.

## Questions To Answer

1. Does Pi or pi-mono already expose a better primitive for context transforms,
   compaction, memory pointers, or transcript recovery than the current Murph
   implementation uses?
2. Is Phantom using Murph's Pi-backed `transformContext` in the least
   invasive, provider-correct way?
3. Should user-facing memory and agent-facing continuity remain separate, or
   should either be folded into the same transcript recovery tool?
4. Should Phantom create durable first-class artifact rows, or is stream-log
   extraction enough for the next PR?
5. Are there protocol risks around tool-call replay, compact summaries, or
   tool-result summarization that could break OpenAI, Anthropic, or ZAI after
   compaction?
6. What is the next smallest testable slice that improves correctness without
   adding a Phantom-only shortcut?

## Acceptance Criteria

- Ground every claim in file paths and line references.
- Distinguish "confirmed from code" from "inferred product recommendation."
- Identify P0/P1/P2 risks if any.
- Recommend one next implementation slice and one explicit non-goal.
- Do not propose copying implementation from another repo. Clean-room lessons
  only.

## Anti-Patterns

- Do not say "Pi probably handles this" without a file path.
- Do not recommend a parallel Phantom memory runtime.
- Do not weaken provider tool-call protocol correctness.
- Do not suggest sending raw historical tool JSON back to providers.
- Do not optimize for a lucky demo. This is production chat continuity.

## Final Output

Return:

1. Executive verdict, 3 to 6 bullets.
2. Evidence table with file paths and concise findings.
3. Risks ranked P0/P1/P2/P3.
4. Recommended next slice with exact files likely touched.
5. Non-goals and why.

ultrathink. ultrathink. ultrathink.

© ghostwright · Apache-2.0 · ghostwright/phantom

Similar prompts

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

From the same set38

The whole set →
phase-10a-product-experience-research The phase-10a-product-experience-research prompt guides research into Phantom’s long-running agent chat, from run status to tool details and error states. Use it to shape an interface proposal and a phased build plan. GP ChatGPT ★ 1,497repo stars phase-10c-murph-progress-research phase-10c-murph-progress-research is a Claude Code prompt for researching Murph’s progress contract to improve tool call cards in Phantom chat. GP ChatGPT ★ 1,497repo stars phase-10b-durable-timeline-research phase-10b-durable-timeline-research directs an autonomous research run on durable chat timelines and SSE reconnect logic in Phantom without touching source files. GP ChatGPT ★ 1,497repo stars echo Before answering a substantive question, echo searches memory for a similar earlier decision. If it finds a strong match, it brings up that conclusion and asks whether it still applies. CX Codex +1 ★ 1,497repo stars phase-10i-transcript-recovery-builder The phase-10i-transcript-recovery-builder prompt for Claude Code builds transcript recovery for Phantom on Murph, letting agents search chat history after context compaction. GP ChatGPT ★ 1,497repo stars thread Trace how your thinking on a topic changed over time. The skill turns memory entries into a chronological account with marked turning points. CX Codex +1 ★ 1,497repo stars phase-10a-chat-pipeline-research phase-10a-chat-pipeline-research — a slash command that walks Phantom's chat pipeline from SDK events through SSE to React rendering. You get a file-grounded report, and no code is touched. GP ChatGPT ★ 1,497repo stars overheard overheard scans two weeks of stored memory to surface unfulfilled commitments and prepares followup drafts. CX Codex +1 ★ 1,497repo stars

Project sponsors

Companies that keep this analytics open