How junjue-wang/dora works
DORA is a disaster-response geospatial reasoning benchmark and agent runtime. A user task is given to the ReAct runner, which prompts an LLM, exposes MCP tools, and records the answer and tool trajectory; the evaluator scores both against gold results. The tool library spans perception, spatial analysis, planning-oriented calculations, temporal comparison, and report/visualization capabilities. The README documents broader tool categories than the sampled runtime excerpts expose, so those branches are represented at the tool-module level; unverified internal call chains are omitted.
Main entry points: mcp_tools.py MCP tool pool · runner.py Task runner · segmentation Segmentation architectures · llm.py LLM connector
Components 20
Agent runtime
- Task runner
dora/agent/runner.py - Task prompts
dora/agent/prompts.py - LLM connector
dora/agent/llm.py - MCP tool pool
dora/agent/mcp_tools.py
Geospatial tools
- Tool runtime
dora/tools/_common.py - Spatial analysis
dora/tools/analysis.py - Raster calculations
dora/tools/calculate.py - POI operations
dora/tools/poi.py - Image perception
dora/tools/perception.py - Visualization
dora/tools/vis.py - Report synthesis
dora/tools/model.py
Perception models
- Sliding-window inference
dora/tools/segmentation/inference.py - Segmentation architectures
dora/tools/segmentation - DINOv3 transformer
dora/tools/segmentation/dinov3/vision_transformer.py - Transformer layers
dora/tools/segmentation/dinov3/layers/block.py - SegFormer backbone
dora/tools/segmentation/segformer/mix_transformer.py
Benchmark data and scoring
- Tasks and geodata
dora/paths.py - Trajectory and answer scoring
dora/evaluation.py
Other components
- Analyst
- LLM provider
Connections 20
- Analyst → Task runner: submits task
README.md - Task runner → Tasks and geodata: loads task data
- Task runner → Task prompts: builds prompt
dora/agent/runner.py - Task runner → LLM connector: builds model
dora/agent/runner.py - LLM connector → LLM provider: requests completion
- Task runner → MCP tool pool: loads tools
dora/agent/runner.py - Task runner → Trajectory and answer scoring: records results for
- MCP tool pool → Tool runtime: starts servers
dora/agent/mcp_tools.py - MCP tool pool → Spatial analysis: exposes tools
README.md - MCP tool pool → Raster calculations: exposes tools
README.md - MCP tool pool → POI operations: exposes tools
README.md - MCP tool pool → Image perception: exposes tools
README.md - MCP tool pool → Visualization: exposes tools
README.md - MCP tool pool → Report synthesis: exposes tools
README.md - Image perception → Sliding-window inference: runs inference
dora/tools/perception.py - Sliding-window inference → Segmentation architectures: predicts with
dora/tools/segmentation/__init__.py - Segmentation architectures → DINOv3 transformer: includes backbone
dora/tools/segmentation/__init__.py - DINOv3 transformer → Transformer layers: uses layers
dora/tools/segmentation/dinov3/vision_transformer.py - Segmentation architectures → SegFormer backbone: includes backbone
dora/tools/segmentation/segformer/wetr.py - Tasks and geodata → Trajectory and answer scoring: provides gold data