agentleFS

AGENTS.md examples from real projects

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

Worked for most · soon
NVIDIAAGENTS.md

cuda-python / cuda_python

NVIDIA/cuda-python/cuda_python/AGENTS.md

This file describes cuda_python, the metapackage layer in the cuda-python monorepo. - cuda_python is primarily packaging and documentation glue. - It does not host substantial runtime APIs like cuda_core, cuda_bindings, or cuda_pathfinder. - pyproject.toml: project metadata and dynamic dependency declaration. - setup.py: dynamic dependency pinning logic for matching cuda-bindings versions (release vs pre-release behavior). - docs/: top-level docs build/aggregation scripts. - Keep this package lightweight; prefer implementing runtime features in the component packages rather than here. - Be careful when…

3.4k4mo agoReviewMountCreate a free account to mount
DockerAGENTS.md

docker-agent

docker/docker-agent/AGENTS.md

This document provides guidance for AI agents and contributors working on the docker-agent codebase. Comments are only added when the code's purpose or logic is not immediately evident. Never write comments that merely restate what the code does (e.g. // increment counter above counter++). Comments should explain why something is done a certain way, document non-obvious edge cases, or clarify complex algorithms that cannot be simplified further. Keep comments short and to the point: - Use tools to gather information…

3.4k7mo agoReviewMountCreate a free account to mount
Hugging FaceAGENTS.md

datatrove

huggingface/datatrove/AGENTS.md

DataTrove is a library to process, filter, and deduplicate text data at very large scale. It provides prebuilt pipeline blocks with a framework to add custom functionality. Pipelines are platform-agnostic, running locally, on Slurm, or on Ray clusters. See README.md for detailed documentation on terminology, pipeline blocks, executors, and usage examples.

3.4k9mo agoReviewMountCreate a free account to mount
LangChainAGENTS.md

langgraphjs

langchain-ai/langgraphjs/AGENTS.md

When Corridor's analyzePlan tool is available, create a plan and use the tool to analyze it before generating or modifying code. Apply the resulting security guidance before writing code.

3.3k3mo agoReviewMountCreate a free account to mount
LangChainAGENTS.md

langgraphjs / agents

langchain-ai/langgraphjs/docs/docs/agents/agents.md

This guide shows you how to set up and use LangGraph's prebuilt, reusable components, which are designed to help you construct agentic systems quickly and reliably. Before you start this tutorial, ensure you have the following: If you haven't already, install LangGraph and LangChain: Use createReactAgent to instantiate an agent: Use initChatModel to configure an LLM with specific parameters, such as temperature: See the models page for more information on how to configure LLMs. Prompts instruct the LLM how to…

3.3k3mo agoReviewMountCreate a free account to mount
MongoDBAGENTS.md

mongo-csharp-driver

mongodb/mongo-csharp-driver/AGENTS.md

The driver follows strict semantic versioning: breaking changes to the public surface require a major-version bump. Breaks are always measured against the latest released version of the assembly (the most recent published NuGet package), not against the current state of main. A public API that was added and then changed or removed within the current unreleased development cycle never shipped, so it is not a break. Releases are tagged v<major>.<minor>.<patch> (e.g. v3.9.0). Find the baseline with the GitHub release list,…

3.2k4mo agoReviewMountCreate a free account to mount
MongoDBAGENTS.md

mongo-csharp-driver / MongoDB.Bson

mongodb/mongo-csharp-driver/src/MongoDB.Bson/AGENTS.md

The BSON library: object model, binary/JSON I/O, and the serialization framework. Foundation for everything else in the driver. Three primary subdirectories partition the work cleanly (additional folders like Exceptions/ and various top-level files — BsonExtensionMethods.cs, BsonUtils.cs, etc. — also live here):

3.2k4mo agoReviewMountCreate a free account to mount
MongoDBAGENTS.md

mongo-csharp-driver / MongoDB.Driver

mongodb/mongo-csharp-driver/src/MongoDB.Driver/AGENTS.md

This file is the entry point for any work under src/MongoDB.Driver/. Over 200 .cs files at this directory root are predominantly the public API surface — client facades, builders DSL, fluent APIs, and option/result types — though a meaningful minority (~20%) are internal helpers that happen to live alongside it. Public API is not confined to this directory: Core/, Core/Events/, Core/Logging/, GridFS/, Search/, Linq/, GeoJsonObjectModel/, and the MongoDB.Bson project also expose public types. Subdirectories own their own deep concerns and…

3.2k4mo agoReviewMountCreate a free account to mount
MongoDBAGENTS.md

mongo-csharp-driver / Authentication

mongodb/mongo-csharp-driver/src/MongoDB.Driver/Authentication/AGENTS.md

