MCPcopy
hub / github.com/claude-code-best/claude-code / buildPrompt

Function buildPrompt

src/utils/__tests__/systemPrompt.test.ts:6–15  ·  view source on GitHub ↗
(overrides: Record<string, unknown> = {})

Source from the content-addressed store, hash-verified

4const defaultPrompt = ['You are a helpful assistant.', 'Follow instructions.']
5
6function buildPrompt(overrides: Record<string, unknown> = {}) {
7 return buildEffectiveSystemPrompt({
8 mainThreadAgentDefinition: undefined,
9 toolUseContext: { options: {} as any },
10 customSystemPrompt: undefined,
11 defaultSystemPrompt: defaultPrompt,
12 appendSystemPrompt: undefined,
13 ...overrides,
14 })
15}
16
17describe('buildEffectiveSystemPrompt', () => {
18 test('returns default system prompt when no overrides', () => {

Callers 1

Calls 1

Tested by

no test coverage detected