Repository navigation
Conversation
Contributor
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a small, well-scoped provider-instruction fix that removes misplaced ACP/Codex guidance from shared prompts and restores it only to the relevant provider paths. Runtime impact is limited to generated prompt text, with focused tests covering the affected providers. You can add or adjust custom eligibility rules. Learn more. |
2 tasks done
macroscopeapp
Bot
dismissed
their stale review
October 11, 2026 06:10
Dismissing prior approval to re-evaluate 94b834a
macroscopeapp
Bot
dismissed
their stale review
October 12, 2026 02:40
Dismissing prior approval to re-evaluate 5cf9b50
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claude Code threads got two pieces of T3's orchestration prompt that only apply to other agents. Every provider receives the shared
T3_CODE_ORCHESTRATION_INSTRUCTIONSfrompackages/provider-core/src/server/orchestrationInstructions.ts, 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. The ACP adapter inpackages/provider-acpis 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.Current-main verification:
./node_modules/.bin/vp test run packages/provider-core/src/server/orchestrationInstructions.test.ts apps/server/src/provider/CodexDeveloperInstructions.test.ts apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts: 247 tests passed.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.
Maintenance: GPT-6-Astra via the Codex harness in T3 Code.