agentleFS
ElasticKnown publisherelastic/homebrew-tap/AGENTS.md

homebrew-tap

AGENTS.md71 starsChanged 2 months agoApache-2.0View on GitHub

See README.md for why this repository exists, who or what uses it, and its responsibility boundary. For every AI tool that materially contributes to code, tests, documentation, configuration, or the substance of a change: For a squash merge, verify that the final squash commit message contains every attribution trailer. GitHub may populate that message from the pull-request description, commit information, or only the pull-request title depending on repository settings, so putting attribution in the PR description improves preservation but does…

  • 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

7 rules. About 2 are common, 4 are distinctive, and 1 is very specific to this project.

  • ≈2

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Never invent a bot identity, model name, or email address.

    line 20
  2. Distinctive:

    Keep trailers on their own lines without bullets, Markdown emphasis, or surrounding underscores.

    line 21
  3. Distinctive:

    Keep the human author or committer accountable for understanding and verifying the change.

    line 22
  4. Distinctive:

    When preparing a commit or pull request, offer to create it with the correct attribution.

    line 26
  5. Common:

    Never place credentials, tokens, private keys, cookies, or production secret values in tracked files, examples, tests, prompts, logs, or …

    line 30
  6. Common:

    Treat any detected secret as exposed: stop, remove it, and arrange rotation or revocation before continuing.

    line 34
  7. Very specific:

    Never bypass push protection or secret scanning, select a GitHub bypass reason, use --no-verify or SKIP=gitleaks, disable a scanner, or add …

    line 35

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

Agent guidance

Repository purpose

See README.md for why this repository exists, who or what uses it, and its responsibility boundary.

AI attribution

For every AI tool that materially contributes to code, tests, documentation, configuration, or the substance of a change:

  • Resolve the tool's runtime identity and add one unformatted trailer to the commit message. Use the exact model or agent slug and reasoning effort whenever exposed; omit unavailable components rather than guessing:

    Assisted-by: <tool name> (<most specific verified runtime identity>)
  • Repeat the same trailer in the pull-request description.
  • Preserve the spelling and specificity of exposed runtime values; do not shorten a specific model slug to a broader model family.
  • Preserve valid tool-native attribution, such as Made with [Cursor](https://cursor.com) or a genuine Co-authored-by trailer, in addition to Assisted-by.
  • Never invent a bot identity, model name, or email address.
  • Keep trailers on their own lines without bullets, Markdown emphasis, or surrounding underscores.
  • Keep the human author or committer accountable for understanding and verifying the change.

For a squash merge, verify that the final squash commit message contains every attribution trailer. GitHub may populate that message from the pull-request description, commit information, or only the pull-request title depending on repository settings, so putting attribution in the PR description improves preservation but does not guarantee it.

When preparing a commit or pull request, offer to create it with the correct attribution. If the user will create it manually, show the exact trailers to copy into both places.

Secret handling

  • Never place credentials, tokens, private keys, cookies, or production secret values in tracked files, examples, tests, prompts, logs, or generated output.
  • Store CI secrets in the repository-scoped CI Vault path or another approved Vault path and inject them at runtime. Follow Using Secrets in CI.
  • Hermit pins Gitleaks 8.30.1 and pre-commit 4.6.2. The shared elastic/gitleaks-hooks hook (v1.0.0) scans staged content locally (this repository has no Buildkite pipeline, so there is no CI range scan).
  • Install the staged hooks with ./bin/pre-commit install; the Gitleaks hook catches detected material before it enters a normal commit. Before committing or pushing, run ./bin/gitleaks dir --no-banner --redact=100 .. For an adoption or incident check, run GIT_CONFIG_GLOBAL=/dev/null ./bin/gitleaks git --no-banner --redact=100 --log-opts=--all . from a complete clone.
  • Treat any detected secret as exposed: stop, remove it, and arrange rotation or revocation before continuing. Do not print the value while triaging it.
  • Never bypass push protection or secret scanning, select a GitHub bypass reason, use --no-verify or SKIP=gitleaks, disable a scanner, or add an allowlist or suppression unless the user explicitly requests that exact override after reviewing the finding and consequence.
  • A generic request to finish, commit, push, merge, or open a pull request does not authorize an override.

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.