Last updated: July 5, 2026
Use GitHub in Chat and Automations
GitHub is the connector Agent0 uses to read source code and propose fixes. When an investigation points to code — or when you ask for a pull request — Agent0 clones the repository, reads the relevant files, and opens a PR on your behalf. You never run git or gh commands yourself.
The GitHub integration is available in both Chat and Automations. GitHub must be configured as a connector before Agent0 can use it. See Set Up GitHub Integration for configuration steps.
What Agent0 Uses GitHub For
Once connected, Agent0 uses GitHub to bridge observability data and source code:
- Follow traces to code — when a span or log carries a repository URL, Agent0 opens the relevant source directly
- Read repositories — inspect implementations, configuration defaults, error definitions, and tests
- Fix bugs — apply a code change on a feature branch and open a pull request with full context
- Review pull requests — read PR contents, diffs, and CI check results
- Link telemetry to PRs — include deep links to the relevant spans, logs, or failed checks in every PR description
Use GitHub in Chat
In Chat, Agent0 uses GitHub tools interactively during investigations. You can ask Agent0 to:
- Explore repositories and find relevant code
- Read specific files or search across codebases
- Understand error sources by following repository URLs from spans
- Open pull requests with fixes, including deep links to Dash0 telemetry
- Check PR status and CI results
Example Chat Requests
| You ask | What Agent0 does |
|---|---|
| "What repositories do I have access to?" | Lists available repositories via the GitHub connector |
| "Where in the code does this error come from?" | Follows the repository URL from the span, clones the repo, and finds the relevant source |
| "What's the default timeout for this service?" | Clones the repository and inspects the configuration |
| "Fix this bug and open a pull request" | Creates a branch, commits the fix, pushes, and opens a PR with Dash0 deep links as context |
| "Are the CI checks passing on this PR?" | Reads the PR status and check results via the gh CLI |
Use GitHub in Automations
In Automations, Agent0 can use GitHub tools as part of event-driven workflows. You can configure automations to:
- Trigger from GitHub events (pull request opened, deployment, release)
- Read repository content to understand service configuration
- Open pull requests automatically in response to failed checks or incidents
- Comment on PRs with investigation results
- Link telemetry data to GitHub issues and pull requests
Example Automation Use Cases
- Failed check creates PR with fix — automation triggers on failed check, investigates, and opens a PR with the proposed fix
- PR review with telemetry context — automation triggers when PR is opened, fetches relevant metrics, and comments with observability insights
- Deployment validation — automation triggers on deployment event, reads service config from repo, and validates against telemetry
Further Reading
- Set Up GitHub Integration — Configure the GitHub connector
- Investigation & Analysis — How Agent0 uses tools during investigations
- Key Concepts — Reference terminology and mental model