vibesdk: Instructions file for Codex

AGENTS.md

vibesdk AGENTS.md is an instructions file for Codex, OpenCode from cloudflare/vibesdk. It costs 1,600 tokens per session, scanned A, original, MIT.

A set of instructions for coding agents working on a Cloudflare project with a React interface and a Worker backend. It explains the project tools, local setup, frontend work, data fetching, and checks.

In plain words
What is it for?
Use it when installing dependencies, starting local development, running tests, checking types, linting, or building the Cloudflare application.
Why use it?
It gives agents the repository-specific commands and rules they need, reducing setup mistakes and missed verification steps.

Instructions file for CodexOpenCode ✓ vendor

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

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

About the project

Cloudflare VibeSDK is an open-source platform for building and deploying full-stack applications through an AI coding agent. Users describe an application, review the agent's questions and edits, inspect previews and errors, and iterate through deployment on Cloudflare. The catalogue entries provide skills and instructions for working with the platform.

cloudflare/vibesdk · 5,461 stars · on GitHub · build.cloudflare.dev

Reuse

Borrowing it

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

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 vibesdk AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/cloudflare/vibesdk/agents-md"><img src="https://agentmods.dev/badge/instructions/cloudflare/vibesdk/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,600 This file is loaded in full into every session.
When invoked 1,600 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.01600 $0.01600
Opus 5.5 $0.00640 $0.00640
Sonnet 5.5 $0.00320 $0.00320
Haiku 4.5 $0.00160 $0.00160

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

Security

Grade A, and why

vibesdk 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 2mo 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 · 55 lines

How it starts

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

AGENTS.md

Tooling

  • Use Bun from the repository root. The tracked lockfile is bun.lock, the space workspace dependency uses workspace:*, and install/build hooks invoke Bun even when started through npm.
  • bun run setup is the interactive Cloudflare/resource bootstrap. Local development expects the generated .dev.vars; never commit .dev.vars* or .prod.vars.
  • bun run dev starts the React frontend and Worker together through @cloudflare/vite-plugin at http://localhost:5173. There is no separate Worker dev command.
  • bun run dev:browser is an optional local Chromium sidecar for the think agent's browser-console tool; absence only produces a warning.

Verification

  • Root checks: bun run typecheck, bun run lint, bun run test, bun run build.
  • bun run build builds space and the Vite/Worker bundle; it does not typecheck. Run bun run typecheck separately.
  • Focus a root test with bunx vitest run path/to/file.test.ts; test execution uses the Workers pool and wrangler.test.jsonc.
  • The root Vitest suite excludes all sdk/test/** and container/monitor-cli.test.ts. SDK tests use Bun: bun run --cwd sdk test.
  • SDK integration tests require a running root dev server and VIBESDK_INTEGRATION_API_KEY; run bun run --cwd sdk test:integration. They can take 5-10 minutes; VIBESDK_INTEGRATION_RUN_PREVIEW=1 enables the slower preview case.
  • Root typecheck/lint do not validate space or sdk. For touched packages run bun run --cwd space typecheck / bun run --cwd space build and bun run --cwd sdk package as appropriate.
  • ESLint checks only src/** and worker/** and deliberately ignores tests; do not treat bun run lint as repository-wide validation.
  • Pre-commit typechecks staged TypeScript and runs related Vitest tests. RUN_ALL_TESTS=1 selects its broader suite; SKIP_TESTS=1 bypasses the hook.

Frontend UI

  • Tailwind CSS v4 via CSS-first setup in src/index.css (@import 'tailwindcss', @theme, Kumo tokens); no tailwind.config.*.
  • Prefer @cloudflare/kumo for new UI. List components with bun kumo ls; component docs via bun kumo doc Button (swap name as needed). Legacy shadcn/Radix under src/components/ui/ still exists—do not add new primitives there when Kumo covers the case.
  • Icons: @phosphor-icons/react. Dark mode is data-mode="dark" on the root (not a class strategy).
  • Path aliases: @/* → src/*, shared/*, worker/* (see tsconfig.app.json).

Read the full file on GitHub · 55 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. 2mo ago First seen · 55 lines · 1,600 tokens per session scan A d2ccf206b10b

Subscribe to this mod's changes

vibesdk AGENTS.md is an instructions file published in the GitHub repository cloudflare/vibesdk (5,461 stars, last pushed 15d ago), licensed MIT. It adds 1,600 tokens to every session, about $0.0064 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

vibesdk AGENTS.md compared with instructions from other repositories

vibesdk AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
vibesdk AGENTS.mdcloudflare/vibesdkInstructions file5.5k15d agoMITA1,600Codex, OpenCode
vibe-coding-prompt-template backend.instructions.mdKhazP/vibe-coding-prompt-templateInstructions file3.2k1mo agoMITA139GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot