An AI agent is a background job that runs for hours
AI agents are long, expensive, and prone to failing halfway through. Trigger.dev treats them as what they are, durable background jobs, and gives TypeScript developers retries, queues, and checkpointing so a task can run for hours and survive a crash.