phase-10l-murph-continuity-researcher — промпт для Claude Code
Промпт phase-10l-murph-continuity-researcher исследует, как Murph продолжает работу после уплотнения контекста, и готовит план исправлений с опорой на код и тесты. Для анализа нужны локальные репозитории Murph и Phantom.
Apache-2.0 ★ 1 497 обновлён 2026-06-16
.claude/commands/phase-10l-murph-continuity-researcher.mdЧто делает phase-10l-murph-continuity-researcher
Промпт направляет Claude Code изучить реализацию контекста, уплотнения истории, адаптеров провайдеров и сохранения вызовов инструментов в Murph, а также материалы по восстановлению транскрипта Phantom. Задача — выяснить, что попадает в следующий запрос после уплотнения и есть ли механизм продолжения прерванного хода. Изменять файлы нельзя.
На выходе нужны архитектурная заметка со ссылками на файлы и строки, вывод о том, где исправлять логику, ранжированный план с критериями приёмки и список рисков. Отдельно рассматриваются ограничения OpenAI, Anthropic и ZAI, а тесты предлагается разделить на проверки с провайдерами и детерминированные тесты автомата состояний.
Промпт требует опираться на реально прочитанный код, не подменять исследование пересказом по памяти и не включать в сводки секреты или полные данные инструментов. Он рассчитан на рабочие копии в /Users/truffle/work; без доступа к указанным репозиториям выполнить проверку по исходникам не получится.
Какие задачи решает
- выяснить, что Murph отправляет после уплотнения контекста
- проверить, переиспользуются ли механизмы Pi для обработки переполнения
- найти причину потери ответа после уплотнения
- составить план исправления с критериями приёмки
- определить тесты для продолжения хода и истории вызовов инструментов
Примеры запросов агенту
- Изучи, как Murph продолжает прерванный ход после уплотнения контекста, и подготовь архитектурную заметку по коду.
- Сравни обработку переполнения в Murph и Pi, затем предложи план исправлений с критериями приёмки.
- Проверь риски для порядка сообщений с вызовами инструментов OpenAI и составь план тестирования.
Как установить phase-10l-murph-continuity-researcher
Вручную: положить файлы
.claude/commands/phase-10l-murph-continuity-researcher.mdКак использовать
Вставьте текст в начало диалога или в инструкции проекта
Вопросы о phase-10l-murph-continuity-researcher
Как установить phase-10l-murph-continuity-researcher в Claude Code?
Сохраните промпт в .claude/commands/phase-10l-murph-continuity-researcher.md.
Что делает phase-10l-murph-continuity-researcher?
Он поручает Claude Code исследовать уплотнение контекста и продолжение прерванных ходов в Murph и Phantom. Результат включает архитектурную заметку, план реализации и тесты.
Какие файлы нужны для исследования?
Промпт задаёт чтение материалов Murph и документов по восстановлению транскрипта Phantom в /Users/truffle/work. Также предлагается проверить локальные копии pi-mono и pi-code.
Исходный текст
phase-10l-murph-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 on Murph post-compaction continuity. Do not edit files. Do not summarize from memory. Read the actual Murph and Phantom code. Context: - Phantom is being moved onto Murph, a clean-room pi-mono based agent runtime. - We already implemented Phantom transcript recovery through `phantom_chat_transcript_search`. - Real browser testing showed long-running tool-heavy tasks work, and Murph compaction appears to fire, but after compaction the agent may lose the created-page answer or stop responding usefully. - The operator believes compaction should be an LLM-written compact summary, not literal history replay. The next model call should receive that summary plus enough pointers and tools to continue. - We must reuse pi-mono/Pi capabilities where they exist and avoid rebuilding battle-tested primitives in worse form. Reading list: 1. `/Users/truffle/work/murph/AGENTS.md` 2. `/Users/truffle/work/murph/QUALITY-BAR.md` 3. `/Users/truffle/work/murph/PROGRESS.md` 4. `/Users/truffle/work/murph/src/**` areas related to context overflow, compaction, provider adapters, message history, tool call preservation, and summaries. 5. `/Users/truffle/work/phantom-murph-hardening/research/chat-experience/phase-10g-pi-continuity.md` 6. `/Users/truffle/work/phantom-murph-hardening/research/chat-experience/phase-10i-transcript-recovery-implementation.md` 7. Any local pi-mono, pi-code, or notes repo already cloned under `/Users/truffle/work` that contains relevant compaction or overflow logic. Questions to answer: 1. What exactly does Murph do today when context approaches or exceeds the provider limit? 2. Does Murph use pi-mono/Pi primitives for context overflow detection, summarization, and retry, or did we duplicate that logic? 3. After compaction, what is sent to the next provider call? Include the shape of summary, preserved tool-call state, and any continuation instructions. 4. Is there an existing Murph seam for "continue the interrupted turn after compaction", or is compaction only a pre-call trimming step? 5. Which provider-specific constraints matter for OpenAI, Anthropic, and ZAI around tool-call history after compaction? 6. What is the smallest production-grade fix that improves continuation without corrupting tool-call protocols? 7. What tests should prove this, preferably with real providers when possible and deterministic unit tests for the core state machine? Deliverables: - A concise architecture note with file references and line numbers. - A clear verdict: reuse Pi/Murph existing primitives, fix Murph primitive, or add Phantom-specific continuation glue. - A ranked implementation plan with acceptance criteria. - Explicit risks and anti-patterns, especially anything that would break OpenAI tool-call message ordering. Anti-patterns: - Do not suggest raw transcript stuffing. - Do not suggest regex-heavy summarization. - Do not expose private chain-of-thought. - Do not preserve raw secrets, magic links, auth headers, or full tool payloads in summaries. - Do not treat a single reference repo as authoritative. Self-review: Before finalizing, re-read your own findings and remove any claim not backed by files you actually inspected.
© ghostwright · Apache-2.0 · ghostwright/phantom