agentleFS
CloudflareKnown publishercloudflare/quiche/AGENTS.md

quiche

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

Generated: 2026-02-20 Commit: 89d1850f Branch: master Cloudflare's QUIC and HTTP/3 implementation in Rust. Workspace of 11 crates: core quiche protocol library, tokio-quiche async integration, CLI tools (apps, h3i), logging/analysis (qlog, qlog-dancer, netlog), and supporting primitives (octets, buffer-pool, datagram-socket, task-killswitch).

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

PROJECT KNOWLEDGE BASE

Generated: 2026-02-20 Commit: 89d1850f Branch: master

OVERVIEW

Cloudflare's QUIC and HTTP/3 implementation in Rust. Workspace of 11 crates: core quiche protocol library, tokio-quiche async integration, CLI tools (apps, h3i), logging/analysis (qlog, qlog-dancer, netlog), and supporting primitives (octets, buffer-pool, datagram-socket, task-killswitch).

STRUCTURE

quiche/                     # Core QUIC+H3 library (C FFI, BoringSSL via boring-sys)
tokio-quiche/               # Async tokio wrapper (server/client drivers)
apps/                       # CLI binaries: quiche-client, quiche-server
h3i/                        # HTTP/3 interactive testing/debugging tool
qlog/                       # qlog event schema (RFC draft)
qlog-dancer/                # qlog/netlog visualization (native + wasm)
netlog/                     # Chrome netlog parser
octets/                     # Zero-copy byte buffer primitives
buffer-pool/                # Sharded lock-free buffer pool (deprecated — no longer used by other workspace crates)
datagram-socket/            # UDP socket abstraction (sendmmsg/recvmmsg) + zero-copy buffer for datagrams
task-killswitch/            # Async task cancellation primitive
fuzz/                       # Fuzz targets (excluded from workspace)
tools/                      # Android build tooling, http3_test harness

DEPENDENCY GRAPH

octets  task-killswitch  qlog  netlog  buffer-pool    (Layer 0: no workspace deps)
  |           |            |      |     (no dependents)
  v           |            v      v
quiche  datagram-socket  qlog-dancer        (Layer 1)
  |   \     |              |
  v    \    v              v
  tokio-quiche  <----------+                           (Layer 2: depends on most)
  |     |
  v     v
 h3i   apps                                           (Layer 3: end-user tools)

WHERE TO LOOK

TaskLocationNotes
QUIC connection logicquiche/src/lib.rs9k lines, core Connection struct
HTTP/3 protocolquiche/src/h3/mod.rsOwn Error/Result types
Congestion controlquiche/src/recovery/Two impls: congestion/ (legacy) + gcongestion/ (BBR2)
TLS/crypto backendsquiche/src/tls/, quiche/src/crypto/BoringSSL only
C FFIquiche/src/ffi.rs + quiche/include/quiche.hBehind ffi feature
Async server/clienttokio-quiche/src/ApplicationOverQuic trait is the extension point
H3 async drivertokio-quiche/src/http3/driver/DriverHooks sealed trait, channels
QUIC IO workertokio-quiche/src/quic/io/worker.rsConnection FSM, GSO/GRO
Packet routingtokio-quiche/src/quic/router/Demux by DCID
Test infraquiche/src/test_utils.rsPipe struct for in-memory QUIC pairs
Config cascadetokio-quiche/src/settings/ → quiche::ConfigConnectionParams → quiche::Config → h3::Config

CODE MAP

SymbolTypeLocationRole
Connectionstructquiche/src/lib.rsCore QUIC connection
Configstructquiche/src/lib.rsTransport configuration
h3::Connectionstructquiche/src/h3/mod.rsHTTP/3 over QUIC
ApplicationOverQuictraittokio-quiche/src/quic/Async app lifecycle hook
H3Driver<H>structtokio-quiche/src/http3/driver/Generic H3 driver
IoWorker<Tx,M,S>structtokio-quiche/src/quic/io/worker.rsPer-connection IO loop
Pipestructquiche/src/test_utils.rsIn-memory test connection pair
BufFactorytraitquiche/src/buffers.rsZero-copy buffer creation
Recoveryenumquiche/src/recovery/mod.rsCC dispatch via enum_dispatch
RecoveryOpstraitquiche/src/recovery/mod.rs40+ method CC interface

CONVENTIONS

  • Line width 82 (rustfmt.toml), comments 80. Nightly rustfmt required.
  • MANDATORY: run cargo +nightly fmt after every code change, no exceptions -- this includes trivial edits like renames, comment changes, or single-line fixes.
  • One use per item (imports_granularity = "Item", vertical layout).
  • pub(crate) for cross-module internals; pub only for true public API.
  • BSD-2-Clause copyright header on every .rs file.
  • #[macro_use] extern crate log (legacy style, no use log::*).
  • Domain abbreviations: cid, scid/dcid, pkt, dgram, bidi/uni, rtt.
  • mod.rs pattern for submodules (not inline foo/ + foo.rs).
  • Debug symbols in release (profile.release.debug = true).
  • #![warn(missing_docs)] -- public items must be documented.

ANTI-PATTERNS (THIS PROJECT)

  • Do not use any types or type assertions -- this is Rust; no equivalent concern, but unsafe is restricted to FFI boundaries (tls/, crypto/, ffi.rs, gso.rs).
  • Do not add clippy #[allow] without justification -- 33 existing overrides all have documented reasons.
  • Cognitive complexity lint disabled (clippy.toml: 100) -- complex functions accepted for protocol code, but don't add new ones casually.
  • Two Acked types exist in recovery/congestion and recovery/gcongestion -- not unified, don't create a third.
  • connection_not_present() returns TlsFail in tokio-quiche driver -- misleading sentinel, don't propagate this pattern.
  • Error::Done used as success signal in H3 driver write path -- non-obvious, don't replicate.
  • transmute of Instant in gso.rs -- fragile, platform-dependent, don't extend.

FEATURE FLAGS

quiche:        default=boringssl-boring-crate
               qlog, gcongestion, internal, ffi, fuzzing, sfv, custom-client-dcid,
               pkg-config-meta
tokio-quiche:  fuzzing, quiche_internal, gcongestion, zero-copy, rpk
               (hardcodes: quiche/boringssl-boring-crate + quiche/qlog)
h3i:           async (enables tokio-quiche dependency)

COMMANDS

# Dev
cargo build                                           # build workspace (boring-sys builds BoringSSL)
cargo test --all-targets --features=async,ffi,qlog --workspace  # full test suite
cargo test --doc --features=async,ffi,qlog --workspace          # doc tests (separate!)

# Lint
cargo clippy --features=async,ffi,qlog --workspace -- -D warnings
cargo +nightly fmt -- --check                                  

# Fuzz
cargo fuzz run packet_recv_client -- -runs=1

# Docker
make docker-build                                     # quiche-base + quiche-qns images

NOTES

  • No git submodules: BoringSSL is built by boring-sys; cmake must be available.
  • MSRV 1.88: rust-version field in Cargo.toml.
  • Doc tests are separate: cargo test --all-targets does NOT run doc tests (cargo#6669).
  • BORING_BSSL_PATH: env var to point boring-sys at a custom BoringSSL source tree.
  • RUSTFLAGS="-D warnings": CI enforces; all warnings are errors.
  • Cargo.lock is gitignored (library project).
  • Dual CI: GitHub Actions (real) + GitLab CI (no-op stub).
  • cargo package disabled: commented out due to unpublished local crate version issues.

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.