MCPcopy Create free account
hub / github.com/claude-code-internals/claude-code-runnable / getSystemPrompt

Function getSystemPrompt

src/localRecoveryCli.ts:100–108  ·  view source on GitHub ↗
(
  systemPrompt: string | undefined,
  appendSystemPrompt: string | undefined,
)

Source from the content-addressed store, hash-verified

98}
99
100function getSystemPrompt(
101 systemPrompt: string | undefined,
102 appendSystemPrompt: string | undefined,
103): string | undefined {
104 if (systemPrompt && appendSystemPrompt) {
105 return `${systemPrompt}\n\n${appendSystemPrompt}`
106 }
107 return systemPrompt ?? appendSystemPrompt
108}
109
110async function run(): Promise<void> {
111 const parsed = parseArgs(process.argv.slice(2))

Callers 2

runFunction · 0.70
runInteractiveFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected