Configuring settings
You can adjust agent automation settings in two ways:- Dashboard: Navigate to Settings → Automation inside the project.
- Management API: Send a
PATCHrequest to/api/v1/projects/<projectId>with the fields you want to change. Only the fields you include are written — absent fields are left unchanged.
Auto-merge policy (automerge_fix_prs)
This setting controls whether the agent merges the PR it opens, and when.
when_checks_pass delegates the merge decision to GitHub’s auto-merge mechanism. Make sure your repository has at least one required status check configured, or the PR may merge as soon as it is opened.Merge strategy (automerge_method)
When automerge_fix_prs is set to when_checks_pass or immediately, this setting controls the Git merge strategy used.
If
automerge_fix_prs is never, this field has no effect but is still stored and will apply if you later enable auto-merge.
Target branch (pr_base_branch)
By default, the agent targets the repository’s default branch (usually main or master). Set pr_base_branch to override this per project.
pr_base_branch to null or an empty string to revert to the repository’s default branch. The value must be 200 characters or fewer.
Project context
Project context is a free-text description of your architecture that the agent reads before every investigation. Use it to tell the agent about your stack, key services, inter-service dependencies, coding conventions, or anything else that would help it understand a failure faster.- Maximum length: 8,000 characters
- Set from the dashboard: Settings → Project Context
- Set via the MCP tool: use the
set_project_contexttool in your MCP-enabled environment - Set via the API: include
project_contextin aPATCH /api/v1/projects/<projectId>request
Full example: enabling squash auto-merge
The following call setswhen_checks_pass auto-merge with a squash strategy on a project, targeting the main branch:
Related
Connect GitHub
Set up the GitHub integration so the agent can open and merge PRs on your repositories.
Agent Memory
Add long-lived domain knowledge to guide the agent’s investigations.