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.
curl -O https://raw.githubusercontent.com/marcelomartins/bun-hono-vue-cloudflare/main/AGENTS.mdgit clone --depth 1 https://github.com/marcelomartins/bun-hono-vue-cloudflareWrote 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.
[](https://agentmods.dev/instructions/marcelomartins/bun-hono-vue-cloudflare/agents-md)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.tsstill 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, followSETUP.mdbefore any other work. - Read
README.mdfor the stack, the architecture, the routing model, and the API surface before changing code.
Architecture Invariants
- Keep
wrangler.jsoncat the repository root and the Worker entrypoint atworker-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=/, andSameSite=Laxon 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, andSESSION_SECRETcan 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_versionand 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
assertRuntimeConfigurationonly when enabled, failing closed once enabled, and never required by a default flow. - Validate the host and the
Originheader in the Worker (validateHostAndOrigin) on every mutation. Frontend controls never replace authorization or validation in the Worker. - Keep
assertRuntimeConfigurationrejecting missing or inconsistentENVIRONMENT,SESSION_SECRET,APP_HOST, andAPP_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
UPDATEorDELETEusesRETURNINGor checks the affected rows, and an insert under aUNIQUEconstraint usesON CONFLICT. A lost race returns409, never a false success or a500. - Never accept numeric database ids from clients; the UUID v7
uuidcolumn is the only public identifier. - Read external bodies through
readJsonwith the shared Zod schemas, neverrequest.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
structuredLogwith non-sensitive diagnostic fields andsanitizedRequestPath. - 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 auditfree of advisories. Every entry in the rootoverridesmust be listed inCONTRIBUTING.mdwith 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-buildenforces 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.tsso 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_headersfrom them. Never hand-write_headers,robots.txt, orsitemap.xml; the build generates them. scripts/init.tsholds 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.
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.
- 22d ago Changed · +19 tokens per session c69adbbfbeed
- 23d ago Changed · +4 lines · +277 tokens per session 1cb1a369b07c
- 2mo ago First seen · 46 lines · 1,032 tokens per session scan A a2cd33176cc4
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.
bun-hono-vue-cloudflare AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| bun-hono-vue-cloudflare AGENTS.mdmarcelomartins/bun-hono-vue-cloudflare | Instructions file | 10 | 18d ago | MIT | A | 1,328 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |