Repository navigation
Conversation
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a focused prompt-routing bug fix that keeps shared instructions provider-neutral and places ACP and Codex guidance only on their intended paths. Its runtime impact is limited to model instructions, with targeted tests covering both inclusion and exclusion behavior. You can add or adjust custom eligibility rules. Learn more. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (5)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughShared orchestration instructions now separate ACP fallback guidance from general guidance. ACP prompts include fallback guidance when T3 MCP tools are available. Codex context adds a T3 capability-call instruction, and tests check which tool identifiers appear in these prompts. ChangesOrchestration guidance
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Low Suggested reviewers: Merge Risk: ⚪ Minimal · up to Claude and ACP receive appropriately scoped instructions, while Codex receives guidance to look up T3 capabilities. The inspected registration supports that lookup, with no established user-facing failure blocking merge. Security Architecture ReviewSecurity architecture risk: ⚪ Minimal · up to The change confines capability guidance to the appropriate integrations without granting new permissions or weakening access checks. No material security risk was found in the compared changes. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Comment |
Claude Code threads got two pieces of T3's orchestration prompt that only apply to other agents. Every provider receives the same
T3_CODE_ORCHESTRATION_INSTRUCTIONS, and it carried the ACP terminal fallback (T3_ACP_MCP_NODE,acp-mcp-call), a Codex code-mode example, and the sample namemcp__t3_code__delegate_task. Claude names these toolsmcp__t3-code__…, so the example was wrong there, and the ACP paragraph cost about 166 tokens in every Claude thread. Cursor, OpenCode, Pi and Codex got the ACP paragraph too. Fixes #16465.The shared text is now provider-neutral. Each provider-specific part goes only to the path that uses it:
t3AcpPromptWithInstructions.AcpAdapterV2is the only place that setsT3_ACP_MCP_NODE, and Grok, Antigravity, Devin and registry agents all build their prompt there.buildCodexAdditionalContext.### Finding T3 toolsheading at the end. The ACP and Codex additions then read as part of that section, not as part of "Showing visuals".Proof:
mainby building Claude's real query options with thet3-codeMCP server attached.systemPrompt.appendcontainedACP fallback,T3_ACP_MCP_NODEandmcp__t3_code__. With this change, it contains none of them.systemPrompt.append. Againstmain's instruction files, 3 of them fail (for exampleexpected '<runtime_info>…' to not include 'acp-mcp-call'). With this change, all pass.vp run --filter t3 typecheckreports 10 errors, all insrc/process/externalLauncher.test.ts, which this PR does not touch. That break is onmainand #16436 fixes it. The touched files have no errors. Not checked: a live Claude or ACP session quoting its prompt.Model: Claude Opus 5.5 (1M) with Codex GPT-6-Astra (medium). Harness: Claude Code in T3 Code.