agentleFS
CloudflareKnown publishercloudflare/agents/guides/AGENTS.md

agents / guides

AGENTS.md5.8k starsChanged 5 months agoMITView on GitHub

In-depth, pattern-oriented tutorials — runnable apps with substantial narrative READMEs that teach how to build a particular kind of agent application. If it demonstrates a single feature, it belongs in /examples. If it teaches an approach or pattern, it belongs here. Guides are runnable apps with the same structural conventions as examples: The README is the guide. The code is the supporting material. A guide README should walk a reader through the application, explaining both what the code does and…

  • Reads credentials

Trending

More talk lately.about the whole repository

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

Who's talking about cloudflare/agents

The biggest 5 of 43 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 43

Talked about on GitHub, Bluesky and Hacker News (43 times).

On GitHub · 33

28 more on GitHub

On Bluesky · 9

4 more on Bluesky

On Hacker News · 1

The file

We split this AGENTS.md into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If it demonstrates a single feature, it belongs in /examples.

    line 13
  2. Distinctive:

    Keep it narrative. The reader should be able to follow the README top-to-bottom and understand the pattern without reading every line of …

    line 44
  3. Very specific:

    Follow the same Vite, wrangler, and tsconfig conventions as /examples (see /examples/AGENTS.md)

    line 48
  4. Very specific:

    Use .env.example for secrets

    line 49

≈ “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 — guides/

In-depth, pattern-oriented tutorials — runnable apps with substantial narrative READMEs that teach how to build a particular kind of agent application.

How guides differ from examples

Examples (/examples)Guides (/guides)
FocusOne SDK feature or conceptA pattern or workflow spanning multiple features
READMEShort — what it does, how to run itWalkthrough — architecture, code explanations, best practices
Reader's goal"Show me what this looks like""Teach me how to build this kind of app"

If it demonstrates a single feature, it belongs in /examples. If it teaches an approach or pattern, it belongs here.

Structure

Guides are runnable apps with the same structural conventions as examples:

guide-name/
  package.json
  vite.config.ts        # must use @cloudflare/vite-plugin
  wrangler.jsonc        # not .toml
  tsconfig.json         # must extend agents/tsconfig
  index.html
  src/
    server.ts
    client.tsx
  README.md             # the main artifact — this is the tutorial

The README is the guide. The code is the supporting material.

README expectations

A guide README should walk a reader through the application, explaining both what the code does and why it is structured that way. Cover:

  1. What this guide teaches — the pattern or concept, with context (link to prior art, research, etc.)
  2. Architecture overview — how the pieces fit together, what components are involved
  3. Code walkthrough — key sections of code with explanations, not just the full source dumped in
  4. How to run it — setup, env vars, pnpm run dev
  5. Best practices — pitfalls, recommendations, what to do in production

Keep it narrative. The reader should be able to follow the README top-to-bottom and understand the pattern without reading every line of source code.

Conventions

  • Follow the same Vite, wrangler, and tsconfig conventions as /examples (see /examples/AGENTS.md)
  • Use .env.example for secrets
  • compatibility_date: "2026-06-11", compatibility_flags: ["nodejs_compat"]

Current guides

GuidePattern
anthropic-patterns/Five agent patterns from Anthropic's research (chaining, routing, parallelisation, orchestrator-workers, evaluator-optimizer)
human-in-the-loop/AI agents that request human approval before executing actions

Known issues

  • anthropic-patterns/ uses wrangler.json — should be wrangler.jsonc
  • human-in-the-loop/ uses wrangler.toml — should be wrangler.jsonc

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.