agentleFS
MongoDBKnown publishermongodb/mongo-java-driver/driver-core/AGENTS.md

mongo-java-driver / driver-core

AGENTS.md2.7k starsChanged 7 months agoApache-2.0View on GitHub

Core driver internals shared by all driver variants (sync, reactive, Kotlin, Scala). Largest and most complex module. Depends on: bson, bson-record-codec, optionally bson-kotlin, bson-kotlinx, mongodb-crypt - Work here if: modifying query builders (Filters, Updates, Aggregates), connection handling, wire protocol, server selection, or operation execution - Do not: block in async code paths, modify wire protocol or auth without human approval - Most extensive test suite — JUnit 5 + Spock + Mockito. Match surrounding patterns carefully. - MongoDriverVersion is auto-generated…

Trending

Quiet since September.about the whole repository

Dec 2025: 2 mentionsJan 2026: 0 mentionsFeb 2026: 2 mentionsMar 2026: 2 mentionsApr 2026: 0 mentionsMay 2026: 4 mentionsJun 2026: 4 mentionsJul 2026: 6 mentionsAug 2026: 2 mentionsSep 2026: 6 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the mongodb/mongo-java-driver repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about mongodb/mongo-java-driver

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

See all 43

Talked about on GitHub and Hacker News (43 times).

On GitHub · 39

34 more on GitHub

On Hacker News · 4

The file

We split this AGENTS.md into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not: block in async code paths, modify wire protocol or auth without human approval

    line 10

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md - driver-core

Core driver internals shared by all driver variants (sync, reactive, Kotlin, Scala). Largest and most complex module.

Depends on: bson, bson-record-codec, optionally bson-kotlin, bson-kotlinx, mongodb-crypt

  • Work here if: modifying query builders (Filters, Updates, Aggregates), connection handling, wire protocol, server selection, or operation execution
  • Do not: block in async code paths, modify wire protocol or auth without human approval

Key Packages

  • com.mongodb.client.model — Filters, Updates, Projections, Aggregates, Sorts, Indexes
  • com.mongodb.internal.connection — Wire protocol, command execution (safety-critical)
  • com.mongodb.internal.operation — Concrete operations (find, insert, aggregate)
  • com.mongodb.internal.authentication — SASL, SCRAM, X.509, OIDC (safety-critical)

Build & Test

./gradlew :driver-core:test
./gradlew :driver-core:check
./gradlew :driver-core:generateMongoDriverVersion   # If MongoDriverVersion is missing

Notes

  • Most extensive test suite — JUnit 5 + Spock + Mockito. Match surrounding patterns carefully.
  • MongoDriverVersion is auto-generated by the com.github.gmazzo.buildconfig plugin

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.