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

Function appendSystemContext

source code/utils/api.ts:439–449  ·  view source on GitHub ↗
(
  systemPrompt: SystemPrompt,
  context: { [k: string]: string },
)

Source from the content-addressed store, hash-verified

437}
438
439export function appendSystemContext(
440 systemPrompt: SystemPrompt,
441 context: { [k: string]: string },
442): string[] {
443 return [
444 ...systemPrompt,
445 Object.entries(context)
446 .map(([key, value]) => `${key}: ${value}`)
447 .join('\n'),
448 ].filter(Boolean)
449}
450
451export function prependUserContext(
452 messages: Message[],

Callers 1

queryLoopFunction · 0.85

Calls 1

entriesMethod · 0.80

Tested by

no test coverage detected