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

workerd / inspect

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

Informal specification of node:util inspect output for every stream surface, derived from — and kept in lockstep with — this suite. The tests are the normative artifact. The C++ implementation installs a custom inspect exposing lock/state internals; the TypeScript implementation has none — every stream inspects as a bare ClassName {} regardless of state, so introspection consumers lose [state], [supportsBYOB], [length], and [expectsBytes] under TS. Both sides are pinned verbatim at every lifecycle transition. The C++ cell pins, beyond the…

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

Files
AGENTS.md

util.inspect over streams

Informal specification of node:util inspect output for every stream surface, derived from — and kept in lockstep with — this suite. The tests are the normative artifact.

The one divergence (it is the whole suite)

The C++ implementation installs a custom inspect exposing lock/state internals; the TypeScript implementation has none — every stream inspects as a bare ClassName {} regardless of state, so introspection consumers lose [state], [supportsBYOB], [length], and [expectsBytes] under TS. Both sides are pinned verbatim at every lifecycle transition.

SurfaceC++ shape (pinned verbatim per state)Pinned in
value ReadableStreamReadableStream { locked, [state]: 'readable'→'closed', [supportsBYOB]: false, [length]: undefined }inspectValueReadable
errored ReadableStream[state]: 'errored'inspectErroredReadable
byte ReadableStream[supportsBYOB]: trueinspectByteReadable
WritableStreamWritableStream { locked, [state]: 'writable'→'closed', [expectsBytes]: false }inspectWritable
erroring WritableStream[state]: 'erroring'→'errored' (the transitional state is observable)inspectErroringWritable
FixedLengthStreamcomposite readable+writable; [length] counts DOWN as bigint (5n→2n→0n) as reads draininspectFixedLengthStream
IdentityTransformStreamcomposite; abort drives writable 'errored', first failed read drives readable 'errored'inspectErroredIdentityStream

Compatibility flags

The C++ cell pins, beyond the constructors pair: internal_writable_stream_abort_clears_queue + writable_stream_spec_compliant_writer (the identity abort reaches 'errored' immediately only under modern abort semantics) and workers_api_getters_setters_on_prototype (the composite inspect lists readable before writable only with prototype accessors; with own- instance properties the order flips). The TS cell pins nothing stream-semantic — its output is state-independent.

Migrated from api/streams/streams-test.js (whose KV-dependent partiallyReadStream remains there).

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.