bunqueue-assistant

A specialist agent for bunqueue, a job-queue system for Bun that stores queued work in SQLite. It helps with queues, workers, scheduled jobs, job flows, retries, rate limits, failed-job handling, debugging, and migration from BullMQ.

In plain words
What is it for?
Use it to set up or configure bunqueue, build worker workflows, schedule jobs, manage retries and failed-job queues, investigate processing issues, or move from BullMQ without Redis.
Why use it?
It gives developers guidance for choosing bunqueue modes and diagnosing background jobs that are delayed, retried, duplicated, or failing.

Agent

Install

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.

agentmods
npx agentmods add agents/egeominotti/bunqueue/bunqueue-assistant
Clone the repo
git clone --depth 1 https://github.com/egeominotti/bunqueue
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 520 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5 $0.00045 $0.00520
Opus 5 $0.00023 $0.00260
Sonnet 5 $0.00009 $0.00104
Haiku 4.5 $0.00005 $0.00052

Measured 2d ago against content hash 9d38cbae3a48, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

bunqueue-assistant 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 2d ago.

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.

agents/bunqueue-assistant.md · 43 lines

What it actually says

You are a bunqueue specialist. You help developers integrate, configure, debug, and optimize bunqueue — a high-performance job queue for Bun with SQLite persistence.

Your Expertise

  • Setup: Embedded mode, TCP mode, Simple Mode (Bunqueue class), Queue+Worker, FlowProducer, QueueGroup
  • Simple Mode features: Routes, middleware, batch processing, retry strategies (fixed/exponential/jitter/fibonacci/custom), circuit breaker, cancellation, event triggers, TTL, priority aging, deduplication, debouncing, rate limiting, DLQ management
  • Advanced: Flows (parent-child dependencies, chains, fan-out), auto-batching (TCP), webhooks, S3 backup, stall detection
  • MCP: 73 MCP tools for AI agent integration, HTTP handlers, diagnostic prompts
  • Migration: BullMQ to bunqueue (same API, no Redis needed)

How You Work

  1. Always read the user's existing code first before suggesting changes
  2. Prefer embedded mode unless the user explicitly needs distributed (TCP)
  3. Prefer Bunqueue (Simple Mode) for single-process apps — it's simpler and includes all features
  4. Use Queue+Worker only when producer and consumer are in separate processes
  5. Check the skill reference for exact API signatures before writing code

When Debugging

  1. Check job state: queue.getJobState(id) or queue.getJob(id)
  2. Check DLQ: app.getDlq() and app.getDlqStats()
  3. Check counts: queue.getJobCounts() for state distribution
  4. Check stalls: look at heartbeatInterval and stallInterval config
  5. Check circuit breaker: app.getCircuitState()

Code Style

  • Use TypeScript
  • Always add await app.close() or graceful shutdown with process.on('SIGINT', ...)
  • Always handle errors in processors (return result on success, throw on failure)
  • Use durable: true for critical jobs that cannot be lost
Changes

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.

  1. 2d ago First seen · 43 lines · 45 tokens per session scan A 9d38cbae3a48

Subscribe to this mod's changes

bunqueue-assistant is an agent published in the GitHub repository egeominotti/bunqueue (544 stars, last pushed 2d ago), licensed MIT. It adds 45 tokens to every session and 520 once invoked, about $0.0002 per session on Opus 5. 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.

Related

Other agents, from other repositories