Task queue for AI agents
A task queue for AI agents: push up to 500 items in one call, and the sweep hands each one to a deployed agent as its own session, at the concurrency you set from 1 to 20. A long job stops being one enormous run, and a failure on item 400 doesn't touch the other 4,000.
What it touches: a queue starts sessions of the one deployed agent it is bound to, with that agent's tools. Pausing stops new items; nothing runs on your computer.
updated Nov 3, 2026
Copy the setup prompt.
Your agent does the rest.
Install superagnt for me. It's the superagnt plugin from the github.com/superagnt/plugins marketplace, plus the superagnt MCP server (on Claude it's a connector I add in my browser; elsewhere I sign in through my browser). The setup guide for each kind of agent is at https://www.superagnt.com/install» the agnt_queues_* tools are part of every server's base tools, and every plan includes queues: plans differ only in how many you can keep.
What can your agent do with task queues?
Each item is handed to a fresh session of the queue's agent with its payload, so items never share context or poison each other.
agnt_queues_write with action enqueue_batch appends up to 500 payloads in one call, in order; enqueue adds one.
A queue runs up to its concurrency in parallel, 1 by default, which is how a big job stays inside a rate limit and a budget.
Paused stops new items while running ones finish. Archived retires the queue for good and keeps its record.
agnt_queues_read with action list_items shows each item's status, start and end times, error and the session it ran in.
agnt_queues_writeaction: enqueue · enqueue_batch · create · updateagnt_queues_readaction: list · list_itemsagnt_queues_deletecalled by its own name
per-operation names07older servers list these
agnt_queues_enqueueagnt_queues_enqueue_batchagnt_queues_listagnt_queues_list_itemsagnt_queues_createagnt_queues_updateagnt_queues_deleteWhat does a real call return?
A run we recorded on superagnt, with the result trimmed to fit. Nothing on it is invented: the date, the wall time and the cost are the run's own.
asked Queue these 10 accounts for my research agent, five at a time, and tell me when they're done.
- → call 1
agnt_queues_write{ "action": "create", "agent_id": "f624ee4d-…", "name": "tools-refresh drain c5", "concurrency": 5 }← resulttrimmed"queue": { "queue_id": "d7e9ec16-…", "status": "active", "concurrency": 5 } - → call 2
agnt_queues_write{ "action": "enqueue_batch", "queue_id": "d7e9ec16-…", "payloads": [ { "item": "account-1", … }, … 10 in all ] }← resulttrimmed"items": [ { "item_id": "…", "position": 1 }, … { "position": 10 } ] - → call 3
agnt_queues_read{ "action": "list_items", "queue_id": "d7e9ec16-…" }← resulttrimmed| position | status | started_at | completed_at | | 1 | completed | 17:25:08 | 17:25:16 | | 5 | completed | 17:25:15 | 17:25:22 | | 6 | completed | 17:26:05 | 17:26:13 | | 10 | completed | 17:26:13 | 17:26:20 |
» Wall time runs from the enqueue to the last item done. Cost is the AI usage of the 10 sessions on Claude Haiku 4.5; the queue calls themselves are free.
How fast will a queue drain?
The sweep runs once a minute and starts up to your concurrency in items each time. At concurrency 5 our 10 items started in two sweeps a minute apart, five within 8 seconds each time, ran 6.9 seconds each at the median and were all done 111 seconds after the enqueue. At concurrency 1 a test queue started one item a minute. So plan on about concurrency times 60 items an hour while each item finishes inside its minute; long items hold their slot and drain slower.
| Concurrency | Items started per sweep | Measured |
|---|---|---|
| 1 | 1 | 1 item a minute: 17:18, 17:19, 17:20… |
| 5 | Up to 5 | 10 items done in 111 seconds |
| 20 | Up to 20 | The ceiling: 20 items a minute while items finish within it |
sample · 10 items at concurrency 5 and 10 at concurrency 1 on one deployed agent, Nov 3, 2026
What happens when one item fails?
It is marked failed with its error, and the sweep moves on to the next item at the same pace: in a test where every item failed at dispatch, each failure was recorded with its reason and nothing stopped. Nothing retries on its own, so an agent can read list_items, fix the cause and enqueue the failed payloads again. An item still running after 30 minutes is failed with processing_timeout, so a stuck session can't hold its slot forever.
What does each item cost?
The session it runs: our 10 one-line items cost 4.82 cents of AI credit in all, about half a cent each, on Claude Haiku 4.5. Real items cost what their work costs: a data call, more turns, a bigger model. Concurrency changes how fast the money goes, not how much.
Queue, schedule, webhook or a data job: which do you need?
Use a queue when you hold a list of items that each need an agent's judgment. Use a schedule when work starts on the clock, and a webhook when another system says when. When each row only needs the same data calls, without an agent deciding anything, a data job pushes rows through a fixed pipeline instead.
What do people use it for?
Enrich a list without one giant run
Batch thousands of rows onto a queue. Each row becomes its own session with its own context and cost, and you watch progress in list_items instead of waiting on one call that may not finish.
Fan out research
One agent finds 300 companies worth a look and enqueues them. A second agent works the queue at a concurrency of 5 and writes its findings to the workspace database.
What does it cost?
The tools carry no per-call price. What you pay for is the agent sessions they start, billed as AI usage from your AI credit, which every run itemizes. Plans are Starter $49 a month ($20 of data credit included), Growth $149 a month ($90) and Scale $399 a month ($300), and the no-card trial gives $3 of data credit with Growth limits.
- Queues: Starter 3, Growth 15 and Scale 50.
- Deployed agents: Starter 3, Growth 15 and Scale 50.
What do people ask before they wire it up?
01What happens when one item fails: does it retry, and where does it go?
It is marked failed with its error and stays in the queue's item list; the sweep carries on with the next item. Nothing retries automatically, so re-enqueue the payload once the cause is fixed. An item running longer than 30 minutes is failed with processing_timeout.
02How fast will a queue drain, in items per minute?
Up to your concurrency per minute: the sweep runs once a minute and starts up to that many items. At concurrency 5, 10 one-line items were done 111 seconds after we enqueued them.
03What happens to in-flight work when I deploy new code or something crashes?
Each item runs as its own agent session on superagnt, not in your code, so a deploy on your side doesn't touch it. A change to the agent's config reaches the next item's session. An item that hangs is failed after 30 minutes, and pausing lets running items finish.
04Does a task queue guarantee a tool call runs only once?
No queue can promise that for side effects outside it. Each item is dispatched once and never retried automatically, but if you re-enqueue a failed item, make its action safe to repeat, for example by checking a row in the database before sending.
05How do I stop a big job from burning credits or hitting a rate limit?
Set concurrency low, since each parallel item is a parallel session, and pause the queue to stop new items while running ones finish. Watch list_items and session usage as it drains.
06Which tool do I use to hand work between agents?
A queue: one agent enqueues payloads and the queue's agent works them, each in its own session. For a single hand-off, an agent can dispatch a task to another agent directly.