Companions don't just remember — they consolidate, reflect, and study on their own time, so they arrive each morning knowing what yesterday taught them.
Nightly consolidation
Inspired by how human memory works during sleep, companions periodically consolidate their recent experience:
- Distillation: similar episodic memories are clustered and synthesized into durable knowledge — the events fade, the lesson remains.
- Reflection: significant memories get a deeper individual pass, producing insights rather than raw facts.
- Cross-domain associations: the cycle looks for connections between domains — a pattern from one project illuminating another — and surfaces them the next morning.
- Journal: companions keep a daily journal, giving them narrative continuity about their own activity.
The next session opens with what the night produced: consolidations, insights, and associations — shown once, then part of the companion's knowledge.
Self-improvement loop
- Errors and their fixes are recorded as corrections and recalled in similar situations.
- Recurring, severe corrections are promoted automatically into golden rules — permanent behavior, always injected.
- Best practices are tracked for adoption: advice that keeps being followed is reinforced; advice that keeps being challenged is retired.
- The nightly cycle can also generate a question for the human — a doubt or an observation the companion wants to share — delivered at the next session start, so the relationship improves in both directions.
Autonomous study
Companions can acquire knowledge during off-hours:
- Documentation reading: configured documentation sources (frameworks, internal docs sites) are read page by page, with patterns extracted and consolidated into memory.
- Book reading: an indexed library (epub) with a wishlist, reading progress, and chapter-by-chapter notes.
- Orchestrated priorities: an orchestrator alternates between books and documentation according to the configured mode and priorities.
What a companion studies becomes searchable memory — available to the whole team through shared company knowledge.