> ## Documentation Index
> Fetch the complete documentation index at: https://codegeninc-codegen-cg-18575-update-slack-integration-docume.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub Integration

Connect Codegen to your GitHub repositories to enable agents to read code, create branches, commit changes, open pull requests, comment on issues, and more.

## Capabilities

Our GitHub integration grants Codegen agents both read and write access, allowing them to function like a member of your development team:

* **Read Access:** Clone repositories, read file contents, inspect branches, view issues and PRs.
* **Write Access:** Create branches, push commits, open/update pull requests, comment on PRs and issues, assign reviewers.

## How Agents Use GitHub

Agents leverage the GitHub integration to:

* **Understand Context:** Read code and related issues/PRs to grasp the task requirements.
* **Implement Changes:** Create branches and commit code directly based on your prompts.
* **Request Reviews:** Open pull requests and automatically request reviews from specified team members.
* **Report Progress:** Comment on related issues or PRs with updates, results, or requests for clarification.

## Installation

Authorize Codegen to access your GitHub organizations and repositories.

<Tip>
  You can manage repository access granularly through the GitHub App settings.
</Tip>

<Card title="Install Codegen GitHub App" icon="github" href="https://github.com/apps/codegen-sh">
  Click here to install the Codegen GitHub App and grant necessary permissions.
</Card>

<Note>
  Ensure the agent has access to the specific repositories it needs to work on.
</Note>
