Project Info
Fetch AI: Best Use of Fetch AI; Y Combinator: Build an Iconic YC Company - 1st Place; LiveKit: Best Start-up Idea
Haven
Inspiration
David's great-uncle was in the hospital this year. He noticed that his great uncle often waited over an hour to find a nurse to answer his questions due to understaffing. When someone finally arrived, they had to bounce across multiple systems to refamiliarize themselves. It felt like the information was there, just not there when we needed. Hospitals have more data than ever, yet nurses spend up to 50% of their shift on documentation instead of patient care. What if the moment a patient calls, an intelligent system helps manage nurse distribution throughout the hospital and flags concerning patterns and prepares exactly what the nurse needs to attend to their patient right away? That's why we built Haven.
What it does
Haven is a multi-agent hospital command center that transforms how nurses access critical patient information. Instead of hunting through fragmented systems, Haven provides three integrated intelligence layers: 1. HavenAI Voice Assistant via LiveKit Patients and families speak naturally to Haven using LiveKit and OpenAI's realtime voice API. Haven asks clarifying follow-up questions, pulls validated EHR data, and delivers nurse-ready summaries and action items—turning a 20-minute wait into an instant, documented interaction. 2. Autonomous Monitoring Dashboard via fetch.ai agents Fetch.ai agents continuously monitor patient vitals, detect concerning patterns, and coordinate with alert-response agents to flag issues before they escalate. Our computer vision pipeline uses facial photoplethysmography (FPPG) to non-invasively track heart rate and stress indicators, feeding real-time data to the monitoring network. 3. Live 3D Hospital Map via Claude agents Powered by an Anthropic Claude chain-tool-calling agent, nurses see a spatial view of the entire floor with real-time alert-based room coloring. They can ask natural language questions like "Tell me about Dheeraj's alerts and questions from the last 6 hours" and instantly understand which patients need attention and why—no system-hopping required. In addition, nurses can generate summary reports from their patients' discussions with Haven AI, so they do not need to turn to fragmented sources to familiarize themselves with the patients' current situation. Together, these agents create a cohesive intelligence network where information flows to the right person at the right time, automatically.
How we built it
Haven is a multi-agent hospital intelligence platform built on three core systems using LiveKit, Fetch.ai, and Claude agents: Voice Interface: HavenAI uses LiveKit for WebRTC streaming, OpenAI Whisper for speech-to-text, and OpenAI Realtime API for fully duplex conversation. The agent streams transcriptions and responses simultaneously, automatically triggering structured prompts to fill missing clinical details and pushing validated data to our backend. Monitoring & Alerts: Fetch.ai agents handle autonomous patient monitoring—a vitals-tracking agent communicates with an alert-response agent to raise or dismiss issues based on real-time thresholds and historical patterns. We also built a computer vision pipeline using OpenCV and facial photoplethysmography (FPPG) to extract heart rate and stress indicators from live video, feeding results directly into the Fetch agent network. Spatial Intelligence: Our live 3D hospital map is powered by an Anthropic Claude chain-tool-calling agent. It interprets natural language commands ("Show me which rooms have active alerts"), autonomously executes multiple tools to query patient data, and dynamically updates room colors and overlays in real-time based on the agent network's events.
Challenges we ran into
Natural voice interaction: Fine-tuning turn-taking, silence detection, and handling dropped connections to make conversations feel human, not robotic. Natural voice interaction: Fine-tuning turn-taking, silence detection, and handling dropped connections to make conversations feel human, not robotic. Multi-stream synchronization: Coordinating concurrent WebSockets from LiveKit, Fetch agents, and Claude while running computer vision without blocking the UI. Multi-stream synchronization: Coordinating concurrent WebSockets from LiveKit, Fetch agents, and Claude while running computer vision without blocking the UI. Context management: Long patient conversations exceeded LLM limits. Built a summarization pipeline to compress transcripts while preserving critical clinical details. Context management: Long patient conversations exceeded LLM limits. Built a summarization pipeline to compress transcripts while preserving critical clinical details. Accomplishments Built a cohesive multi-agent ecosystem where Fetch.ai, LiveKit, and Claude agents autonomously coordinate. Built a cohesive multi-agent ecosystem where Fetch.ai, LiveKit, and Claude agents autonomously coordinate. Implemented Claude's multi-tool-calling to interpret natural language and update the 3D hospital map in real-time. Implemented Claude's multi-tool-calling to interpret natural language and update the 3D hospital map in real-time. Created a facial photoplethysmography (FPPG) pipeline for non-invasive heart rate monitoring integrated with voice and spatial intelligence. Created a facial photoplethysmography (FPPG) pipeline for non-invasive heart rate monitoring integrated with voice and spatial intelligence.
What we learned
Specialized agents outperform monolithic systems—focused tasks are more scalable despite coordination complexity. Specialized agents outperform monolithic systems—focused tasks are more scalable despite coordination complexity. Low-latency architecture requires deep system design when streaming video, analyzing behavior, and raising real-time alerts. Low-latency architecture requires deep system design when streaming video, analyzing behavior, and raising real-time alerts. Next Steps New Agents: Medication Reconciliation: Prevent dangerous drug interactions Discharge Planning: Coordinate patient transitions Resource Allocation: Optimize room and staff assignments Resource Allocation: Optimize room and staff assignments Technical Improvements: Technical Improvements: Reinforcement learning from nurse feedback Computer vision for fall detection and behavioral monitoring Federated learning across hospitals while preserving privacy
Haven
System Overview
Haven operates as a multi-agent hospital command center that coordinates autonomous and contextually aware AI agents for comprehensive patient monitoring and clinical decision support. The platform employs a voice intake agent via LiveKit and OpenAI to facilitate natural patient conversations, conducting structured follow-up questioning to collect missing clinical details, accessing validated EHR data, and generating nurse-ready summaries and action items. Multiple Fetch.ai agents function as health monitoring agents that continuously track patient vitals and coordinate with specialized agents (including Alert Response Agents) to detect clinical issues and generate appropriate alerts. The system incorporates spatial intelligence capabilities through a live 3D hospital map with real-time alert-based room visualization, powered by a chat agent with Anthropic Claude chain-tool calling, enabling nurses to manage hospital resources and request clinical summaries through natural language queries.
System Architecture
Voice Processing Pipeline: The system implements a robust voice interaction framework using LiveKit for real-time audio streaming, OpenAI Whisper for speech-to-text conversion, and Groq LLM for rapid response generation. Voice activity detection utilizes Silero VAD with configurable silence detection (0.3s) and minimum speech duration (0.1s) parameters. The pipeline handles connection drops, partial transcriptions, and overlapping speech through comprehensive exception handling and recovery mechanisms.
Multi-Stream Synchronization: Haven manages concurrent WebSocket streams from multiple sources including LiveKit (voice/video), Fetch.ai agents (vital alerts), and Claude toolchain (map updates). The system implements optimized synchronization protocols to maintain real-time data consistency while processing computer vision pipelines in background threads to prevent UI blocking.
Conversation Management: The platform includes an intelligent summarization pipeline that compresses extended patient conversations while preserving critical clinical information including pain levels, symptom descriptions, and emotional context. This ensures efficient context management across agent communications and LLM interactions.
Technical Architecture
Multi-Agent Coordination: Haven employs a distributed agent architecture where specialized agents communicate through message passing and shared state management. Each agent operates independently while maintaining awareness of system-wide events through a centralized event bus.
Real-Time Data Pipeline: The system processes multiple concurrent data streams including video feeds (30fps), audio streams (16kHz), vital signs (1Hz), and agent communications. All data flows through WebSocket connections with sub-100ms latency requirements.
Computer Vision Pipeline: Facial photoplethysmography (FPPG) implementation using OpenCV for ROI detection, per-channel standardization for signal preprocessing, and FastICA source separation for heart rate extraction. The pipeline processes forehead regions at 30fps with 8-second rolling windows for frequency domain analysis.
Voice Processing Stack: LiveKit integration with OpenAI Whisper for real-time transcription, Groq LLM for 75% faster response times, and OpenAI TTS with Nova voice for natural speech synthesis. Voice activity detection uses Silero VAD with 0.3s silence detection and 0.1s speech minimum duration.
Spatial Intelligence: 3D hospital map rendered with Three.js, updated in real-time through Claude chain-tool calling. Room states are managed through Supabase with WebSocket synchronization for instant updates across all connected clients.
Tech Stack
Future Development
Agent Ecosystem Expansion:
- Medication Reconciliation Agent: Cross-references patient meds with new prescriptions to catch dangerous interactions before they happen
- Discharge Planning Agent: Coordinates with social workers, pharmacies, and home health services to streamline patient transitions
- Resource Allocation Agent: Dynamically assigns rooms, equipment, and staff based on real-time hospital capacity and patient acuity
- Family Communication Agent: Proactively updates loved ones and schedules care conferences, reducing the communication burden on clinical staff
Technical Enhancements:
- Reinforcement Learning from Clinical Feedback: nurses would rate agent suggestions, allowing the system to improve accuracy over time and learn hospital-specific workflows
- Multi-modal Patient Monitoring: Integrate computer vision to detect patient movement patterns, fall risk, and behavioral changes that complement vital sign monitoring
- Federated Learning Across Hospitals: Enable Haven deployments to learn from each other while maintaining patient privacy, creating a collective intelligence that improves with every installation
Fetch.ai Agent Network
Haven leverages the Fetch.ai uAgents framework and ASI Alliance (asi.one) ecosystem to deploy autonomous agents that coordinate real-time healthcare operations across decentralized infrastructure. Each agent operates independently while communicating through the ASI Alliance network, enabling inter-hospital coordination and access to decentralized AI services from Ocean Protocol and SingularityNET.
Deployed Agents
haven_nurse - Primary clinical triage and monitoring agent using Claude AI for real-time patient assessment. Processes vital sign alerts, coordinates emergency responses, escalates critical conditions, and ensures clinical trial compliance. Handles 369 interactions with 2.5 rating on Agentverse. Access Haven_nurse on Agentverse
haven_asi_coordinator - Central orchestration hub connecting Haven to the broader ASI Alliance ecosystem. Routes complex health queries to Ocean Protocol ML models for predictive analytics, SingularityNET AI services for diagnostic pattern recognition, and Fetch.ai agent networks for resource coordination. Publishes Haven's capabilities to the asi.one marketplace and monitors network health across all three alliance partners. Access Haven_asi_coordinator on Agentverse
haven_resource_allocation - Dynamic hospital resource optimizer managing ICU beds, ventilators, specialist assignments, and equipment allocation based on real-time patient acuity. Coordinates with regional hospitals through ASI Alliance for cross-facility resource sharing during capacity constraints. Monitors utilization metrics and predicts future resource needs using decentralized ML models. Handles 21 interactions on Agentverse. Access Haven_resource_allocation on Agentverse
haven_reconciliation - Medication safety agent that cross-references patient medication lists against new prescriptions to identify dangerous drug interactions before administration. Maintains connection to ASI Alliance drug interaction database and performs periodic audits of all active patients. Generates critical alerts for interactions like warfarin-aspirin bleeding risks or metformin-contrast contraindications. Handles 10 interactions on Agentverse. Access Haven_reconciliation on Agentverse
Agent Interlinking Architecture
The agents form a coordinated network where each specialized agent handles its domain while communicating through Fetch.ai's message-passing protocol:
Clinical Workflow: haven_nurse detects abnormal vitals and sends alerts. When resource escalation is needed (e.g., ICU transfer), nurse agent messages haven_resource_allocation which allocates appropriate beds and equipment. If new medications are prescribed, nurse agent triggers haven_reconciliation to validate safety before administration.
ASI Alliance Integration: Complex queries requiring external intelligence route through haven_asi_coordinator. When haven_resource_allocation faces local capacity constraints, coordinator queries ASI Alliance network for regional hospital availability via Ocean Protocol data sharing. When haven_reconciliation needs advanced drug interaction analysis, coordinator accesses SingularityNET AI diagnostic services. All agents publish their availability to asi.one marketplace for discoverability by other healthcare networks.
Multi-Agent Orchestration: haven_asi_coordinator orchestrates workflows spanning multiple alliance services - aggregating patient cohort data through Ocean Protocol, running predictive models via SingularityNET, and coordinating resource transfers through Fetch.ai agent networks. This enables capabilities beyond any single agent, such as predicting ICU demand 6 hours ahead using decentralized ML while simultaneously arranging resource pre-positioning.
Analysis
View
Metric
- 113
- 65
- 63
- 46
- 13
Figures cover GitHub contributors during the hackathon window. A co-authored commit counts in full for each author, so per-member totals add up to more than the whole-team figures.
Technology
- AnthropicIn code
- CSSIn code
- FastAPIIn code
- HTMLIn code
- JavaScriptIn code
- Next.jsIn code
- OpenAIIn code
- PythonIn code
- ReactIn code
- SQLIn code
- SupabaseIn code
- SwiftIn code
- Tailwind CSSIn code
- TypeScriptIn code
14 of 14 appear in the indexed code.
AI coding agents
- Claude CodeCommits
- CursorConfig · Commits
Detected from committed agent config files and commit authorship. Absence of a signal is not proof an agent was unused.
Codebase size
Source size
1.3 MB
Source files
141
Counts recognized source files only; vendored directories, binaries and lockfiles are excluded, so this is smaller than the repository on disk.
Repository
scrappydevs/haven
181 files · 44.4 MB · @ 94fba72
Structure
Interface
74 files · 41%Screens, components and styles rendered to the user.
API & routing
1 file · 1%Request entry points: routes, handlers and controllers.
Application logic
48 files · 27%Domain rules, services and shared utilities.
+5 moreData & schema
17 files · 9%Schema definitions, migrations and data access.
+1 more
Supporting
Layers are inferred from where files sit in the tree, not from reading the code. A project that names its directories unconventionally will read oddly here — open the file browser to check anything the diagram implies.
Languages
- Python55%
- TypeScript39%
- Markdown3%
- SQL1%
- Swift1%
- Shell1%
- Other (4)1%
Share of indexed source by file size. Binary and vendored files are excluded.
Dependencies
backend/requirements.txt
pypi · 28- anthropic
- fastapi
- gunicorn
- httpx
- livekit
- livekit-agents
- livekit-api
- livekit-plugins-groq
- livekit-plugins-noise-cancellation
- livekit-plugins-openai
- livekit-plugins-silero
- mediapipe
- numpy
- openai
- opencv-python-headless
- pandas
- pillow
- postgrest
- +10 more
frontend/package.json
npm · 27- @livekit/components-react
- @livekit/components-styles
- @react-three/drei
- @react-three/fiber
- @smplrspace/smplr-loader
- framer-motion
- fuse.js
- livekit-client
- livekit-server-sdk
- lucide-react
- next
- react
- react-dom
- react-markdown
- recharts
- remark-gfm
- three
- zustand
- +9 more
haven-agents/requirements.txt
pypi · 6- anthropic
- pydantic
- python-dateutil
- python-dotenv
- uagents
- uagents-ai-engine
Declared in the repository’s manifests at the indexed commit. A declared package is not proof it is used, and runtime dependencies are listed first.
Feature verification
Claude chain-tool-calling agent for natural language map queriesVerified
Anthropic Claude chain-tool-calling agent interprets natural language commands and autonomously executes multiple tools to query patient data and update the map
Claimed on Devposthigh confidencebackend/app/main.py:2189— Calls anthropic_client.messages.create with tools=HAVEN_TOOLS and loops while stop_reason == 'tool_use', executing tools across multiple rounds (max_rounds=5)backend/app/main.py:2218— Executes tool_use content blocks via execute_tool and feeds results back to Claude for further reasoning
Facial photoplethysmography (FPPG) heart rate/stress pipelineVerified
Computer vision pipeline uses facial photoplethysmography (FPPG) with OpenCV, FastICA source separation, to non-invasively track heart rate and stress indicators
Claimed on Devposthigh confidencebackend/app/cv_metrics.py:17— Implements RGB forehead ROI extraction, per-channel standardization, and a FastICA implementation to isolate BVP signal for heart ratebackend/app/cv_metrics.py:135— _fast_ica method matches README's described FastICA source separation
Fetch.ai autonomous vitals/alert-response agent coordinationVerified
Fetch.ai agents continuously monitor patient vitals, detect concerning patterns, and coordinate with alert-response agents to flag issues before they escalate
Claimed on Devposthigh confidencehaven-agents/agents/haven_health_agent.py:58— uAgents Agent with on_message protocol handlers for PatientUpdatebackend/app/agent_system.py:15— uAgents + Anthropic Claude used for autonomous monitoring logic
Groq LLM for faster voice response timesVerified
Groq LLM for rapid response generation, 75% faster response times
Claimed on readmehigh confidencebackend/app/agents/haven_agent.py:375— llm=groq.LLM(model='llama-3.1-8b-instant') with comment '75% faster response time'
Live 3D hospital map with alert-based room coloringVerified
Live 3D hospital map with real-time alert-based room coloring, nurses see a spatial view of the entire floor
Claimed on Devpostmedium confidencefrontend/app/dashboard/floorplan/page.tsx:71— roomAlerts/patientAlerts state maps alert severity to rooms and feeds smplrspace addDataLayer calls to color roomsfrontend/app/dashboard/floorplan/page.tsx:807— Fetches alerts and maps them to rooms by severity priority for coloring
LiveKit voice assistant for patients/familiesVerified
Patients and families speak naturally to Haven using LiveKit and OpenAI's realtime voice API, with clarifying follow-up questions
Claimed on Devposthigh confidencebackend/app/agents/haven_agent.py:370— AgentSession built with LiveKit STT/LLM/TTS/VAD pipeline for live patient conversationbackend/app/agents/intake_agent.py:384— Separate LiveKit intake agent with VAD and structured follow-up question logic
Medication Reconciliation agentVerified
haven_reconciliation cross-references patient medication lists against new prescriptions to identify dangerous drug interactions
Claimed on readmemedium confidencehaven-agents/medication_reconciliation_agent.py:15— Defines a uAgents Agent with on_message(model=MedicationCheck) handler that sends back interaction alerts
Nurse-generated summary reports from Haven AI discussionsVerified
Nurses can generate summary reports from their patients' discussions with Haven AI
Claimed on Devpostmedium confidencebackend/app/services/pdf_generator.py:279— _build_alert_summary and related PDF sections compile patient discussion/alert content into a reportfrontend/components/HandoffFormModal.tsx:1— Frontend component for generating/viewing handoff/summary forms exists
Resource Allocation agentVerified
haven_resource_allocation dynamically assigns rooms, equipment, and staff based on real-time hospital capacity and patient acuity
Claimed on readmemedium confidencehaven-agents/resource_allocation_agent.py:16— uAgents Agent with on_message(model=ResourceRequest) handler that computes and sends back an allocation
Silero VAD with 0.3s silence / 0.1s speech detectionVerified
Voice activity detection utilizes Silero VAD with configurable silence detection (0.3s) and minimum speech duration (0.1s) parameters
Claimed on readmehigh confidencebackend/app/agents/haven_agent.py:381— silero.VAD.load(min_silence_duration=0.3, min_speech_duration=0.1, ...) matches README parameters exactly
ASI Alliance integration (Ocean Protocol, SingularityNET routing)Code-supported
haven_asi_coordinator routes complex health queries to Ocean Protocol ML models and SingularityNET AI services, publishes to asi.one marketplace
Claimed on readmelow confidencehaven-agents/asi_alliance_coordinator.py:132— query_ocean_protocol/query_singularitynet functions contain comments '# Simulate Ocean Protocol query' and '# In production: Query actual Ocean Protocol marketplace', indicating mocked rather than real external integration
Nurse-ready summaries and action items from patient conversationsCode-supported
Haven pulls validated EHR data and delivers nurse-ready summaries and action items after patient conversations
Claimed on Devpostmedium confidencebackend/app/agents/intake_agent.py:132— Extracts structured data from patient responses via keyword matching and flags urgent items, feeding a handoff/report pipelinebackend/app/pdf_generator.py:28— generate_patient_discharge_report builds a 'Patient Stay Summary Report' PDF
OpenAI Realtime API for fully duplex voiceCode-supported
OpenAI Realtime API for fully duplex conversation
Claimed on readmehigh confidencebackend/app/agents/haven_agent.py:372— Voice pipeline actually uses discrete openai.STT('whisper-1') + groq.LLM + openai.TTS('nova'), not the OpenAI Realtime duplex API as claimed
3D map rendered with Three.jsClaimed only
3D hospital map rendered with Three.js, updated in real-time through Claude chain-tool calling
Claimed on readmehigh confidenceDischarge Planning agent (future work)Claimed only
Discharge Planning Agent to coordinate patient transitions (Next Steps)
Claimed on readmehigh confidenceFall detection via computer vision (future work)Claimed only
Computer vision for fall detection and behavioral monitoring (Next Steps)
Claimed on readmehigh confidenceFederated learning across hospitals (future work)Claimed only
Federated learning across hospitals while preserving privacy (Next Steps)
Claimed on readmehigh confidenceReinforcement learning from nurse feedback (future work)Claimed only
Reinforcement learning from nurse feedback (Next Steps)
Claimed on readmehigh confidenceAgents deployed live on Agentverse with real interaction countsBlocked
haven_nurse handles 369 interactions with 2.5 rating on Agentverse; other agents deployed with specific interaction counts
Claimed on readmelow confidence
An AI agent derived these features from the project’s Devpost page and readme, then searched the code for each one. Verified features are backed by cited code; claimed-only features had no supporting code, which is not by itself proof a feature is missing.
Export this project's context (description, README, evidence, key source files) to chat with an AI agent elsewhere.