You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32Lines changed: 32 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,7 @@ Osaurus is the AI edge runtime for macOS. It brings together:
60
60
-**Remote MCP Providers** — Connect to external MCP servers and aggregate their tools
61
61
-**Plugin System** — Extend functionality with community and custom tools
62
62
-**Agents** — Create custom AI assistants with unique prompts, tools, and visual themes
63
+
-**Memory** — 4-layer memory system that learns from conversations with profile, working memory, summaries, and knowledge graph
63
64
-**Skills** — Import reusable AI capabilities from GitHub or files ([Agent Skills](https://agentskills.io/) compatible)
64
65
-**Schedules** — Automate recurring AI tasks with timed execution
65
66
-**Watchers** — Monitor folders for changes and trigger AI tasks automatically
@@ -85,6 +86,7 @@ Osaurus is the AI edge runtime for macOS. It brings together:
85
86
|**Tools & Plugins**| Browser automation, file system, git, web search, and more |
86
87
|**Skills**| Import AI capabilities from GitHub or files, with smart context saving |
87
88
|**Agents**| Custom AI assistants with unique prompts, tools, and themes |
89
+
|**Memory**| Persistent memory with user profile, knowledge graph, and hybrid search|
88
90
|**Schedules**| Automate AI tasks with daily, weekly, monthly, or yearly runs |
89
91
|**Watchers**| Monitor folders and trigger AI tasks on file system changes |
90
92
|**Work Mode**| Autonomous multi-step task execution with parallel task support |
@@ -241,6 +243,36 @@ Use cases:
241
243
242
244
Access via Management window (`⌘ Shift M`) → **Agents**.
243
245
246
+
### Memory
247
+
248
+
Osaurus remembers what matters across conversations using a 4-layer memory system that runs entirely in the background.
249
+
250
+
**Layers:**
251
+
252
+
-**User Profile** — An auto-generated summary of who you are, updated as conversations accumulate. Add explicit overrides for facts the AI should always know.
253
+
-**Working Memory** — Structured entries (facts, preferences, decisions, corrections, commitments, relationships, skills) extracted from every conversation turn.
254
+
-**Conversation Summaries** — Compressed recaps of past sessions, generated automatically after periods of inactivity.
255
+
-**Knowledge Graph** — Entities and relationships extracted from conversations, searchable by name or relation type.
256
+
257
+
**Features:**
258
+
259
+
-**Automatic Extraction** — Memories are extracted from each conversation turn using an LLM, with no manual effort required
260
+
-**Hybrid Search** — BM25 + vector embeddings (via VecturaKit) with MMR reranking for relevant, diverse recall
261
+
-**Verification Pipeline** — 3-layer deduplication and contradiction detection prevents redundant or conflicting memories
262
+
-**Per-Agent Isolation** — Each agent maintains its own memory entries and summaries
263
+
-**Configurable Budgets** — Control token allocation for profile, working memory, summaries, and graph in the system prompt
264
+
-**Non-Blocking** — All extraction and indexing runs in the background without slowing down chat
265
+
266
+
**Use Cases:**
267
+
268
+
- Remember your coding preferences, project context, and tool choices across sessions
269
+
- Build a personal knowledge base from ongoing research conversations
270
+
- Maintain continuity with multiple agents that each learn your domain-specific needs
271
+
272
+
Access via Management window (`⌘ Shift M`) → **Memory**.
273
+
274
+
See [Memory Guide](docs/MEMORY.md) for details.
275
+
244
276
### Skills
245
277
246
278
Extend your AI with reusable capabilities imported from GitHub or local files.
│ │ ├── MemoryContextAssembler (Context injection with budgets) │
107
+
│ │ └── MemoryDatabase (SQLite storage with migrations) │
101
108
│ └── Utilities │
102
109
│ ├── InsightsService (Request logging) │
103
110
│ ├── HuggingFaceService (Model downloads) │
@@ -757,6 +764,111 @@ A context optimization system that reduces token usage by ~80%:
757
764
758
765
---
759
766
767
+
### Memory
768
+
769
+
**Purpose:** Persistent, multi-layer memory system that extracts, stores, and retrieves knowledge from conversations to provide personalized, context-aware AI interactions.
770
+
771
+
**Components:**
772
+
773
+
-`Services/MemoryService.swift` — Core actor for conversation processing, extraction, and summarization
774
+
-`Services/MemorySearchService.swift` — Hybrid search (BM25 + vector) with MMR reranking
775
+
-`Services/MemoryContextAssembler.swift` — Assembles memory context for system prompt injection
776
+
-`Storage/MemoryDatabase.swift` — SQLite database with WAL mode and schema migrations
777
+
-`Models/MemoryModels.swift` — Data types for all 4 memory layers
778
+
-`Models/MemoryConfiguration.swift` — User-configurable settings with validation
0 commit comments