RuvLTRA (Ruvector Ultra) is a specialized model family designed specifically for Claude Code and AI agent orchestration. Unlike general-purpose LLMs, RuvLTRA is optimized for one thing: intelligently routing tasks to the right agent with perfect accuracy.
The Problem It Solves
When you have 60+ specialized agents (coders, testers, reviewers, architects, security experts), how do you know which one to use? Traditional approaches:
Keyword matching: Fast but brittle (misses context)
LLM classification: Accurate but slow and expensive
Embedding similarity: Good but not perfect
RuvLTRA combines all three with a hybrid routing strategy that achieves 100% accuracy while maintaining sub-millisecond latency.
1from huggingface_hub import hf_hub_download
23# Download the model4model_path = hf_hub_download(5 repo_id="ruv/ruvltra",6 filename="ruvltra-claude-code-0.5b-q4_k_m.gguf"7)89# Use with llama-cpp-python10from llama_cpp import Llama
11llm = Llama(model_path=model_path, n_ctx=2048)1213# Route a task14response = llm.create_embedding("implement user authentication with JWT")15# → Use embedding for similarity matching against agent descriptions
Rust
rust
1useruvllm::prelude::*;23// Auto-download from HuggingFace4let model =RuvLtraModel::from_pretrained("ruv/ruvltra")?;56// Route a task7let routing = model.route("fix the memory leak in the cache module")?;8println!("Agent: {}", routing.agent);// "coder"9println!("Confidence: {}", routing.score);// 0.9710println!("Tier: {}", routing.tier);// 2 (Haiku-level)
TypeScript/JavaScript
typescript
1import{RuvLLM,RlmController}from'@ruvector/ruvllm';23// Initialize with auto-download4const llm =newRuvLLM({ model:'ruv/ruvltra'});56// Simple routing7const route =await llm.route('optimize database queries');8console.log(route.agent);// 'performance-optimizer'9console.log(route.confidence);// 0.941011// Advanced: Recursive Language Model12const rlm =newRlmController({ maxDepth:5});13const answer =await rlm.query('What are causes AND solutions for slow API?');14// Decomposes into sub-queries, synthesizes comprehensive answer
CLI
bash
1# Install2npminstall -g @ruvector/ruvllm
34# Route a task5ruvllm route "add unit tests for the auth module"6# → Agent: tester | Confidence: 0.96 | Tier: 278# Interactive mode9ruvllm chat --model ruv/ruvltra
Claude Code Integration
RuvLTRA powers the intelligent 3-tier routing system in Claude Flow:
Unlike traditional RAG, RuvLTRA supports recursive query decomposition:
Query: "What are the causes AND solutions for slow API responses?"
↓
[Decomposition]
/ \
"Causes of slow API?" "Solutions for slow API?"
↓ ↓
[Sub-answers] [Sub-answers]
\ /
[Synthesis]
↓
Coherent combined answer
2. Memory-Augmented Routing
Every successful routing is stored in HNSW-indexed memory:
rust
1// First time: Full inference2route("implement OAuth2") → security-architect(97% confidence)34// Later: Memory hit in <25μs5route("add OAuth2 flow") → security-architect(99% confidence, cached pattern)
3. Confidence-Aware Escalation
Low confidence triggers automatic escalation:
Confidence > 0.9 → Use recommended agent
Confidence 0.7-0.9 → Use with human confirmation
Confidence < 0.7 → Escalate to higher tier
4. Multi-Agent Composition
RuvLTRA can recommend agent teams for complex tasks: