Overview
Architecture
Core architecture of RAGit CLI
Runtime
- TypeScript / Node.js CLI
- zvec canonical store under
.ragit/store/ - Memory control plane under
.ragit/memory/ - Searchable long-term memory corpus under
docs/memory/ - Embedding provider facade with
local-placeholder,openai, andollama - Git-tracked manifests under
.ragit/manifest/
Retrieval
- Chunk embeddings + keyword scoring
- Weighted hybrid ranking (
alpha) - Point-in-time query with snapshot SHA
Binding model
- Every snapshot binds to commit SHA
- Incremental ingest supports
--since <sha> - Hooks (
post-commit,post-merge) keep index fresh memory wrapupdates working state without changing snapshot contractsmemory promotewrites tracked docs intodocs/memory/**and can ingest them against the currentHEAD
If you are reading this as a user rather than an implementer, the conceptual explanation lives in Memory Model Guide.