agentleFS
CloudflareKnown publishercloudflare/workerd/src/tests/node/AGENTS.md

workerd / node

AGENTS.md8.8k starsChanged 9 months agoApache-2.0View on GitHub

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 over connect() stream halves, and the node:http client and server over fetch() bodies. One subdirectory per area. Every test here runs against both streams implementations — the legacy C++ one (src/workerd/api/streams/) and the TypeScript one (src/per_isolate/webstreams/) — to prove the node layer behaves identically on either. The suite rules are those of src/tests/streams/AGENTS.md, applied…

Trending

Quiet since August.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 2 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 1 mentionSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the cloudflare/workerd repository that our weekly crawl found: only 12 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about cloudflare/workerd

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

See all 12

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

On GitHub · 6

1 more on GitHub

On Hacker News · 2

The file

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

1 rule. About 0 are common, 0 are distinctive, and 1 is 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.

  • 1

    Very specific

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

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

    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 …

    line 3

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

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 over connect() stream halves, and the node:http client and server over fetch() bodies. One subdirectory per area. Every test here runs against both streams implementations — the legacy C++ one (src/workerd/api/streams/) and the TypeScript one (src/per_isolate/webstreams/) — to prove the node layer behaves identically on either.

The suite rules are those of src/tests/streams/AGENTS.md, applied verbatim: one file per behavior; main.js with explicit named re-exports; the module list defined once in <name>-modules.capnp and shared by the <name>-cpp.wd-test and <name>-ts.wd-test cells; compatibility flags pinned by name, never a compatibilityDate; divergences branched on usingTsImpl from which-impl.js and asserted exactly on each side; legacy C++-only cells (generate_all_compat_flags_variant = False) for pre-flag behaviors; each suite's AGENTS.md is the index of behaviors to tests plus the divergence ledger. Read that file first.

What is specific to this tree

  • The subject is the node layer's use of streams, not the streams themselves. A test belongs here when it observes how src/node/ code drives a ReadableStream/WritableStream (locks, backpressure, close/abort/cancel propagation, chunk types) or how a web stream surfaces through a node API. Pure web-streams behavior belongs in src/tests/streams/; pure node-API behavior with no stream underneath (header parsing, BlockList, option validation) stays in src/workerd/api/node/tests/.
  • Under the C++ implementation the adapters and http.ServerResponse construct streams with new ReadableStream()/new WritableStream(), which require streams_enable_constructors; the C++ cells pin it and the legacy cells pin the constructor-gate Error that older compat dates still produce. The TypeScript implementation does not consult the flag.
  • nodejs_compat is date-enabled (2026-08-04) and is pinned explicitly so the @ variant (2000-01-01) still loads node:*.
  • Suites that talk to a peer use a node sidecar (js_binary + sidecar_port_bindings), following src/tests/streams/sockets/.

Suites

DirectorySubjectPeer
stream/Readable/Writable/Duplex.toWeb/fromWeb, pipeline, compose, finished, addAbortSignal, stream/web, stream/consumersnone
net/net.Socket over the connect() socket's BYOB reader and writernode sidecar TCP servers
http-server/http.Server: the Request body pump and the ServerResponse body streamthe worker itself (service binding)
http-client/http.request(): the Blob request body, the Response body pump, the exchange's teardownnode sidecar HTTP server

Running

bazel test //src/tests/node/... --nocache_test_results

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.