Java AGENTS.md examples from 18 open source repos
18 of the 28 Java repos on the leaderboard have an AGENTS.md or CLAUDE.md at the root, and 18 are long enough to pass the AGENTS.md check in full. Most-starred first; each file name links to the file.
Java repos with an AGENTS.md or CLAUDE.md (18)
| Repo | File | Length |
|---|---|---|
| elastic/elasticsearch | AGENTS.md | 17,085 chars |
| spring-projects/spring-framework | AGENTS.md | 4,261 chars |
| apache/kafka | AGENTS.md | 9,997 chars |
| apache/flink | AGENTS.md | 22,898 chars |
| questdb/questdb | CLAUDE.md | 16,812 chars |
| apache/doris | AGENTS.md | 15,607 chars |
| quarkusio/quarkus | AGENTS.md | 6,710 chars |
| apache/pulsar | AGENTS.md | 7,099 chars |
| apache/druid | AGENTS.md | 5,423 chars |
| trinodb/trino | AGENTS.md | 1,592 chars |
| debezium/debezium | AGENTS.md | 18,496 chars |
| StarRocks/starrocks | AGENTS.md | 4,467 chars |
| AutoMQ/automq | AGENTS.md | 1,339 chars |
| apache/cassandra | AGENTS.md | 4,413 chars |
| apache/seatunnel | AGENTS.md | 8,693 chars |
| apache/iceberg | AGENTS.md | 17,430 chars |
| apache/pinot | AGENTS.md | 8,110 chars |
| apache/paimon | AGENTS.md | 3,558 chars |
More examples
- Every language: all 218 files, with the longest and shortest that pass
- Most agent-friendly Java repos: all 28, ranked on every check
- AGENTS.md vs CLAUDE.md: which file to write
- TypeScript (61)
- Python (29)
- Rust (24)
- Go (22)
- C++ (10)
- JavaScript (9)
- Kotlin (8)
- PHP (7)
- Ruby (6)