bun-hono-vue-cloudflare: Instructions file for Codex

AGENTS.md

bun-hono-vue-cloudflare AGENTS.md is an instructions file for Codex, OpenCode from marcelomartins/bun-hono-vue-cloudflare. It costs 1,328 tokens per session, scanned A, original, MIT.

Project-specific instructions for building a web application with Bun, Hono, Vue, Cloudflare Workers, D1, and TypeScript.

In plain words
What is it for?
Use them when working in the marcelomartins/bun-hono-vue-cloudflare project, including setup, implementation, review, and verification.
Why use it?
They give an agent the repository's architecture rules, security expectations, and required checks before it changes code.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is marcelomartins/bun-hono-vue-cloudflare's own configuration. It tells Codex and OpenCode how to work on bun-hono-vue-cloudflare 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 bun-hono-vue-cloudflare configures →

Reuse

Borrowing it

Nothing to install: this file belongs to marcelomartins/bun-hono-vue-cloudflare. 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/marcelomartins/bun-hono-vue-cloudflare/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/marcelomartins/bun-hono-vue-cloudflare

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 bun-hono-vue-cloudflare AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/marcelomartins/bun-hono-vue-cloudflare/agents-md/github.svg)](https://agentmods.dev/instructions/marcelomartins/bun-hono-vue-cloudflare/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/marcelomartins/bun-hono-vue-cloudflare/agents-md"><img src="https://agentmods.dev/badge/instructions/marcelomartins/bun-hono-vue-cloudflare/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 bun-hono-vue-cloudflare AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/marcelomartins/bun-hono-vue-cloudflare/agents-md"><img src="https://agentmods.dev/badge/instructions/marcelomartins/bun-hono-vue-cloudflare/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,328 This file is loaded in full into every session.
When invoked 1,328 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.01328 $0.01328
Opus 5.5 $0.00531 $0.00531
Sonnet 5.5 $0.00266 $0.00266
Haiku 4.5 $0.00133 $0.00133

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

Security

Grade A, and why

bun-hono-vue-cloudflare 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 22d 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 · 50 lines

How it starts

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

AGENTS

Instructions

  • Act as a Senior Full-Stack Software Engineer with experience in TypeScript, Bun, Hono, Cloudflare Workers, D1, Vue 3, and web application security.
  • IMPORTANT: Critically evaluate all prompts, requirements, and proposed solutions. If anything is incomplete, incorrect, insecure, inconsistent with the existing architecture, unnecessarily complex, or otherwise open to improvement, you MUST raise the concern, clearly explain the issue, and propose the most appropriate alternative before implementing it.
  • Only do what is explicitly requested. Do not create features that were not requested.
  • Only add comments when they explain decisions, risks, or non-obvious invariants; comments that merely describe the code are not necessary.
  • There should be no unnecessary or unused code, and no unused files.
  • Do not create documentation files unless they are clearly requested.
  • Do not use Git to commit changes. Git may only be used to view or inspect changes.
  • If scripts/init.ts still exists, this is either the starter itself or a project created from it that has not been initialized yet. Unless the user has said which, ask before changing anything; for a new project, follow SETUP.md before any other work.
  • Read README.md for the stack, the architecture, the routing model, and the API surface before changing code.

Architecture Invariants

  • Keep wrangler.jsonc at the repository root and the Worker entrypoint at worker-api/src/index.ts.
  • Derive every routing decision from the route registry in worker-shared/contracts/src/router/routes.ts. Where a file cannot import it (wrangler.jsonc), keep a test that validates that file against the registry; never maintain an unchecked route list.
  • Never pre-render a protected page, never serve the SPA shell before the Worker has checked the session, and keep /index-spa* returning 404 to direct browser requests.
  • Keep the __Host- prefix, HttpOnly, Secure, Path=/, and SameSite=Lax on the session cookie.
  • Sessions are stateless HMAC tokens bound to users.session_version, with no session table. This is a deliberate trade-off: a single device cannot be signed out on its own, and SESSION_SECRET can mint a session for any user, so a leaked secret must be rotated, which signs every user out. Changing this model is an explicit decision, not a refactor.
  • Revocation must not be weakened: logout increments session_version and invalidates every token of that user on every device; a password change does the same and reissues a token for the current session only. Neither may report success unless its write happened.
  • Security-sensitive account changes (the password today; email or session management if added) require the current password in the same request.
  • Keep the optional integrations optional: disabled by default, validated by assertRuntimeConfiguration only when enabled, failing closed once enabled, and never required by a default flow.
  • Validate the host and the Origin header in the Worker (validateHostAndOrigin) on every mutation. Frontend controls never replace authorization or validation in the Worker.
  • Keep assertRuntimeConfiguration rejecting missing or inconsistent ENVIRONMENT, SESSION_SECRET, APP_HOST, and APP_ORIGIN. Absence of secrets must never enable permissive fallbacks.
  • Use D1 prepared statements with .bind() for all external values. Never build SQL by concatenation.
  • Writes that can lose a race must detect it: a conditional UPDATE or DELETE uses RETURNING or checks the affected rows, and an insert under a UNIQUE constraint uses ON CONFLICT. A lost race returns 409, never a false success or a 500.
  • Never accept numeric database ids from clients; the UUID v7 uuid column is the only public identifier.
  • Read external bodies through readJson with the shared Zod schemas, never request.json() directly.
  • Keep API error codes stable and in English; user-facing messages belong in the frontend i18n map.
  • Do not log request/response bodies, passwords, tokens, cookies, codes, or raw email addresses. Use structuredLog with non-sensitive diagnostic fields and sanitizedRequestPath.
  • Keep everything in English: technical names, code, tests, logs, documentation, and visible application text. Never hardcode a locale.
  • Use Bun for package management, scripts, and unit tests. Do not switch the package manager or generate another lockfile.
  • Keep bun audit free of advisories. Every entry in the root overrides must be listed in CONTRIBUTING.md with why it exists and when to remove it.
  • Prefer Web and Workers APIs. Node.js compatibility is enabled, but Node-specific APIs require a concrete need.
  • Do not add browser dependencies casually: check-client-build enforces the forbidden-dependency list and the client JavaScript budget.
  • Treat existing migrations as applied. Schema changes require a new additive migration, unless the user explicitly confirms the database can be recreated.
  • Do not put secrets in wrangler.jsonc, code, or committed files.
  • Declare every optional binding in worker-api/vitest.config.ts so integration tests never depend on the developer's .dev.vars.
  • Define browser security headers only in worker-shared/contracts/src/http/security-headers.ts: the Worker applies them and the build generates _headers from them. Never hand-write _headers, robots.txt, or sitemap.xml; the build generates them.
  • scripts/init.ts holds the identifiers it rewrites, so it must keep excluding itself from the walk. Update it whenever a new starter identifier is introduced.
  • Do not add remote bindings, deploy, use remote D1, set secrets, or change DNS without explicit authorization.

Read the full file on GitHub · 50 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. 22d ago Changed · +19 tokens per session c69adbbfbeed
  2. 23d ago Changed · +4 lines · +277 tokens per session 1cb1a369b07c
  3. 2mo ago First seen · 46 lines · 1,032 tokens per session scan A a2cd33176cc4

Subscribe to this mod's changes

bun-hono-vue-cloudflare AGENTS.md is an instructions file published in the GitHub repository marcelomartins/bun-hono-vue-cloudflare (10 stars, last pushed 18d ago), licensed MIT. It adds 1,328 tokens to every session, about $0.0053 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-31.

Related

bun-hono-vue-cloudflare AGENTS.md compared with instructions from other repositories

bun-hono-vue-cloudflare AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bun-hono-vue-cloudflare AGENTS.mdmarcelomartins/bun-hono-vue-cloudflareInstructions file1018d agoMITA1,328Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode