agentleFS
CloudflareKnown publishercloudflare/cloudflare-os-starter/AGENTS.md

cloudflare-os-starter

AGENTS.md328 starsChanged 26 days agoApache-2.0View on GitHub

This repository deploys a self-hosted Cloudflare OS: up to seven Workers, plus any optional Gatekeepers a deployment selects, configured by deployment.jsonc and built from the pinned cloudflare-os submodule. Updating is always cf-os update, never a hand-moved gitlink or a hand-merged starter: IMPORTANT: This repository uses pnpm, not npm. The one exception is npx cf-os@latest, which fetches the newest published CLI. IMPORTANT: A global or npx cf-os runs main.ts, commands/scaffold.ts and commands/update.ts from the published package, without the submodule. Nothing they…

The file

Files
AGENTS.md

This repository deploys a self-hosted Cloudflare OS: up to seven Workers, plus any optional Gatekeepers a deployment selects, configured by deployment.jsonc and built from the pinned cloudflare-os submodule.

  • cloudflare-os/: upstream, pinned by the gitlink. Never edit it here; it changes only by moving the pin.
  • packages/cf-os: the cf-os CLI (pnpm cf-os <command>), which configures, checks, deploys and updates the project. src/core is pure logic; Cloudflare API calls go through src/cf-client.ts.
  • packages/custom-gatekeeper, packages/error-reporter: this repository's own Workers.
  • .agents/skills/cloudflare-os-operator: load it for anything touching a deployment: Access, deployment.jsonc, deploys, migrations, rollback.

Updating is always cf-os update, never a hand-moved gitlink or a hand-merged starter:

  • npx cf-os@latest update merges the starter's main and checks out the pin it brings.
  • --upstream (upstream's main) or --to <commit|tag|branch> stages a newer pin, uncommitted, for review; --preview --to <branch|pull/N> pins one for a preview only. In the starter repository itself there is no starter to merge, so pnpm cf-os update --upstream is the whole step.
  • --dry-run first shows both commit ranges. Then carry out .cf-os/update.md and its checklist, references/updating.md, before committing the pin.

Checks:

  • pnpm lint (lint, type-check, build) and pnpm test before pushing. pnpm cf-os check generates every Worker's config and dry-runs each deploy.
  • cf-os tests are node:test: node --test packages/cf-os/src/<file>.test.ts. The Workers' tests run on Vitest.
  • pnpm cf-os deploy deploys for real, with no confirmation: only when the operator asks.

IMPORTANT: This repository uses pnpm, not npm. The one exception is npx cf-os@latest, which fetches the newest published CLI.

IMPORTANT: A global or npx cf-os runs main.ts, commands/scaffold.ts and commands/update.ts from the published package, without the submodule. Nothing they import statically may reach @gadgets/*; main.test.ts checks it.

IMPORTANT: Results meant for scripts go to stdout as JSON; everything else, a spawned tool's output included, goes to stderr. Every prompt has a flag or config equivalent, and without a terminal a missing answer fails naming it.

Comments say what the code is and why, not what changed. A behaviour change updates the docs that describe it (packages/cf-os/README.md, docs/, the operator skill) in the same commit.

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.