Supported providers
Ona Agent SCM tools currently support:- GitHub (github.com and GitHub Enterprise)
- GitLab (gitlab.com and self-hosted instances)
Bitbucket and Azure DevOps are supported for repository access configuration, but agent SCM tools are not yet available for these providers.
What agents can do
With SCM tools, Ona Agent can:- Create, update, and read pull requests (GitHub) or merge requests (GitLab)
- Add general and inline code review comments
- Create and manage issues
- Search for issues and pull requests
- List available issue types
Organization controls
SCM tools are enabled by default for all organizations. Organization administrators can disable them if needed.Configuring SCM tools access
- Navigate to Settings > Agents
- Locate the SCM Tools controls
- Toggle SCM tools on or off
- Changes apply to new Ona Agent conversations
When SCM tools are disabled
- Ona Agent cannot create or update pull requests
- Issue management tools are unavailable
- Code review commenting is blocked
- Search tools for issues and PRs are disabled
- Agents can still use Git commands directly (clone, commit, push)
Common workflows
Creating a pull request
Ask Ona Agent to create a pull request after making changes:Code review comments
Request inline feedback on specific code:Issue management
Create or update issues directly:Searching for context
Find related issues or pull requests:Provider differences
While SCM tools work consistently across providers, some platform-specific behaviors exist:| Feature | GitHub | GitLab |
|---|---|---|
| Inline comments | Direct comment creation | Creates discussion threads |
| Draft PRs | Supported | Not supported |
| Assignees | Username-based | Requires user IDs |
GitLab inline comments create discussion threads rather than simple comments. This is a GitLab platform behavior, not a limitation of Ona Agent.
Prerequisites
Before using SCM tools:- Configure source control on your runner—see GitHub, GitLab
- Authorize access via OAuth or PAT when creating your first environment
- Verify permissions—ensure your token has appropriate scopes for the operations you need
Required scopes
GitHub:repo— Repository access for PR and issue operationsread:user— User information for git authorworkflow— GitHub Actions file editing (if needed)
api— Full API accessread_repository— Repository cloningread_user— User information
Limitations
Current limitations:- No merge capability — Agents cannot merge pull requests
- No branch sync — Cannot update PR branches with base branch changes
- No approval submission — Cannot approve or request changes on PRs
- GitHub and GitLab only — Other providers not yet supported
Troubleshooting
Tool not available
If SCM tools aren’t appearing:- Verify source control is configured on your runner
- Check that you’ve authorized access (OAuth or PAT)
- Restart your environment to reload tools
Permission denied
If operations fail with permission errors:- Verify your token has the required scopes
- Check repository access permissions
- For organization repositories, ensure OAuth app access is granted (see GitHub organization access)
Rate limiting
For high-volume operations:- GitHub and GitLab enforce API rate limits
- Space out bulk operations when working across many repositories
- Consider using Automations for large-scale changes
Next steps
- Configure GitHub integration
- Configure GitLab integration
- Learn about Automations for large-scale SCM operations
- Set up MCP for additional integrations beyond built-in tools