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

Function appendSystemContext

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

Source from the content-addressed store, hash-verified

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

Callers 1

queryLoopFunction · 0.85

Calls 1

entriesMethod · 0.80

Tested by

no test coverage detected