PortalAgentic AI Prompt Researchprompts/22_away_summary.md

Away Summary (Session Recap)

Observed in: Claude Code internal architecture Function: buildAwaySummaryPrompt() Model: Small fast model (Haiku)

Purpose

Generates a 1-3 sentence recap when a user returns to a session after stepping away. Displayed in a "while you were away" card in the UI.

System Prompt

The system prompt is dynamically assembled with an optional session memory prefix:

[Session memory (broader context):
{memory content}]

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.

Design Constraints

Input Processing

Error Handling