anthropicPrompt.ts ×2
Frontier kind: Code frontier
unlabeled · c_3bb285799941
8 tests · 7279 LOC · 41 files · introduces 0 tests · 5 LOC · 1 file
Introduces — evidence that enters the hierarchy at this concept
Code
2 ranges 5 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 model capability overrides (family alias) an aliased preview model routes to the family contributor|occurrence=1 · 0 introduced LOC agentHostPromptRegistry.… agentHostPromptRegistry.test|title=AgentHostPromptRegistry Opus contributor (registered via allPrompts) applies customize overrides only when enabled|occurrence=1 · 0 introduced LOC agentHostPromptRegistry.… anthropicPrompt.ts ×2 · 23 introduced LOC anthropicPrompt.ts ×2 promptRegistry.ts ×1 · 2 introduced LOC promptRegistry.ts ×1 promptRegistry.ts ×2 · 2 introduced LOC promptRegistry.ts ×2 systemMessage.ts ×1 · 1 introduced LOC systemMessage.ts ×1 promptRegistry.ts ×3 · 4 introduced LOC promptRegistry.ts ×3 promptRegistry.ts ×1 · 2 introduced LOC promptRegistry.ts ×1 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 toolInstructions.test|title=toolInstructions toolSearchInstructionLines inactive tool search never contributes the tool-search line|occurrence=1 · 0 introduced LOC toolInstructions.test|ti… configuration.ts ×12 · 203 introduced LOC configuration.ts ×12 sessionProtocol.ts ×5 · 364 introduced LOC sessionProtocol.ts ×5 toolInstructions.ts ×1 · 2 introduced LOC toolInstructions.ts ×1 toolInstructions.ts ×1 · 2 introduced LOC toolInstructions.ts ×1 toolInstructions.ts ×1 · 1 introduced LOC toolInstructions.ts ×1 toolInstructions.ts ×1 · 3 introduced LOC toolInstructions.ts ×1 toolInstructions.ts ×1 · 3 introduced LOC toolInstructions.ts ×1 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 arrays.test|title=Arrays coalesce|occurrence=1 · 0 introduced LOC arrays.test|title=Arrays… arrays.ts ×1 · 2 introduced LOC arrays.ts ×1 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 arrays.test|title=Arrays coalesce|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/arrays.test|title=Arrays coalesce|occurrence=1 arrays.test|title=Arrays… 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 Opus contributor (registered via allPrompts) applies customize overrides only when enabled|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostPromptRegistry.test|title=AgentHostPromptRegistry Opus contributor (registered via allPrompts) applies customize overrides only when enabled|occurrence=1 agentHostPromptRegistry.… agentHostPromptRegistry.test|title=AgentHostPromptRegistry model capability overrides (family alias) an aliased preview model routes to the family contributor|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostPromptRegistry.test|title=AgentHostPromptRegistry model capability overrides (family alias) an aliased preview model routes to the family contributor|occurrence=1 agentHostPromptRegistry.… 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=… toolInstructions.test|title=toolInstructions resolveToolInstructionsOverride returns undefined (keep existing) when no line applies|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/toolInstructions.test|title=toolInstructions resolveToolInstructionsOverride returns undefined (keep existing) when no line applies|occurrence=1 toolInstructions.test|ti… toolInstructions.test|title=toolInstructions toolSearchInstructionLines inactive tool search never contributes the tool-search line|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/toolInstructions.test|title=toolInstructions toolSearchInstructionLines inactive tool search never contributes the tool-search line|occurrence=1 toolInstructions.test|ti… toolInstructions.test|title=toolInstructions universalToolInstructions joins applicable lines in order and drops gated-out ones|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/toolInstructions.test|title=toolInstructions universalToolInstructions joins applicable lines in order and drops gated-out ones|occurrence=1 toolInstructions.test|ti… toolInstructions.test|title=toolInstructions universalToolInstructions returns undefined when no line applies (including the default registry when its lines do not apply)|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/toolInstructions.test|title=toolInstructions universalToolInstructions returns undefined when no line applies (including the default registry when its lines do not apply)|occurrence=1 toolInstructions.test|ti… Focused concept · anthropicPrompt.ts ×2 · 5 introduced LOC anthropicPrompt.ts ×2
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: 5 introduced LOC across 2 ranges.
Expand a file to inspect source; the > gutter marks introduced lines.
src/vs/platform/agentHost/node/copilot/prompts/anthropicPrompt.ts 5 introduced LOC · 2 ranges
Open complete file
49
50
/** Whether `model` is Claude Opus 4.8 — matches the SDK dashed id and the CAPI dotted id. */
52
>
return model . id . startsWith ( 'claude-opus-4-8' ) || model . id . startsWith ( 'claude-opus-4.8' );
53
>
}
54
55
/**
62
63
static matchesModel ( model : ModelSelection ) : boolean {
65
>
}
66
67
resolveSectionOverrides ( _model : ModelSelection , context : IAgentHostPromptContext ) : Partial < Record < SystemMessageSection , SectionOverride >> | undefined {