MCPcopy
hub / github.com/codeaashu/claude-code / getCLISyspromptPrefix

Function getCLISyspromptPrefix

src/constants/system.ts:30–46  ·  view source on GitHub ↗
(options?: {
  isNonInteractive: boolean
  hasAppendSystemPrompt: boolean
})

Source from the content-addressed store, hash-verified

28)
29
30export function getCLISyspromptPrefix(options?: {
31 isNonInteractive: boolean
32 hasAppendSystemPrompt: boolean
33}): CLISyspromptPrefix {
34 const apiProvider = getAPIProvider()
35 if (apiProvider === 'vertex') {
36 return DEFAULT_PREFIX
37 }
38
39 if (options?.isNonInteractive) {
40 if (options.hasAppendSystemPrompt) {
41 return AGENT_SDK_CLAUDE_CODE_PRESET_PREFIX
42 }
43 return AGENT_SDK_PREFIX
44 }
45 return DEFAULT_PREFIX
46}
47
48/**
49 * Check if attribution header is enabled.

Callers 2

sideQueryFunction · 0.85
queryModelFunction · 0.85

Calls 1

getAPIProviderFunction · 0.85

Tested by

no test coverage detected