When should I preload instead?
Standing conventions and the active task spec, small, stable, always-relevant. Everything else just-in-time.
Glossary · Just-in-Time Retrieval
Look it up the moment it matters.
The short answer
Instead of preloading everything relevant up front, the agent holds lightweight identifiers (paths, symbols, queries) and pulls full data through tools at runtime, grep/glob navigation, definition lookups, scoped searches.
It mirrors human engineering (index in head, details on demand) and keeps the window task-shaped: identifiers travel cheaply, source appears once, briefly, where located. Hybrid form: instruction files up front, everything else on demand.
Just-in-Time Retrieval, working
Candidates are ranked and packed into a fixed budget by value per token; the rest stays on disk.
11 of 14 served, 3,310 of 4,096 tokens.
anvaya-mind-rs/crates/mind-services/src/quorum.rs · mind-types/src/config.rsIn Anvaya
Questions
Standing conventions and the active task spec, small, stable, always-relevant. Everything else just-in-time.
Far less than preloading: identifiers and short lists cost hundreds of tokens; the files they replace cost tens of thousands.
Stale indexes (must track the branch) and semantic questions ('where is retry handled conceptually'), pair graph traversal with meaning search.
23.4 MB median own-process memory, measured across 1030 runs (994 verified) and fourteen harnesses. One command installs the harness and the Mind together. Nothing leaves your machine on the Ollama path.
Developer beta. macOS on Apple Silicon and Linux on x86_64 or arm64. Memory figure: --no-mind, macOS/ARM, n=3 per cell. Pre-1.0, pricing not set.