feat(voice-chat): replace read_shared_context with request_slow_brain tool#8748
feat(voice-chat): replace read_shared_context with request_slow_brain tool#8748
Conversation
… tool Replace the passive read_shared_context tool with request_slow_brain for explicit task delegation to the slow brain. Rewrite TALKER_INSTRUCTIONS with capability awareness and behavioral rules so the model delegates instead of saying "I can't do that." Update the worker prompt to prioritize explicit talker/worker-request events. Closes #8745 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Code Review: PR #8748 (Round 1) — LGTM 🎉All findings reviewed — no critical or high-priority issues. SummaryClean replacement of the passive
Reviewed Findings (No Action Required)
Verdict: LGTM ✅No critical or high-priority issues remaining. This PR is ready for merge. Completed after 1 round(s) of automated review-fix loop |
⚡ Lighthouse — App
Tested URL: https://pr-8748-app.vm6.ai/ · Full report |
⚡ Lighthouse — Web
Tested URL: https://pr-8748-www.vm6.ai/ · Full report |
Acceptance Report: #8745 — feat: replace read_shared_context with request_slow_brain toolEpic: #8742 — voice-chat dual-brain collaboration 1. Requirements (Definition of Done)
2. Code Review
3. Architectural Alignment
4. Independence
5. Issues FoundMust Fix (blocking acceptance)None. Should Fix (non-blocking)None. NitsNone. VerdictACCEPTED Clean, minimal implementation (+44/-28) across 2 files. Exactly matches the approved plan and Epic #8742 design decisions. The async→sync cleanup on |
… tool (#8748) Replace the passive read_shared_context tool with request_slow_brain for explicit task delegation to the slow brain. Rewrite TALKER_INSTRUCTIONS with capability awareness and behavioral rules so the model delegates instead of saying "I can't do that." Update the worker prompt to prioritize explicit talker/worker-request events. Closes #8745 Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Summary
read_shared_contexttool withrequest_slow_brainfor explicit task delegation — writestalker/worker-requestevents to shared context via fire-and-forgetlogContextEventTALKER_INSTRUCTIONSwith capability awareness: the model now delegates tool-requiring tasks instead of saying "I can't do that"VOICE_CHAT_WORKER_PROMPTto prioritize explicittalker/worker-requestevents over autonomous observationsChanges
File 1:
turbo/apps/platform/src/signals/voice-chat/voice-chat-session.tsread_shared_contextwithrequest_slow_brain(requiredtaskparameter)logContextEvent(fetchFn, sid, "talker", "worker-request", task)+ static confirmationFile 2:
turbo/apps/web/src/lib/zero/integration-prompt.ts4. VOICE_CHAT_WORKER_PROMPT — Added "Explicit Requests" section after "When to Act" for
talker/worker-requestprioritizationTest plan
grep "read_shared_context"returns zero results in production codegrep "request_slow_brain"finds it in SESSION_TOOLS and handleFnCall$grep "worker-request"finds it in handleFnCall$ and worker promptrequest_slow_brain→ slow brain works → result injected backCloses #8745
🤖 Generated with Claude Code