How mrgxmer0004/openhand-112 works
OpenHand 112 combines call triage and live dispatch with city-scale response planning, flood operations, monitoring, and an inter-agency platform. A dispatcher submits a call; the API runs the triage pipeline, resolves location, applies repeat-call context and fixed rules, then the city world recommends units by road and handles dispatch. The dashboard also exposes forecasts, watches, flood plans, cross-city comparisons, and evidence. Edges cite excerpts, indexed references, or README claims; several unsampled subsystems are represented by their exact directory paths, with uncertain internal links omitted.
Main entry points: App.tsx Dashboard shell · api.ts API client · pipeline.py Triage pipeline · server.py HTTP API
Components 27
Dispatcher dashboard
- Dashboard shell
web/src/App.tsx - Live dispatch UI
web/src/Live.tsx - Operational map
web/src/MapView.tsx - Forecast UI
web/src/Predict.tsx - Rain UI
web/src/Monsoon.tsx - City comparison UI
web/src/Cities.tsx - Platform UI
web/src/Platform.tsx - Evidence UI
web/src/Evidence.tsx - API client
web/src/api.ts
Call triage
- Triage pipeline
src/csafe/triage/pipeline.py - Fact extraction
src/csafe/triage/client.py - Priority rules
src/csafe/triage/rules.py - Location resolution
src/csafe/triage/location.py - Triage alternatives
src/csafe/triage
Dispatch and roads
- HTTP API
src/csafe/api/server.py - City dispatch state
src/csafe/api/world.py - Road network
src/csafe/network.py
Forecast and flood
- Demand model
src/csafe/demand.py - Standby placement
src/csafe/placement.py - Live watch
src/csafe/api/watch.py - Flood operations
src/csafe/api/flood_ops.py - Flood model
src/csafe/flood.py - City analytics API
src/csafe/api/world.py
Platform and evidence
- Agency interfaces
src/csafe/api/dpi.py - Evidence and scoring
src/csafe/api
Other components
- Dispatcher
- Other agencies
Connections 35
- Dispatcher → Dashboard shell: uses
- Dashboard shell → Live dispatch UI: renders
web/src/App.tsx - Dashboard shell → Operational map: renders
web/src/App.tsx - Dashboard shell → Forecast UI: renders
web/src/App.tsx - Dashboard shell → Rain UI: renders
web/src/App.tsx - Dashboard shell → City comparison UI: renders
web/src/App.tsx - Dashboard shell → Platform UI: renders
web/src/App.tsx - Dashboard shell → Evidence UI: renders
web/src/App.tsx - Live dispatch UI → API client: requests
web/src/api.ts - Forecast UI → API client: requests
web/src/api.ts - Rain UI → API client: requests
web/src/api.ts - City comparison UI → API client: requests
web/src/api.ts - Platform UI → API client: requests
web/src/api.ts - Evidence UI → API client: requests
web/src/api.ts - API client → HTTP API: HTTP calls
web/src/api.ts - HTTP API → Triage pipeline: triages calls
src/csafe/api/server.py - Triage pipeline → Fact extraction: extracts facts
src/csafe/triage/pipeline.py - Triage pipeline → Location resolution: resolves location
src/csafe/triage/pipeline.py - Triage pipeline → Priority rules: decides priority
src/csafe/triage/pipeline.py - Triage pipeline → Triage alternatives: uses helpers
src/csafe/triage/pipeline.py - Fact extraction → Triage alternatives: uses schema and prompts
src/csafe/triage/client.py - HTTP API → City dispatch state: routes dispatch
src/csafe/api/server.py - City dispatch state → Road network: routes by road
src/csafe/api/world.py - City dispatch state → Triage pipeline: triages incidents
- City analytics API → Demand model: models demand
src/csafe/api/world.py - Standby placement → Road network: uses travel network
src/csafe/placement.py - Live watch → Demand model: reads demand model
src/csafe/api/watch.py - Flood operations → Flood model: runs flood model
src/csafe/api/flood_ops.py - City analytics API → Standby placement: uses standby planning
src/csafe/api/world.py - City analytics API → Live watch: serves watch data
src/csafe/api/world.py - City analytics API → Flood operations: serves flood operations
src/csafe/api/world.py - HTTP API → Agency interfaces: serves platform APIs
src/csafe/api/server.py - Agency interfaces → Other agencies: sends agency messages
- Evidence UI → Evidence and scoring: views evidence
- HTTP API → Flood operations: routes flood requests
src/csafe/api/server.py