Class AIAgentCustomValueProvider
java.lang.Object
io.github.gradle.conventions.customvalueprovider.BuildScanCustomValueProvider
io.github.gradle.conventions.customvalueprovider.AIAgentCustomValueProvider
- All Implemented Interfaces:
BiConsumer<org.gradle.api.initialization.Settings,com.gradle.develocity.agent.gradle.scan.BuildScanConfiguration>
Adds an "AGENT" tag to the build scan when an AI coding agent is detected.
Also adds a custom value with the name of the detected agent.
Detection is based on environment variables commonly set by AI coding tools:
CLAUDECODE- Claude CodeCURSOR_AGENT- CursorGEMINI_CLI- Gemini CLICODEX_SANDBOX- Codex CLIOPENCODE_CLIENT- OpenCode
Any tool can also be detected by setting the proposed standard AGENT environment variable
(see agents.md#136).
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.github.gradle.conventions.customvalueprovider.BuildScanCustomValueProvider
getConventionsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiConsumer
andThen
-
Constructor Details
-
AIAgentCustomValueProvider
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Overrides:
isEnabledin classBuildScanCustomValueProvider
-
accept
public void accept(org.gradle.api.initialization.Settings settings, com.gradle.develocity.agent.gradle.scan.BuildScanConfiguration buildScan)
-