How samin1554/wildfire-evidence-agent works
Wildfire Evidence Agent lets a user draw an area, ask a time-bounded wildfire question, and receive a cited report with evidence and map layers. The main path runs from the web UI through Go validation and job creation, into the Python worker’s agent and deterministic geospatial processing, then back through stored results and live progress to the browser. README capabilities also include national active-fire clusters and satellite burn/vegetation overlays. The source excerpts establish key orchestration and client links; unsampled API handlers, agent internals and activity implementation limit some arrows, which are therefore omitted.
Main entry points: App.tsx Analysis workspace · client.ts API client · router.go HTTP routes · pipeline.py Job pipeline
Components 25
Web experience
- Analysis workspace
apps/web/src/app/App.tsx - Analysis controls
apps/web/src/analysis/useAnalysis.ts - API client
apps/web/src/api/client.ts - Map and overlays
apps/web/src/map/MapView.tsx - Report and evidence
apps/web/src/analysis/components.tsx - Active detections
apps/web/src/activity/ActivityPanel.tsx
API and job access
- HTTP routes
apps/api/internal/httpapi/router.go - Request validation
apps/api/internal/httpapi/analyses.go - Job and result store
apps/api/internal/store/store.go - Redis job streams
apps/api/internal/queue/queue.go
Analysis worker
- Worker runtime
apps/worker/src/inland_worker/__main__.py - Job pipeline
apps/worker/src/inland_worker/jobs/pipeline.py - Evidence agent
apps/worker/src/inland_worker/agent/graph.py - Language model
apps/worker/src/inland_worker/agent/llm.py - Evidence contracts
apps/worker/src/inland_worker/contracts/models.py
Evidence and geospatial data
- Data service
apps/worker/src/inland_worker/data/service.py - Provider registry
apps/worker/src/inland_worker/connectors/registry.py - Fire, weather, imagery sources
apps/worker/src/inland_worker/connectors - Provider HTTP kit
apps/worker/src/inland_worker/kit/http.py - Satellite imagery reader
apps/worker/src/inland_worker/kit/imagery.py - Burn and NDVI analysis
apps/worker/src/inland_worker/satellite - Detection clustering
apps/worker/src/inland_worker/activity/cluster.py
Other components
- Analyst
- Fire, weather, satellite providers
- OpenRouter
Connections 29
- Analyst → Analysis workspace: draws and asks
README.md - Analysis workspace → Analysis controls: starts analysis
apps/web/src/app/App.tsx - Analysis workspace → Map and overlays: shows area and layers
apps/web/src/app/App.tsx - Analysis workspace → Report and evidence: renders results
apps/web/src/app/App.tsx - Analysis workspace → Active detections: shows activity
apps/web/src/app/App.tsx - Analysis controls → API client: calls API
apps/web/src/analysis/useAnalysis.ts - API client → HTTP routes: sends requests
apps/web/src/api/client.ts - HTTP routes → Request validation: routes analyses
apps/api/internal/httpapi/router.go - Request validation → Job and result store: creates job
apps/api/internal/httpapi/analyses.go - Request validation → Redis job streams: enqueues job
apps/api/internal/httpapi/analyses.go - Worker runtime → Job pipeline: runs jobs
apps/worker/src/inland_worker/__main__.py - Job pipeline → Evidence agent: runs analysis
apps/worker/src/inland_worker/jobs/pipeline.py - Job pipeline → Job and result store: stores results
- Job pipeline → Evidence contracts: uses evidence models
apps/worker/src/inland_worker/jobs/pipeline.py - Evidence agent → Data service: retrieves evidence
- Evidence agent → Language model: plans and explains
- Language model → OpenRouter: requests completion
apps/worker/src/inland_worker/agent/llm.py - Data service → Provider registry: resolves providers
apps/worker/src/inland_worker/data/service.py - Provider registry → Fire, weather, imagery sources: selects connector
apps/worker/src/inland_worker/connectors/registry.py - Data service → Provider HTTP kit: fetches providers
apps/worker/src/inland_worker/data/service.py - Provider HTTP kit → Fire, weather, satellite providers: requests source data
- Fire, weather, imagery sources → Fire, weather, satellite providers: queries providers
- Burn and NDVI analysis → Satellite imagery reader: reads scene pixels
apps/worker/src/inland_worker/satellite/overlay.py - Data service → Satellite imagery reader: loads imagery scenes
- Worker runtime → Detection clustering: runs activity feed
- Active detections → API client: loads activity
apps/web/src/activity/ActivityPanel.tsx - Map and overlays → API client: requests layers
- HTTP routes → Job and result store: reads job results
- HTTP routes → API client: streams progress and results