agentleFS
CloudflareKnown publishercloudflare/workerd/src/tests/streams/cache/AGENTS.md

workerd / cache

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

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 by src/workerd/api/tests/cache-*; this suite owns the STREAMS interaction only. All cells wire cacheApiOutbound to a loopback cache-backend worker (cache-backend.js). A cache.put() arrives there as a PUT whose body is the SERIALIZED HTTP RESPONSE (status line + headers + CRLFCRLF + body); the backend splits at the header boundary, verifies the continuous…

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:

    All cells wire cacheApiOutbound to a loopback cache-backend worker (cache-backend.js).

    line 11

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

Cache API × 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 by src/workerd/api/tests/cache-*; this suite owns the STREAMS interaction only.

Infrastructure

All cells wire cacheApiOutbound to a loopback cache-backend worker (cache-backend.js). A cache.put() arrives there as a PUT whose body is the SERIALIZED HTTP RESPONSE (status line + headers + CRLFCRLF + body); the backend splits at the header boundary, verifies the continuous prime-modulus byte pattern over the body, extracts the serialized head's Content-Length, and records everything. The test worker reads the record back through its MOCK service binding (/last-put).

Coverage (parity — no divergences observed)

TestShape
putJsValueStreamBodyvalue stream of Uint8Array chunks, byte-exact at the backend
putJsByteStreamBody64 KiB chunked byte stream
putFixedLengthStreamBodyFixedLengthStream body; the declared length arrives as a concrete Content-Length in the serialized head
putIdentityStreamBodyidentity body fed by a concurrent writer
putLargeStreamBody1 MiB chunked, byte-exact
putDisturbedBodyRejects / putLockedBodyRejectsTypeError before any backend traffic
putErroringBodyRejectssource error rejects the put
concurrentClonePutsthe migrated cache-put-stream-test.js regression: clone + concurrent puts over a live TransformStream body, 1 MiB
matchBodyIsReadableStreama HIT body streams out and drains via a reader

Compatibility flags

The main C++ cell pins streams_enable_constructors and transformstream_enable_standard_constructor. cache-cpp-legacy runs concurrentClonePuts with only nodejs_compat, retaining coverage of the original TransformStream alias. Its @all-compat-flags variant is disabled because that variant would enable streams_enable_constructors, allowing the modern path selected by transformstream_enable_standard_constructor and duplicating the main C++ cell.

The backend worker takes no compatibilityDate — wd_test injects --compat-date, and a worker-level date conflicts with it.

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.