agentleFS

AGENTS.md examples from real projects

How real projects brief Codex, Cursor and every other agent that reads AGENTS.md.

Best matches · from page 19Worked for most · soon
CloudflareAGENTS.md

workerd / build

cloudflare/workerd/build/AGENTS.md

OVERVIEW Custom Bazel rules (`wd_*` macros) for C++, TypeScript, Rust, Cap'n Proto, and test orchestration. Uses bzlmod (`MODULE.bazel`), not WORKSPACE. This is build system definitions, NOT build output (`bazel

8.8k9mo agoReviewMountCreate a free account to mount
CloudflareAGENTS.md

workerd / cloudflare

cloudflare/workerd/src/cloudflare/AGENTS.md

implementation) - `internal/tracing-helpers.ts` — Shared instrumentation (`withSpan`); imported as `cloudflare-internal:tracing-helpers` - `internal/test/ /` — Per-product test directory ## TEST PATTERN Each product test directory contains: | File | Purpose | | --------------------------------------- | ------------------------------------------------------------ | | ` -api-test.js` | JS test; named exports

8.8k9mo agoReviewMountCreate a free account to mount
CloudflareAGENTS.md

workerd / per_isolate

cloudflare/workerd/src/per_isolate/AGENTS.md

when the `typescript_implemented_streams` compat flag is enabled, plus the internal-testing `ReadableStreamDrainingReader` under `expose_draining_reader`. - Files are auto-discovered (`BUILD.bazel` and `tsconfig.json` both glob `**/*.ts`). No registration

8.8k9mo agoReviewMountCreate a free account to mount
CloudflareAGENTS.md

workerd / crypto

cloudflare/workerd/src/per_isolate/crypto/AGENTS.md

backed views are read in place. ## PARITY Both implementations run `crypto-streams-test.js` unmodified, under `crypto-streams-test.wd-test` (C++) and `crypto-streams-ts-test.wd-test` (TypeScript). Behavior shared between them belongs in that file so drift

8.8k9mo agoReviewMountCreate a free account to mount
CloudflareAGENTS.md

workerd / webfs

cloudflare/workerd/src/per_isolate/webfs/AGENTS.md

held until the context is collected. ## PARITY Both implementations run `webfs-test.js` unmodified, under `webfs-test.wd-test` (C++) and `webfs-ts-test.wd-test` (TypeScript). Behavior shared between them belongs in that file so drift

8.8k9mo agoReviewMountCreate a free account to mount
CloudflareAGENTS.md

workerd / webstreams

cloudflare/workerd/src/per_isolate/webstreams/AGENTS.md

implementation (`ReadableStreamNativeSource` in `src/workerd/api/js-readable-stream.{h,c++}`) MUST conform to it; JS mocks in tests exercise the conduit independently. Key addition: `pull` receives an extension `signal` argument — the source checks `signal.aborted

8.8k9mo agoReviewMountCreate a free account to mount
CloudflareAGENTS.md

workerd / pyodide

cloudflare/workerd/src/pyodide/AGENTS.md

from PyPI. Keep existing code for backward compatibility; new features go to workers-py. ## TESTING Tests live in `src/workerd/server/tests/python/`. `py_wd_test.bzl` macro: expands `%PYTHON_FEATURE_FLAGS` template, handles multiple Pyodide versions

8.8k9mo agoReviewMountCreate a free account to mount
CloudflareAGENTS.md

workerd / rust

cloudflare/workerd/src/rust/AGENTS.md

Cargo workspace — entirely Bazel-driven (`wd_rust_crate.bzl` / `wd_rust_binary.bzl`). Clippy pedantic+nursery enabled; `allow-unwrap-in-tests`; `clippy.toml` and `rustfmt.toml` live at the repository root and apply to every crate. Rust does

8.8k9mo agoReviewMountCreate a free account to mount
CloudflareAGENTS.md

workerd / cxx

cloudflare/workerd/src/rust/cxx/AGENTS.md

assume stock cxx-rs behavior when changing bridge generation or runtime code. ## Build and test Run commands from the workerd repository root: ```sh bazel build //src/rust/cxx/... bazel test //src/rust/cxx/... ``` Important

8.8k9mo agoReviewMountCreate a free account to mount
CloudflareAGENTS.md

workerd / node

cloudflare/workerd/src/tests/node/AGENTS.md

