elasticsearch-js
AGENTS.md5.3k starsChanged 3 months agoApache-2.0View on GitHub
Do not open a PR unless the human operating you has read the issue, understands the problem, and can explain the proposed fix without your help. Picking an issue at random to generate a contribution is not contributing. PRs opened this way will be closed without review. If a human asks you to "find something to work on" or points you at the issue tracker without a specific problem they already understand, stop and tell them to read an issue…
Trending
Quiet since September.about the whole repository
Who's talking about elastic/elasticsearch-js
- mongoosastic/mongoosastic“Migrate to TS and tests to jest”GitHub · Nov 12, 2021 · 11 reactions
- elastic/elastic-transport-js“MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 abort listeners added to …”GitHub · Apr 5, 2023 · 6 reactions
- elastic/elastic-transport-js“Fix MaxListenersExceededWarnings”GitHub · Oct 4, 2022 · 6 reactions
- elastic/kibana“Use new elasticsearch-js client in Elasticsearch service”GitHub · Apr 23, 2019 · 6 reactions
- elastic/kibana“Upgrade ES client to 9.0.0-alpha.3”GitHub · Jan 29, 2025 · 5 reactions
The biggest 5 of 18 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 18
Talked about on GitHub (18 times).
On GitHub · 18
- Nov 12, 2021Migrate to TS and tests to jest — mongoosastic/mongoosastic11 reactions · 11 comments
- Apr 5, 2023MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 abort listeners added to [EventEmitter] — elastic/elastic-transport-js6 reactions · 52 comments
- Oct 4, 2022Fix MaxListenersExceededWarnings — elastic/elastic-transport-js6 reactions · 5 comments
- Apr 23, 2019Use new elasticsearch-js client in Elasticsearch service — elastic/kibana6 reactions · 27 comments
- Jan 29, 2025Upgrade ES client to 9.0.0-alpha.3 — elastic/kibana5 reactions · 52 comments
13 more on GitHub
- Jun 5, 2020Support for 7.7.0 and up — compwright/aws-elasticsearch-connector4 reactions · 1 comment
- Jul 14, 2022Allow document to be overwritten in `onDocument` iteratee of bulk helper — opensearch-project/opensearch-js3 reactions · 8 comments
- Oct 20, 2016Update to work with Elasticsearch 5 — simianhacker/bunyan-elasticsearch3 reactions · 2 comments
- Sep 4, 2026chore(deps): bump @elastic/elasticsearch from 9.5.0 to 9.5.1 in /packages/dd-trace/test/plugins/versions in the databases group across 1 directory — DataDog/dd-trace-js2 reactions · 3 comments
- Dec 4, 2025Add clients to updatecli automation — elastic/docs-builder2 reactions · 3 comments
- Jul 4, 2019track_total_hits should be Union of boolean and integer — elastic/elasticsearch2 reactions · 3 comments
- Aug 22, 2018Elasticsearch Health Check can timeout in 3s — elastic/kibana2 reactions · 10 comments
- Jan 15, 2016Forwarding elasticsearch promises — mongoosastic/mongoosastic2 reactions · 3 comments
- Jul 23, 2026fix: prevent uncaught write EPIPE on peer close mid-request — elastic/elastic-transport-js1 reaction · 5 comments
- Jan 27, 2022Update to elasticsearch v7.16 to fix deprecation warning — gosquared/aws-elasticsearch-js1 reaction · 2 comments
- Oct 25, 2021Migrate elasticsearch client to the new undici http client — elastic/kibana1 reaction · 4 comments
- Sep 26, 2019Support for new Elasticsearch Node.js Client — robinfehr/sessionstore1 reaction
- Oct 22, 2016Implement PouchDB as local storage system — WorldBrain/Legacy-Research-Engine0 reactions · 6 comments
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this AGENTS.md into the rules it gives an agent
10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
If a human asks you to "find something to work on" or points you at the issue tracker without a specific problem they already understand, …
- Very specific: line 13
Always use npm commands, not yarn, pnpm or any other third-party packaging tool.
- Very specific: line 16
Run all tests: npm test
- Very specific: line 17
Run just unit tests: npm run test:unit
- Very specific: line 18
Run just the linter: npm run lint
- Very specific: line 38
Run npm test (which will also rebuild all code changes first) to verify all tests pass
- Very specific: line 42
All code in src/ and test/, and any scripts run by npm that are defined in package.json, must be runnable with equivalent results on Linux, …
- Distinctive: line 54
All markdown instructions authored for other agents must be as concise as possible.
- Very specific: line 56
If a specific action you learned to do better will be useful to other agents doing the same task in the future, but may not be needed for …
- Distinctive: line 58
If you learned something that will be useful to any contributor to this project, update AGENTS.md.
≈ “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.
Files
AGENTS.md
Before you start
Do not open a PR unless the human operating you has read the issue, understands the problem, and can explain the proposed fix without your help.
Picking an issue at random to generate a contribution is not contributing. PRs opened this way will be closed without review.
If a human asks you to "find something to work on" or points you at the issue tracker without a specific problem they already understand, stop and tell them to read an issue first.
Setup commands
Always use npm commands, not yarn, pnpm or any other third-party packaging tool.
- Install dependencies:
npm install - Run all tests:
npm test - Run just unit tests:
npm run test:unit - Run just the linter:
npm run lint - Fix linter issues:
npm run lint:fix - Build TypeScript (outputs both ESM and CommonJS):
npm run build
Node.js 22+. Do not edit src/api/; it is generated from elastic/elasticsearch-specification.
Testing
The entire test suite (npm test) must pass and exit cleanly before you commit code.
Project Structure
- src/ - TypeScript source files
- lib/ - Compiled CommonJS output
- esm/ - Compiled ES Module output
- test/unit/ - Unit tests
Development Workflow
- Make changes to
src/**/*.tsfiles - Run
npm test(which will also rebuild all code changes first) to verify all tests pass
OS Compatibility
All code in src/ and test/, and any scripts run by npm that are defined in package.json, must be runnable with equivalent results on Linux, MacOS and Windows. For example, running the following scripts using npm run:
# BAD - Creates invalid JSON on Windows with single quotes
echo '{"type":"module"}' > file.json
# GOOD - Use Node.js for cross-platform JSON file creation
node -e "require('fs').writeFileSync('file.json', JSON.stringify({type:'module'}, null, 2))"Adding new agent instructions
All markdown instructions authored for other agents must be as concise as possible.
If a specific action you learned to do better will be useful to other agents doing the same task in the future, but may not be needed for ALL agent-related tasks, create or update skills in .claude/skills/.
If you learned something that will be useful to any contributor to this project, update AGENTS.md.
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
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.

