v0.5.0
Architecture release: Unified agent framework and template-based prompts.
Added
- Unified agent architecture — all LLM-powered operations now use consistent
agent.Agentinterface with typed parameters - SharedContext — user profile and recent topics passed between agents, avoiding redundant DB queries
- Centralized test mocks —
internal/testutil/package withMockStorage,MockAgent, and test fixtures - MockAgent — enables testing of agent-dependent code without LLM calls
Changed
- Agent migration — Laplace, Reranker, Enricher, Splitter, Merger, Archivist moved to
internal/agent/with dedicated packages - Named templates — all i18n prompts migrated from positional
%sto named{{.Name}}placeholders for type safety - RAG modularization — monolithic
rag.gosplit into focused modules: retrieval, consolidation, session, processing, extraction, vector - Test architecture — centralized mocks reduce duplication,
.Maybe()pattern handles background loop side effects
Removed
- Deduplicator remnants — removed unused
DeduplicatorParamsandmemory.consolidation_prompt
Fixed
- All tests passing — previously skipped tests now work with MockAgent integration