Skip to content

Conversation

rohitg00
Copy link
Contributor

@rohitg00 rohitg00 commented Sep 8, 2025

This pull request introduces a new AI-powered GitHub PR review agent, providing automated pull request analysis, Slack integration, and optional auto-merge capabilities. The core features include summarizing PRs, scoring them, recommending actions, and integrating with Slack and GitHub APIs. The changes add all necessary code, configuration, and documentation for running the agent both locally and in Docker.

Key changes:

Core functionality and tools:

  • Added tools/pr_tools.py implementing helper functions and tools for PR summarization, scoring, action recommendations, final decision logic, Slack messaging (with retry logic), and a composite review_pr tool that fetches PR data from GitHub, analyzes it, attempts auto-merge, and sends a summary to Slack.

Agent orchestration:

  • Introduced xpander_handler.py, which loads environment variables, defines a custom MyAgent class (subclassing agno.agent.Agent), registers tools, and provides both CLI and Xpander backend integration for handling review tasks.

Environment and dependency setup:

  • Added .env.example specifying required environment variables for GitHub, Slack, Xpander, and OpenAI integration.
  • Added requirements.txt specifying Python dependencies, including python-dotenv, agno, xpander-sdk, httpx, and openai.
  • Added a Dockerfile for building a minimal Alpine-based Python container with all dependencies and entrypoint for the agent.

Documentation:

  • Added a comprehensive README.md detailing features, setup instructions, usage examples, development guide, and API reference for the agent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant