Sector examplesLogistics and operations

Demo Freight

A dispatch agent that plans routes for minutes in the background and reacts to vehicle events on its own.

Demo Freight: Operations console (desktop screenshot)

The problem it solves

Operations teams need agents that work like colleagues: planning a day's routes takes many slow steps, breakdowns happen while nobody is typing, and a deploy in the middle of planning must not lose the work or message drivers twice.

  • Route planning runs for minutes in the background, with live progress and cancellation
  • Telematics events start an exception-handling agent with no human typing
  • A run interrupted by a restart resumes without notifying drivers twice

Run it on your computer

git clone https://github.com/karawash-projects/amoxi.gitcd amoxinpm installnpm run buildnpm run dev -w dispatch-agent

Then open http://localhost:8084. The tests run with npm test -w dispatch-agent.

Read the source and README on GitHub

Amoxi features in this example

FeatureWhy it matters here
Durable long-running runsPlanning survives deploys and crashes, resuming from its last step on any server.
Event-driven agentsA webhook starts the exception handler through the injectable AgentPlatform; schedules can too.
Progress streaming and cancellationDispatchers see each step as it happens and can stop a plan mid-way.
Tools with approvalAssigning a plan to vehicles waits for the dispatcher; analysis runs straight away.
Generative UIThe proposed plan appears as a route map with stops and vehicles.
MCP and A2APartner carriers' agents request capacity quotes and track shipments.