26
* to keep the agent-host self-description that the default message applies.
27
*/
28
>
function opus48SectionOverrides(): Partial<Record<SystemMessageSection, SectionOverride>> {
anthropicPrompt.ts
29
>
return {
30
>
identity: {
31
>
action: 'replace',
32
>
content: COPILOT_AGENT_HOST_IDENTITY,
33
>
},
34
>
tone: {
35
>
action: 'append',
36
>
// Leading newline so the appended text starts on its own line rather
37
>
// than running on from the SDK foundation tone section's last sentence.
38
>
content: '\nProvide concise, focused responses. Skip non-essential context, and keep examples minimal. Use a direct style and use emojis sparingly.',
39
>
},
40
>
guidelines: {
41
>
action: 'append',
42
>
content: [
43
>
'Do not spawn a subagent for work you can complete directly in a single response (e.g. refactoring a function you can already see).',
44
>
'Spawn multiple subagents in the same turn when fanning out across items or reading multiple files.',
45
>
].join('\n'),
46
>
},
47
>
};
48
>
}
49
50
/** Whether `model` is Claude Opus 4.8 — matches the SDK dashed id and the CAPI dotted id. */