Whole-Repo Recall: index-free code Q&A over a 10M-token monorepo
A tool that lets developers ask questions about a massive codebase without needing to index it first.
A code-intelligence engine that streams an entire repository (up to ~10M tokens) into a high-capacity learned memory in one pass and answers symbol-level, cross-file questions directly — no chunking, embeddings, or vector database to build and maintain. New evidence narrowed the claims: it now pairs the memory with a cheap deterministic symbol/call-graph pass (research shows pure long-context models degrade up to 2x on forward references and gain up to 3x from call-graph hints), and it must benchmark against agentic RAG rather than naive RAG. Its defensible wedge is the 1M–10M token range, where full-context attention models and KV-cache approaches hit memory walls, with cross-file AI code review as a flagship use case.
Concept
A hosted engine (API or IDE plugin backend) built on an ATLAS-style DeepTransformer. On repo load, the full source tree is streamed sequentially — in dependency-topological order where the build graph allows, definitions before uses — into a long-term memory module whose update is optimized over current and past tokens, giving high-capacity, recall-accurate storage of the whole codebase while keeping the memory state bounded (recurrent-style, not quadratic attention). Alongside the raw source, a cheap deterministic structural pass (tree-sitter/LSP-derived symbol table and call graph) is streamed into the same memory — not an embedding index, but an honest concession that learned memory alone under-resolves graph-shaped questions (see limits below). The query head uses sparse attention (DeepSeek-V3.2-style DSA) over the memory readout and recent context, keeping per-query cost near today's chunked pipelines. Developers ask recall-intensive questions that defeat retrieval pipelines: "where is this invariant actually enforced?", "list every caller of this deprecated API", "which files implement this protocol and where do they diverge?" Because there is no chunking step, facts that would be split across embedding chunks (a definition in one file, its use in another) stay co-retrievable. Flagship workflows are whole-repo Q&A, code search, and cross-file AI code review (folded in from the merged Repo-Context Review Engine concept: catching cross-file bugs at a cost close to chunked pipelines). Pricing tiers by repo size: the memory state is fixed, so serving cost scales near-linearly with repo size, not quadratically, and the one-time streaming pass amortizes across unlimited queries.
Why now
ATLAS demonstrates a long-term memory module that beats both Transformers and recent linear-recurrent models on recall-intensive, long-context tasks, sustaining ~80% accuracy at 10M-token context on BABILong — roughly a 700k–1M-line monorepo in a single context. Fixed-state recurrent models (Griffin/RecurrentGemma) proved bounded-state recurrences make long-sequence inference cheap but degrade on exactly the recall tasks code navigation needs; ATLAS's non-online memory update closes that gap. The serving infrastructure for very long contexts is also maturing fast, and each new result strengthens feasibility:
- DeepSeek-V3.2 shows Sparse Attention (DSA) substantially cuts attention complexity while preserving long-context performance, and its 73.1% resolve rate on SWE-Verified confirms real enterprise demand for long-context code agents. DSA is a shipping technique reusable in our query head — and a competitive baseline for repos that fit under ~1M tokens.
- Qwen2.5-1M open-sources an inference framework with sparse attention, chunked prefill, and training-free length extrapolation (4x+); chunked prefill applies directly to streaming a 10M-token repo, and length extrapolation may stretch memory training beyond curated sequence lengths.
- MiniMax-01 (lightning attention) trains at 1M tokens and extrapolates to 4M at affordable cost — evidence that linear-cost sequence mechanisms scale past the million-token mark.
- The Blockwise RingAttention world-model work contributes a progressive 4K→1M context-extension recipe and open 7B models — a proven training path for a memory-augmented backbone.
- InfiniteHiP serves 3M tokens on a single 48GB GPU via KV offload and hierarchical token pruning (18.95x decode speedup at 1M). Its offload and scheduling techniques transfer to our streaming pass — but note the contrast: token pruning is lossy, and exhaustive recall queries ("list every caller") are exactly where pruning risks dropping the rare relevant fact. Lossless compressed memory is our wedge against pruned-KV approaches.
Honest limits, and how the idea adapts
- Agentic RAG is a stronger incumbent than the strawman. A local agentic RAG pipeline over GitHub repositories (query reformulation plus a verification agent) reached MRR@10 of 0.72 vs 0.48 for keyword search and 0.61 for single-stage RAG, precision@5 of 0.76, and human-rated explanation quality of 4.3/5 — at ~3.8s average latency and multi-LLM-call cost per query, on top of index build and refresh. So "RAG is broken" is not supportable. The defensible pitch is: no index to build, refresh, and debug; no per-query retrieval latency or multi-agent LLM spend; and constant-cost recall of facts that chunking splits. We must benchmark against agentic RAG, not naive RAG — and if it matches quality at acceptable ops cost, the product narrows to very large repos (1M–10M tokens) and exhaustive, exact-symbol recall queries.
- Long context does not imply long-dependency competence. On multi-step key-retrieval tasks in code, performance degrades up to 2x when a function references one defined later (forward references), sliding-window attention collapses beyond the window, and injecting call-graph information improves multi-step retrieval up to 3x. This partially answers our open question about graph-shaped dependencies: a pure learned memory without structural grounding will likely misresolve deep inheritance and call chains. Hence the deterministic symbol/call-graph pass and dependency-ordered streaming above. "Index-free" here means no embeddings or vector database — not "no structure."
- Squeeze from below. Full-context attention models (DSA, Qwen2.5-1M, MiniMax-01's 4M extrapolation) keep extending reach; for repos under ~1M tokens, plain long-context models may already be good enough. The defensible wedge is the 1M–10M token range, where KV caches hit GPU memory walls (InfiniteHiP needs aggressive pruning to reach even 3M) and where our bounded memory state holds cost near-linear. This also keeps us distinct from KV-cache-resident context services capped around ~1M tokens.
Remaining open questions
- Exact-symbol precision at 10M tokens: BABILong is natural text, not adversarially similar identifiers — does the memory confuse
parseExprwithparseExpression? A code-specific recall benchmark is needed before launch claims. - Incremental updates: can small commits patch the memory without a full re-stream? This is the biggest ops-cost risk; until answered, position as load-once-per-session with nightly re-streams.
- First-query latency after the one-time 10M-token streaming pass (chunked-prefill and offload techniques should help; unverified at this scale).
- Concurrency economics: thousands of fixed-size memory states vs a shared distributed vector index.
- Trust: a black-box memory vs inspectable retrieved chunks. Mitigation: expose provenance — which past token ranges the memory readout attended to — so answers are auditable like RAG citations.
Written by GLM · 30 Nov 2026 · revised 1× with new research (latest 30 Nov 2026, Gemma 4 and GLM)
AI assessment
A high-conviction play targeting the 'memory wall' of current LLMs, offering a scalable alternative to agentic RAG for massive monorepos.
- Evidence strength 4/5
- The idea smartly synthesizes ATLAS's memory capacity with specific findings on call-graph necessity and sparse attention, though 10M-token precision remains an unproven extrapolation.
- Market pull 5/5
- Enterprise monorepo owners have high urgency for cross-file analysis, and the target beneficiaries are the primary players in the AI-IDE space.
- Novelty & moat 3/5
- While similar to 'Resident Repo', it differentiates by moving from KV-cache residency (1M limit) to a bounded-state learned memory (10M limit) and adding structural grounding.
- Feasibility 3/5
- Building a custom ATLAS-style memory module is a significant engineering lift compared to using existing LLM APIs, and incremental update logic is still an open question.
- Wedge clarity 5/5
- The 1M–10M token range is a sharp, defensible wedge that targets the specific failure point of both RAG and current long-context KV caches.
- Simplicity / focus 5/5
- The product is focused on a single capability—index-free whole-repo recall—avoiding the 'platform' trap.
Scored by Gemma 4 · 30 Nov 2026. Rated against a fixed rubric (evidence, market, novelty, feasibility, wedge, simplicity), relative to the closest ideas already in the catalog. A prior estimate to compare ideas before real-world signal arrives.
Act on this idea
Ideas only matter if someone runs with them. Your message goes straight to the founder's inbox — nothing is stored on our servers.
Business analysis
The framework reveals a high-potential technical wedge in the 1M–10M token range where traditional KV-caches fail and RAG becomes operationally complex. While the 'index-free' approach solves chunking fragmentation, the primary risk is the performance gap between learned memory and deterministic graph-traversal for complex code dependencies.
Strengths4
Weaknesses3
Opportunities3
Threats3
Essential for balancing the technical strengths of ATLAS-style memory against the critical weaknesses of incremental updates and symbol precision. · Generated 2026-11-30 by Gemma 4AI-generatedFull SWOT Analysis →
Who benefits
- Greptilecompany
Its AI code-review product currently depends on repo embeddings and retrieval; an ATLAS-style single-pass memory would remove chunk-boundary misses on cross-file symbol references, its most common failure mode.
- Sourcegraphcompany
Its code-search and Cody products are built around precisely the recall-intensive, whole-repo queries this engine answers natively, and it already sells infrastructure that could embed the engine.
- Anysphere (Cursor)company
Cursor's coding assistant needs codebase-wide context for multi-file edits; index-free whole-repo recall would improve answer fidelity on large monorepos without maintaining per-repo vector stores.
- Graphitecompany
Its code-review product is diff-scoped; whole-repo awareness catches cross-file regressions, and DSA's reduced long-context cost keeps per-review economics viable.
- GitHub (Microsoft)company
Copilot's repository-level Q&A could adopt the engine to answer questions spanning an entire repo, a differentiator for enterprise monorepo customers.
- DeepInfracompany
Hosts open-weight models at low cost; a DSA-based long-context endpoint undercuts closed-API pricing for million-token workloads.
- Together AIcompany
Its serverless inference platform differentiates on price-performance; cheap full-context serving of an open frontier-class model is a headline capability.
Research it builds on
- DeepSeek-V4: Towards Highly Efficient Million-Token Context IntelligenceAll ideas from this paper →
- Qwen2.5-1M Technical ReportAll ideas from this paper →
- World Model on Million-Length Video And Language With Blockwise RingAttentionAll ideas from this paper →
- DeepSeek-V3.2: Pushing the Frontier of Open Large Language ModelsDeepSeek-AI, Aixin Liu, Mei, Aoxue et al. · 2025 · 341 citationsAll ideas from this paper →
- MiniMax-01: Scaling Foundation Models with Lightning AttentionAll ideas from this paper →
- ATLAS: Learning to Optimally Memorize the Context at Test TimeAll ideas from this paper →
- RecurrentGemma: Moving Past Transformers for Efficient Open Language ModelsAll ideas from this paper →
- InfiniteHiP: Extending Language Model Context Up to 3 Million Tokens on a Single GPUHee Jun Lee, Geon Park, Suh, Jaduk et al. · 2025 · 17 citationsAll ideas from this paper →
- Evaluating Long Range Dependency Handling in Code Generation LLMsYannick Assogba, Donghao Ren · 2025 · 7 citationsAll ideas from this paper →
- Local Agentic RAG-Based Information SystemDevelopment for Intelligent Analysis of GitHubCode Repositories in Computer ScienceEducationAll ideas from this paper →