Vedantic concepts and implementation
Status as of 2026-09-20 Conceptual reference · Current implementation.
Sanskrit terms name system behaviors. The sections below map those terms to storage, retrieval, and background processing.
Vedantic Foundations
Each Sanskrit term names a measurable operation
Memory Architecture
Why we store what we store, how we store it
Memory storage and retrieval
The store holds records and the indexes used to retrieve them. Index structure and scoring determine which records are returned.
Embedding and payload storage
Dense embeddings and payloads use separate structures and sidecars within one Rust store. Search indexes are derived state; snapshot families and the WAL preserve authoritative memory.
chitta-field → sparse codes (64/16K) + cortical posting index
WAL segments → content, metadata, relationships, durable logDirectional relationships
Semantic similarity finds related concepts. But "X caused Y" or "user prefers A over B" needs explicit relationships. Triplets encode directional knowledge.
Theme clustering
No predefined categories. Themes emerge from embedding clusters using HDBSCAN. The system discovers what concepts naturally group together based on your usage.
Confidence decay floor
Memory confidence decreases through exponential decay, but asymptotically approaches a floor (0.1). Old memories fade but never fully disappear.
new_confidence = floor + (current - floor) * 0.995
Decay every 60s during idle. Floor = 0.1.SSL compression
Soul Shorthand Language condenses records before embedding. The documented token reduction is 40-60%; retrieval depends on the encoded content and embedding model.
Retrieval Philosophy
How memories surface at the right moment
Hybrid retrieval
Retrieval combines vector similarity, BM2524 keyword matching, and graph traversal.
Context budget
Claude's ~200K token context is finite. Every surfaced memory consumes space. Retrieval maximizes signal-to-noise, not total recall.
Learning Mechanisms
How the system adapts to you
Correction records
Corrections are captured automatically, stored with boosted confidence, and retrieved as warnings about recorded mistakes.
Embedding model
VakYantra converts text into embedding vectors. The model determines the vector space used in retrieval.
Processing Model
Background operations and lifecycle
Hook capture
Hooks capture session boundaries, prompt submissions, and tool calls.
Background processing
The daemon runs background tasks during idle: confidence decay, theme clustering, memory consolidation. These would interrupt conversation if done synchronously.
Integration Design
How chitta fits into Claude Code
Resident daemon
A persistent daemon (chittad) keeps the chitta-field memory substrate and ONNX model warm in memory. The documented model cold-start cost is approximately 750 ms.
These concepts supply names for memory storage, decay, reinforcement, and retrieval. The implementation and measurements describe their behavior.
Full claim files with cross-references available in the philosophy/ directory.
References
- Stephen Robertson and Hugo Zaragoza. The Probabilistic Relevance Framework: BM25 and Beyond. Foundations and Trends in Information Retrieval 3(4), 333–389 (2009). https://doi.org/10.1561/1500000019
- Donald O. Hebb. The Organization of Behavior: A Neuropsychological Theory. Wiley (1949); Psychology Press reissue (2002). https://www.routledge.com/The-Organization-of-Behavior-A-Neuropsychological-Theory/Hebb/p/book/9780415654531