agentleFS
ElasticKnown publisherelastic/elasticsearch-php/AGENTS.md

elasticsearch-php

AGENTS.md5.3k starsChanged 4 months agoMITView on GitHub

Always use composer commands, not any other package manager. The entire unit test suite (composer run-script test) must pass and exit cleanly before you commit code. Integration tests require a running Elasticsearch instance. Skip them if one is not available. No build step is needed - PHP is interpreted directly. All code in src/ and tests/, and any scripts run by composer, must work on Linux, macOS, and Windows. If a specific action you learned to do better will be…

Trending

Less talk lately.about the whole repository

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

Who's talking about elastic/elasticsearch-php

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

See all 23

Talked about on GitHub (23 times).

On GitHub · 23

18 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.

The file

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

10 rules. About 0 are common, 2 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Always use composer commands, not any other package manager.

    line 5
  2. Very specific:

    Run unit tests: composer run-script test

    line 8
  3. Very specific:

    Run static analysis: composer run-script phpstan

    line 9
  4. Very specific:

    Run integration tests (requires Elasticsearch running): ELASTICSEARCH_URL="http://elastic:${ES_LOCAL_PASSWORD}@localhost:9200" …

    line 10
  5. Very specific:

    Run composer run-script phpstan to check for static analysis errors

    line 27
  6. Very specific:

    Run composer run-script test to verify all unit tests pass

    line 28
  7. Distinctive:

    No build step is needed - PHP is interpreted directly.

    line 30
  8. Very specific:

    All code in src/ and tests/, and any scripts run by composer, must work on Linux, macOS, and Windows.

    line 34
  9. 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 38
  10. Distinctive:

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

    line 40

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

Always use composer commands, not any other package manager.

  • Install dependencies: composer install
  • Run unit tests: composer run-script test
  • Run static analysis: composer run-script phpstan
  • Run integration tests (requires Elasticsearch running): ELASTICSEARCH_URL="http://elastic:${ES_LOCAL_PASSWORD}@localhost:9200" TEST_SUITE="free" composer run-script integration-test

Testing

The entire unit test suite (composer run-script test) must pass and exit cleanly before you commit code.

Integration tests require a running Elasticsearch instance. Skip them if one is not available.

Project Structure

  • src/ - PHP source files
  • tests/ - Unit and integration tests
  • docs/ - Documentation

Development Workflow

  1. Make changes to src/ files
  2. Run composer run-script phpstan to check for static analysis errors
  3. Run composer run-script test to verify all unit tests pass

No build step is needed - PHP is interpreted directly.

OS Compatibility

All code in src/ and tests/, and any scripts run by composer, must work on Linux, macOS, and Windows.

Adding new agent instructions

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 .github/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.