From c9009399d63e6e02265ec9edb69c4eb82a068bc5 Mon Sep 17 00:00:00 2001 From: Markus Fritsche Date: Sun, 17 May 2026 09:18:15 +0000 Subject: [PATCH] config: example block for cfg.memory.auto_summarize_on_quit (#102) Documents the new opt-in keys (auto_summarize_on_quit, min_turns_for_summary, summary_model) inline with the existing Phase 4 memory block. Notes that the older summarizer_model key is still honored for back-compat. Config-only commit; no behavior change. Co-Authored-By: Claude Opus 4.7 (1M context) --- config.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/config.lua b/config.lua index 2a0d587..fa1d7a1 100644 --- a/config.lua +++ b/config.lua @@ -210,6 +210,18 @@ return { -- -- speed; "deep" or "cloud" for better extraction quality -- -- (cloud may have variable cost per session). -- summarizer_model = "fast", + -- + -- -- #102: auto-summarize the session into memory.jsonl on :q. + -- -- When true, shutdown_session runs the same distill flow as + -- -- `:memory summarize`, non-interactively, and auto-adds the + -- -- parsed candidates. Silent no-op for trivial sessions (turn + -- -- count < min_turns_for_summary, default 5). pcall'd so a + -- -- broker failure never blocks :q. + -- auto_summarize_on_quit = true, + -- min_turns_for_summary = 5, + -- summary_model = "fast", -- new alias; summarizer_model + -- -- above is still honored for + -- -- back-compat. -- }, -- Phase 5 (docs/PHASE5.md): multi-model routing + cloud fallback +