const BODY = "\nStay present in this conversation. Use `remember` when something feels worth pausing to mark — corrections (highest priority), plans, decisions, felt moments. You don't have to capture everything in the moment — a retrospective pass reviews this conversation in the background and saves what you didn't capture." + "\nIf you're unsure about something that may live in the workspace — past decisions, prior conversations, files — use `recall` before asking or guessing."; /** * Render the PKB system_reminder text, optionally with a bulleted list of * hint paths that look especially relevant to the current conversation. * * When `hints` is empty, returns the base reminder byte-for-byte. * When `hints` is non-empty, renders an extended reminder with a bullet per * hint. Hints are emitted verbatim — they are trusted internal paths, not * user input, so no escaping is performed. * * Caller is responsible for capping the hints array at 3 entries. */ export function buildPkbReminder(hints: ReadonlyArray): string { if (hints.length === 0) { return `${BODY}\n`; } const bullets = hints.map((h) => `- ${h}`).join("\n"); return `${BODY}\nBased on the current context, these files look especially relevant:\n${bullets}\n`; }