MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / buildEffectiveSystemPrompt

Function buildEffectiveSystemPrompt

source code/utils/systemPrompt.ts:43–125  ·  view source on GitHub ↗
({
  mainThreadAgentDefinition,
  toolUseContext,
  customSystemPrompt,
  defaultSystemPrompt,
  appendSystemPrompt,
  overrideSystemPrompt,
}: {
  mainThreadAgentDefinition: AgentDefinition | undefined
  toolUseContext: Pick<ToolUseContext, 'options'>
  customSystemPrompt: string | undefined
  defaultSystemPrompt: string[]
  appendSystemPrompt: string | undefined
  overrideSystemPrompt?: string | null
})

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

resumeAgentBackgroundFunction · 0.85
callFunction · 0.85
analyzeContextUsageFunction · 0.85
getCacheSharingParamsFunction · 0.85
REPLFunction · 0.85

Calls 6

asSystemPromptFunction · 0.85
isEnvTruthyFunction · 0.85
isBuiltInAgentFunction · 0.85
logEventFunction · 0.85

Tested by

no test coverage detected