phase-10m-pi-murph-continuity-research — промпт для Claude Code
Промпт phase-10m-pi-murph-continuity-research для Claude Code и ChatGPT анализирует восстановление контекста и компактирование в Murph и Phantom, чтобы проверить, не переизобретают ли они примитивы Pi.
Apache-2.0 ★ 1 497 обновлён 2026-06-16
.claude/commands/phase-10m-pi-murph-continuity-research.mdЧто делает phase-10m-pi-murph-continuity-research
Это исследовательский промпт для разработчиков, работающих с долгими задачами в многоагентных системах. Он задаёт роль тройного инженера (principal engineer, architect, product manager) и направляет на анализ конкретного отказа: когда агент завершил длинную работу, произошло компактирование, и после этого агент либо спутал созданную ссылку со входом, либо застрял.
Промпт требует читать реальные файлы — не резюме, а код: .claude/AGENTS.md, файлы Murph и Phantom, Pi-адаптеры, логику компактирования и восстановления транскрипта. Основной фокус — ответить, правильное ли направление выбрано для Phantom PR #113 с живым контекстом и поиском по транскрипту, или стоит пересмотреть архитектуру.
Ожидаемый выход — вердикт (3–6 пунктов), таблица доказательств с путями к файлам, ранжированный список рисков (P0/P1/P2/P3) и рекомендация одного следующего слайса без параллельных систем памяти.
Какие задачи решает
- проверить, есть ли в Pi или pi-mono лучшие примитивы для трансформации контекста и восстановления транскрипта, чем в Murph
- выявить риски поломки после компактирования при повторе tool-call и отправке сырого JSON провайдерам
- определить, нужно ли объединять память, видимую пользователю, с восстановлением контекста агента
- найти следующий минимальный тестируемый слайс, улучшающий корректность без Phantom-специфичных костылей
Примеры запросов агенту
- Вставьте промпт в Claude Code и попросите: «Запусти анализ из
.claude/commands/phase-10m-pi-murph-continuity-research.mdи дай вердикт по архитектуре компактирования» - Используйте для code review PR #113 Phantom: «Проверь, нарушает ли live context injection протокол tool-call провайдеров»
- Запустите перед переходом на новый цикл: «Есть ли в Pi-mono примитив, который нам переделывать не нужно?»
Как установить phase-10m-pi-murph-continuity-research
Вручную: положить файлы
.claude/commands/phase-10m-pi-murph-continuity-research.mdКак использовать
Вставьте текст в начало диалога или в инструкции проекта
Вопросы о phase-10m-pi-murph-continuity-research
Как установить phase-10m-pi-murph-continuity-research в Claude Code?
Скопируйте файл .claude/commands/phase-10m-pi-murph-continuity-research.md в директорию Claude Code, затем откройте его как команду. Промпт готов к использованию как контекст для чтения файлов и анализа.
Что делает этот промпт?
Направляет агента на анализ кода компактирования, восстановления транскрипта и трансформации контекста в Murph и Phantom. Проверяет, нет ли переделки уже работающих решений из Pi, и выявляет архитектурные риски для провайдеров (OpenAI, Anthropic).
Когда его использовать?
При разработке долгоживущих агентов, когда нужно убедиться, что восстановление контекста после компактирования работает без потери фактов. Также перед code review изменений в логике продолжения диалога.
Исходный текст
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