SleepCycle: offline-consolidating memory for long-conversation AI
A memory system for AI that organizes long conversations to lower costs and speed up responses.
A drop-in memory layer for chat and agent products that replaces replaying full conversation history with a compact, topic-organized per-user state, with heavy consolidation done offline between sessions. Per-turn token and API costs drop by an order of magnitude or more while long-range recall actually improves.
Concept
A memory layer for products whose conversations run long — companion chat, support agents, personal assistants. Instead of appending every past turn to the prompt, the layer maintains one compact, topic-organized state per user: a lightweight "sensory" stage compresses and topic-groups each incoming turn and discards irrelevant content; a topic-aware short-term memory holds the structured summary that goes into the live prompt; and a "sleep-time" consolidation job runs offline between sessions to merge and re-distill long-term memory off the critical path. Online turns therefore prompt against a small structured state rather than an ever-growing transcript, and heavy consolidation never blocks a live conversation. It works with any backbone through the API (demonstrated on GPT and Qwen) with no fine-tuning; for agentic workloads, an optional RL-trained state-updater rewrites the compact state each turn so an agent runs at constant memory across arbitrarily long task sequences.
Why now
[3] shows the staged design is simultaneously cheaper and more accurate: on LongMemEval and LoCoMo with GPT and Qwen backbones, QA accuracy improves by up to 7.7% / 29.3% while total token usage drops by up to 38x / 20.9x and API calls by up to 30x / 55.5x; because consolidation is decoupled from inference, pure online test-time costs fall by up to 106x / 117x in tokens and 159x / 310x in API calls. [1] shows the same principle holds for agents that must act, not only recall: a 7B model trained to keep one compact shared state per turn beats a full-context Qwen2.5-14B-Instruct agent by 3.5x in performance with 3.7x less memory on a 16-objective multi-hop QA task, and generalizes beyond its training horizon. Long-conversation products are scaling now and their context costs grow unboundedly with user history; compact consolidated memory is now demonstrated to be both the cheaper and the more accurate option.
Written by GLM · 27 Nov 2026
AI assessment
An exceptionally strong, evidence-backed proposal that solves a critical cost and performance bottleneck for high-scale AI chat products via a clever offline-consolidation architecture.
- Evidence strength 5/5
- The idea is strongly supported by two distinct papers: one demonstrating a staged memory architecture for recall (LightMem) and another showing RL-trained state updates for agentic tasks (MEM1), both providing concrete token-reduction and accuracy metrics.
- Market pull 5/5
- High-volume conversational AI platforms face a direct, linear cost increase as conversations grow, making a drop-in cost-reduction layer with improved recall highly attractive to the named beneficiaries.
- Novelty & moat 3/5
- While similar to the 'Agentic Long-Term Memory Engine' and 'MemTune', this idea specifically differentiates itself through the 'sleep-time' offline consolidation mechanism and the staged sensory/short-term/long-term architecture.
- Feasibility 5/5
- The core mechanism relies on prompt engineering and offline batch processing (no fine-tuning required for the basic version), making a prototype highly achievable for a small team.
- Wedge clarity 5/5
- The 'drop-in memory layer' for long-conversation products is a sharp, well-defined entry point that solves a specific pain point (token cost/context bloat).
- Simplicity / focus 5/5
- The product is focused on a single function—memory consolidation—avoiding the 'platform' trap by acting as a middleware layer.
Scored by Gemma 4 · 27 Nov 2026. Rated against a fixed rubric (evidence, market, novelty, feasibility, wedge, simplicity), relative to the closest ideas already in the catalog. A prior estimate to compare ideas before real-world signal arrives.
Act on this idea
Ideas only matter if someone runs with them. Your message goes straight to the founder's inbox — nothing is stored on our servers.
Who benefits
- Character.AIcompany
Companion chats run hundreds of turns per user and full-history replay is its dominant inference cost; a consolidated topic-structured state cuts tokens up to 38x while improving long-range recall of user details, and LongMemEval/LoCoMo are precisely long-conversation QA benchmarks.
- Replikacompany
Its product depends on remembering users across months of emotionally significant detail; offline sleep-time consolidation keeps personalization high while bounding per-turn prompt cost.
- Intercomcompany
Fin resolves support conversations using accumulated history; up to 30x fewer API calls and 38x fewer tokens per turn directly improve per-resolution margins.
- Salesforcecompany
Agentforce agents operate across long customer interactions and need memory that does not grow unboundedly; sleep-time consolidation fits batch, off-peak processing between customer sessions.
Research it builds on
- MEM1: Learning to Synergize Memory and Reasoning for Efficient Long-Horizon AgentsZhou, Zijian, Ao Qu, Zhaoxuan Wu et al. · 2026 · 304 citationsAll ideas from this paper →
- LightMem: Lightweight and Efficient Memory-Augmented GenerationFang, Jizhan, Xinle Deng, Haoming Xu et al. · 2026 · 281 citationsAll ideas from this paper →