// Pi owns context-file discovery; the bridge only formats the list Pi loaded so // Claude receives the same instructions, in the same order, that Pi applies. type ContextFile = { path: string; content: string }; export function formatProjectContext(contextFiles: ContextFile[]): string | undefined { if (contextFiles.length === 0) return undefined; let prompt = "\n\nProject-specific instructions and guidelines:\n\n"; for (const { path, content } of contextFiles) { prompt += `\n${content}\n\n\n`; } return `${prompt}`; }