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
@@ -101,12 +101,95 @@ MiniCode Python is a terminal AI coding assistant implemented in Python, focused
101
101
-**Pipeline Engine**: DAG-based step planning with dependency resolution and retry logic
102
102
-**Capability Registry**: Self-describing tools with domain/scope classification and dependency tracking
103
103
104
-
### Memory System
105
-
-**3-layer physical storage**: USER (cross-project) → PROJECT (shared) → LOCAL (project-specific)
106
-
-**BM25 search** with CJK support and 80+ programming term expansions
107
-
-**Working memory protection** with importance-based eviction
108
-
-**Batch save** with dirty tracking and 5s interval flush
109
-
-**Index structures** for O(1) lookup (ID, tag, category)
104
+
### Memory System — Cybernetic Retrieval Pipeline
105
+
106
+
**The core innovation: treating memory retrieval as a closed-loop control problem.**
107
+
108
+
Traditional agent memory uses static retrieval (fixed top-K BM25 or vector similarity). Our system applies engineering cybernetics to dynamically optimize every stage of the memory lifecycle.
109
+
110
+
#### Theoretical Framework
111
+
112
+
| Theory | Formalization | Implementation |
113
+
|--------|--------------|----------------|
114
+
|**Memory Value Function**|`V(m,t,c) = relevance(m,t) × freshness(m) × utility(m,c)`|`_memory_value()` in `memory_pipeline.py`|
115
+
|**Lyapunov Stability**|`V̇_L = -(kp/m)·e² < 0` for PID control |`ContextPIDController` with anti-windup |
**Design principle**: ONE class, FOUR methods, complete memory lifecycle. DomainClassifier, Reranker, Injector, Curator are internal implementation details — never exposed to callers.
110
193
111
194
## Project Positioning
112
195
@@ -141,11 +224,18 @@ It includes ongoing work in areas such as:
141
224
- Transcript and rendering performance improvements
0 commit comments