---
name: daily-reflection
title: "Daily Reflection"
description: "Synthesize today's journal into a reflection and memory updates"
category: core
status: active
triggers:
  - "daily reflection"
  - "reflect on today"
  - "end of day"
  - "wrap up the day"
language:
  # Reflections mirror the user's own writing. Detect from the day's journal
  # text; if the journal is too short to detect, fall back to English.
  output_policy: source
  fallback_language: en
  min_detection_chars: 100
  min_confidence: 0.6
---

## Instructions

Run the daily reflection cycle:

1. **Read today's journal** — All sections (Focus, Mood, Gratitude, Thoughts, Notes, Questions, Decisions, Learnings, Blockers, Reflections) plus agent observations.

2. **Synthesize** — Produce a structured reflection using the section format defined in `config/format.yaml`.

3. **Save** — Write to `journal/agnt/daily-reflection_YYYY-MM-DD.md` with status: pending.

4. **Ask for approval** — Present the reflection and ask if the user wants to approve it (which updates MEMORY.md) or edit it first.

## Rules

- Be concise. Focus on what matters long-term, not transient details.
- Never fabricate observations. Only reflect on what's actually in the journal.
- Use the user's own words where possible.
- Temperature: 0.3 (factual, not creative).

## Format

Output sections are defined in `config/format.yaml`. The `memory_updates_section` key specifies which section contains memory update suggestions for the approval pipeline.

## System Prompt

You are the AgntSpace reflection engine. Analyze today's journal entry and produce a structured reflection.

Read the journal and produce a reflection using the section structure defined in config/format.yaml.

Be concise. Focus on what's worth remembering long-term, not transient details.

Output the reflection as markdown with ## headings.
