MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / buildSystemPrompt

Function buildSystemPrompt

src/prompts/system.ts:278–290  ·  view source on GitHub ↗
(cwd: string, options: SystemPromptOptions = {})

Source from the content-addressed store, hash-verified

276}
277
278export function buildSystemPrompt(cwd: string, options: SystemPromptOptions = {}): string {
279 const memorySection = options.memoryFiles ? renderMemorySection(options.memoryFiles) : ""
280 const skillSection = options.skills ? renderSkillCatalog(options.skills) : ""
281 return [
282 roleDefinition,
283 toolGuide,
284 getSystemInfoSection(cwd),
285 memorySection,
286 skillSection,
287 ]
288 .filter(Boolean)
289 .join("\n\n")
290}

Callers 1

constructorMethod · 0.85

Calls 3

renderMemorySectionFunction · 0.85
renderSkillCatalogFunction · 0.85
getSystemInfoSectionFunction · 0.85

Tested by

no test coverage detected