#11457: feat: Add hybrid memory mode with auto-created daily log templates
stale
This PR adds an optional "hybrid" memory mode that automatically creates daily log templates while keeping manual control over content.
## Features
- Auto-create daily log templates (empty structure with custom template)
- Daily review reminders at configurable time
- Session-end memory prompts after meaningful conversations
- Fully backwards compatible (opt-in via memory.mode: "hybrid")
## Configuration
```json5
{
"memory": {
"mode": "hybrid",
"hybrid": {
"enabled": true,
"dailyLog": {
"enabled": true,
"template": "# {{date}} - Daily Log\n\n## Notes\n\n## Key Learnings\n",
"createDaysAhead": 1,
"createAt": "22:00"
},
"dailyReview": {
"enabled": true,
"at": "22:00"
},
"sessionEnd": {
"prompt": true,
"minDurationMinutes": 5
}
}
}
}
```
## Files Added
- src/memory/hybrid/daily-memory.ts - Daily log template management
- src/memory/hybrid/daily-review.ts - Daily review reminder system
- src/memory/hybrid/session-end-prompt.ts - Session-end prompting logic
- src/memory/hybrid/index.ts - Public API exports
## Files Modified
- src/config/types.memory.ts - Added MemoryMode and MemoryHybridConfig types
- src/config/zod-schema.ts - Added Zod validation for hybrid config
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR introduces an opt-in `memory.mode: "hybrid"` configuration plus a `memory.hybrid` section, and adds a new `src/memory/hybrid/*` module set for daily log template creation, daily review reminders, and session-end prompting.
The config surface is wired into `src/config/types.memory.ts` and validated via Zod in `src/config/zod-schema.ts`, while the new hybrid helpers live under `src/memory/hybrid/` and are re-exported via `src/memory/hybrid/index.ts`.
<h3>Confidence Score: 2/5</h3>
- Not safe to merge until the hybrid reminder/prompt paths are fixed to use valid agent workspace resolution and lint passes.
- There is a definite runtime exception in the new hybrid code path due to calling `resolveAgentWorkspaceDir` without the required `agentId`, and there is at least one guaranteed unused variable that can fail CI lint/typecheck. These are straightforward to fix but must be resolved before merging.
- src/memory/hybrid/daily-review.ts, src/memory/hybrid/session-end-prompt.ts
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
**Context used:**
- Context from `dashboard` - AGENTS.md ([source](https://app.greptile.com/review/custom-context?memory=0d0c8278-ef8e-4d6c-ab21-f5527e322f13))
<!-- /greptile_comment -->
Most Similar PRs
#10591: feat(hooks): add session-start-memory bundled hook
by morningstar-daemon · 2026-02-06
76.8%
#14576: Fix/memory loss bugs
by ENCHIGO · 2026-02-12
76.1%
#19341: Mind Memory Fork
by juliopx · 2026-02-17
75.9%
#8713: feat: gateway memory monitor, install linger, docs and failover
by quratus · 2026-02-04
75.8%
#14243: fix: fire session-memory hook on auto-resets + topic-aware memory p...
by TheDude135 · 2026-02-11
75.7%
#10644: feat: add runDuringHeartbeats option for memory flush (AI Assisted)
by tripphillips · 2026-02-06
75.6%
#6060: feat(onboarding): add Memory Optimization step to onboarding wizard
by GodsBoy · 2026-02-01
75.2%
#8795: feat(memory): add Redis-backed long-term memory plugin
by tf-gmail · 2026-02-04
75.1%
#9026: fix(session-memory): sanitize content to prevent binary data in mem...
by Flamrru · 2026-02-04
74.7%
#13775: Lucas/enable corememories
by Itslouisbaby · 2026-02-11
74.4%