Stop Chunking Your Codebase.
Stream Whole Repositories Into Co-Resident GPU Memory.
WholeRepo replaces fragile vector databases and 15-turn grep loops with a single in-memory forward pass. Switch seamlessly across 8 co-resident coding and reasoning models mid-session with 71.5% lower token overhead, 100% cross-file recall, and 0 bytes written to disk.
curl -fsSL https://wholerepo.sh | bash/v1✓ Zero-Header Multi-Turn Session Caching✓ Cursor • Claude Code • OpenCode • ClineSwitch Models Mid-Session Without Cold Re-Prefilling
Scout with GLM-4.7-Flash, code with Qwen3-Coder-30B-A3B, and verify invariants with GLM-Z1-32B in a single stateful repository thread.
Zero-Reload Model Switching in Active Memory
When you change models on a conventional cloud router, your request is routed to a cold worker or triggers a costly model reload. WholeRepo keeps your active model fleet co-resident in high-bandwidth GPU memory so switching back and forth between scout, coder, and deep-reasoning models happens instantaneously.
- 01.Zero Cold-Swap Penalty: Switch between fast scouting models and 30B+ coding/reasoning models inside the same conversation with zero model-reload wait.
- 02.Preserved Session State: Return to your primary model on later turns with your warm session cache intact.
Cross-Model Working-Set Continuity
On standard endpoints (like OpenRouter or vanilla vLLM), switching from Model A to Model B mid-thread forces Model B to re-ingest your entire repository from scratch. WholeRepo automatically carries forward your active repository working set across model boundaries:
- 01.71.5% Less Prefill Work on Model Switch: Turn 2+ model switches process only the active repository working set and conversation history instead of re-reading every file cold.
- 02.100% Verified Cross-File Recall: Retains bit-exact recall across non-local call graphs with zero custom client headers required.
Compare Stateless Cloud Routing vs. WholeRepo Stateful Handoff
| Workflow Step & Task | Selected Model | Stateless Router | WholeRepo Tokens | Latency | Outcome |
|---|---|---|---|---|---|
Turn 1: Repository Scout Map token verification & session middleware call graph across all packages. | GLM-4.7-Flashz-ai/glm-4.7-flash | 57,910 tok (Cold) | 57,910 tok (Cold) | 1.66 s | 100% Exact Recall |
Turn 2: Switch to Heavy Coder Synthesize unified multi-file patch enforcing strict session TTLs. | Qwen3-Coder-30B-A3Bqwen/qwen3-coder-30b-a3b-instruct | 57,910 tok (100% Re-Prefill) | 16,527 tok (-71.5%) | 1.54 s prefill | -71.5% Token Overhead |
Turn 3: Return to Scout Verify all downstream route handlers compile cleanly against the new signature. | GLM-4.7-Flashz-ai/glm-4.7-flash | 57,910 tok (Cold Reload) | Warm Session Cache | 1.25 s total | 11.8× Faster Return |
Calculate Your Multi-Model Session Savings
4-Gear Stepped Compute Drivetrain
Match compute depth to your task per query via --gear or let Auto shift dynamically.
Automatic Query-Complexity & Repository-Scale Shifting
Automatically evaluates repository scale and prompt intent—selecting Eco for localized edits and symbol tracebacks, Cruise for multi-file feature implementation, and Overdrive for deep cross-repository security and concurrency audits.
wholerepo ask "..." --gear auto8 Production Models Ready Out of the Box
GLM-4.7-Flash
High-velocity repository scout for instant architectural mapping, call-graph tracing, and interactive codebase Q&A.
Qwen3-Coder-30B-A3B
Primary software engineering specialist built for multi-file patch synthesis, complex refactors, and agentic tool execution.
Qwen3.6-35B-A3B
Flagship 35B hybrid model combining deep cross-module synthesis with high-precision long-horizon code generation.
GLM-Z1-32B-0414
Full-parameter 32B deep reasoning specialist for formal invariant verification, concurrency bugs, and security audits.
Gemma-4-26B-A4B
Google Gemma 4 architecture tuned for structured code synthesis, clean API design, and polyglot repository analysis.
GPT-OSS-20B
High-throughput open-weights model optimized for fast automated CI checks, JSON schema generation, and tool calling.
Ministral-3-14B
Dense 14B reasoning model delivering structured step-by-step root-cause analysis and deterministic code review.
Qwen3.5-9B
Sub-second interactive scout for instant file navigation, dependency discovery, and lightweight edits.
Drop-In OpenAI & OpenRouter Compatibility
Point Cursor, Claude Code, OpenCode, or the standard OpenAI SDK to https://wholerepo.com/v1.
from openai import OpenAI
client = OpenAI(
base_url="https://wholerepo.com/v1",
api_key="wr_live_..."
)
# Turn 1: Fast Scout (GLM-4.7-Flash) maps the repository
t1 = client.chat.completions.create(
model="z-ai/glm-4.7-flash",
messages=[
{"role": "user", "content": f"<repo>{full_repo}</repo>\nMap auth flow."}
]
)
# Turn 2: Switch to Heavy Coder (Qwen3-Coder-30B-A3B) mid-thread
# Automatically reuses active session state (-71.5% token overhead)
t2 = client.chat.completions.create(
model="qwen/qwen3-coder-30b-a3b-instruct",
messages=[
{"role": "user", "content": f"<repo>{full_repo}</repo>\nMap auth flow."},
{"role": "assistant", "content": t1.choices[0].message.content},
{"role": "user", "content": "Write the unified patch for token verify."}
]
)Engineering Questions Answered
How can WholeRepo switch between different models mid-session without re-prefilling the whole repository?▼
Standard inference routers treat every model change as a completely isolated, cold request—forcing the new model to re-read your entire repository from scratch. WholeRepo maintains co-resident models in GPU memory and preserves your active repository working set across turns, reducing cross-model token overhead by 71.5% and accelerating warm model return by 11.8× while maintaining 100% cross-file recall.
Does multi-model session continuity work with standard OpenRouter or OpenAI clients with zero custom headers?▼
Yes. WholeRepo automatically recognizes recurring repository context in standard /v1/chat/completions requests and honors standard prompt_cache_key fields when provided. You can switch models mid-thread in Cursor, OpenCode, Claude Code, or any OpenAI SDK client with zero custom headers.
How is code privacy guaranteed?▼
Repository streams reside strictly in volatile GPU memory and are isolated per tenant session. Zero bytes of source code are ever written to persistent disk or used for training, and our CLI workspace streamer automatically strips sensitive credential files (.env, *.pem, *.key, id_rsa) before bytes leave your machine.
Test All 8 Co-Resident Models on Your Repository Today
Launch the interactive Web Studio to query multi-million-token benchmarks in real time, or explore our architectural teardowns against Cursor and Vector RAG.