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

Function buildAwaySummaryPrompt

src/services/awaySummary.ts:18–23  ·  view source on GitHub ↗
(memory: string | null)

Source from the content-addressed store, hash-verified

16const RECENT_MESSAGE_WINDOW = 30
17
18function buildAwaySummaryPrompt(memory: string | null): string {
19 const memoryBlock = memory
20 ? `Session memory (broader context):\n${memory}\n\n`
21 : ''
22 return `${memoryBlock}The user stepped away and is coming back. Write exactly 1-3 short sentences. Start by stating the high-level task — what they are building or debugging, not implementation details. Next: the concrete next step. Skip status reports and commit recaps.`
23}
24
25/**
26 * Generates a short session recap for the "while you were away" card.

Callers 1

generateAwaySummaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected