MCPcopy Create free account
hub / github.com/tiann/hapi / resolveInstructions

Function resolveInstructions

cli/src/codex/utils/appServerConfig.ts:72–84  ·  view source on GitHub ↗
(args: {
    baseInstructions?: string;
    developerInstructions?: string;
})

Source from the content-addressed store, hash-verified

70}
71
72function resolveInstructions(args: {
73 baseInstructions?: string;
74 developerInstructions?: string;
75}): { baseInstructions: string; developerInstructions: string } {
76 const baseInstructions = args.baseInstructions ?? codexSystemPrompt;
77 const developerInstructions = args.developerInstructions
78 ? `${baseInstructions}\n\n${args.developerInstructions}`
79 : baseInstructions;
80 return {
81 baseInstructions,
82 developerInstructions
83 };
84}
85
86function appendCollaborationInstructions(developerInstructions: string): string {
87 return `${developerInstructions}\n\n${codexCollaborationSpawnAgentInstructions}`;

Callers 2

buildThreadStartParamsFunction · 0.85
buildTurnStartParamsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected