agentleFS
CloudflareKnown publishercloudflare/vibesdk/AGENTS.md

vibesdk

AGENTS.md5.4k starsChanged 4 months agoMITView on GitHub

  • Reads credentials

Trending

Quiet since September.about the whole repository

Dec 2025: 4 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 8 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the cloudflare/vibesdk repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about cloudflare/vibesdk

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

3 more on GitHub
  • 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.

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
  1. Very specific:

    Use Bun from the repository root.

    line 4
  2. Very specific:

    Prefer @cloudflare/kumo for new UI.

    line 21
  3. Very specific:

    Use TanStack Query for frontend server state and network-call caching.

    line 26
  4. Very specific:

    Keep TanStack query keys centralized in src/lib/query-keys.ts.

    line 27
  5. Very specific:

    Prefer query hooks (useQuery, useMutation) over ad-hoc loading/error state in React contexts.

    line 31
  6. Very specific:

    After changing Wrangler bindings, run bun run cf-typegen.

    line 47
  7. Very specific:

    Do not introduce new any types even though ESLint currently permits existing ones.

    line 50

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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).

Frontend Data Fetching

  • Use TanStack Query for frontend server state and network-call caching. QueryClientProvider is wired at the React root; configure shared defaults in src/lib/query-client.ts.
  • Keep TanStack query keys centralized in src/lib/query-keys.ts. Use hierarchical keys so broad invalidation works, for example queryKeys.apps.all should invalidate app list/favorite variants.
  • Frontend HTTP still goes through src/lib/api-client.ts; query functions should wrap existing apiClient methods rather than calling fetch directly 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: !!user prevents fetching but does not clear old cached data.
  • Mutations that change cached server state must update cache with queryClient.setQueryData or invalidate the relevant queryKeys on success. Do not rely on a local refetch() 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 in src/routes.tsx). API contracts live in src/api-types.ts; frontend HTTP calls belong in src/lib/api-client.ts.
  • worker/index.ts is the Worker entrypoint and Durable Object export surface. Hono middleware/routes are wired by worker/app.ts and worker/api/routes/index.ts.
  • space/ is the only declared workspace package. It provides the SpaceDO workspace 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 in space/src, never generated space/dist, and keep the hand-maintained space/types/index.d.ts aligned with public exports.
  • sdk/ is an independent Bun package with its own lockfile, scripts, and tests. It imports the platform WebSocket protocol from worker/api/websocketTypes.ts, so protocol changes must remain SDK-compatible.
  • Shared frontend/backend types belong in shared/; Worker-only types stay under worker/.
  • 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 in worker/api/routes/index.ts.
  • WebSocket message: update worker/api/websocketTypes.ts, backend handling in worker/agents/core/websocket.ts, and frontend handling in src/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 in worker/agents/tools/customTools.ts (buildTools or buildDebugTools). The think behavior has a separate tool path and bypasses buildTools.
  • Think tool: create it under worker/agents/think/, add SpaceDO RPC typing if needed, register it in ThinkAgent.getTools(), and update the relevant prompt or skill.
  • D1 schema source is worker/database/schema.ts; generate migrations into migrations/ with bun run db:generate, then apply locally with bun run db:migrate:local.
  • After changing Wrangler bindings, run bun run cf-typegen; worker-configuration.d.ts is consumed by setup and TypeScript configs.

Constraints

  • Do not introduce new any types 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 in worker/app.ts; public routes must explicitly follow the existing auth override pattern.
  • User secrets RPC methods return null/boolean on failure rather than throwing; preserve that contract when editing worker/services/secrets/.
  • For usage-limit UI behavior and its cross-component invariants, read docs/usage-limits-ui.md before editing the badge, credits banner, or limit popups.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.