Guidance for AI coding agents working with this repository. Note: CLAUDE.md is a symlink to this file. This project uses pnpm for dependency management and task execution. Use the Node.js version declared in .node-version, then install dependencies with pnpm install. Run tasks with pnpm. Before completing any task, run pnpm test to ensure CI passes. This repository uses Release Please on main. If you change shipped skill contents under skills/, make sure the change is represented with an appropriate conventional…
2.7k6mo agoReviewMountCreate a free account to mount
All changes require human review. Breaking changes to public API require a major version bump — always warn if binary compatibility is affected. Also consult .AGENTS.md / ~/.AGENTS.md if present for local agent settings. Architecture: Multi-module Gradle project: bson → driver-core → driver-sync/driver-reactive-streams → language wrappers (driver-kotlin-sync, driver-kotlin-coroutine, driver-scala). See .agents/references/project-guide for module structure and dependency graph. Each module has its own AGENTS.md. The default branch is main (not master). Always use main when comparing, diffing, or creating branches. -…
2.7k7mo agoReviewMountCreate a free account to mount
Java record codec support for BSON serialization. Requires Java 17+. Depends on: bson - Work here if: modifying Java record serialization support - This module targets Java 17 (sourceCompatibility = 17) — Java 17 features (records, sealed classes, text blocks, etc.) are permitted here, unlike most other modules which target Java 8
2.7k7mo agoReviewMountCreate a free account to mount
Scala extensions for the BSON library, providing Scala-idiomatic wrappers and macro-based codecs. Depends on: bson Supported Scala versions: 2.11, 2.12, 2.13, 3 (default: 2.13, configured in root gradle.properties). See README.md for directory layout details.
2.7k7mo agoReviewMountCreate a free account to mount
Gradle build infrastructure providing convention plugins and shared configuration for all modules. - src/main/kotlin/conventions/ — Convention plugins applied by modules (formatting, testing, publishing, static analysis) - src/main/kotlin/project/ — Base project plugins for Java, Kotlin, and Scala modules - src/main/kotlin/ProjectExtensions.kt — Shared Gradle extension utilities After modifying buildSrc, run the sync-agents-docs skill to update AGENTS.md files and skills that may be affected.
2.7k7mo agoReviewMountCreate a free account to mount
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…
2.7k7mo agoReviewMountCreate a free account to mount
Legacy MongoDB Java driver API — backwards compatibility facade for the 3.x API. Depends on: bson, driver-core, driver-sync - com.mongodb — Legacy API (MongoClient, DB, DBCollection, DBCursor) — distinct from driver-core classes in the same namespace - com.mongodb.gridfs — Legacy GridFS
2.7k7mo agoReviewMountCreate a free account to mount
Scala async driver providing Observable-based API wrapping driver-reactive-streams. Depends on: bson-scala, driver-reactive-streams Supported Scala versions: 2.11, 2.12, 2.13, 3 (default: 2.13, configured in root gradle.properties). See README.md for directory layout details. - Mirror new public Java types in Scala. Adding a public type or enum under a wrapped package (com.mongodb, com.mongodb.client.model and its subpackages, com.mongodb.connection, com.mongodb.client.result, …) requires a matching wrapper in the corresponding org.mongodb.scala.* package — this is enforced by ApiAliasAndCompanionSpec (the build fails if a mirror is missing):…
2.7k7mo agoReviewMountCreate a free account to mount
Synchronous (blocking) Java driver — the most commonly used entry point for Java applications. Depends on: bson, driver-core - Work here if: modifying the blocking Java API surface (MongoClient, MongoDatabase, MongoCollection), GridFS, or CSFLE vault client - Do not: add new Spock tests (legacy only), add internal connection/protocol code (that belongs in driver-core) Primary entry point: MongoClients.create() or MongoClients.create(MongoClientSettings).
2.7k7mo agoReviewMountCreate a free account to mount
Gradle configuration and infrastructure for the build system. - libs.versions.toml — Central version catalog defining all dependency versions, library coordinates, bundles, and plugin versions - wrapper/ — Gradle wrapper JAR and properties (do not modify manually — use ./gradlew wrapper --gradle-version=<version>) - scala/lib/ — Bundled Scala Ant JAR for Scala compilation support - All dependency versions are managed in libs.versions.toml — never declare versions inline in build.gradle.kts files - Never add dependencies without justification - The version catalog defines [versions],…
2.7k7mo agoReviewMountCreate a free account to mount
Client-side field-level encryption (CSFLE) support via JNA bindings to libmongocrypt. Depends on: bson - Work here if: modifying CSFLE encryption/decryption logic or JNA bindings - Do not: move, re-expose, or refactor JNA/libmongocrypt bindings without human approval — this is security-critical code - Do not: modify the C API binding layer without understanding the libmongocrypt contract - com.mongodb.crypt.capi — mongocryptd C API bindings (JNA) — security-critical, do not modify without human review - com.mongodb.internal.crypt.capi — Internal encryption state management Tests are…
2.7k7mo agoReviewMountCreate a free account to mount