bunqueue: Instructions file for Codex

AGENTS.md

bunqueue AGENTS.md is an instructions file for Codex, OpenCode from egeominotti/bunqueue. It costs 3,768 tokens per session, scanned A, original, MIT.

Repository instructions for bunqueue, a TypeScript job queue for the Bun runtime, with application, domain, infrastructure, client, test, documentation, and SDK code.

In plain words
What is it for?
Working on job queues, workers, SQLite persistence, network clients, language SDKs, tests, and documentation in the bunqueue project.
Why use it?
They provide the project's structure and require review and validation checks, making it easier to find the right code and avoid unsafe changes.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions subagents; reads ~/.codex paths.

This is egeominotti/bunqueue's own configuration. It tells Codex and OpenCode how to work on bunqueue itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything bunqueue configures →

Reuse

Borrowing it

Nothing to install: this file belongs to egeominotti/bunqueue. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/egeominotti/bunqueue/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/egeominotti/bunqueue

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bunqueue AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/egeominotti/bunqueue/agents-md/github.svg)](https://agentmods.dev/instructions/egeominotti/bunqueue/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/egeominotti/bunqueue/agents-md"><img src="https://agentmods.dev/badge/instructions/egeominotti/bunqueue/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bunqueue AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/egeominotti/bunqueue/agents-md"><img src="https://agentmods.dev/badge/instructions/egeominotti/bunqueue/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,768 This file is loaded in full into every session.
When invoked 3,768 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.03768 $0.03768
Opus 5.5 $0.01507 $0.01507
Sonnet 5.5 $0.00754 $0.00754
Haiku 4.5 $0.00377 $0.00377

Measured 4d ago against content hash d4fe841da8d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bunqueue AGENTS.md 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 4d 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.md · 313 lines

How it starts

The opening of the file, as written. The whole thing — 313 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

This file applies to the entire repository unless a more specific AGENTS.md exists in a subdirectory.

Project overview

bunqueue is a high-performance job queue written in TypeScript for Bun. The server and embedded runtime are Bun-only. Persistence uses bun:sqlite; public clients may run in other runtimes through the network protocol.

Repository map

  • src/application/: queue orchestration and use-case logic.
  • src/domain/: jobs, shards, priority queues, counters, and limiters.
  • src/infrastructure/: SQLite persistence and transport adapters.
  • src/client/: public Queue/Worker APIs.
  • test/: Bun unit, integration, regression, and reproduction tests.
  • docs/: documentation site.
  • sdk/: language SDKs and conformance fixtures.

Working rules

  • Before every git commit and every git push, invoke the skeptic custom subagent and wait for its verdict. It must inspect the complete staged diff, identify at least three potential failure points per changed file, verify error handling, races, idempotency, type safety and test evidence, and run applicable checks. FAIL blocks the operation; CONDITIONAL requires the user's explicit confirmation. The project profiles live at .codex/agents/skeptic.toml and .claude/agents/skeptic.md.
  • When a bug is reported, first add a regression test that reproduces it. Only after the test fails for the expected reason, use subagents to investigate fixes and prove the chosen fix with the passing regression test.
  • Preserve user changes. Never run git reset, git checkout, git clean, or discard unrelated edits unless the user explicitly requests it.
  • Keep all repository content in English, including source comments, tests, internal documentation, user-facing documentation and agent configuration.
  • Keep changes narrowly scoped to the requested behavior. Do not refactor unrelated code while fixing a bug.
  • Use rg/rg --files for repository searches and apply_patch for manual source edits.
  • Runtime source is TypeScript ESM. Follow the existing 2-space, single-quote, semicolon style; Oxlint and Oxfmt are authoritative.
  • Keep hot queue paths synchronous while a shard lock is held. Do not introduce an await inside a synchronous critical section.
  • Maintain queue invariants together: heap membership, jobIndex, processing maps, counters, temporal indexes, group ownership, and concurrency slots must transition exactly once.
  • SQLite filtering, ordering, and pagination must happen in a consistent order. Use deterministic tie-breakers for paginated queries and add migrations for schema or index changes.
  • Do not silently change externally visible scheduling semantics. Add explicit regression coverage when priority, delay, FIFO-group, retry, or recovery behavior changes.
  • Keep source files at or below 300 lines. Give each file one responsibility and export only what is needed; split a file instead of growing it beyond that boundary.
  • Respect the lock hierarchy: jobIndex -> completedJobs -> shards[N] -> processingShards[N]. Read prerequisite state before acquiring the next lock and always release locks in finally.

Read the full file on GitHub · 313 lines

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. 4d ago Changed · +29 lines · +399 tokens per session d4fe841da8d8
  2. 16d ago Changed · +2 lines · +58 tokens per session 5c75d0fd27e3
  3. 21d ago Changed · +1 lines · +20 tokens per session c1a313b6ec8e
  4. 1mo ago Changed · +24 lines · +355 tokens per session dc0c3f972c29
  5. 2mo ago First seen · 257 lines · 2,936 tokens per session scan A fc5921d57b9e

Subscribe to this mod's changes

bunqueue AGENTS.md is an instructions file published in the GitHub repository egeominotti/bunqueue (590 stars, last pushed today), licensed MIT. It adds 3,768 tokens to every session, about $0.0151 per session on Opus 5.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 instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens