promptRegistry.ts ×1
Frontier kind: Code frontier
unlabeled · c_65e8d5bb9c3f
21 tests · 7255 LOC · 41 files · introduces 0 tests · 1 LOC · 1 file
Introduces — evidence that enters the hierarchy at this concept
Code
1 range 1 lines · 1 files
Tests
0 tests
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.
Introduced files, introduced tests, and structurally relevant concept specialization 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 · 0 introduced LOC copilotAgent.test|title=… 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 · 0 introduced LOC copilotAgent.test|title=… 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 · 0 introduced LOC copilotAgent.test|title=… copilotSessionLauncher.ts ×1 · 2 introduced LOC copilotSessionLauncher.t… copilotSessionLauncher.ts ×1 · 2 introduced LOC copilotSessionLauncher.t… copilotSessionLauncher.ts ×1 · 1 introduced LOC copilotSessionLauncher.t… copilotAgent.ts ×2 · 4 introduced LOC copilotAgent.ts ×2 agentHostPromptRegistry.test|title=AgentHostPromptRegistry tool search instructions wiring composes the tool-search line with a per-model tool_instructions override|occurrence=1 · 0 introduced LOC agentHostPromptRegistry.… agentHostPromptRegistry.test|title=AgentHostPromptRegistry universal tool instructions wiring composes the browser line with a per-model tool_instructions override|occurrence=1 · 0 introduced LOC agentHostPromptRegistry.… 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 · 0 introduced LOC agentHostPromptRegistry.… agentHostPromptRegistry.test|title=AgentHostPromptRegistry contributors gate on the prompt context|occurrence=1 · 0 introduced LOC agentHostPromptRegistry.… agentHostPromptRegistry.test|title=AgentHostPromptRegistry universal tool instructions wiring layers the browser tool_instructions onto the default config when browser tools are present|occurrence=1 · 0 introduced LOC agentHostPromptRegistry.… 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 · 0 introduced LOC agentHostPromptRegistry.… agentHostPromptRegistry.test|title=AgentHostPromptRegistry treats empty section overrides as no override (falls back to default)|occurrence=1 · 0 introduced LOC agentHostPromptRegistry.… repoless wiring composes with per-model customize content for a workspace-less chat|occurrence=1 · 0 introduced LOC repoless wiring composes… 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 · 0 introduced LOC agentHostPromptRegistry.… 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 · 0 introduced LOC agentHostPromptRegistry.… promptRegistry.ts ×1 · 1 introduced LOC promptRegistry.ts ×1 promptRegistry.ts ×2 · 3 introduced LOC promptRegistry.ts ×2 repoless wiring does not append scratch instructions to a full replace prompt|occurrence=1, agentHostPromptRegistry.test|title=AgentHostPromptRegistry a contributor can fully replace the system prompt (replace mode)|occurrence=1 · 0 introduced LOC repoless wiring does not… promptRegistry.ts ×2 · 6 introduced LOC promptRegistry.ts ×2 promptRegistry.ts ×3 · 4 introduced LOC promptRegistry.ts ×3 promptRegistry.ts ×10 · 22 introduced LOC promptRegistry.ts ×10 promptRegistry.ts ×7 · 339 introduced LOC promptRegistry.ts ×7 copilotCliConfig.ts ×2 · 130 introduced LOC copilotCliConfig.ts ×2 agentHostSchema.ts ×21 · 546 introduced LOC agentHostSchema.ts ×21 configuration.ts ×12 · 203 introduced LOC configuration.ts ×12 sessionProtocol.ts ×5 · 364 introduced LOC sessionProtocol.ts ×5 sessionConfigKeys.ts ×1 · 52 introduced LOC sessionConfigKeys.ts ×1 toolInstructions.ts ×6 · 122 introduced LOC toolInstructions.ts ×6 commands.ts ×1 · 1661 introduced LOC commands.ts ×1 equals.ts ×14 · 108 introduced LOC equals.ts ×14 state.ts ×1 · 73 introduced LOC state.ts ×1 toolSearchConstants.ts ×1 · 10 introduced LOC toolSearchConstants.ts ×… uri.test|title=URI URI#file, win-speciale|occurrence=1, charCode.test|title=CharCode has good values|occurrence=1, +2 · 0 introduced LOC uri.test|title=URI URI#f… utils.ts ×3 · 9 introduced LOC utils.ts ×3 telemetry.ts ×3 · 115 introduced LOC telemetry.ts ×3 nls.ts ×1 · 1 introduced LOC nls.ts ×1 nls.ts ×6 · 13 introduced LOC nls.ts ×6 instantiation.ts ×5 · 111 introduced LOC instantiation.ts ×5 lifecycle.ts ×2 · 4 introduced LOC lifecycle.ts ×2 lifecycle.ts ×1 · 2 introduced LOC lifecycle.ts ×1 lifecycle.ts ×4 · 8 introduced LOC lifecycle.ts ×4 lifecycle.ts ×6 · 16 introduced LOC lifecycle.ts ×6 lifecycle.ts ×1 · 2 introduced LOC lifecycle.ts ×1 lifecycle.ts ×1 · 2 introduced LOC lifecycle.ts ×1 lifecycle.ts ×1 · 3 introduced LOC lifecycle.ts ×1 map.ts ×97 · 3334 introduced LOC map.ts ×97 src/vs/base/common/arrays.ts · 949 LOC common/arrays.ts src/vs/base/common/arraysFind.ts · 226 LOC common/arraysFind.ts src/vs/base/common/assert.ts · 91 LOC common/assert.ts src/vs/base/common/charCode.ts · 450 LOC common/charCode.ts src/vs/base/common/collections.ts · 176 LOC common/collections.ts src/vs/base/common/equals.ts · 206 LOC common/equals.ts src/vs/base/common/errors.ts · 357 LOC common/errors.ts src/vs/base/common/functional.ts · 32 LOC common/functional.ts src/vs/base/common/iterator.ts · 194 LOC common/iterator.ts src/vs/base/common/lifecycle.ts · 974 LOC common/lifecycle.ts src/vs/base/common/map.ts · 1016 LOC common/map.ts src/vs/base/common/marshallingIds.ts · 33 LOC common/marshallingIds.ts src/vs/base/common/path.ts · 1589 LOC common/path.ts src/vs/base/common/platform.ts · 281 LOC common/platform.ts src/vs/base/common/process.ts · 76 LOC common/process.ts src/vs/base/common/types.ts · 410 LOC common/types.ts src/vs/base/common/uri.ts · 754 LOC common/uri.ts src/vs/base/test/common/utils.ts · 107 LOC common/utils.ts src/vs/nls.ts · 244 LOC vs/nls.ts src/vs/platform/agentHost/common/agentHostSchema.ts · 732 LOC common/agentHostSchema.t… src/vs/platform/agentHost/common/copilotCliConfig.ts · 140 LOC common/copilotCliConfig.… src/vs/platform/agentHost/common/sessionConfigKeys.ts · 52 LOC common/sessionConfigKeys… src/vs/platform/agentHost/common/state/protocol/channels-changeset/commands.ts · 105 LOC channels-changeset/comma… src/vs/platform/agentHost/common/state/protocol/channels-chat/commands.ts · 147 LOC channels-chat/commands.t… src/vs/platform/agentHost/common/state/protocol/channels-resource-watch/state.ts · 73 LOC channels-resource-watch/… src/vs/platform/agentHost/common/state/protocol/channels-session/commands.ts · 323 LOC channels-session/command… src/vs/platform/agentHost/common/state/protocol/commands.ts · 15 LOC protocol/commands.ts src/vs/platform/agentHost/common/state/protocol/common/commands.ts · 1071 LOC common/commands.ts src/vs/platform/agentHost/common/state/protocol/common/errors.ts · 215 LOC common/errors.ts src/vs/platform/agentHost/common/state/protocol/errors.ts · 9 LOC protocol/errors.ts src/vs/platform/agentHost/common/state/sessionProtocol.ts · 148 LOC state/sessionProtocol.ts src/vs/platform/agentHost/common/toolSearchConstants.ts · 10 LOC common/toolSearchConstan… src/vs/platform/agentHost/node/copilot/copilotAgent.ts · 4445 LOC copilot/copilotAgent.ts src/vs/platform/agentHost/node/copilot/copilotSessionLauncher.ts · 628 LOC copilot/copilotSessionLa… src/vs/platform/agentHost/node/copilot/prompts/allPrompts.ts · 16 LOC prompts/allPrompts.ts src/vs/platform/agentHost/node/copilot/prompts/anthropicPrompt.ts · 72 LOC prompts/anthropicPrompt.… src/vs/platform/agentHost/node/copilot/prompts/promptRegistry.ts · 241 LOC prompts/promptRegistry.t… src/vs/platform/agentHost/node/copilot/prompts/systemMessage.ts · 117 LOC prompts/systemMessage.ts src/vs/platform/agentHost/node/copilot/prompts/toolInstructions.ts · 137 LOC prompts/toolInstructions… src/vs/platform/browserView/common/browserChatToolReferenceNames.ts · 29 LOC common/browserChatToolRe… src/vs/platform/configuration/common/configuration.ts · 358 LOC common/configuration.ts src/vs/platform/instantiation/common/instantiation.ts · 130 LOC common/instantiation.ts src/vs/platform/telemetry/common/telemetry.ts · 119 LOC common/telemetry.ts charCode.test|title=CharCode has good values|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/charCode.test|title=CharCode has good values|occurrence=1 charCode.test|title=Char… path.test|title=Paths (Node Implementation) path|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/path.test|title=Paths (Node Implementation) path|occurrence=1 path.test|title=Paths (N… uri.test|title=URI File paths containing apostrophes break URI parsing and cannot be opened #276075|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/uri.test|title=URI File paths containing apostrophes break URI parsing and cannot be opened #276075|occurrence=1 uri.test|title=URI File … uri.test|title=URI URI#file, win-speciale|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/uri.test|title=URI URI#file, win-speciale|occurrence=1 uri.test|title=URI URI#f… agentHostPromptRegistry.test|title=AgentHostPromptRegistry a contributor can fully replace the system prompt (replace mode)|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostPromptRegistry.test|title=AgentHostPromptRegistry a contributor can fully replace the system prompt (replace mode)|occurrence=1 agentHostPromptRegistry.… agentHostPromptRegistry.test|title=AgentHostPromptRegistry a contributor can override individual sections (customize mode)|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostPromptRegistry.test|title=AgentHostPromptRegistry a contributor can override individual sections (customize mode)|occurrence=1 agentHostPromptRegistry.… agentHostPromptRegistry.test|title=AgentHostPromptRegistry contributors gate on the prompt context|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostPromptRegistry.test|title=AgentHostPromptRegistry contributors gate on the prompt context|occurrence=1 agentHostPromptRegistry.… agentHostPromptRegistry.test|title=AgentHostPromptRegistry falls back to the default when no contributor matches the model|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostPromptRegistry.test|title=AgentHostPromptRegistry falls back to the default when no contributor matches the model|occurrence=1 agentHostPromptRegistry.… agentHostPromptRegistry.test|title=AgentHostPromptRegistry tool search instructions wiring composes the tool-search line with a per-model tool_instructions override|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostPromptRegistry.test|title=AgentHostPromptRegistry tool search instructions wiring composes the tool-search line with a per-model tool_instructions override|occurrence=1 agentHostPromptRegistry.… 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 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/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 agentHostPromptRegistry.… agentHostPromptRegistry.test|title=AgentHostPromptRegistry tool search instructions wiring is a no-op when tool search is inactive even if the tool-search tool is present|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostPromptRegistry.test|title=AgentHostPromptRegistry tool search instructions wiring is a no-op when tool search is inactive even if the tool-search tool is present|occurrence=1 agentHostPromptRegistry.… 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 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/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 agentHostPromptRegistry.… agentHostPromptRegistry.test|title=AgentHostPromptRegistry treats empty section overrides as no override (falls back to default)|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostPromptRegistry.test|title=AgentHostPromptRegistry treats empty section overrides as no override (falls back to default)|occurrence=1 agentHostPromptRegistry.… agentHostPromptRegistry.test|title=AgentHostPromptRegistry universal tool instructions wiring composes the browser line with a per-model tool_instructions override|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostPromptRegistry.test|title=AgentHostPromptRegistry universal tool instructions wiring composes the browser line with a per-model tool_instructions override|occurrence=1 agentHostPromptRegistry.… agentHostPromptRegistry.test|title=AgentHostPromptRegistry universal tool instructions wiring is a no-op when the session exposes no matching tools|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostPromptRegistry.test|title=AgentHostPromptRegistry universal tool instructions wiring is a no-op when the session exposes no matching tools|occurrence=1 agentHostPromptRegistry.… agentHostPromptRegistry.test|title=AgentHostPromptRegistry universal tool instructions wiring layers the browser tool_instructions onto the default config when browser tools are present|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostPromptRegistry.test|title=AgentHostPromptRegistry universal tool instructions wiring layers the browser tool_instructions onto the default config when browser tools are present|occurrence=1 agentHostPromptRegistry.… agentHostPromptRegistry.test|title=AgentHostPromptRegistry universal tool instructions wiring leaves a per-model tool_instructions override untouched when no browser tools are present|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostPromptRegistry.test|title=AgentHostPromptRegistry universal tool instructions wiring leaves a per-model tool_instructions override untouched when no browser tools are present|occurrence=1 agentHostPromptRegistry.… repoless wiring composes with per-model customize content for a workspace-less chat|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostPromptRegistry.test|title=AgentHostPromptRegistry workspace-less scratch/repoless wiring composes with per-model customize content for a workspace-less chat|occurrence=1 repoless wiring composes… repoless wiring does not append scratch instructions to a full replace prompt|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostPromptRegistry.test|title=AgentHostPromptRegistry workspace-less scratch/repoless wiring does not append scratch instructions to a full replace prompt|occurrence=1 repoless wiring does not… copilotAgent.test|title=CopilotAgent contextSize to contextTier mapping drops a numeric context size the model does not offer|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotAgent.test|title=CopilotAgent contextSize to contextTier mapping drops a numeric context size the model does not offer|occurrence=1 copilotAgent.test|title=… 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 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/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 copilotAgent.test|title=… copilotAgent.test|title=CopilotAgent contextSize to contextTier mapping maps the default numeric context size to default|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotAgent.test|title=CopilotAgent contextSize to contextTier mapping maps the default numeric context size to default|occurrence=1 copilotAgent.test|title=… copilotAgent.test|title=CopilotAgent contextSize to contextTier mapping maps the largest numeric context size to long_context|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotAgent.test|title=CopilotAgent contextSize to contextTier mapping maps the largest numeric context size to long_context|occurrence=1 copilotAgent.test|title=… copilotAgent.test|title=CopilotAgent contextSize to contextTier mapping passes through a legacy resolved tier string under the deprecated contextTier key|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotAgent.test|title=CopilotAgent contextSize to contextTier mapping passes through a legacy resolved tier string under the deprecated contextTier key|occurrence=1 copilotAgent.test|title=… 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 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/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 copilotAgent.test|title=… Focused concept · promptRegistry.ts ×1 · 1 introduced LOC promptRegistry.ts ×1
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.
Introduced tests
Every collected test enters the hierarchy at exactly one concept.
No tests are introduced at this concept. Its intent tests are introduced by other concepts.
Introduced code
Every collected source range enters the hierarchy at exactly one concept.
1 file ranked by introduced lines: 1 introduced LOC across 1 ranges.
Expand a file to inspect source; the > gutter marks introduced lines.
src/vs/platform/agentHost/node/copilot/prompts/promptRegistry.ts 1 introduced LOC · 1 range
Open complete file
129
}
130
}
132
if ( model . id . startsWith ( prefix )) {
133
return ctor ;