Agent Architecture Simulator
Step-through visualization of SmartClient request flow — Ollama, Claude API fallback, circuit breakers, cost guards.
Scenarios
Current Step
Select a scenario and click Next Step or Auto Play to begin.
Run Stats
Architecture
- Ollama runs locally — zero cost, ~1s latency
- Claude API as fallback — metered, ~1-2s latency
- Cost guard prevents budget overruns
- Circuit breaker protects against cascading failures
Functionality
- 5 real-world scenarios: happy path, timeout fallback, double failure + cache, cost guard, circuit breaker
- Step-by-step or auto-play mode (600ms per step) with pause/reset controls
- Color-coded flow nodes — green (Ollama), purple (Claude), red (error), amber (warning), blue (router)
- Live stats panel — total latency, cumulative cost, and progress tracking per scenario
- Animated node transitions with pulse effect on active step and status icons (✓/✗/!) on completed steps
Architecture Patterns
- SmartClient Router: Complexity-based routing — LOW queries go local, HIGH queries get timeout guard
- Ollama (Local): qwen3-coder:30b on Apple Silicon — zero cost, ~600-850ms latency
- Claude API Fallback: claude-sonnet-4-512k as cloud backup — $0.003/request average
- Circuit Breaker: Opens after 3 consecutive API failures, 60s cooldown, forces local-only mode
- Cost Guard: Per-request estimation against daily budget with batch-splitting suggestions
- Cache Layer: Similarity-based response cache for degraded mode (cosine similarity ≥ 0.85)
Production Capabilities
- Multi-model support — Ollama (local), Claude, Gemini, OpenAI as configurable backends
- Automatic model selection based on task complexity, context length, and cost constraints
- Real-time cost tracking with per-token metering and daily/monthly budget enforcement
- Response quality scoring — automatic degradation detection triggers re-routing
- Django integration — drop-in middleware for any Django project via django-ai-starter
Demo Limits
- 5 pre-scripted scenarios — production handles unlimited real-time requests
- Fixed timing values — real latency varies by model load, prompt length, network
- No live AI calls — all responses are scripted, production uses actual model inference
- Simplified cost model — production tracks input/output tokens separately with provider-specific pricing
- No observability — production includes OpenTelemetry traces, Prometheus metrics, and alert hooks
Technical Specifications
Planned production capabilities and integration details for this tool.
This demo uses scripted responses. In production, responses come from local AI models.
Mode: demo
Core Features
- Step-through visualization of SmartClient request routing
- Circuit breaker state machine with configurable thresholds
- Cost guard tracking with per-request and daily budget limits
- Ollama → Claude API fallback chain with latency simulation
- Request queue visualization with priority and retry logic
- Configuration panel for tuning all agent parameters live
Production Capabilities
Demo mode: responses are pre-scripted. The items below describe the intended production build; figures marked 'Target' are design goals, not measurements.
- Target: simulates 1,000+ requests per minute with realistic latency profiles
- Visualizes 5 architecture patterns: local-first, cloud-first, hybrid, failover, load-balanced
- Real-time metrics: p50/p95/p99 latency, error rate, cost per request
- Chaos engineering mode: inject failures, latency spikes, and rate limits
- Export architecture diagrams as SVG for documentation
- Replay recorded production traffic patterns against simulated infrastructure
What Sets Us Apart
- See exactly how SmartClient routes every request — no black box
- Test failure scenarios safely before they happen in production
- Understand cost implications of different routing strategies
- Built-in chaos engineering — break things on purpose to build confidence
Demo Limitations
- Deterministic fixtures: outputs come from fixed sample data, not live AI or live accounts
- Simulated infrastructure — not connected to real Ollama or Claude
- Latency values are modeled, not measured from live endpoints
- Architecture export is view-only in demo
- Limited to 500 simulated requests per session
Tech Stack & Integration
How It Works
From initial consultation to live deployment in four straightforward steps.
Discovery Call
We learn your business, workflows, and goals to scope the right solution.
Custom Build
We build and train the AI on your content, brand voice, and specific requirements.
Test & Refine
You review, test, and iterate until everything works exactly how you want it.
Go Live
Deploy to production with monitoring, analytics, and ongoing support included.
Want This for Your Business?
Tell us about your project and we'll put together a custom proposal — including the right AI model, integration plan, and timeline. Free consultation, no obligation.
- Choose your AI engine — local, cloud, or hybrid
- Trained on your content, products, and FAQs
- Integrates with your website, CRM, and tools
- Live in days, not months
More Developer Tools
View All →Ready to Add AI to Your Business?
Browse all 39 AI tools we offer or get in touch for a custom solution tailored to your needs.