gradle-plugins
AGENTS.md8 starsChanged 49 days agoApache-2.0View on GitHub
See README.md for why this repository exists, who or what uses it, and its responsibility boundary. When a change breaks backward compatibility, update version-next to the appropriate next major version as part of the same change. If version-next already targets that major release, keep it; multiple breaking changes in one unreleased version do not each require another major bump. Preserve compatibility between the Develocity Gradle plugin and the deployed Develocity server. The server observed during the 2.0.0 release was 2025.3.3,…
- Commits and pushes
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
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
- Very specific: line 9
When a change breaks backward compatibility, update version-next to the appropriate next major version as part of the same change.
- Distinctive: line 17
Before changing either Develocity dependency, verify the deployed server version against Gradle's compatibility matrix.
- Distinctive: line 76
Never invent a bot identity, model name, or email address.
- Distinctive: line 77
Keep trailers on their own lines without bullets, Markdown emphasis, or surrounding underscores.
- Distinctive: line 78
Keep the human author or committer accountable for understanding and verifying the change.
- Distinctive: line 82
When preparing a commit or pull request, offer to create it with the correct attribution.
≈ “Common” is an estimate: at least 1 in 5 of the 36,368 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
Agent guidance
Repository purpose
See README.md for why this repository exists, who or what uses it, and its responsibility boundary.
Versioning
When a change breaks backward compatibility, update version-next to the appropriate next major version as part of
the same change. If version-next already targets that major release, keep it; multiple breaking changes in one
unreleased version do not each require another major bump.
Develocity compatibility
Preserve compatibility between the Develocity Gradle plugin and the deployed Develocity server. The server observed
during the 2.0.0 release was 2025.3.3, which supports plugin 4.2.x; use 4.2.2 until a server upgrade is verified.
Before changing either Develocity dependency, verify the deployed server version against Gradle's
compatibility matrix. Keep the versions in
settings.gradle.kts and plugins/elastic-conventions/build.gradle.kts aligned, and preserve the matching
allowedVersions constraint in renovate.json.
Build scans are required. Verify a successfully published build scan URL from a build using the changed conventions plugin before releasing. A successful Gradle exit code or green CI build is insufficient: incompatible Develocity versions can reject build scan uploads without failing the build. Do not release while scan publication is failing.
Secret scanning
Never place credentials, tokens, private keys, cookies, or production secret values in tracked files, examples, tests, prompts, logs, or generated output. Use the approved Vault-backed secret store and runtime injection mechanism instead.
Secret scanning controls are layered:
- Pre-commit hook —
elastic/gitleaks-hooksatv1.0.0runs Gitleaks via./bin/gitleaks(Hermit-managed, v8.30.1). Install once withpre-commit install. The hook scans staged content before each commit. - GitHub secret scanning — enabled, with push protection and non-provider patterns (private keys, connection strings, authorization headers). Push protection blocks a matching secret at
git push. - Buildkite CI —
elastic/hermit#v1.0.2+elastic/pre-commit#v1.0.3plugins run the normal pre-commit hook set (including gitleaks) on every PR via thegradle-plugins-cipipeline.
Setting up the hook
Both humans and coding agents are expected to use this tooling; it is the first layer that stops a secret before it becomes a commit.
pre-commit and Gitleaks are both pinned via Hermit, so no global install is
needed. From a fresh clone:
./bin/pre-commit install # once per clone, installs the git hookThereafter the hook runs automatically on git commit. To run it on demand:
./bin/pre-commit run gitleaks # scan staged content
./bin/pre-commit run gitleaks --all-files # scan the whole tree./bin/pre-commit and ./bin/gitleaks are Hermit launchers and work without
activating Hermit. If you activate the environment (. bin/activate-hermit),
plain pre-commit and gitleaks resolve to the same pinned versions. Python
3.9 or newer must be available: pre-commit uses it to build the hook's
isolated environment, though it does not provision Gitleaks itself.
If Gitleaks detects a secret, treat the finding as exposed, stop immediately, and rotate or revoke the credential before pushing. Never bypass the hook with --no-verify, SKIP=gitleaks, an allowlist entry, or a GitHub push-protection bypass reason unless the repository owner explicitly authorizes that exact override after reviewing the finding. A request to complete, commit, push, or open a pull request does not constitute override authorization.
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 genuineCo-authored-bytrailer, in addition toAssisted-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.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 28,693 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.
- CLAUDE.mdCLAUDE.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.

