Setup
- Go to Integrations settings
- Select GitHub under Source control, then click Connect and authorize your account
- Install the Replicas GitHub App on your repositories
- Add repositories you want Replicas to access
@tryreplicas mentions on any issue or PR in that repository.
Each repository can only be connected to one Replicas organization. If you need to transfer a repository to a different organization, remove it from the current organization first.
Default branch
Each repository has a configurable default branch that controls which branch new workspaces clone, which branch the Changes view diffs against, and which branch warm pools sync to. It defaults tomain.
To change it, open Integrations settings → GitHub, find the repository in the Repositories table, click the pencil icon next to the branch name, enter the new branch (e.g. staging, develop), and confirm. The setting is organization-scoped and applies to every workspace and warm pool that uses the repository.
Use it for repositories where your primary branch isn’t main, so workspaces start from the right branch and PR diffs are computed against the branch you actually merge into.
How It Works
Workspaces created from GitHub triggers use your organization’s default coding agent and model.Trigger from GitHub Issues
Add@tryreplicas to any comment on a GitHub issue to start a new task.
- Replicas creates a new workspace to work on the issue
- The agent provides an implementation plan before making changes
- When complete, the agent creates a PR and comments on the original issue with:
- A link to the PR
- A summary of the changes made
- When the issue is closed, the associated workspace is automatically cleaned up
Trigger from Pull Requests
Add@tryreplicas to any pull request review (e.g requesting changes) or comment.
- If the pull request was made by a Replicas agent, it will see it, make changes, and respond directly to you.
- If the pull request was made by someone else, a new workspace and Replicas agent will be spun up.
Auto Respond To Review Bots And Users
You can configure an allowlist in Organization Settings → GitHub Auto Responders to automatically react to specific GitHub accounts — bots or users — without requiring@tryreplicas.
Search for reviewer bots like greptile-apps[bot], coderabbitai[bot], and copilot-swe-agent[bot] (the GitHub Copilot coding agent), or paste an exact login to add a non-bot user account, then add them to the allowlist.
Accounts not on the allowlist cannot trigger Replicas. If an unauthorized bot attempts to interact, it will receive a message directing org admins to add the login to the allowlist in GitHub integration settings.
CI/CD Failure Auto-Response
When a CI/CD check fails on a pull request linked to a Replicas workspace, the agent is automatically notified and investigates the failure. It reads the failure logs, diagnoses the issue, pushes a fix, and comments on the PR. This works with two sources of CI failures:- GitHub Actions workflows, triggered via
workflow_runevents when a workflow completes with a failure. - External CI checks, triggered via
check_runevents from any non-Actions provider that posts results through the GitHub Checks API (e.g. Mintlify, CircleCI, Buildkite).
- Respond to CI workflows: controls auto-response for GitHub Actions failures (enabled by default).
- Respond to CI checks: controls auto-response for external CI check failures (enabled by default).
CI providers that report status via the Statuses API or Deployments API (e.g. Vercel deployment status) are not yet covered by this feature.
PR Attribution
Pull requests created by Replicas agents use the Replicas bot by default. Organizations can require user attribution with Organization → Settings → Security → Require PR user attribution. When enabled, the code host tooling inside the workspace uses the triggering user’s personal code-host OAuth token, sogh pr create, GitLab merge request push options, pushes, and commit identity resolve to that user instead of the Replicas bot.
Turning on the organization policy automatically enables and locks Require code host connected and Require Replicas account because attribution cannot work without both.
Users can also require attribution for their own workspaces with Account → Preferences → Require PR user attribution. This works even when the organization policy is off.
Required attribution needs Replicas to resolve the triggering user and that user’s connected code-host account. Workspace creation and code-host token refresh fail closed until both are available.
Automation and API-key workspaces have no attached user and fall back to the Replicas bot for PR attribution.
PR Merge Blocking
When the organization security policyblock_agent_pr_merges is enabled, agents are blocked from merging pull requests or merge requests. This prevents agents from bypassing human review by auto-merging their own work.
Blocked commands include gh pr merge, direct GitHub or GitLab API merge calls, and git push to protected branches. When an agent attempts a blocked command, it receives a policy-blocked response.
This is controlled by Organization → Settings → Security → Block agent PR/MR merges. It is separate from Require PR user attribution, so organizations can enforce attribution without blocking merges, or block merges without changing attribution behavior.
Draft Pull Requests
Workspace agents can be instructed to open every new pull request as a draft. When enabled, the agent’s system prompt includes a clause telling it to usegh pr create --draft (or set "draft": true when hitting the GitHub REST API directly).
This feature is off by default and resolves in the standard order:
- User preference (
auto_draft_prs): Toggle Open new PRs as drafts in Account → Preferences to draft PRs for your own workspaces. - Organization preference (
auto_draft_prs): Falls back to the org-level value when no user preference is set. - Default:
false(PRs are opened as normal pull requests).
Context
For issues, the context includes:- Issue number, title, and description
- Your comment body
- PR number and branch
- Your comment or review body
- Review state (approved, changes requested, etc.)
- File path and diff hunk (for line comments)
Intended Usage
Use GitHub Issues to:- Start new features or bug fixes directly from issue tracking
- Get implementation plans before code changes
- Track work from issue to PR automatically
- Request changes on PRs
- Comment on specific lines
- Ask for fixes or improvements
/plan to request a planning-only response with a plan link. See Plan Mode.