vibesdk
AGENTS.md5.4k starsChanged 4 months agoMITView on GitHub
- Reads credentials
Trending
Quiet since September.about the whole repository
Who's talking about cloudflare/vibesdk
- A Hacker News story“VibeSDK: Open-source vibe coding platform”Hacker News · Sep 23, 2025 · 3 points
- A Hacker News story“VibeSDK/Cloudflare”Hacker News · Nov 19, 2025 · 2 points
- @u11g.com“Build your own vibe-coding platform on Cloudflare's stack - open source and powerful! …”Bluesky · Dec 20, 2025 · 1 likes
- A Hacker News story“Zero Lines of code. 1 AI prompt. 1 deployed website”Hacker News · Dec 9, 2025 · 1 points
- @github-trending-js.bsky.social“🔥 Hot Repo! 🔥 (100+ new stars) 📦 cloudflare / vibesdk ⭐ 3,516 (+149) 🗒 TypeScript An open-source vibe …”Bluesky · Dec 8, 2025 · 1 likes
The biggest 5 of 16 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 16
Talked about on GitHub, Hacker News and Bluesky (16 times).
On GitHub · 8
- Sep 26, 2026wiki: bulk update 2026-09-26 — wikicommit/ai-driven-dev-wiki0 reactions
- Sep 26, 2026wiki: bulk update 2026-09-26 — wikicommit/ai-driven-dev-wiki0 reactions
- Sep 26, 2026wiki: bulk update 2026-09-26 — wikicommit/ai-driven-dev-wiki0 reactions
- Sep 26, 2026[Candidate] cloudflare/vibesdk/worker/agents/think/skills/frontend-design-landing-page - frontend-design-landing-page — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] cloudflare/vibesdk/worker/agents/think/skills/frontend-design - frontend-design — ProSkillsMD/proskills0 reactions · 1 comment
3 more on GitHub
- Sep 26, 2026[Candidate] cloudflare/vibesdk/worker/agents/think/skills/app-file-structure - cloudflare-bundler-apps — ProSkillsMD/proskills0 reactions · 1 comment
- Sep 12, 2026Architecture review: Cloudflare first-party VibeSDK and Workers for Platforms patterns — Midtown-Technology-Group/Wrangnarok0 reactions · 2 comments
- Sep 12, 2026Study Cloudflare-native FOSS platforms for reusable architecture and cost patterns — Midtown-Technology-Group/Wrangnarok0 reactions · 1 comment
On Hacker News · 5
- Sep 23, 2025VibeSDK: Open-source vibe coding platform3 points
- Nov 19, 2025VibeSDK/Cloudflare2 points
- Dec 9, 2025Zero Lines of code. 1 AI prompt. 1 deployed website1 point
- Nov 20, 2025Cloudflare Vibe SDK1 point
- Sep 30, 2025Vibesdk: Cloudflare's open source AI-coding app toolkit1 point
On Bluesky · 3
- Dec 20, 2025Build your own vibe-coding platform on Cloudflare's stack - open source and powerful! https://github.com/cloudflare/vibesdk — @u11g.com1 likes and repost
- Dec 8, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 cloudflare / vibesdk ⭐ 3,516 (+149) 🗒 TypeScript An open-source vibe coding platform that helps you… — @github-trending-js.bsky.social1 likes and repost
- Dec 8, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 cloudflare / vibesdk ⭐ 3,516 (+149) 🗒 TypeScript An open-source vibe coding platform that helps you… — @github-trending.bsky.social1 likes and repost
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository5 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- cloudflare-bundler-appsSkill
- frontend-design-landing-pageSkill
- frontend-design-saasSkill
- frontend-designSkill
The file
We split this AGENTS.md into the rules it gives an agent
7 rules. About 0 are common, 0 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 4
Use Bun from the repository root.
- Very specific: line 21
Prefer @cloudflare/kumo for new UI.
- Very specific: line 26
Use TanStack Query for frontend server state and network-call caching.
- Very specific: line 27
Keep TanStack query keys centralized in src/lib/query-keys.ts.
- Very specific: line 31
Prefer query hooks (useQuery, useMutation) over ad-hoc loading/error state in React contexts.
- Very specific: line 47
After changing Wrangler bindings, run bun run cf-typegen.
- Very specific: line 50
Do not introduce new any types even though ESLint currently permits existing ones.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
Tooling
- Use Bun from the repository root. The tracked lockfile is
bun.lock, thespaceworkspace dependency usesworkspace:*, and install/build hooks invoke Bun even when started through npm. bun run setupis the interactive Cloudflare/resource bootstrap. Local development expects the generated.dev.vars; never commit.dev.vars*or.prod.vars.bun run devstarts the React frontend and Worker together through@cloudflare/vite-pluginathttp://localhost:5173. There is no separate Worker dev command.bun run dev:browseris 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 buildbuildsspaceand the Vite/Worker bundle; it does not typecheck. Runbun run typecheckseparately.- Focus a root test with
bunx vitest run path/to/file.test.ts; test execution uses the Workers pool andwrangler.test.jsonc. - The root Vitest suite excludes all
sdk/test/**andcontainer/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; runbun run --cwd sdk test:integration. They can take 5-10 minutes;VIBESDK_INTEGRATION_RUN_PREVIEW=1enables the slower preview case. - Root typecheck/lint do not validate
spaceorsdk. For touched packages runbun run --cwd space typecheck/bun run --cwd space buildandbun run --cwd sdk packageas appropriate. - ESLint checks only
src/**andworker/**and deliberately ignores tests; do not treatbun run lintas repository-wide validation. - Pre-commit typechecks staged TypeScript and runs related Vitest tests.
RUN_ALL_TESTS=1selects its broader suite;SKIP_TESTS=1bypasses the hook.
Frontend UI
- Tailwind CSS v4 via CSS-first setup in
src/index.css(@import 'tailwindcss',@theme, Kumo tokens); notailwind.config.*. - Prefer
@cloudflare/kumofor new UI. List components withbun kumo ls; component docs viabun kumo doc Button(swap name as needed). Legacy shadcn/Radix undersrc/components/ui/still exists—do not add new primitives there when Kumo covers the case. - Icons:
@phosphor-icons/react. Dark mode isdata-mode="dark"on the root (not aclassstrategy). - Path aliases:
@/*→src/*,shared/*,worker/*(seetsconfig.app.json).
Frontend Data Fetching
- Use TanStack Query for frontend server state and network-call caching.
QueryClientProvideris wired at the React root; configure shared defaults insrc/lib/query-client.ts. - Keep TanStack query keys centralized in
src/lib/query-keys.ts. Use hierarchical keys so broad invalidation works, for examplequeryKeys.apps.allshould invalidate app list/favorite variants. - Frontend HTTP still goes through
src/lib/api-client.ts; query functions should wrap existingapiClientmethods rather than callingfetchdirectly from components. - Include user/account identity in query keys when cached data is user-specific, or explicitly clear/remove those queries on logout/user switch.
enabled: !!userprevents fetching but does not clear old cached data. - Mutations that change cached server state must update cache with
queryClient.setQueryDataor invalidate the relevantqueryKeyson success. Do not rely on a localrefetch()in one component if sidebar or other shared UI consumes the same data. - Prefer query hooks (
useQuery,useMutation) over ad-hoc loading/error state in React contexts. Context remains appropriate for client-only UI state or providers required by libraries.
Boundaries
src/is the React app (src/main.tsx, routes insrc/routes.tsx). API contracts live insrc/api-types.ts; frontend HTTP calls belong insrc/lib/api-client.ts.worker/index.tsis the Worker entrypoint and Durable Object export surface. Hono middleware/routes are wired byworker/app.tsandworker/api/routes/index.ts.space/is the only declared workspace package. It provides theSpaceDOworkspace and file layer used by the think agent, with durable git history stored through Cloudflare Artifacts, and is bundled before the root app; edit implementation inspace/src, never generatedspace/dist, and keep the hand-maintainedspace/types/index.d.tsaligned with public exports.sdk/is an independent Bun package with its own lockfile, scripts, and tests. It imports the platform WebSocket protocol fromworker/api/websocketTypes.ts, so protocol changes must remain SDK-compatible.- Shared frontend/backend types belong in
shared/; Worker-only types stay underworker/. - Architecture overview (ThinkAgent, SpaceDO, Artifacts, Dynamic Worker previews):
docs/llm.md. Production deploy:bun run deploy(needs.prod.vars).
Change Paths
- API endpoint: update
src/api-types.ts->src/lib/api-client.ts->worker/database/services/(when persistence is needed) ->worker/api/controllers/->worker/api/routes/, then register the route inworker/api/routes/index.ts. - WebSocket message: update
worker/api/websocketTypes.ts, backend handling inworker/agents/core/websocket.ts, and frontend handling insrc/routes/chat/utils/handle-websocket-message.ts; verify SDK tests because its protocol re-exports these types. - LLM tool: add it under
worker/agents/tools/toolkit/and register it inworker/agents/tools/customTools.ts(buildToolsorbuildDebugTools). The think behavior has a separate tool path and bypassesbuildTools. - Think tool: create it under
worker/agents/think/, add SpaceDO RPC typing if needed, register it inThinkAgent.getTools(), and update the relevant prompt or skill. - D1 schema source is
worker/database/schema.ts; generate migrations intomigrations/withbun run db:generate, then apply locally withbun run db:migrate:local. - After changing Wrangler bindings, run
bun run cf-typegen;worker-configuration.d.tsis consumed by setup and TypeScript configs.
Constraints
- Do not introduce new
anytypes even though ESLint currently permits existing ones; find or define a concrete type. Frontend API types should import from@/api-types. - Worker code reads bindings from
env; do not use Vite environment variables there. - All
/api/*routes are owner-only by default inworker/app.ts; public routes must explicitly follow the existing auth override pattern. - User secrets RPC methods return
null/booleanon failure rather than throwing; preserve that contract when editingworker/services/secrets/. - For usage-limit UI behavior and its cross-component invariants, read
docs/usage-limits-ui.mdbefore editing the badge, credits banner, or limit popups.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

