agentleFS
Sign inSign up

AGENTS.md examples from real projects

How real projects brief Codex, Cursor and every other agent that reads AGENTS.md.

Most stars firstWorked for most · soon
CloudflareAGENTS.md

cloudflared

cloudflare/cloudflared/AGENTS.md

Cloudflare's command-line tool and networking daemon written in Go. Production-grade tunneling and network connectivity services used by millions of developers and organizations worldwide. Notes on linting: - .golangci.yaml is configured with new-from-rev and whole-files: true. Touching a file triggers linting of the ENTIRE file, not just the changed hunks. Expect to fix pre-existing issues in files you modify, or add targeted // nolint: <linter> comments with a short justification. - Prefer defer func() { _ = resource.Close() }() over defer…

16k20d agoDiscuss
CloudflareAGENTS.md

quiche

cloudflare/quiche/AGENTS.md

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).

13k12d agoDiscuss
CloudflareAGENTS.md

quiche / datagram-socket

cloudflare/quiche/datagram-socket/AGENTS.md

UDP socket abstraction layer shared across the quiche workspace. Two main concerns: DgramBuffer (a headroom-aware zero-copy byte buffer for datagrams) and DatagramSocket* traits (uniform async send/recv over UdpSocket/UnixDatagram with Linux recvmmsg/sendmmsg batching). Wraps a Vec<u8> with a pos cursor dividing it into [headroom: 0..pos][payload: pos..]. as_slice() / len() expose only the payload. BufMut writes append to the tail, independent of pos. Fast path: allocate with withcapacityandheadroom, fill payload via BufMut, call tryadd_prefix to slide pos left and write the prefix…

13k12d agoDiscuss
CloudflareAGENTS.md

quiche / h3i

cloudflare/quiche/h3i/AGENTS.md

Low-level HTTP/3 testing client. Sends arbitrary/malformed H3 frames to probe server RFC compliance. Both library (lib.rs) and CLI binary (main.rs). Used programmatically as test driver in tokio-quiche integration tests.

13k12d agoDiscuss
CloudflareAGENTS.md

quiche / qlog

cloudflare/quiche/qlog/AGENTS.md

qlog data model for QUIC and HTTP/3 per IETF drafts (draft-ietf-quic-qlog-main-schema, draft-ietf-quic-qlog-quic-events, draft-ietf-quic-qlog-h3-events). Pure data types + serde serialization; no IO (deferred to consumers).

13k12d agoDiscuss
CloudflareAGENTS.md

quiche / qlog-dancer

cloudflare/quiche/qlog-dancer/AGENTS.md