src/tests/node/ Test suites for the parts of the Node.js compatibility layer (`src/node/`) that sit on top of the Web Streams implementation: the `node:stream` web-interop adapters, `node:net` sockets

8.8k9mo agoReviewMountCreate a free account to mount
CloudflareAGENTS.md

workerd / http-client

cloudflare/workerd/src/tests/node/http-client/AGENTS.md

body it pumps into its `IncomingMessage` — derived from and kept in lockstep with the test suite in this directory. **The tests are the normative artifact**; this document maps behaviors

8.8k9mo agoReviewMountCreate a free account to mount
CloudflareAGENTS.md

workerd / http-server

cloudflare/workerd/src/tests/node/http-server/AGENTS.md

Response` it hands back to `fetch()` — derived from and kept in lockstep with the test suite in this directory. **The tests are the normative artifact**; this document maps behaviors

8.8k9mo agoReviewMountCreate a free account to mount
CloudflareAGENTS.md

workerd / net

cloudflare/workerd/src/tests/node/net/AGENTS.md

connect()` socket underneath it, derived from and kept in lockstep with the test suite in this directory. **The tests are the normative artifact**; this document maps behaviors to the tests

8.8k9mo agoReviewMountCreate a free account to mount
CloudflareAGENTS.md

workerd / stream

cloudflare/workerd/src/tests/node/stream/AGENTS.md

finished`, `addAbortSignal`, `node:stream/web`, `node:stream/consumers` — derived from and kept in lockstep with the test suite in this directory. **The tests are the normative artifact**; this document maps behaviors

8.8k9mo agoReviewMountCreate a free account to mount
CloudflareAGENTS.md

workerd / streams

cloudflare/workerd/src/tests/streams/AGENTS.md

src/tests/streams/ Streams test suite, organized WPT-style: one subdirectory per functional area (`identity/`, `encoding/`, `compression/`, `digest/`, `strategies/`, `readable/`, `readable-byte/`, `writable/`, `transform/`, `piping/`, `inspect/`, `r2-patterns/`, `iocontext/`, `cache/`, `htmlrewriter/`, `formdata

8.8k9mo agoReviewMountCreate a free account to mount
CloudflareAGENTS.md

workerd / cache

cloudflare/workerd/src/tests/streams/cache/AGENTS.md

streams The Cache API consuming and producing stream bodies under both stream implementations. **The tests are the normative artifact.** The general Cache API surface (headers, vary, purge, instrumentation) is owned

8.8k9mo agoReviewMountCreate a free account to mount
CloudflareAGENTS.md

workerd / compression

cloudflare/workerd/src/tests/streams/compression/AGENTS.md

Streams classes as implemented in workerd, derived from — and kept in lockstep with — the test suite in this directory. **The tests are the normative artifact.** Both the C++ implementation (`src/workerd/api/streams/compression

8.8k9mo agoReviewMountCreate a free account to mount
CloudflareAGENTS.md

workerd / digest

cloudflare/workerd/src/tests/streams/digest/AGENTS.md

hash digest) as implemented in workerd, derived from — and kept in lockstep with — the test suite in this directory. **The tests are the normative artifact.** Both the C++ implementation (`src/workerd/api/crypto/crypto

8.8k9mo agoReviewMountCreate a free account to mount
CloudflareAGENTS.md

workerd / encoding

cloudflare/workerd/src/tests/streams/encoding/AGENTS.md

stream classes as implemented in workerd, derived from — and kept in lockstep with — the test suite in this directory. **The tests are the normative artifact**; this document indexes every specified

8.8k9mo agoReviewMountCreate a free account to mount
CloudflareAGENTS.md

workerd / formdata

cloudflare/workerd/src/tests/streams/formdata/AGENTS.md

streamed bodies and FormData serialized INTO a stream body — under both stream implementations. **The tests are the normative artifact.** The general FormData surface (W3C API matrix, urlencoded, entry semantics

8.8k9mo agoReviewMountCreate a free account to mount
CLAUDE.md vs AGENTS.md

About AGENTS.md

What is AGENTS.md?

An open format for instructions to coding agents, read by Codex, Cursor and others. Think of it as a README written for agents.

Where does it go?

At the repository root, with more specific files in subdirectories. Agents read the one closest to the file they're editing.

What should it contain?

Setup and test commands, code style, and the rules a new contributor would need to know.

Does Claude Code read it?

Claude Code reads CLAUDE.md. A one-line CLAUDE.md that points at AGENTS.md covers both.