agentleFS
CloudflareKnown publishercloudflare/quiche/tokio-quiche/src/http3/driver/AGENTS.md

quiche / driver

AGENTS.md13k starsChanged 2 months agoBSD-2-ClauseView on GitHub

Async HTTP/3 driver bridging quiche::h3::Connection to Tokio tasks via channels. H3Driver<H: DriverHooks> is generic over sealed client/server hooks; users interact through H3Controller + typed event/command channels.

Trending

Less talk lately.about the whole repository

Dec 2025: 2 mentionsJan 2026: 1 mentionFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 1 mentionMay 2026: 1 mentionJun 2026: 1 mentionJul 2026: 2 mentionsAug 2026: 0 mentionsSep 2026: 1 mentionOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the cloudflare/quiche repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about cloudflare/quiche

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

See all 54

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

On Bluesky · 27

22 more on Bluesky

On GitHub · 23

18 more on GitHub

The file

Files
AGENTS.md

HTTP/3 Driver (tokio-quiche/src/http3/driver/)

OVERVIEW

Async HTTP/3 driver bridging quiche::h3::Connection to Tokio tasks via channels. H3Driver<H: DriverHooks> is generic over sealed client/server hooks; users interact through H3Controller + typed event/command channels.

STRUCTURE

FileRole
mod.rsH3Driver, H3Controller, H3Event, H3Command, OutboundFrame/InboundFrame, channel types, ApplicationOverQuic impl
hooks.rsDriverHooks trait (sealed). Defines headers_received, conn_established, conn_command, wait_for_action
client.rsClientHooks impl, ClientH3Driver/ClientH3Controller aliases, ClientH3Event/ClientH3Command
server.rsServerHooks impl, ServerH3Driver/ServerH3Controller aliases, ServerH3Event/ServerH3Command
streams.rsStreamCtx, FlowCtx, WaitForStream future, capacity/readiness signals
datagram.rsDATAGRAM/CONNECT-UDP flow handling
connection.rsH3Conn wrapper exposing h3::Connection operations
test_utils.rsDriverTestHelper<H> -- wraps Pipe + H3Driver for unit tests
tests.rs~1500 lines of driver tests

WHERE TO LOOK

TaskStart at
Channel architecturemod.rs:332 (H3Driver struct fields: h3_event_sender, cmd_recv, stream_map, waiting_streams)
select! loop / priority orderingmod.rs wait_for_data impl -- uses biased select!
Stream lifecyclecleanup_stream, shutdown_stream, process_h3_fin, process_h3_data in mod.rs
Per-stream backpressurestreams.rs -- FuturesUnordered<WaitForStream>, WaitForDownstreamData, WaitForUpstreamCapacity
Adding endpoint-specific behaviorhooks.rs -- add method to DriverHooks, impl in client.rs/server.rs
Writing teststest_utils.rs for DriverTestHelper, tests.rs for examples

ANTI-PATTERNS

  • connection_not_present() returns TlsFail -- misleading sentinel error. Do not propagate this pattern.
  • process_write_frame uses Error::Done as success -- non-obvious control flow, don't replicate elsewhere.
  • DriverHooks is sealed -- mod hooks is pub(crate), trait has #[allow(private_interfaces)]. Do not expose.
  • Stream cleanup is distributed across 4+ functions (cleanup_stream, shutdown_stream, process_h3_fin, process_h3_data). Understand all paths before modifying.
  • STREAM_CAPACITY is 1 in test/debug, 16 in release. Tests exercise backpressure differently from prod.

NOTES

  • H3Driver::new() returns (H3Driver<H>, H3Controller<H>) -- paired at construction, connected by unbounded mpsc channels.
  • Per-stream channels are bounded (STREAM_CAPACITY); per-connection event/cmd channels are unbounded.
  • Datagram flows use a shared FLOW_CAPACITY=2048 bounded channel, separate from stream channels.
  • H3Event variants: IncomingSettings, IncomingHeaders, NewFlow, ResetStream, ConnectionError, ConnectionShutdown, BodyBytesReceived, StreamClosed.
  • H3Command variants: QuicCmd, GoAway, ShutdownStream.
  • Type aliases (ClientH3Driver, ServerH3Driver, etc.) are the public API; H3Driver<H> and DriverHooks are internal.

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.