The authentication subsystem under src/MongoDB.Driver/Authentication/ plus the optional sibling project src/MongoDB.Driver.Authentication.AWS/. Responsible for credential storage, mechanism negotiation, the SASL conversation, the speculativeAuthenticate handshake optimization, and integration with Core/Connections/ConnectionInitializer. Files: ScramShaSaslMechanism.cs, ScramShaFirstSaslStep.cs, ScramShaSecondSaslStep.cs, ScramShaLastSaslStep.cs, IScramShaAlgorithm.cs, ScramSha1Algorithm.cs, ScramSha256Algorithm.cs, ScramCache.cs. Conversation: client-first → server-first → client-final → server-final (RFC 5802). Salted password computed via PBKDF2; ClientKey, StoredKey, ClientProof, ServerSignature derived per the spec. DefaultAuthenticator picks the mechanism: if the hello reply includes saslSupportedMechs and SCRAM-SHA-256 is in the list, use SHA-256; otherwise SHA-1…

3.2k4mo agoReviewMountCreate a free account to mount
MongoDBAGENTS.md

mongo-csharp-driver / MongoDB.Driver.Authentication.AWS

mongodb/mongo-csharp-driver/src/MongoDB.Driver.Authentication.AWS/AGENTS.md

This is an optional project providing the MONGODB-AWS SASL mechanism. Kept separate from MongoDB.Driver so that consumers who don't need AWS IAM auth aren't forced to ship the AWS SDK / signing dependencies. For full coverage — credential resolution (explicit MongoCredential vs the AWS SDK's DefaultAWSCredentialsIdentityResolver chain; consult the AWS SDK for the authoritative source order), SigV4 signing of sts-service requests, region derivation from the STS host header (defaulting to us-east-1), and registration via the ISaslMechanismRegistry exposed by MongoClientSettings.Extensions.SaslMechanisms —…

3.2k4mo agoReviewMountCreate a free account to mount
MongoDBAGENTS.md

mongo-csharp-driver / Core

mongodb/mongo-csharp-driver/src/MongoDB.Driver/Core/AGENTS.md

This file covers the Server Discovery And Monitoring (SDAM) topology layer, connection pooling, wire protocol, and supporting infrastructure under src/MongoDB.Driver/Core/. Scoped subdirectories: Clusters/, Servers/, Connections/, ConnectionPools/, WireProtocol/, Compression/, Configuration/, Misc/. (Core/Authentication/ and Core/Bindings/ also live under Core/ but are out of scope for this reviewer — see the auth-area and operations-area AGENTS.md.) Ownership boundary: the Operations layer (Core/Operations/, Core/Bindings/) sits above this and owns retry, session attachment, and cursor lifecycle. Events and Logging have their own AGENTS.md files. Authentication mechanisms…

3.2k4mo agoReviewMountCreate a free account to mount
MongoDBAGENTS.md

mongo-csharp-driver / Bindings

mongodb/mongo-csharp-driver/src/MongoDB.Driver/Core/Bindings/AGENTS.md

Bindings, sessions, and transactions are owned by the Operations, Sessions & Transactions area. See src/MongoDB.Driver/Core/Operations/AGENTS.md for full coverage: Public SemVer surface here. The binding interfaces and the concrete binding implementations are internal, but the session/transaction types CoreSession, CoreSessionHandle, CoreSessionOptions, CoreTransaction, CoreTransactionState, ICoreSession, ICoreSessionHandle, ICoreServerSession, WrappingCoreSession, and NoCoreSession are public — changes are SemVer-sensitive. (CoreTransaction's pinning members — PinnedChannel, PinnedServer, UnpinAll() — are internal.) Grepping pitfalls. The ICoreServerSession interface lives in a file with a triple-s typo — ICoreServerSesssion.cs — there…

3.2k4mo agoReviewMountCreate a free account to mount
MongoDBAGENTS.md

mongo-csharp-driver / Events

mongodb/mongo-csharp-driver/src/MongoDB.Driver/Core/Events/AGENTS.md

Structured event publishing for command monitoring, connection-pool lifecycle (CMAP), per-connection lifecycle, server discovery & monitoring (SDAM), and cluster topology. Foundation for the structured-logging layer in Core/Logging/ and for any custom observability subscribers. ConnectionPoolReadyEvent has no *ing→*ed lifecycle partner — it fires once when the pool transitions to ready; the asymmetry is intentional (there's no observable "becoming ready" intermediate state to report). The checkout/*Failed triplets above are a separate asymmetry pattern, not a missing partner. - Connection — per-connection lifecycle (ConnectionOpening,…

3.2k4mo agoReviewMountCreate a free account to mount
MongoDBAGENTS.md

mongo-csharp-driver / Logging

mongodb/mongo-csharp-driver/src/MongoDB.Driver/Core/Logging/AGENTS.md

Bridges the event subsystem (Core/Events/) to Microsoft.Extensions.Logging. When the user supplies a LoggerFactory via MongoClientSettings.LoggingSettings, events are offered to the configured logger as structured log entries; whether each entry is actually emitted depends on the logger's level filter. Every dispatched EventType must have a registered template provider — EventLogger dereferences the provider unconditionally, so a missing provider for a dispatched event throws rather than skipping silently. In practice every event currently dispatched is covered; if you add a new EventType…

3.2k4mo agoReviewMountCreate a free account to mount
MongoDBAGENTS.md

mongo-csharp-driver / Operations

mongodb/mongo-csharp-driver/src/MongoDB.Driver/Core/Operations/AGENTS.md

The execution layer between the public driver surface and the wire. Every public CRUD/aggregate/admin call eventually constructs one of these operations and hands it to an executor. This file's scope is wider than its directory: the operations-reviewer also owns Core/Bindings/, the session/transaction state machines, and the surface-level ClientSession* types at the driver root. (src/MongoDB.Driver/AbortTransactionOptions.cs and CommitTransactionOptions.cs are also in scope but are currently internal sealed — the user-facing public abstraction is ClientSessionOptions.) Two operation interfaces defined in Core/Operations/IOperation.cs (both internal;…

3.2k4mo agoReviewMountCreate a free account to mount
MongoDBAGENTS.md

mongo-csharp-driver / MongoDB.Driver.Encryption

mongodb/mongo-csharp-driver/src/MongoDB.Driver.Encryption/AGENTS.md

This project wraps libmongocrypt (the C library that implements CSFLE and Queryable Encryption) and exposes both an explicit-encryption API (ClientEncryption) and the auto-encryption hook used by the main driver. Anything cryptographic happens here. The driver's user-facing AutoEncryptionOptions and provider registry live one layer up under src/MongoDB.Driver/Encryption/ (see that AGENTS.md).

3.2k4mo agoReviewMountCreate a free account to mount
MongoDBAGENTS.md

mongo-csharp-driver / Encryption

mongodb/mongo-csharp-driver/src/MongoDB.Driver/Encryption/AGENTS.md

The hooks the driver itself needs in order to delegate auto-encryption to libmongocrypt. The cryptographic engine lives in the sibling project src/MongoDB.Driver.Encryption/ — this directory is the bridge.

3.2k4mo agoReviewMountCreate a free account to mount
MongoDBAGENTS.md

mongo-csharp-driver / GeoJsonObjectModel

mongodb/mongo-csharp-driver/src/MongoDB.Driver/GeoJsonObjectModel/AGENTS.md

Strongly-typed GeoJSON (RFC 7946) for use with MongoDB geospatial filters and indexes. Used by FilterDefinitionBuilder.GeoIntersects / GeoWithin / Near / NearSphere, IndexKeysDefinitionBuilder.Geo2DSphere, and the $geoNear aggregation stage. PipelineStageDefinitionBuilder.GeoNear exposes two public static convenience overloads — one taking a GeoJsonPoint<TCoordinates> and one taking a double[] — that both delegate to an internal static generic overload taking a TPoint directly. There is no GeoNearOperation class; geoNear is expressed as a pipeline stage. Generic over a coordinate type TCoordinates. Two-tier hierarchy: Geometries accept…

3.2k4mo agoReviewMountCreate a free account to mount
MongoDBAGENTS.md

mongo-csharp-driver / GridFS

mongodb/mongo-csharp-driver/src/MongoDB.Driver/GridFS/AGENTS.md

GridFS stores binary files in two collections per bucket: <bucket>.files (metadata, one document per file) and <bucket>.chunks (binary data, many documents per file). Chunk size is configurable; default 255 KiB. GridFSBucket holds the cluster reference, an IBsonSerializer<GridFSFileInfo<TFileId>> (_fileInfoSerializer), and a BsonSerializationInfo for the _id field (_idSerializationInfo, which is what enforces the TFileId round-trip discussed in the pitfalls below). Mutating operations (Delete, Rename, OpenUploadStream, Drop) bind via GetSingleServerReadWriteBinding; reads (DownloadAsBytes*, DownloadToStream*, OpenDownloadStream*, Find) bind via GetSingleServerReadBinding. Either way, a single upload/download…

3.2k4mo agoReviewMountCreate a free account to mount
MongoDBAGENTS.md

mongo-csharp-driver / Linq

mongodb/mongo-csharp-driver/src/MongoDB.Driver/Linq/AGENTS.md

Translates C# Expression trees from IQueryable<T> into MongoDB aggregation pipelines. The current implementation is Linq3; Linq2 is gone. Subdirectory layout:

3.2k4mo agoReviewMountCreate a free account to mount
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.