Conversation
…route through delegate_task ACP has no system-prompt field, so T3's orchestration context rides on the first user message of the session while the agent keeps its own CLI system prompt. Agents like Mistral Vibe anchored on that standalone identity and used their native subagent/thread tools instead of T3's mcp__t3-code__ tools. The injected <t3_code_instructions> block now opens with "You are running as an agent inside T3 Code ...", and flavors can set nativeSubagents: false so the orchestration text routes every subagent through delegate_task; the acpRegistry flavor sets it for mistral-vibe, whose native tools.agents children never appear as T3 threads. Created with mistral-large-4-0 in T3 Code. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
ApprovabilityVerdict: Needs Human Approval Macroscope's review found this PR requires human approval — The change identifies T3 Code in ACP prompts and switches Vibe’s default subagent guidance to delegate_task. That default routing and thread-experience change requires human confirmation. You can add or adjust custom eligibility rules. Learn more. |
|
Thanks for this. T3 Code's ACP Registry support follows the ACP spec: the code every agent shares takes no changes that are specific to one agent, and the special cases already there are not a precedent for more (how providers are integrated). The Registry change gives Mistral Vibe its own subagent-routing behavior by setting nativeSubagents only in the isVibe branch. That is vendor-specific integration rather than shared ACP handling, so it needs a maintainer-approved dedicated driver rather than another Registry exception. The shared sentence identifying T3 Code as the host stands independently and could come back as a separate pull request without the Vibe branch. Please coordinate the Vibe-specific routing with the dedicated-driver work in #31881. An integration that needs Mistral Vibe's identity, credentials or private API is a dedicated provider driver, and we only add one when a maintainer has decided to own that integration. If you think Mistral Vibe should have one, open an issue making that case first. Closing. |
|
Filed #45673 making that case: a maintainer-owned dedicated Vibe driver on |
ACP has no system/developer prompt field, so T3's <t3_code_instructions> block rides on the first user message of the session while the agent keeps its own CLI system prompt. Agents anchored on that standalone identity and reached for their own subagent/thread features instead of T3's mcp__t3-code__ tools. The injected block now opens with "You are running as an agent inside T3 Code, the host application connected to you over ACP, not as a standalone CLI." Split out of pingdotgg#45634 per maintainer review: shared ACP handling only, no agent-specific branches. Created with mistral-large-4-0 in T3 Code. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
When a Mistral model runs in T3 Code through the Vibe ACP (
acpRegistry+mistral-vibe), it often reaches for Vibe's own subagent/thread mechanisms instead of T3's, and at times behaves as if it didn't know it was inside T3 Code at all.Root cause: ACP has no system/developer prompt field, so T3 injects its
<t3_code_instructions>block as the first user message of the session (re-sent only on mode/tool changes and after compaction). The agent's actual system prompt is still Vibe's own ("You are Mistral Vibe..."), and the injected orchestration text's default first bullet says to prefer the agent's native subagent tool — for Vibe that'stools.agents, whose children run outside T3 Code and never appear as T3 threads.Fix:
<t3_code_instructions>block now opens with a firm host identity line: "You are running as an agent inside T3 Code, the host application connected to you over ACP, not as a standalone CLI."AcpAdapterV2FlavorgainsnativeSubagents?: boolean(defaulttrue), plumbed intot3AcpPromptWithInstructions, which then uses thedelegate_task-only variant of the orchestration sections. TheacpRegistryflavor setsnativeSubagents: falseformistral-vibe, so its subagent guidance reads "Usedelegate_taskfor subagents, including when the child uses your provider and model."Other ACP agents are unchanged (default keeps the native-tool guidance for agents whose children T3 surfaces as threads).
Verified with
vp run check:changed(format, lint, knip, typecheck across 27 packages, targeted tests) plus new unit tests inorchestrationInstructions.test.ts.Created with mistral-large-4-0 in T3 Code.