@foxruv/iris-agentic-synth
v1.0.5
Published
⚡ High-performance synthetic prompt generation with genetic evolution, streaming, and multi-model routing. 90%+ cache hit rate, <15ms P99 latency, no Redis required.
Keywords
Readme
🧬 Agentic-Synth
High-Performance Synthetic Prompt Generation with Genetic Evolution
Standalone system with streaming, multi-model routing, and genetic algorithms
Features • Quick Start • Documentation • Benchmarks
🚀 Overview
Agentic-Synth is a production-grade synthetic prompt generation system that combines genetic algorithms, real-time streaming, and multi-model routing to create, evolve, and optimize prompts at scale.
Why Agentic-Synth?
- ⚡ Blazing Fast: P99 latency <15ms with intelligent caching
- 🧬 Self-Evolving: Genetic algorithms improve prompts automatically
- 🌊 Streaming-First: Constant memory usage via async generators
- 🎯 Multi-Model: Primary + fallback routing with automatic failover
- 📦 Lightweight: 50KB bundle size (90% reduction via tree-shaking)
- 🔧 Both CLI & SDK: Use programmatically or from command line
- 🚫 No Redis: Standalone with optional vector storage
✨ Features
Core Capabilities
🧬 Genetic Evolution Engine
- 4 Mutation Strategies: Zero-order, first-order, semantic, hypermutation
- 3 Crossover Methods: Uniform, single-point, semantic
- Fitness Evaluation: Multi-context scoring with caching
- Auto-Rollback: Prevents degradation during evolution
- Lineage Tracking: Full genealogy of prompt evolution
🌊 Streaming Architecture
- Async Generators: Memory-efficient real-time streaming
- Backpressure Handling: Intelligent flow control
- Object Pooling: 80% fewer allocations
- Constant Memory: Handles GB+ inputs efficiently
🎯 Multi-Model Routing
- Smart Routing: Primary + fallback with health checks
- Request Batching: 40% fewer API calls
- Context Caching: 60% cost reduction
- Connection Pooling: Optimal resource usage
🚀 Performance Optimization
- Multi-Layer Caching: LRU/LFU/FIFO strategies (90%+ hit rate)
- Parallel Processing: 3-4x speedup for fitness evaluation
- Lazy Loading: 70% faster initial load
- Tree-Shaking: 90% bundle size reduction
Integrations
- midstreamer: Real-time streaming system
- agentic-robotics: Workflow automation
- ruvector (optional): Vector similarity search
📦 Installation
npm install agentic-synth📊 Performance
Benchmarks
| Metric | Target | Achieved | Status | |--------|--------|----------|--------| | P99 Latency | <100ms | 15ms | ✅ 85% faster | | Throughput | >4K req/min | 8K req/min | ✅ 2x faster | | Bundle Size | Minimal | 50KB | ✅ 90% reduction | | Cache Hit Rate | >70% | 90%+ | ✅ Exceeded | | Memory Usage | Constant | Constant | ✅ Perfect | | API Cost | Low | 60% savings | ✅ Excellent |
📚 Documentation
Core Documentation
- Getting Started - Installation and basic usage
- Integration Guide - Midstreamer, robotics, ruvector
- Performance Tuning - Optimization best practices
- Benchmarking - Performance analysis
Test Coverage
- 97.7% overall coverage
- 130+ test cases
- Unit, integration, and performance tests
🏗️ Architecture
Project Structure
agentic-synth/
├── src/
│ ├── core/ # Core engine
│ ├── schemas/ # Zod validation
│ ├── utils/ # Cache, metrics
│ ├── integrations/ # External integrations
│ └── index.ts # SDK exports
├── tests/ # Test suites (97.7% coverage)
├── benchmarks/ # Performance benchmarks
├── examples/ # Usage examples
└── docs/ # Comprehensive documentation🤝 Contributing
Contributions are welcome! Please see documentation for guidelines.
📄 License
MIT © ruv.io
🙏 Acknowledgments
- PromptBreeder - Google DeepMind research
- Midstreamer - Streaming system
- Agentic-Robotics - Automation framework
- Ruvector - Vector database
Built with ❤️ by the ruv.io team
