Stale Issue Auditor agent implementation#845
Stale Issue Auditor agent implementation#845hemasekhar-p wants to merge 1 commit intogoogle:mainfrom
Conversation
Summary of ChangesHello @hemasekhar-p, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a sophisticated Stale Issue Auditor agent designed to enhance repository health by intelligently managing inactive GitHub issues. This agent, built using the Google ADK, distinguishes between genuinely abandoned issues and those under active maintainer investigation by leveraging a Large Language Model (LLM). It automates the entire lifecycle of an issue, from initial labeling and warning to eventual closure, while also incorporating mechanisms to detect and flag silent edits to issue descriptions by authors. Additionally, several core ADK components were refined to support this new agent's functionality and improve overall event and session management. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Ignored Files
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces the Stale Issue Auditor, an exemplary agent demonstrating the capabilities of the Google ADK for repository health automation. The implementation is well-structured, particularly the use of GraphQL for efficient data fetching and the clear decision logic in the prompt. The accompanying core framework changes are also solid, improving robustness and adding useful features like callbackContextData. My review focuses on improving the efficiency, robustness, and consistency of the new sample agent code.
.../samples/stale-agent/src/main/java/com/google/adk/samples/stale/config/StaleBotSettings.java
Show resolved
Hide resolved
contrib/samples/stale-agent/src/main/java/com/google/adk/samples/stale/StaleBotApp.java
Outdated
Show resolved
Hide resolved
contrib/samples/stale-agent/src/main/java/com/google/adk/samples/stale/StaleBotApp.java
Outdated
Show resolved
Hide resolved
contrib/samples/stale-agent/src/main/java/com/google/adk/samples/stale/StaleBotApp.java
Outdated
Show resolved
Hide resolved
contrib/samples/stale-agent/src/main/java/com/google/adk/samples/stale/agent/StaleAgent.java
Outdated
Show resolved
Hide resolved
e7b6b83 to
cb9cc4a
Compare
This PR introduces the Stale Issue Auditor, a sample agent that leverages the Google ADK to automate repository health. Unlike standard time-based bots, it uses an LLM to contextualize inactivity, distinguishing between true abandonment and active maintainer investigation. The agent manages the full issue lifecycle—labeling, warning, and closing—based on configurable thresholds, while including safeguards to detect silent description edits by authors.