Skip to main content
When the Superlog AI agent finishes investigating an incident and produces a fix, it opens a pull request on your behalf. Agent automation settings give you precise control over what happens next — from leaving the PR for your team to review, all the way to merging it automatically the moment CI passes. All settings in this section are per-project. Changes take effect on the next agent run; they do not retroactively affect open PRs.

Configuring settings

You can adjust agent automation settings in two ways:
  • Dashboard: Navigate to Settings → Automation inside the project.
  • Management API: Send a PATCH request 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.
immediately is a powerful setting. If your CI is flaky or your repo has no required status checks, Superlog will merge the fix PR before any tests have run. Enable it only when you have high confidence in your pipeline’s reliability.
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.
Set 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.
If your team uses a develop or staging branch as the integration target, set pr_base_branch to that branch name. This prevents the agent from opening PRs that bypass your normal review flow.

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_context tool in your MCP-enabled environment
  • Set via the API: include project_context in a PATCH /api/v1/projects/<projectId> request
Keep project context focused on facts that stay stable over weeks — service names, languages, key libraries, database layout, and on-call conventions. Avoid dynamic information like current incidents or recent deploys, which go stale quickly.
For advanced guidance on shaping agent behaviour with domain knowledge, see Agent Memory.

Full example: enabling squash auto-merge

The following call sets when_checks_pass auto-merge with a squash strategy on a project, targeting the main branch:
The response returns the full project object with all current settings reflected.

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.