agentleFS
ElasticKnown publisherelastic/elasticsearch-net/AGENTS.md

elasticsearch-net

AGENTS.md3.6k starsChanged 4 months agoApache-2.0View on GitHub

The repository builds with the standard .NET SDK CLI; the SDK version is pinned in global.json. - Build the client: dotnet build src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj - Build and test the request converter: dotnet test RequestConverter.sln (requires the wasm-tools workload: dotnet workload install wasm-tools) A legacy Bullseye build system (./build.sh, .\build.bat, driven by the F# project build/scripts/scripts.fsproj) still backs a few CI workflows. It is planned to be modernized or removed; do not use it for local development. There is no separate lint…

Trending

Quiet since September.about the whole repository

Dec 2025: 1 mentionJan 2026: 0 mentionsFeb 2026: 1 mentionMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 1 mentionOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the elastic/elasticsearch-net repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about elastic/elasticsearch-net

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

See all 26

Talked about on GitHub (26 times).

On GitHub · 26

21 more on GitHub
  • 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.

  • In this repositoryOne other file it gives its agents.

The file

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

5 rules. About 0 are common, 3 are distinctive, and 2 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.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    tests/: - test projects (see Testing)

    line 33
  2. Very specific:

    All code and scripts must work on Windows, macOS, and Linux.

    line 49
  3. Distinctive:

    All markdown instructions authored for other agents must be as concise as possible.

    line 53
  4. Very specific:

    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 …

    line 55
  5. Distinctive:

    If you learned something that will be useful to any contributor to this project, update AGENTS.md.

    line 57

≈ “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

Setup commands

The repository builds with the standard .NET SDK CLI; the SDK version is pinned in global.json.

  • Build the client: dotnet build src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj
  • Build and test the request converter: dotnet test RequestConverter.sln (requires the wasm-tools workload: dotnet workload install wasm-tools)

A legacy Bullseye build system (./build.sh, .\build.bat, driven by the F# project build/scripts/scripts.fsproj) still backs a few CI workflows. It is planned to be modernized or removed; do not use it for local development.

There is no separate lint command. Code style is defined in .editorconfig and checked with dotnet format in reporting mode, e.g. dotnet format src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj --verify-no-changes. The tree carries pre-existing violations, so only make sure your changes do not add new ones.

Testing

Most of the test suite under tests/ was never ported from the 7.x client to 8.x, so there is effectively no public unit or integration test coverage for the client. Do not rely on these projects and do not extend them; verify client changes by making sure the client project builds cleanly.

The request converter is the exception: dotnet test RequestConverter.sln runs tests/RequestConverter.Tests and must pass.

Project Structure

  • build/ - legacy build scripts (see Setup commands)
  • src/Elastic.Clients.Elasticsearch/ - the Elasticsearch client
  • src/RequestConverter/ - converts Elasticsearch API request examples into .NET client code, with src/RequestConverter.Console/ as CLI frontend and src/RequestConverter.Wasm/ as WASM/npm packaging
  • tests/ - test projects (see Testing)

Generated code

src/Elastic.Clients.Elasticsearch/_Generated/ and src/RequestConverter/_Generated/ contain code produced by a source generator that lives in a private repository. Never edit files in these directories manually; any manual change will be overwritten on the next regeneration.

Development Workflow

  1. Make changes to files under src/, never inside a _Generated/ directory
  2. Build the affected project(s) with dotnet build
  3. For request converter changes, run dotnet test RequestConverter.sln

OS Compatibility

All code and scripts must work on Windows, macOS, and Linux. The dotnet CLI commands above are cross-platform.

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.

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.