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
+13-7Lines changed: 13 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -142,14 +142,16 @@ Analyze local images directly in the conversation:
142
142
* Automatic MIME type detection and size limits.
143
143
* Integrated with the vision-LLM pipeline.
144
144
145
-
## 🧠 Advanced Memory
145
+
## 🧠 Advanced Memory Architecture
146
146
147
-
Sofia has a multi-layered memory architecture:
147
+
Sofia uses a highly modular, multi-layered SQLite-backed memory architecture, decomposed into domain-specific components for maximum scalability and targeted retrieval:
148
148
149
-
***Semantic Memory (Knowledge Graph):** Structured facts, entities, and relationships stored as nodes and edges. The `knowledge_graph` tool allows the agent to add, search, and delete knowledge.
150
-
***Memory Consolidation:**`MemoryConsolidator` merges duplicate nodes and resolves conflicting relationships — keeping the knowledge graph clean automatically.
151
-
***Strategic Forgetting:**`MemoryPruner` calculates a survival score based on access frequency and time since last access. Nodes below a threshold are discarded.
152
-
***Self-Evolving Memory:** All accesses are tracked via `RecordStat`, driving both consolidation and pruning based on actual usage patterns.
149
+
***Sessions Context (`db_sessions.go`):** Manages conversational history, rolling context windows, and channel-specific session isolation.
150
+
***Semantic Knowledge Graph (`db_semantic_*.go`):** Structured facts, entities, and relationships stored as nodes and edges. Includes `MemoryConsolidator` for deduplication and `MemoryPruner` for strategic forgetting based on access usage records (`RecordStat`). Includes the `knowledge_graph` tool.
***Agent Reflections (`db_reflections.go`):** Stores structured post-task evaluations and meta-learning matrices for continuous self-improvement.
153
+
***Observability & State (`db_traces.go`, `db_checkpoints.go`):** Records execution traces (LLM spans, tool usage) for distributed observability, alongside agent loop checkpoints for safe rollback capabilities.
154
+
***Autonomous Goals (`db_goals.go`):** Dedicated persistence layer for long-term objectives across sessions.
153
155
154
156
## 🔄 Self-Reflection & Self-Improvement
155
157
@@ -167,7 +169,11 @@ Sofia evaluates herself after every task and improves continuously:
167
169
168
170
Sofia can act independently without user initiation:
169
171
170
-
***Long-Term Goals:** The `manage_goals` tool creates and tracks goals that persist across sessions. Active goals are automatically injected into the agent's context.
172
+
***Long-Term Goals System:** Sofia autonomously pursues complex, multi-step objectives across sessions using a robust Goal Engine via the `manage_goals` tool.
173
+
***Phased Lifecycle:** Goals transition through structured phases: `Specify` (defining parameters), `Plan` (breaking down tasks), `Implement` (executing work), and `Completed`.
174
+
***Rigorous Specifications:** Active goals retain a structural `GoalSpec`, outlining strict requirements, success criteria, context, and operational constraints.
175
+
***Structured Results:** Upon completion, a `GoalResult` captures the outcome summary, produced artifacts, actionable next steps, unmet criteria, and evaluation evidence.
176
+
***Automatic Injection:** Active, high-priority goals are dynamically inserted into the agent's runtime context for immediate focus.
171
177
***Context-Aware Triggers:** The `manage_triggers` tool creates conditional actions that trigger based on user conversational context.
172
178
***Proactive Suggestions:**`AutonomyService` periodically analyzes recent activity and generates unsolicited suggestions when deemed valuable.
173
179
***Autonomous Research:** Identifies knowledge gaps and independently initiates research on relevant topics.
0 commit comments