cloudflare-os / workshop-frontend
AGENTS.md11k starsChanged 2 months agoApache-2.0View on GitHub
This package is the Workshop single-page application. It uses React, TanStack Router, Tailwind, and Kumo. Follow the repository-wide guidance in ../../AGENTS.md in addition to this file. Organize new code by product ownership first and implementation type second. The existing tree predates this convention. Apply it to new code and to code being substantially reworked; do not migrate unrelated files opportunistically. Feature directories own product behavior. A feature may contain components, hooks, tests, and utilities that belong to that behavior. Start…
Trending
Less talk lately.about the whole repository
Who's talking about cloudflare/cloudflare-os
- @qdrddr.bsky.social“@cloudflare.social released a #harness #agent, confusingly called #Cloudflare OS, that includes an agent …”Bluesky · Aug 10, 2026 · 6 likes
- @yug1224.com“社内の文脈やシステムと連携してAIエージェントやアプリを動かせる環境らしい 企業の業務効率化ツールとしてかなり便利そう yug1224 starred cloudflare/cloudflare-os…”Bluesky · Aug 8, 2026 · 4 likes
- @github-trending.bsky.social“📦 cloudflare / cloudflare-os ⭐ 10,391 (+84) 🗒 TypeScript Agent workspace built on Cloudflare Workers for …”Bluesky · Oct 3, 2026 · 2 likes
- @smith.wiki“Cloudflare OS is an open-source workspace for AI agents and personal applications. This investigation asks …”Bluesky · Oct 2, 2026 · 2 likes
- @github-trending-js.bsky.social“🔥 Hot Repo! 🔥 (100+ new stars) 📦 cloudflare / cloudflare-os ⭐ 9,164 (+111) 🗒 TypeScript Agent workspace …”Bluesky · Aug 25, 2026 · 2 likes
The biggest 5 of 41 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 41
Talked about on GitHub and Bluesky (41 times).
On GitHub · 27
- Aug 6, 2026Cloudflare OS integration: gatekeeper capability layer + os-bridge — S-FX-com/Arcadia1 reaction · 1 comment
- Oct 7, 2026chore(cloudflare-os): bump to main@9c2b76a — appflare/catalog0 reactions
- Oct 6, 2026Add curated AI projects from Oct 6 Trending feeds — alvinreal/awesome-opensource-ai0 reactions
- Oct 5, 2026[Inspiration] Agent-built gadgets: persistent, sandboxed mini-apps users keep and iterate on, beyond one-shot run artifacts — helloimcx/agentdock0 reactions
- Oct 5, 2026🚀 upstreamの50コミットを取り込む(2026-10-05) — PAYNHQ/cloudflare-os0 reactions
22 more on GitHub
- Oct 4, 2026Scout pitch: Deferred approval (queue risky actions, keep working, one batch decision) — 8gi-foundation/8gent-code0 reactions
- Oct 4, 2026Donor intake: Cloudflare OS capability-security reference — ubuntuokos/Final-Architecture-v3.00 reactions · 2 comments
- Oct 3, 2026[Inspiration] Speculative permission gates: simulate blocked actions so unattended runs keep working, reconcile on approval — helloimcx/agentdock0 reactions
- Sep 26, 2026Upstream-Sync: 4 kritische Fixes f961c844→004ab773 (OWL-1715) — axelweichert/cloudflare-os0 reactions · 2 comments
- Sep 22, 2026feat: advance Cloudflare OS overlay to candidate.9 — dscott98/cloudflare-os-overlay0 reactions
- Aug 18, 2026MCP write-capable tools are not auto-retried after mid-flight session expiry (no duplicate side effects) (salvage #88821) — NousResearch/hermes-agent0 reactions · 1 comment
- Aug 12, 2026Cloudflare OS v2を試用しYouTube制作基盤への適合性を評価する — daiki-beppu/youtube-automation0 reactions
- Aug 12, 2026Update pinned cloudflare-os release — cloudflare/cloudflare-os-starter0 reactions · 1 comment
- Aug 10, 2026feat(ai): AI Gateway transport over the Cloudflare AI binding — earendil-works/pi0 reactions · 1 comment
- Aug 10, 2026Harden: move OAuth token decryption out of the main Worker into per-provider gatekeeper Workers — jezweb/vite-flare-starter0 reactions
- Aug 9, 2026cloudflare-os self-hosting via wrangler-cli + podman — elasticdotventures/_b00t_0 reactions · 1 comment
- Aug 9, 2026Create — github/advisory-database0 reactions
- Aug 8, 2026Add Cloudflare Workers AI Gateway transport over the AI binding — earendil-works/pi0 reactions · 4 comments
- Aug 8, 2026Cloudflare OS型Gatekeeper・Blueprint・共有Agent UXをイベント基盤へ導入する — KAFKA2306/vrc_cast_event_calender0 reactions · 1 comment
- Aug 8, 2026Cloudflare OS型の旅行Gadget・Gatekeeper・共有ワークスペースを導入する — KAFKA2306/travel0 reactions · 2 comments
- Aug 8, 2026Cloudflare OS型Gadget sandbox・Gatekeeper・Blueprintを衣装生成パイプラインへ導入する — KAFKA2306/image2outfit0 reactions · 1 comment
- Aug 8, 2026Cloudflare OS型Agent Workspace・Gatekeeper・Blueprintを分析基盤へ導入する — KAFKA2306/semiconductor-earnings-model0 reactions · 1 comment
- Aug 8, 2026Cloudflare OS型のGatekeeper・Blueprint・Agent APIを導入する — KAFKA2306/factory0 reactions · 2 comments
- Aug 7, 2026Clone cloudflare/cloudflare-os を取り込み — jeminisaga/-0 reactions
- Aug 5, 2026dweb: adopt the read-through sharing invariant (observer model) before data-bearing mesh surfaces land — NotASithLord/peerd0 reactions
- Aug 5, 2026runtime: optimistic side-effect queue — simulate unapproved actions, bulk-approve later (Gatekeeper pattern) — NotASithLord/peerd0 reactions · 1 comment
- Aug 5, 2026dweb: dwapp sandbox CSP omits connect-src — app frames have unrestricted network egress — NotASithLord/peerd0 reactions
On Bluesky · 14
- Aug 10, 2026@cloudflare.social released a #harness #agent, confusingly called #Cloudflare OS, that includes an agent runtime, a workspace, and… — @qdrddr.bsky.social6 likes and reposts · 1 reply
- Aug 8, 2026社内の文脈やシステムと連携してAIエージェントやアプリを動かせる環境らしい 企業の業務効率化ツールとしてかなり便利そう yug1224 starred cloudflare/cloudflare-os… — @yug1224.com4 likes and reposts
- Oct 3, 2026📦 cloudflare / cloudflare-os ⭐ 10,391 (+84) 🗒 TypeScript Agent workspace built on Cloudflare Workers for creating documents, building… — @github-trending.bsky.social2 likes and reposts
- Oct 2, 2026Cloudflare OS is an open-source workspace for AI agents and personal applications. This investigation asks what users can build, how agents… — @smith.wiki2 likes and reposts · 1 reply
- Aug 25, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 cloudflare / cloudflare-os ⭐ 9,164 (+111) 🗒 TypeScript Agent workspace built on Cloudflare Workers for… — @github-trending-js.bsky.social2 likes and reposts
9 more on Bluesky
- Aug 19, 2026At the other extreme, it evolves to be more like an OS at a higher level of abstraction. It provides a set of syscalls and guarantees that… — @jeremymorrell.dev2 likes and reposts · 1 reply
- Aug 7, 2026Cloudflare OS is an #OpenSource workspace for #AI productivity originally developed for use inside #Cloudflare. It provides: a) an agent… — @dshnow.bsky.social2 likes and reposts · 1 reply
- Aug 5, 2026#🔖テクノロジー GitHub - cloudflare/cloudflare-os: Agent workspace built on Cloudflare Workers for creating documents, building apps, and running… — @hatena-bookmark.bsky.social2 likes and reposts · 1 reply
- Sep 25, 2026📦 cloudflare / cloudflare-os ⭐ 10,090 (+31) 🗒 TypeScript Agent workspace built on Cloudflare Workers for creating documents, building… — @github-trending-js.bsky.social1 likes and repost
- Aug 11, 2026Cloudflare OS blog: blog.cloudflare.com/cloudflare-os/, github.com/cloudflare/cloudflare-os Vercel eve: vercel.com/blog/introducing-eve ·… — @akash-bhatia.bsky.social1 likes and repost
- Aug 6, 2026AI news - Aug 6, 2026 1. Cloudflare Open Sources Internal AI Productivity Operating System LINK 2. Jeff Dean and Google Executives Launch… — @hackobar.bsky.social1 likes and repost · 1 reply
- Aug 5, 2026Cloudflare OS – an open-source AI productivity environment Discussion | hackernews | Author: berlianta #InfrastructureAndDevOps — @news.karthihegde.dev1 likes and repost
- Oct 4, 2026AI news - Oct 4, 2026 1. Aleph Alpha launches Kolibri 78B Mixture-of-Experts LLM LINK 2. Cloudflare Workers Agent Workspace for… — @hackobar.bsky.social0 likes and reposts · 1 reply
- Aug 6, 2026時間ができたら遊んでみる。 github.com/cloudflare/c... — @koshibas.bsky.social0 likes and reposts · 1 reply
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.
- AGENTS.mdAGENTS.md
- packages/gatekeeper-kit/AGENTS.mdAGENTS.md
- packages/ui/AGENTS.mdAGENTS.md
- frontend-conventionsSkill
- write-gatekeeperSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
30 rules. About 0 are common, 19 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈19
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 28
Start a feature directory flat:
- Very specific: line 39
Do not create components/, hooks/, helpers/, or tests/ subdirectories merely to classify files by implementation type.
- Distinctive: line 52
Create a separate component file when the component has at least one of these properties:
- Distinctive: line 60
Keep small stateless rendering helpers private in their parent's file when they are only used there and remain easy to understand.
- Distinctive: line 64
Use PascalCase filenames for components and camelCase filenames for hooks and non-component modules.
- Very specific: line 85
Do not move product behavior into a page merely because the page currently consumes it.
- Very specific: line 88
Default uncertain code to the page and promote it when ownership broadens.
- Very specific: line 101
If task suggestions later become an independently meaningful workflow used by other pages, promote that code to a feature such as …
- Very specific: line 105
Do not edit src/routeTree.gen.ts.
- Distinctive: line 114
If multiple parts of one feature use an item, move it to their nearest common feature directory.
- Distinctive: line 115
If another feature consumes a concept still owned by the original feature, keep it exported from that feature.
- Distinctive: line 119
Do not merge components merely because they look similar.
- Very specific: line 155
Add children, named slots, variants, className, DOM prop passthrough, or imperative refs only when a current caller needs that control.
- Distinctive: line 158
Use context for application-wide values such as authentication, theme, and toasts.
- Distinctive: line 169
Use Kumo components and Kumo semantic design tokens by default.
- Very specific: line 181
Use Kumo semantic classes such as bg-kumo-base, text-kumo-subtle, and border-kumo-line rather than palette colors.
- Distinctive: line 186
Do not expand their use. Migrate them only as part of explicitly scoped cleanup.
- Distinctive: line 193
When a Kumo component is unsuitable, record the concrete behavioral or accessibility gap before adding a shared Workshop abstraction.
- Distinctive: line 202
Treat Effects as an escape hatch for synchronizing React with an external system, not as a general state-management tool.
- Distinctive: line 205
Do not use an Effect to derive render data from props or state.
- Distinctive: line 206
Do not use an Effect for logic caused by a user interaction.
- Distinctive: line 208
Do not use an Effect to keep two pieces of React state synchronized.
- Very specific: line 210
Prefer a component key when an identity change should reset the component's state.
- Very specific: line 211
Prefer useSyncExternalStore for external store subscriptions when it fits.
- Distinctive: line 214
Avoid chains of Effects that update state only to trigger another Effect.
- Distinctive: line 215
Keep state as close as possible to the behavior that owns it.
- Very specific: line 217
Do not add useMemo or useCallback by default.
- Distinctive: line 224
Prefer code that communicates its intent through names, types, and structure.
- Distinctive: line 241
Test observable contracts, product rules, state transitions, accessibility behavior, race handling, and failure paths.
- Very specific: line 259
Run pnpm lint from the public workspace root before pushing when the broader workspace state allows it.
≈ “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
Workshop Frontend
This package is the Workshop single-page application. It uses React, TanStack Router, Tailwind,
and Kumo. Follow the repository-wide guidance in ../../AGENTS.md in addition to this file.
Architecture
Organize new code by product ownership first and implementation type second.
src/
routes/ TanStack route declarations and route-level wiring
pages/ Substantial route-level screens that compose one or more features
features/ Product features and their owned UI, hooks, and logic
components/ UI and application primitives shared across unrelated features
hooks/ Hooks shared across unrelated features
utils/ Feature-independent utilitiesThe existing tree predates this convention. Apply it to new code and to code being substantially reworked; do not migrate unrelated files opportunistically.
Features
Feature directories own product behavior. A feature may contain components, hooks, tests, and utilities that belong to that behavior.
Start a feature directory flat:
features/chat/composer/
ChatComposer.tsx
ComposerAddMenu.tsx
ComposerAddMenu.test.tsx
useComposerDraft.ts
composerTokens.tsDo not create components/, hooks/, helpers/, or tests/ subdirectories merely to classify
files by implementation type. File names already communicate those types, and tests should usually
remain beside their subject.
Introduce a subdirectory when a coherent internal subsystem has several files or the flat directory
becomes difficult to scan. Name it after its responsibility, such as draft/, tokens/,
attachments/, or slash-commands/; avoid generic helpers/ buckets.
Organize by the reason files change together. Feature-based organization does not replace the one-component-per-file model.
Components
Create a separate component file when the component has at least one of these properties:
- It owns meaningful state, effects, or interaction behavior.
- It is independently testable or reusable.
- It represents a distinct UI responsibility.
- Keeping it inline makes the parent difficult to understand.
- It has grown supporting types or logic that obscure the parent's main flow.
Keep small stateless rendering helpers private in their parent's file when they are only used there and remain easy to understand. Extract them beside the parent when they develop their own behavior or tests.
Use PascalCase filenames for components and camelCase filenames for hooks and non-component modules. Prefer direct imports; do not add a barrel file solely to shorten paths.
Pages And Routes
Files under src/routes/ define routes. Keep them focused on route concerns: parameters, search
validation, loaders, navigation, and composing the route's page.
A page is a composition boundary, not necessarily a feature. A page may combine several features, and a feature may appear on several pages.
A small page may remain in its route file. Move a substantial page implementation to
src/pages/<page>/, where it can compose feature components. Components and hooks meaningful only
to that page stay in the page directory rather than global components/ or hooks/. Apply the same
flat-first and responsibility-based subdivision rules used for features. Keeping page support code
outside src/routes/ also keeps it out of TanStack Router's file scanning.
Name every route-level screen component under src/pages/ with a Page.tsx suffix, such as
HomePage.tsx or WorkspacePage.tsx. Supporting components keep names that describe their own
responsibility, such as HomeTaskSuggestions.tsx.
Do not move product behavior into a page merely because the page currently consumes it. Behavior
with independent product meaning or use across pages belongs to src/features/<feature>/.
Default uncertain code to the page and promote it when ownership broadens. The current Home page is
an example of code that predates this rule: components/AppShell/HomeTaskSuggestions.tsx and
components/MeshBackground.tsx have routes/index.tsx as their only production consumer. They are
Home-specific composition and presentation rather than shared AppShell primitives, so their target
organization would be:
pages/home/
HomePage.tsx
HomeTaskSuggestions.tsx
MeshBackground.tsxIf task suggestions later become an independently meaningful workflow used by other pages, promote
that code to a feature such as features/task-suggestions/. Do not begin there based only on
speculative reuse.
Do not edit src/routeTree.gen.ts; it is generated.
Shared Code
src/components/ and src/hooks/ are shared application infrastructure, not default destinations.
Code should begin under the feature that owns its behavior.
Reuse alone does not make code generic:
- If multiple parts of one feature use an item, move it to their nearest common feature directory.
- If another feature consumes a concept still owned by the original feature, keep it exported from that feature.
- Promote an item to global
components/orhooks/only when unrelated features use the same feature-independent abstraction and its API no longer depends on its original feature. - Do not merge components merely because they look similar. Avoid generic prop-heavy abstractions that erase important domain behavior.
Move code only as high in the hierarchy as its ownership requires. For example, a skill pill shared
by the composer and chat history belongs to features/chat/, while a generic application icon
button belongs to components/.
Component APIs And Composition
Represent props that are valid only together as one object or a discriminated union. Do not permit partial configurations:
// Avoid: callers can provide a count with no way to dismiss it.
count?: number;
onDismiss?: () => void;
// Prefer: the capability is either complete or absent.
notice?: { count: number; onDismiss: () => void };A controlled value requires a change callback. Otherwise, the component owns the value. Do not copy a controlled prop into local state with an Effect:
// Controlled
value: string;
onValueChange: (value: string) => void;
// Uncontrolled
initialValue?: string;Name callbacks on<Action> and pass domain values rather than React setters or browser events. For
example, expose onModelChange(modelId) rather than setSelectedModel or onChange(event).
Add children, named slots, variants, className, DOM prop passthrough, or imperative refs only
when a current caller needs that control. Do not add them in anticipation of reuse.
Use context for application-wide values such as authentication, theme, and toasts. Pass instance-specific feature data and actions through props; do not introduce context merely to avoid passing them through one or two component levels.
Extract a component or hook when the extracted unit owns a complete concern, such as state and its transitions, an Effect lifecycle and cleanup, an accessible interaction, or a pure transformation that can be tested independently. Keep code together when the child would mostly forward markup or would need the parent's refs, setters, and synchronization callbacks to function.
Kumo And Styling
Use Kumo components and Kumo semantic design tokens by default. Check Kumo before creating a custom control, interaction pattern, or visual primitive. Existing Workshop wrappers may be used when they provide established application behavior that Kumo does not provide directly.
Custom colors and design tokens outside Kumo are prohibited unless the user explicitly requests them. In particular, do not add:
- Hex, RGB, HSL, or OKLCH color literals in component styles.
- Arbitrary Tailwind color values.
- New application-specific color variables or token families.
- Feature-local replacements for Kumo surfaces, borders, text, status, focus, or interaction tokens.
Use Kumo semantic classes such as bg-kumo-base, text-kumo-subtle, and border-kumo-line rather
than palette colors. Global Kumo token theming is a deliberate application-level decision and must
not be introduced or changed as part of ordinary feature work.
Legacy custom tokens and color declarations in the current codebase are not precedent for new code. Do not expand their use. Migrate them only as part of explicitly scoped cleanup.
Tailwind remains appropriate for structure: layout, spacing, sizing, positioning, responsive behavior, and typography. Use custom CSS only for technical behavior that Kumo and utilities cannot express, such as editor integration or measured overlays; custom CSS does not relax the color and token rules.
When a Kumo component is unsuitable, record the concrete behavioral or accessibility gap before adding a shared Workshop abstraction. Do not wrap Kumo solely to restyle it.
React
- Define components and hooks as named
constarrow functions by default. This keeps declarations before use and avoids relying on function-declaration hoisting. Type props directly rather than usingReact.FC. Ensure components wrapped inmemo,forwardRef, or similar APIs retain an explicit name for React DevTools and stack traces, usingdisplayNamewhen inference is unclear. - Treat Effects as an escape hatch for synchronizing React with an external system, not as a general state-management tool. Follow React's You Might Not Need an Effect guidance.
- Do not use an Effect to derive render data from props or state. Calculate it during render instead.
- Do not use an Effect for logic caused by a user interaction. Run it in the event handler that knows what happened.
- Do not use an Effect to keep two pieces of React state synchronized. Prefer a single source of truth, derived values, controlled components, or lifting state.
- Prefer a component
keywhen an identity change should reset the component's state. - Prefer
useSyncExternalStorefor external store subscriptions when it fits. - Effects that fetch or subscribe must clean up stale work and subscriptions. Components must remain correct when Effects are restarted or mounted again in development.
- Avoid chains of Effects that update state only to trigger another Effect.
- Keep state as close as possible to the behavior that owns it.
- Extract a hook when it represents a coherent behavior or is reused, not simply to shorten a file.
- Do not add
useMemooruseCallbackby default; use them when identity or expensive computation has a concrete effect, and follow existing compiler guidance. - Preserve keyboard behavior, focus management, and accessible names when extracting interactive UI.
- RPC stubs must follow the disposal and React state rules in the repository-wide
AGENTS.md.
Comments
Prefer code that communicates its intent through names, types, and structure. Do not add comments that narrate what the next line or block already says.
Comments are appropriate for gotchas, non-obvious invariants, external constraints, security or performance reasoning, and deliberate departures from a convention. Explain why the surprising choice is necessary, not the mechanics visible in the code. Remove or update comments when the constraint they describe no longer exists.
Tests
Colocate unit tests with their subject using *.test.ts or *.test.tsx. Use a feature-level
__tests__/ directory only for scenarios that span several modules and have no single owner.
Tests should either protect behavior whose regression would be important, or verify real logic introduced by the change. Do not test React, JavaScript, TypeScript, Kumo, or another framework's own behavior merely because it appears in the implementation.
Test observable contracts, product rules, state transitions, accessibility behavior, race handling, and failure paths. Avoid assertions coupled only to implementation details, trivial passthrough markup, or behavior already guaranteed by types and the underlying platform. A test should have a clear failure whose meaning matters to this application.
Behavior-preserving moves should keep tests unchanged apart from imports. Add focused coverage when an extraction exposes important previously untested logic; do not add tests solely because a file or component boundary now exists.
Useful commands from the public workspace root:
pnpm --filter @gadgets/workshop-frontend test:run
pnpm exec tsc -p packages/workshop-frontend/tsconfig.json
pnpm exec tsc -p packages/workshop-frontend/tsconfig.vite.json
pnpm exec vp run -F @gadgets/workshop-frontend buildRun pnpm lint from the public workspace root before pushing when the broader workspace state
allows it.
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.

