GitHub with an AI Agent: Example Requests and Routines

· DoubleX

Quick answer

With an AI agent connected to GitHub, you can automate reading repositories, issues and pull requests, summarizing open PRs, flagging stale issues, and commenting on or opening PRs. In DoubleX IA OS you can run these on demand or on a schedule, with confirmation before the agent changes anything.

Engineering teams spend a lot of time on repeated GitHub chores: checking which pull requests are waiting on review, chasing issues that went quiet, and writing status updates. An AI agent can do the reading and summarizing for you and hand back something you can act on. This guide collects example requests and scheduled routines, based on what the GitHub connector allows.

What can an AI agent read and do in GitHub?#

With the GitHub connector, an agent can read repositories, issues and pull requests, and it can open and comment on pull requests. An AI agent is an assistant that uses tools in your systems to complete a task, rather than only answering in a chat window.

Here is how that maps to day-to-day work:

TaskHow the agent helpsGitHub capability used
Review queueLists open PRs, who authored them and how long they have waitedRead pull requests
Issue triageGroups new issues by theme and flags missing detailsRead issues
Repo orientationExplains what a repository or folder does for a new teammateRead repositories
PR feedbackPosts a comment with a summary or a checklist of open questionsComment on PRs
Small changesOpens a PR with a proposed changeOpen PRs

If you have not connected GitHub yet, start with how to connect GitHub to an AI agent. This guide focuses on what to ask once it is connected.

Which requests work well for issues and pull requests?#

The best requests are specific about the repository, the time window and the format of the answer. Vague asks like "check GitHub" return vague results.

Copy and adapt these:

  • "List every open pull request in the payments-api repository that has had no review in the last 3 days. Show the author, title and link."
  • "Read the issues opened this week in the web-app repository and group them into bugs, feature requests and questions. Flag any issue without steps to reproduce."
  • "Summarize pull request 482: what changed, which files are most affected and what a reviewer should check first."
  • "Find issues labeled 'bug' that have not been updated in 14 days and suggest who should look at each one based on recent activity."
  • "Comment on pull request 482 with a short summary of the change and a list of questions for the author. Show me the comment before posting."

How do you ask for a daily summary of open PRs and stale issues?#

Ask for a fixed report, then schedule it so it arrives without you asking. A good daily digest answers three questions: what is waiting for review, what is stuck, and what is new.

A request you can start from:

  • "Every morning, check the repositories api, web-app and infra. Give me: open PRs waiting for review, PRs open for more than 5 days, issues with no activity in 10 days, and issues opened since yesterday. Keep it under one screen."

To run it on a schedule in DoubleX IA OS:

  1. Open the agent that will own the routine, or create one by describing the job in your own words.
  2. Confirm the GitHub connector is available to that agent in Connectors.
  3. In the agent's permissions, keep GitHub on read-only for a report like this.
  4. Send the request above and check that the result is what you want.
  5. Create a routine so the agent runs the same request at a set time, such as every weekday at 8 a.m.

Each run appears as a task with its history, so you can see what the agent read and what it returned. See the Triggers documentation for the schedule options.

How do you use a scheduled routine to follow a repository?#

A routine is a trigger that makes the agent work on its own, at a set time or when something happens. For repository follow-up, time-based routines are the simplest place to start.

Patterns that work well:

  • Daily: review queue and new issues, as described above.
  • Every Monday: a weekly recap of merged PRs, open PRs and the issues closed, written for a team update.
  • Hourly: a check for newly opened PRs in a critical repository, useful during a release week.
  • One time: a pre-release check on a specific date, listing open PRs and unresolved issues for the release.

A weekly request example:

  • "Every Monday at 9 a.m., summarize last week in the web-app repository: merged PRs by theme, PRs still open, and issues closed. Write it as a short update for the team."

A routine runs with the permissions of the person who created it, so create it from an account that has only the access the job needs. If an outside system should kick things off, a webhook can trigger an agent as well.

How do you combine GitHub with Slack, Linear or Jira?#

You combine them by giving the same agent more than one connector, so it can read in GitHub and then deliver or record the result elsewhere. The Slack, Linear and Jira connectors each have their own capabilities, and you set the allowed actions per system.

CombinationExample flow
GitHub + SlackRead open PRs, then post the daily digest to a team channel
GitHub + LinearCompare open PRs with Linear issues and list PRs that have no matching issue
GitHub + JiraFind Jira issues marked in review and check the status of the related PRs

Requests to try:

  • "Read open PRs in the api repository and send a summary to the #engineering channel in Slack. Ask me before sending."
  • "List PRs that mention no Linear issue, and list Linear issues in progress that have no PR. Present both lists."
  • "For the Jira issues in the current sprint marked 'In review', find the related GitHub PRs and tell me which ones are still waiting for a reviewer."

Start with read-only access in Linear or Jira and turn on updates only after you trust the results.

What precautions should you take before letting the agent comment or open PRs?#

Keep the agent on read-only until its summaries are reliably right, then enable writing actions one at a time. Commenting and opening PRs are visible to your whole team, so they deserve a review step.

A short checklist:

  • Choose which actions the GitHub connector can perform for each agent. Actions that change data can stay off.
  • Rely on confirmation: the agent asks before sending, deleting or changing something and shows what it did step by step.
  • Review the task history to see who asked, which tools the agent used and the result.
  • Use separate agents for separate areas, each with its own systems and permissions.
  • Check the company's privacy settings: content is not used to train models.

You can also give an agent written team standards, such as your PR review checklist, so its comments follow your rules. See Skills and Brain for how to store them.

Frequently asked questions#

Can an AI agent merge pull requests in GitHub?#

The GitHub connector in DoubleX IA OS lets agents read repositories, issues and pull requests and open and comment on PRs. Merging is not listed among its capabilities, so do not plan around it.

Does the agent need write access for a daily PR summary?#

No. A summary only reads pull requests and issues, so you can keep the connector read-only for that agent and still get the full report.

Can the agent post the GitHub summary in Slack on its own?#

Yes, if both connectors are available to the agent and sending is allowed. Because the agent asks for confirmation before sending, you can approve the first messages and review the history.

Who sees what the agent did in GitHub?#

Every request becomes a task with full history: the ask, each tool the agent used and the result. You can see who asked, what was done and when.

Can I run the agent only when something happens?#

Yes. Besides schedules, triggers can start an agent from a webhook, an incoming email or an event in a connected app. See Triggers for details.

Related guides

More GitHub guides