Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/cloudflare/agents/queuegit clone --depth 1 https://github.com/cloudflare/agentsWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.02068 |
| Opus 5 | $0.00000 | $0.01034 |
| Sonnet 5 | $0.00000 | $0.00414 |
| Haiku 4.5 | $0.00000 | $0.00207 |
Grade A, and why
queue scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 330 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Queue System
The Agents SDK provides a built-in queue system that allows you to schedule tasks for asynchronous execution. This is particularly useful for background processing, delayed operations, and managing workloads that don't need immediate execution.
Overview
The queue system is built into the base Agent class. Tasks are stored in a SQLite table and processed automatically in FIFO (First In, First Out) order.
QueueItem Type
export type QueueItem<T = string> = {
id: string; // Unique identifier for the queued task
payload: T; // Data to pass to the callback function
callback: keyof Agent<unknown>; // Name of the method to call
created_at: number; // Timestamp when the task was created
retry?: RetryOptions; // Retry options (if configured)
};
Core Methods
queue()
Adds a task to the queue for future execution.
async queue<T = unknown>(
callback: keyof this,
payload: T,
options?: { retry?: RetryOptions }
): Promise<string>
Parameters:
callback: The name of the method to call when processing the taskpayload: Data to pass to the callback methodoptions.retry: Optional retry configuration. See Retries for details.
Returns: The unique ID of the queued task
Example:
class MyAgent extends Agent {
async processEmail(data: { email: string; subject: string }) {
// Process the email
console.log(`Processing email: ${data.subject}`);
}
async onMessage(message: string) {
// Queue an email processing task
const taskId = await this.queue("processEmail", {
email: "[email protected]",
subject: "Welcome!"
});
console.log(`Queued task with ID: ${taskId}`);
}
}
dequeue()
Removes a specific task from the queue by ID.
dequeue(id: string): void
Parameters:
id: The ID of the task to remove
Example:
// Remove a specific task
agent.dequeue("abc123def");
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 330 lines · 0 tokens per session scan A 8e23d8e98106
queue is an agent published in the GitHub repository cloudflare/agents (5,498 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,068 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
arxiv-2307-07191
Agent "arxiv-2307-07191" from SAIRAMANALADI/vybe-intelligence-vault, covering summary, why it matters, paper metadata and key topics & tags.
0x4m4-hexstrike-ai
Explain why this repository is useful for advanced web development, 3D frontend, animations, UI systems, or creative development.
0xsteph-pentest-ai-agents
Explain why this repository is useful for advanced web development, 3D frontend, animations, UI systems, or creative development.
15-updates-from-google-i-o-2026-powering-the-agent
General public resource representing technology updates, guides, or tutorials.
amap-ml-longhorizon-harness
Explain why this repository is useful for advanced web development, 3D frontend, animations, UI systems, or creative development.
24-i-cset-awesome
General public resource representing technology updates, guides, or tutorials.