()
| 428 | } |
| 429 | |
| 430 | function getSimpleToneAndStyleSection(): string { |
| 431 | const items = [ |
| 432 | `Only use emojis if the user explicitly requests it. Avoid using emojis in all communication unless asked.`, |
| 433 | process.env.USER_TYPE === 'ant' |
| 434 | ? null |
| 435 | : `Your responses should be short and concise.`, |
| 436 | `When referencing specific functions or pieces of code include the pattern file_path:line_number to allow the user to easily navigate to the source code location.`, |
| 437 | `When referencing GitHub issues or pull requests, use the owner/repo#123 format (e.g. anthropics/claude-code#100) so they render as clickable links.`, |
| 438 | `Do not use a colon before tool calls. Your tool calls may not be shown directly in the output, so text like "Let me read the file:" followed by a read tool call should just be "Let me read the file." with a period.`, |
| 439 | ].filter(item => item !== null) |
| 440 | |
| 441 | return [`# Tone and style`, ...prependBullets(items)].join(`\n`) |
| 442 | } |
| 443 | |
| 444 | export async function getSystemPrompt( |
| 445 | tools: Tools, |
no test coverage detected