Introduction to Vidurai
Welcome to Vidurai - the first open-source intelligent memory system for AI coding assistants.
đī¸ What is Vidurai?â
Vidurai transforms stateless AI coding assistants into tools with true continuity, context, and wisdom. It provides a production-ready memory layer that reduces token costs by 59% and saves 90% of context-gathering time while maintaining 95.6/100 quality scores.
The name Vidurai comes from Vidura, the wise counselor in the Mahabharata, renowned for his memory, judgment, and guidance.
đī¸ Two Ways to Use Viduraiâ
Vidurai uses a layered architecture where the SDK provides the intelligence and integrations provide the interfaces:
đ§ Vidurai SDK (This Documentation)â
The core Python package providing intelligent memory management. Perfect for:
- Custom AI integrations
- Jupyter notebooks
- CLI tools
- Python-based workflows
đĨī¸ VS Code Extensionâ
Pre-built interface for VS Code users. Learn more at vidurai.ai
Choose the path that fits your workflow. Both use the same powerful SDK underneath.
đ What's New in v1.5.1â
Vidurai v1.5.1 brings three critical improvements based on comprehensive production testing:
â Verified Performance Metricsâ
No more aspirational numbers. Production testing with 9 comprehensive test scenarios confirms:
- 36.6%+ Token Reduction (average, verified across multiple workloads)
- $16,182/day Cost Savings (at 10,000 active users)
- 100% Recall Reliability (with proper configuration)
đ§ Vismriti RL Agent - The Learning Brainâ
The first self-learning memory optimizer in production. While competitors use hardcoded rules, Vidurai learns optimal compression strategies through Reinforcement Learning (Q-learning).
What makes it unique:
- Learns from experience: Agent improves with every compression decision
- Adapts to your workload: Different strategies for different usage patterns
- No manual tuning: Intelligence emerges automatically through Q-learning
- Configurable priorities: Choose between cost-focused or quality-focused optimization
How it works:
- Starts with 30% exploration (tries new strategies)
- Gradually shifts to 95% exploitation (uses learned optimal strategies)
- Grows Q-table of learned state-action values
- Continuously adapts as your usage patterns change
âī¸ Configurable Importance Decayâ
v1.5.1 adds fine-grained control over memory decay:
# For critical applications (recommended)
memory = Vidurai(enable_decay=False)
# For custom decay rates
memory = Vidurai(decay_rate=0.98) # Slower decay (default: 0.95)
# For aggressive forgetting
memory = Vidurai(decay_rate=0.90) # Faster decay
Why this matters: v1.5.0 had aggressive decay that caused high-importance memories to drop below recall thresholds. Now you control it.
Upgrade now: pip install --upgrade vidurai
See full details: CHANGELOG | GitHub Release
The Problemâ
Working with AI coding assistants is frustratingly inefficient:
- â 60 seconds to manually gather context (files, terminal, errors)
- â $500/month in API costs from bloated context
- â Context switching chaos - copy-paste hell
- â Forgotten details lead to missed bugs
The Solutionâ
Vidurai provides:
- â 90% Time Savings: Context ready in 5 seconds (vs 60s manual)
- â 59% Token Reduction: Intelligent compression maintains quality
- â Privacy First: 100% local storage, no cloud required
- â Universal Compatibility: Works with any AI coding assistant
Philosophyâ
"ā¤ĩā¤ŋ⤏āĨā¤ŽāĨ⤤ā¤ŋ ā¤āĨ ā¤ĩā¤ŋā¤ĻāĨā¤¯ā¤ž ā¤šāĨ" (Forgetting too is knowledge)
While everyone races to give AI perfect memory, we asked a different question: What if forgetting is the key to true intelligence?
Vidurai implements strategic forgetting through:
- Three-Kosha Architecture: Inspired by Vedantic consciousness layers
- Vismriti Engine & RL Agent: Production-verified strategic forgetting
- 36.6%+ Token Reduction (verified in comprehensive testing)
- $16,182/day Cost Savings (at 10,000 active users)
- 100% Recall Reliability (with configurable decay)
- Self-Learning RL Agent (adapts through Q-learning, not hardcoded rules)
- Viveka Layer: Autonomous conscience that decides what matters
Quick Startâ
Ready to add memory to your AI agent? Let's get started:
pip install vidurai
from vidurai import Vidurai
# Recommended for v1.5.1+ (critical applications)
memory = Vidurai(enable_decay=False)
# Or with configurable decay (general use)
memory = Vidurai(decay_rate=0.98) # Slower than default 0.95
đĄ v1.5.1 Best Practice: Use
enable_decay=Falsefor applications requiring high-precision recall of important memories. This prevents importance decay from dropping HIGH memories below recall thresholds.
Continue to the Installation Guide â
Communityâ
Join the Sangha (community):
- đŦ Discord Server
- đ GitHub Repository
- đ Main Website
ā¤ā¤¯ ā¤ĩā¤ŋā¤ĻāĨā¤°ā¤žā¤ (Victory to Vidurai)