Class AdkStaleAgentRun

java.lang.Object
com.example.adkstale.AdkStaleAgentRun

public final class AdkStaleAgentRun extends Object
Entry point for the ADK Java Stale Issue Auditor. Mirrors main.py in the Python sample, and follows the *Run entry-point convention of the ADK Issue Triaging Agent sample.

The runtime mode is selected by environment variables:

  • GitHub Actions workflow mode (set INTERACTIVE=0): one-shot run.
    • If ISSUE_NUMBER is set → audit that single issue.
    • Otherwise → search for issues old enough to be stale candidates and audit up to ISSUE_COUNT_TO_PROCESS (default 20) of them.
  • Interactive console mode (default; INTERACTIVE=1): a Scanner-based REPL. The system instruction tells the agent to ask for confirmation before mutating an issue. For a richer UI, the google-adk-maven-plugin's web goal can serve this agent (see this module's README for the exact command).

All GitHub writes go through the shared GitHubTools, whose GitHubTools.dryRun/ GitHubTools.writeRepoOwner/GitHubTools.writeRepoName guards are configured here so untrusted issue content cannot redirect writes to another repository.

  • Method Details

    • main

      public static void main(String[] args)