Visualization/analysis tool for qlog and Chrome netlog files. Parses logs into a Datastore, extracts time-series into SeriesStore, renders PNG charts (native) or canvas plots (wasm). Outputs HTML/text reports with tabled summaries. Dual-target: native CLI binary (main.rs) + wasm-bindgen web UI (web.rs, #[cfg(target_arch = "wasm32")]). crate-type = ["lib", "cdylib"] -- cdylib is for wasm.

13k12d agoDiscuss
CloudflareAGENTS.md

quiche / quiche

cloudflare/quiche/quiche/AGENTS.md

Low-level QUIC transport and HTTP/3 in Rust. App provides IO/timers; this crate handles protocol state. Also exposes C FFI via staticlib/cdylib. BoringSSL itself is built by boring-sys (no in-tree submodule).

13k12d agoDiscuss
CloudflareAGENTS.md

quiche / h3

cloudflare/quiche/quiche/src/h3/AGENTS.md

HTTP/3 wire protocol over QUIC. Connection manages H3 state (streams, QPACK, SETTINGS, GOAWAY) on top of quiche::Connection<F>. Event-driven: caller loops poll() → Event. Own Error/Result types, separate from quiche::Error.

13k12d agoDiscuss
CloudflareAGENTS.md

quiche / recovery

cloudflare/quiche/quiche/src/recovery/AGENTS.md

QUIC loss detection and congestion control per RFC 9002. Two parallel CC implementations coexist: congestion/ (legacy Reno/CUBIC) and gcongestion/ (next-gen BBR2 ported from google/quiche). Recovery enum dispatches between LegacyRecovery and GRecovery via enum_dispatch over the RecoveryOps trait (40+ methods). - Two Acked structs at congestion/recovery.rs:1079 and gcongestion/mod.rs:49. NOT unified. Do NOT create a third. - FIXME stubs: Some RecoveryOps methods only apply to one impl. Both sides have // FIXME only used by {congestion,gcongestion} stubs that return defaults. Do not…

13k12d agoDiscuss
CloudflareAGENTS.md

quiche / tokio-quiche

cloudflare/quiche/tokio-quiche/AGENTS.md

Async tokio wrapper for quiche. Spawns per-connection IO worker tasks driven by an ApplicationOverQuic trait. Ships a ready-made H3Driver for HTTP/3. Uses foundations for structured logging (slog), telemetry, and settings.

13k12d agoDiscuss
CloudflareAGENTS.md

quiche / driver

cloudflare/quiche/tokio-quiche/src/http3/driver/AGENTS.md

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.

13k12d agoDiscuss
CloudflareAGENTS.md

quiche / quic

cloudflare/quiche/tokio-quiche/src/quic/AGENTS.md

Async QUIC connection management. Splits socket into recv-half (one InboundPacketRouter task) and send-half (shared by many IoWorker tasks). Entrypoints: connect()/connectwithconfig() for clients, start_listener() for servers. raw submodule bypasses the router for manual packet injection.

13k12d agoDiscuss
CloudflareAGENTS.md

cloudflare-os

cloudflare/cloudflare-os/AGENTS.md

This project is building a platform for "vibe coded" personal applications and AI agents that run inside a strong sandbox. The following files are commonly important to reference: The project structure is:

10k9d agoDiscuss
CloudflareAGENTS.md

cloudflare-os / gatekeeper-kit

cloudflare/cloudflare-os/packages/gatekeeper-kit/AGENTS.md

@gadgets/gatekeeper-kit is a library, not a deployable Worker. Do not add wrangler.jsonc; its presence makes release tooling treat this package as a gatekeeper deployment. - Only Layer 1 leaf modules are shipped. Layer 2 remains a proposal in ../../plans/gatekeeper-kit.md. - Keep leaf modules independently usable. Do not make one depend on a future assembly layer. - Accept the narrowest structural KV surface a module needs. Pass stable ctx.storage.kv objects to modules that coordinate work by storage identity. - Treat shipped…

10k9d agoDiscuss
CloudflareAGENTS.md

cloudflare-os / ui

cloudflare/cloudflare-os/packages/ui/AGENTS.md

@gadgets/ui is the shared runtime React UI layer for the Workshop and gatekeeper management apps. Kumo owns low-level controls and semantic tokens; this package owns reusable Gadgets interaction patterns and composed components. - Add a component here when at least two independent frontends need the same feature-independent behavior or when consistency across those frontends is an explicit product requirement. - Keep product data fetching, routing, RPC, permissions, and domain workflows in the consuming app. - Check Kumo before adding a…

10k9d agoDiscuss
CloudflareAGENTS.md

cloudflare-os / workshop-frontend

cloudflare/cloudflare-os/packages/workshop-frontend/AGENTS.md

This package is the Workshop single-page application. It uses React, TanStack Router, Tailwind, and Kumo. Follow the repository-wide guidance in ../../AGENTS.md in addition to this file. Organize new code by product ownership first and implementation type second. The existing tree predates this convention. Apply it to new code and to code being substantially reworked; do not migrate unrelated files opportunistically. Feature directories own product behavior. A feature may contain components, hooks, tests, and utilities that belong to that behavior. Start…

10k9d agoDiscuss
CloudflareAGENTS.md

computer

cloudflare/computer/AGENTS.md

- README.md — what this repo is and how the pieces fit together. - CONTRIBUTING.md — public contribution paths. - COLLABORATORS.md — setup, checks, commit and pull request conventions. The canonical source for the day-to-day workflow. - docs/README.md — design specification. Forward- looking; treat as intent, not as a description of main. - docs/08capnwebinterface.md — the RPC contract between the Durable Object and computerd. Required reading before touching packages/rpc or packages/computer. - Each package's own README.md — implementation status and…

9.3k43d agoDiscuss
CloudflareAGENTS.md

workerd

cloudflare/workerd/AGENTS.md

Subdirectory AGENTS.md files provide component-specific context (key classes, where-to-look tables, local conventions and anti-patterns). - Suggest updates to AGENTS.md when you find new high-level information - You should always determine if the current repository was checked out standalone or as a submodule of the larger workers project. - If checked out as a submodule, be aware that there is additional documentation and context in the root of that repository that is not present here. Look for the ../../README.md, ../../AGENTS.md, and…

8.8k7mo agoDiscuss
CloudflareAGENTS.md

workerd / build

cloudflare/workerd/build/AGENTS.md

Custom Bazel rules (wd_* macros) for C++, TypeScript, Rust, Cap'n Proto, and test orchestration. Uses bzlmod (MODULE.bazel), not WORKSPACE. This is build system definitions, NOT build output (bazel-bin/). Conventions: //tools/clang-tidy:workerd-lint builds a shared-object clang-tidy plugin that adds workerd-specific static checks: - jsg-visit-for-gc: flags JSG resource types whose visitable fields (jsg::Ref, jsg::JsRef, jsg::V8Ref, jsg::Function, jsg::Promise, jsg::Value, etc., plus kj::Maybe/Array/Vector/ OneOf and jsg::Optional wrappers thereof) are missing from visitForGc(). - workerd-angled-includes - requires includes of workers/capnproto code from different directories to use…

8.8k7mo agoDiscuss
CLAUDE.md vs AGENTS.md

About AGENTS.md

What is AGENTS.md?

An open format for instructions to coding agents, read by Codex, Cursor and others. Think of it as a README written for agents.

Where does it go?

At the repository root, with more specific files in subdirectories. Agents read the one closest to the file they're editing.

What should it contain?

Setup and test commands, code style, and the rules a new contributor would need to know.

Does Claude Code read it?

Claude Code reads CLAUDE.md. A one-line CLAUDE.md that points at AGENTS.md covers both.