Use case
Background agents, the Sidekiq way.
If you can write a Sidekiq worker, you can run a 30-minute tool-using agent. Same retries. Same dashboards. Same on-call.
AgentJob primitives
- Retries with exponential backoff
- Cost cap per run (`max_cost_cents 25`)
- Automatic trace persisted to the dashboard
- Human-review checkpoint with `pause_for_review!`
Example
class NightlyReportJob < RailsAgent::AgentJob
agent RevenueAnalyst
max_cost_cents 50
schedule cron: "0 6 * * *"
end