toolInstructions.ts ×1
Frontier kind: Joint frontier
unlabeled · c_dd0dd5491c65
58 tests · 3517 LOC · 21 files · introduces 1 test · 3 LOC · 1 file
Introduces — evidence that enters the hierarchy at this concept
Code
1 range 3 lines · 1 files
Tests
1 test
Contains — complete concept membership
Neighbourhood graph
The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.
Focus concept
Ancestors (broader)
Descendants (narrower)
Introduced files
Introduced tests
Introduced files, introduced tests, and structurally relevant concept specialization
In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.
Graph controls are ready.
Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.
JavaScript is disabled; use the native relationship evidence on this page to explore the same evidence.
Native relationship evidence
Every exact file and test below is linked only from the concept that introduces it.
toolInstructions.ts ×1 — Focused concept
Introduced files:
Introduced tests:
copilotAgent.ts ×4 — Ancestor (broader)
Introduced files:
Introduced tests:
copilotAgent.ts ×4 — Ancestor (broader)
Introduced files:
Introduced tests:
copilotSessionLauncher.ts ×3 — Ancestor (broader)
Introduced files:
Introduced tests:
copilotAgent.ts ×1 — Ancestor (broader)
Introduced files:
copilotAgent.test|title=CopilotAgent contextSize to contextTier mapping uses long_context when model has no surcharge, no explicit selection and preferLongContext is enabled|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotAgent.test|title=CopilotAgent contextSize to contextTier mapping leaves the SDK on its default tier when model has no surcharge and no explicit selection|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotAgent.test|title=CopilotAgent contextSize to contextTier mapping maps the default numeric context size to default|occurrence=1, copilotAgent.test|title=CopilotAgent contextSize to contextTier mapping maps the largest numeric context size to long_context|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotSessionLauncher.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
copilotSessionLauncher.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
copilotSessionLauncher.ts ×1 — Ancestor (broader)
Introduced files:
copilotAgent.ts ×2 — Ancestor (broader)
Introduced files:
copilotAgent.test|title=CopilotAgent provisional sessions materialization skips managed shell tools when root config disables the custom terminal tool|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotAgent.test|title=CopilotAgent provisional sessions materialization passes VS Code-specific system message to the SDK|occurrence=1, copilotAgent.test|title=CopilotAgent provisional sessions materialization forwards the GitHub token to the SDK at the session level (#318693)|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotAgent.test|title=CopilotAgent provisional sessions sendMessage on the default chat materializes the parent provisional session|occurrence=1, copilotAgent.test|title=CopilotAgent customization anchoring materialization without a worktree keeps the anchor on the original folder|occurrence=1, +1 — Ancestor (broader)
Introduced tests:
copilotAgent.ts ×7 — Ancestor (broader)
Introduced files:
copilotAgent.test|title=CopilotAgent client tool completion unblocks a pending permission request|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotAgent.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
copilotAgent.test|title=CopilotAgent auto-approves one duplicate write permission request after approval|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotAgent.test|title=CopilotAgent requires confirmation when a second write permission request differs|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotAgentSession.ts ×4 — Ancestor (broader)
Introduced files:
copilotAgent.ts ×1 — Ancestor (broader)
Introduced files:
copilotAgent.ts ×1 — Ancestor (broader)
Introduced files:
copilotAgent.ts ×4 — Ancestor (broader)
Introduced files:
copilotAgent.test|title=CopilotAgent _resumeSession dedup shutdown during resume cancels the in-flight resume|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotAgent.ts ×1 — Ancestor (broader)
Introduced files:
copilotAgent.ts ×2 — Ancestor (broader)
Introduced files:
copilotAgent.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
copilotAgent.ts ×3 — Ancestor (broader)
Introduced files:
Introduced tests:
copilotAgent.ts ×6 — Ancestor (broader)
Introduced files:
copilotAgent.test|title=CopilotAgent auto-approves one duplicate read permission request after approval|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotAgent.ts ×2 — Ancestor (broader)
Introduced files:
copilotAgent.ts ×1 — Ancestor (broader)
Introduced files:
copilotAgentSession.ts ×1 — Ancestor (broader)
Introduced files:
copilotAgentSession.ts ×2 — Ancestor (broader)
Introduced files:
pendingEditContentStore.ts ×1 — Ancestor (broader)
Introduced files:
copilotAgent.ts ×8 — Ancestor (broader)
Introduced files:
copilotAgent.ts ×1 — Ancestor (broader)
Introduced files:
copilotAgent.ts ×3 — Ancestor (broader)
Introduced files:
copilotAgent.test|title=CopilotAgent client tool call contributor prefers the message sender when it provides the tool|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotAgent.test|title=CopilotAgent agent-created sessions can resolve session-state paths via INativeEnvironmentService|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotAgentSession.ts ×1 — Ancestor (broader)
Introduced files:
copilotAgentSession.ts ×1 — Ancestor (broader)
Introduced files:
copilotAgentSession.ts ×3 — Ancestor (broader)
Introduced files:
copilotSessionLauncher.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
copilotSessionLauncher.test|title=CopilotSessionLauncher client identity passes the Agent Host client name to create and resume|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotSessionLauncher.ts ×1 — Ancestor (broader)
Introduced files:
copilotSessionLauncher.ts ×1 — Ancestor (broader)
Introduced files:
copilotSessionLauncher.ts ×1 — Ancestor (broader)
Introduced files:
copilotSessionLauncher.ts ×2 — Ancestor (broader)
Introduced files:
copilotSessionLauncher.ts ×2 — Ancestor (broader)
Introduced files:
copilotSessionLauncher.test|title=CopilotSessionLauncher resume fallback does not replace a corrupted session file with an empty session|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotSessionLauncher.ts ×1 — Ancestor (broader)
Introduced files:
copilotSessionLauncher.ts ×1 — Ancestor (broader)
Introduced files:
copilotSessionLauncher.ts ×2 — Ancestor (broader)
Introduced files:
copilotSessionLauncher.ts ×4 — Ancestor (broader)
Introduced files:
copilotSessionLauncher.ts ×2 — Ancestor (broader)
Introduced files:
copilotSessionLauncher.ts ×9 — Ancestor (broader)
Introduced files:
agentHostPromptRegistry.test|title=AgentHostPromptRegistry model capability overrides (family alias) an aliased preview model routes to the family contributor|occurrence=1 — Ancestor (broader)
Introduced tests:
agentHostPromptRegistry.test|title=AgentHostPromptRegistry tool search instructions wiring composes the tool-search line with a per-model tool_instructions override|occurrence=1 — Ancestor (broader)
Introduced tests:
agentHostPromptRegistry.test|title=AgentHostPromptRegistry universal tool instructions wiring composes the browser line with a per-model tool_instructions override|occurrence=1 — Ancestor (broader)
Introduced tests:
agentHostPromptRegistry.test|title=AgentHostPromptRegistry Opus contributor (registered via allPrompts) applies customize overrides only when enabled|occurrence=1 — Ancestor (broader)
Introduced tests:
anthropicPrompt.ts ×2 — Ancestor (broader)
Introduced files:
agentHostPromptRegistry.test|title=AgentHostPromptRegistry tool search instructions wiring layers the tool-search line onto the default config when active and the tool-search tool is present|occurrence=1 — Ancestor (broader)
Introduced tests:
agentHostPromptRegistry.test|title=AgentHostPromptRegistry contributors gate on the prompt context|occurrence=1 — Ancestor (broader)
Introduced tests:
agentHostPromptRegistry.test|title=AgentHostPromptRegistry universal tool instructions wiring layers the browser tool_instructions onto the default config when browser tools are present|occurrence=1 — Ancestor (broader)
Introduced tests:
agentHostPromptRegistry.test|title=AgentHostPromptRegistry a contributor can override individual sections (customize mode)|occurrence=1, agentHostPromptRegistry.test|title=AgentHostPromptRegistry universal tool instructions wiring leaves a per-model tool_instructions override untouched when no browser tools are present|occurrence=1 — Ancestor (broader)
Introduced tests:
agentHostPromptRegistry.test|title=AgentHostPromptRegistry treats empty section overrides as no override (falls back to default)|occurrence=1 — Ancestor (broader)
Introduced tests:
repoless wiring composes with per-model customize content for a workspace-less chat|occurrence=1 — Ancestor (broader)
Introduced tests:
agentHostPromptRegistry.test|title=AgentHostPromptRegistry tool search instructions wiring is a no-op when active but the client does not expose the tool-search tool|occurrence=1 — Ancestor (broader)
Introduced tests:
anthropicPrompt.ts ×2 — Ancestor (broader)
Introduced files:
agentHostPromptRegistry.test|title=AgentHostPromptRegistry falls back to the default when no contributor matches the model|occurrence=1, agentHostPromptRegistry.test|title=AgentHostPromptRegistry universal tool instructions wiring is a no-op when the session exposes no matching tools|occurrence=1, +1 — Ancestor (broader)
Introduced tests:
promptRegistry.ts ×1 — Ancestor (broader)
Introduced files:
promptRegistry.ts ×1 — Ancestor (broader)
Introduced files:
promptRegistry.ts ×1 — Ancestor (broader)
Introduced files:
promptRegistry.ts ×2 — Ancestor (broader)
Introduced files:
promptRegistry.ts ×1 — Ancestor (broader)
Introduced files:
repoless wiring is a no-op for a workspace-bound session|occurrence=1, agentHostPromptRegistry.test|title=AgentHostPromptRegistry falls back to the default system message when no model is provided|occurrence=1 — Ancestor (broader)
Introduced tests:
promptRegistry.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
promptRegistry.ts ×1 — Ancestor (broader)
Introduced files:
systemMessage.ts ×1 — Ancestor (broader)
Introduced files:
toolInstructions.test|title=toolInstructions toolSearchInstructionLines folds the tool-search line into an existing per-model override only while active|occurrence=1 — Ancestor (broader)
Introduced tests:
toolInstructions.test|title=toolInstructions toolSearchInstructionLines active tool search contributes the tool-search line only when the client exposes the tool-search tool|occurrence=1 — Ancestor (broader)
Introduced tests:
toolInstructions.test|title=toolInstructions toolSearchInstructionLines composes the tool-search line after the registered browser line|occurrence=1 — Ancestor (broader)
Introduced tests:
toolInstructions.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
toolInstructions.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
toolInstructions.ts ×1 — Ancestor (broader)
Introduced files:
toolInstructions.ts ×1 — Ancestor (broader)
Introduced files:
toolInstructions.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
toolInstructions.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
toolInstructions.ts ×1 — Ancestor (broader)
Introduced files:
toolInstructions.ts ×3 — Ancestor (broader)
Introduced files:
toolInstructions.test|title=toolInstructions toolSearchInstructionLines inactive tool search never contributes the tool-search line|occurrence=1 — Ancestor (broader)
Introduced tests:
toolInstructions.ts ×1 — Ancestor (broader)
Introduced files:
toolInstructions.ts ×2 — Ancestor (broader)
Introduced files:
toolInstructions.ts ×1 — Ancestor (broader)
Introduced files:
toolInstructions.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
toolInstructions.ts ×1 — Ancestor (broader)
Introduced files:
toolInstructions.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
toolInstructions.ts ×6 — Descendant (narrower)
Introduced files:
arrays.test|title=Arrays coalesce|occurrence=1 — Descendant (narrower)
Introduced tests:
arrays.ts ×1 — Descendant (narrower)
Introduced files:
toolSearchConstants.ts ×1 — Descendant (narrower)
Introduced files:
uri.test|title=URI URI#file, win-speciale|occurrence=1, charCode.test|title=CharCode has good values|occurrence=1, +2 — Descendant (narrower)
Introduced tests:
utils.ts ×3 — Descendant (narrower)
Introduced files:
lifecycle.ts ×2 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×4 — Descendant (narrower)
Introduced files:
lifecycle.ts ×6 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
map.ts ×97 — Descendant (narrower)
Introduced files:
Introduced tests
Every collected test enters the hierarchy at exactly one concept.
1 test introduced at this concept.
Introduced code
Every collected source range enters the hierarchy at exactly one concept.
1 file ranked by introduced lines: 3 introduced LOC across 1 ranges.
Expand a file to inspect source; the > gutter marks introduced lines.
src/vs/platform/agentHost/node/copilot/prompts/toolInstructions.ts 3 introduced LOC · 1 range
Open complete file
85
*/
86
export function universalToolInstructions ( hasTool : ( name : string ) => boolean , lines : readonly ToolInstructionLine [] = TOOL_INSTRUCTION_LINES ) : string | undefined {
88
>
return rendered . length > 0 ? rendered . join ( '\n' ) : undefined ;
89
>
}
90
91
/**