How aashutoshsusare/-transitpilot works
TransitPilot is a supply-disruption planning copilot: it ingests public signals, identifies threatened shipments and inventory, evaluates response options, then presents proposals for planner approval. The README documents the domain stages and major UI capabilities; sampled source confirms the offline reference pipeline and parts of the live-ingestion, API, and route-planning paths. AgentMesh execution and some unsampled subsystems are represented only where documented; dashed edges mark optional or unverified integration.
Main entry points: reference_pipeline.py Offline reference pipeline · app.py HTTP API · web_service.py Shared web service · pg_store.py PostgreSQL store
Components 22
Planner experience
- TransitPilot UI
frontend/src/App.jsx - Route planner screen
frontend/src/pages/RoutesPage.jsx - API client
frontend/src/services/api.js
Application services
- HTTP API
backend/api/app.py - Shared web service
backend/services/web_service.py - Case engine
backend/services/engine.py - Runtime settings
backend/config/settings.py
Signal and data
- PostgreSQL store
backend/db/postgres/pg_store.py - Live hazard ingestion
backend/workflows/pipelines/live_ingest.py - News ingestion
backend/workflows/pipelines/news_ingest.py - Public data feeds
- Synthetic network data
backend/workflows/pipelines/generate.py
Disruption decisions
- Offline reference pipeline
backend/workflows/pipelines/reference_pipeline.py - Signal confirmation
backend/tools/custom_code/signals.py - Shipment exposure
backend/tools/custom_code/geo.py - Inventory impact
backend/tools/custom_code/impact.py - Route options
backend/tools/custom_code/route_planner.py - Approval actions
backend/tools/custom_code/actions.py
Agent runtime
- Intent planner
backend/agents/orchestrator/planner.py - LangGraph orchestration
backend/workflows/langgraph/orchestration.py - Azure OpenAI
backend/llm/openai/azure_openai.py
Other components
- Supply planner
Connections 22
- Supply planner → TransitPilot UI: uses
README.md - TransitPilot UI → Route planner screen: routes to
frontend/src/App.jsx - Route planner screen → API client: requests through
frontend/src/pages/RoutesPage.jsx - API client → HTTP API: calls
README.md - HTTP API → Shared web service: delegates to
backend/api/app.py - Shared web service → Case engine: uses
backend/services/web_service.py - Case engine → Offline reference pipeline: runs cases with
backend/services/engine.py - Offline reference pipeline → Intent planner: plans intent with
backend/workflows/pipelines/reference_pipeline.py - Offline reference pipeline → Signal confirmation: counts sources with
backend/workflows/pipelines/reference_pipeline.py - Offline reference pipeline → Shipment exposure: matches geography with
backend/workflows/pipelines/reference_pipeline.py - Offline reference pipeline → Inventory impact: calculates risk with
README.md - Offline reference pipeline → Route options: prices fixes with
README.md - Offline reference pipeline → Approval actions: proposes actions with
README.md - Supply planner → Approval actions: approves proposal
README.md - Public data feeds → Live hazard ingestion: provides signals
backend/workflows/pipelines/live_ingest.py - Public data feeds → News ingestion: provides news events
backend/workflows/pipelines/news_ingest.py - Live hazard ingestion → PostgreSQL store: stores hazards
backend/workflows/pipelines/live_ingest.py - News ingestion → PostgreSQL store: stores events
backend/workflows/pipelines/news_ingest.py - Synthetic network data → PostgreSQL store: loads seed data
backend/db/postgres/pg_store.py - Shared web service → LangGraph orchestration: selects optional backend
- LangGraph orchestration → Azure OpenAI: calls model
backend/workflows/langgraph/orchestration.py - HTTP API → Runtime settings: configures server
backend/api/app.py