bunqueue: Instructions file for Claude Code

CLAUDE.md

bunqueue CLAUDE.md is an instructions file for Claude Code from egeominotti/bunqueue. It costs 8,505 tokens per session, scanned A, original, MIT.

Project instructions for bunqueue, a TypeScript job queue that runs on Bun and uses SQLite for storage. They define coding, testing, language, and review rules.

In plain words
What is it for?
Developing or repairing queue processing, persistence, network clients, workers, tests, and related documentation in the bunqueue repository.
Why use it?
They require bugs to be reproduced with tests first and changes to pass isolated validation, helping catch regressions and concurrency problems.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions subagents.

This is egeominotti/bunqueue's own configuration. It tells Claude Code 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/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/egeominotti/bunqueue

Made for: Claude Code.

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 CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/egeominotti/bunqueue/claude-md/github.svg)](https://agentmods.dev/instructions/egeominotti/bunqueue/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/egeominotti/bunqueue/claude-md"><img src="https://agentmods.dev/badge/instructions/egeominotti/bunqueue/claude-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 CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/egeominotti/bunqueue/claude-md"><img src="https://agentmods.dev/badge/instructions/egeominotti/bunqueue/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8,505 This file is loaded in full into every session.
When invoked 8,505 The same file — it is already loaded in full.
Security scan A 1 finding. 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.08505 $0.08505
Opus 5.5 $0.03402 $0.03402
Sonnet 5.5 $0.01701 $0.01701
Haiku 4.5 $0.00851 $0.00851

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

Security

Grade A, and why

bunqueue CLAUDE.md scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl http://localhost:6790/health # Health + memory
CLAUDE.md · 683 lines

How it starts

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

bunqueue

MANDATORY — SKEPTIC AGENT: before every git commit and every git push, invoke the skeptic agent and wait for its verdict. It must read the complete staged diff, identify at least three potential failure points per changed file, and verify race conditions, error handling, idempotency, type safety and test coverage. FAIL blocks commit and push; CONDITIONAL requires the user's explicit confirmation. The project profile is .claude/agents/skeptic.md.

ENGLISH ONLY: keep all repository content in English, including source comments, tests, technical documentation, user documentation and agent configuration.

"When I report a bug, don't start by trying to fix it. Instead, start by writing a test that reproduces the bug. Then, have subagents try to fix the bug and prove it with a passing test."

MANDATORY: After ANY code modification, run the isolated validation before committing:

bun run test:sandbox

It builds the current worktree once and runs ALL THREE required suites concurrently in separate disposable containers:

bun test --parallel=4                   # Unit tests (four isolated file workers)
bun scripts/tcp/run-all-tests.ts        # TCP integration tests (~50 suites)
bun scripts/embedded/run-all-tests.ts   # Embedded integration tests (~35 suites)

Never commit without all three passing. No exceptions.

MANDATORY for core queue semantics: run the real-broker model before the sandbox:

bun run test:model

Run it after every change to lifecycle transitions, SQLite/write buffering, startup or stall recovery, priority/FIFO/LIFO/delay scheduling, FIFO groups, dependencies, dedup/custom IDs, leases, limits, TTL, counters, temporal indexes, or jobIndex. The fast-check model executes generated command histories against a fresh TCP broker and SQLite database, including actual SIGKILL restarts. It checks conservation, no loss/resurrection/duplicate active lease, retry and stall bounds, legal transitions, ordering, resource limits, counter/index coherence, idempotent recovery, and DLQ exactly-once.

On failure, retain the seed, minimized command history, and replay path. If the engine is wrong, add a deterministic test/repro-model-*.test.ts that fails before changing runtime code; if the specification is wrong, correct the model with evidence. Never weaken an invariant to make a campaign green. Deeper replay (BUNQUEUE_MODEL_COMMANDS is only the real bound with BUNQUEUE_MODEL_SIZE=max; at fast-check's default size a history has at most 10 commands):

BUNQUEUE_MODEL_RUNS=500 BUNQUEUE_MODEL_COMMANDS=150 BUNQUEUE_MODEL_SIZE=max \
BUNQUEUE_MODEL_SEED=-1959189325 bun run test:model

Replay one failure exactly with the seed, path and size fast-check prints: BUNQUEUE_MODEL_SEED=<seed> BUNQUEUE_MODEL_PATH=<path> BUNQUEUE_MODEL_SIZE=<size> bun run test:model.

This targeted command does not replace bun run test:sandbox; the full bun test --parallel=4 unit command inside the sandbox runs the model again.

MANDATORY: After ANY modification under sdk/, run before handoff (and run again before committing if the SDK changed afterward):

bun run test:sandbox:sdk

It runs every official external SDK's native tests and shared protocol conformance checks in isolated disposable containers. SDK changes require both full gates (test:sandbox and test:sandbox:sdk); targeted native tests do not replace either one. Review artifacts/test-sandbox-sdk/<timestamp>/summary.md and its JSON/NDJSON artifacts before handoff.

Read the full file on GitHub · 683 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 a681c40b4d62
  2. 16d ago Changed · +9 lines · +178 tokens per session e53ab928b0fe
  3. 21d ago Changed · +3 lines · +129 tokens per session c454aa4a02ad
  4. 24d ago Changed · +22 tokens per session e407cb6229b7
  5. 27d ago Changed · +5 tokens per session ff302311846d
  6. 28d ago Changed · +3 lines · +38 tokens per session d85c92cba621
  7. 1mo ago Changed · +24 lines · +333 tokens per session f5a8b9dc8ff5
  8. 2mo ago First seen · 615 lines · 7,401 tokens per session scan A 69145d9b624d

Subscribe to this mod's changes

bunqueue CLAUDE.md is an instructions file published in the GitHub repository egeominotti/bunqueue (590 stars, last pushed today), licensed MIT. It adds 8,505 tokens to every session, about $0.0340 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). 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