• Tech Dev NotesTech Dev Notes
Apps
  • App lookup
  • App compare
Market movement
  • App charts
  • App rankings
Visual proof
  • App screens
  • App listing screenshots
  • App icons
Build intelligence
  • App tech stacks
  • Tool releases
  • Developers
More
  • X feature flags
  • Grokipedia
  • Blog
  • Follow on X
Skip to content
All content/ filesChangelog

cursor-docs/latest/content · Jun 26, 20:20 UTC

pages/approval-agents.txt

TXT·5.9 KB·83 lines

content/

  • pages

    • api.txt
    • approval-agents.txt
    • bugbot.txt
    • cloud-agent.txt
    • customize-cursor.txt
    • enterprise.txt
    • evals.txt
    • extension-api.txt
    • hooks.txt
    • mcp.txt
    • models-and-pricing.txt
    • plugins.txt
    • rules.txt
  • pages/account

    • regions.txt
    • update-access.txt
  • pages/account/enterprise

    • billing-groups.txt
    • cyber-safeguards.txt
    • service-accounts.txt
  • pages/account/organizations

    • organization-admin-api.txt
  • pages/account/pricing

    • request-based-legacy.txt
  • pages/account/teams

    • admin-api.txt
    • ai-code-tracking-api.txt
    • analytics-api.txt
    • analytics.txt
    • dashboard.txt
    • members.txt
    • pricing.txt
    • scim.txt
    • setup.txt
    • sso.txt
  • pages/agent

    • agent-review.txt
    • agents-window.txt
    • debug-mode.txt
    • design-mode.txt
    • overview.txt
    • plan-mode.txt
    • prompting.txt
    • security.txt
  • pages/agent/security

    • run-modes.txt
  • pages/agent/tools

    • browser.txt
    • canvas.txt
    • search.txt
    • terminal.txt
  • pages/cli

    • acp.txt
    • changelog.txt
    • github-actions.txt
    • headless.txt
    • installation.txt
    • mcp.txt
    • overview.txt
    • shell-mode.txt
    • using.txt
  • pages/cli/reference

    • authentication.txt
    • configuration.txt
    • output-format.txt
    • parameters.txt
    • permissions.txt
    • slash-commands.txt
    • terminal-setup.txt
  • pages/cloud-agent

    • automations.txt
    • best-practices.txt
    • capabilities.txt
    • choose-runtime.txt
    • my-machines.txt
    • private-workers.txt
    • security-network.txt
    • self-hosted-cloud-run.txt
    • self-hosted-k8s.txt
    • self-hosted-pool.txt
    • settings.txt
    • setup.txt
  • pages/cloud-agent/api

    • endpoints.txt
    • webhooks.txt
  • pages/configuration

    • worktrees.txt
  • pages/configuration/migrations

    • vscode.txt
  • pages/cursor-review

    • merge-queue.txt
    • overview.txt
    • pr-inbox.txt
    • pr-page.txt
  • pages/cursor-review/cli

    • authentication.txt
    • parameters.txt
    • stacking.txt
  • pages/customizing

    • aws-bedrock.txt
  • pages/enterprise

    • baa.txt
    • compliance-and-monitoring.txt
    • deployment-patterns.txt
    • endpoint-security.txt
    • identity-and-access-management.txt
    • llm-safety-and-controls.txt
    • model-and-integration-management.txt
    • network-configuration.txt
    • organization-groups.txt
    • organizations.txt
    • pooled-usage.txt
    • privacy-and-data-governance.txt
    • private-connectivity.txt
    • security-hardening.txt
  • pages/get-started

    • quickstart.txt
  • pages/integrations

    • azure-devops.txt
    • bitbucket.txt
    • cursor-blame.txt
    • github.txt
    • gitlab.txt
    • jetbrains.txt
    • jira.txt
    • linear.txt
    • microsoft-teams.txt
    • notion.txt
    • slack.txt
    • xcode.txt
  • pages/mcp

    • install-links.txt
  • pages/models

    • claude-4-5-haiku.txt
    • claude-4-5-sonnet.txt
    • claude-4-6-sonnet.txt
    • claude-4-sonnet-1m.txt
    • claude-4-sonnet.txt
    • claude-fable-5.txt
    • claude-opus-4-5.txt
    • claude-opus-4-6-fast.txt
    • claude-opus-4-6.txt
    • claude-opus-4-7-fast.txt
    • claude-opus-4-7.txt
    • claude-opus-4-8.txt
    • cursor-composer-1-5.txt
    • cursor-composer-1.txt
    • cursor-composer-2-5.txt
    • cursor-composer-2.txt
    • gemini-2-5-flash.txt
    • gemini-3-1-pro.txt
    • gemini-3-5-flash.txt
    • gemini-3-flash.txt
    • gemini-3-pro-image-preview.txt
    • gemini-3-pro.txt
    • glm-5-2.txt
    • gpt-5-1-codex-max.txt
    • gpt-5-1-codex-mini.txt
    • gpt-5-1-codex.txt
    • gpt-5-2-codex.txt
    • gpt-5-2.txt
    • gpt-5-3-codex.txt
    • gpt-5-4-mini.txt
    • gpt-5-4-nano.txt
    • gpt-5-4.txt
    • gpt-5-5.txt
    • gpt-5-codex.txt
    • gpt-5-fast.txt
    • gpt-5-mini.txt
    • gpt-5.txt
    • grok-4-20.txt
    • grok-4-3.txt
    • grok-build-0-1.txt
    • kimi-k2-5.txt
  • pages/reference

    • deeplinks.txt
    • ignore-file.txt
    • keyboard-shortcuts.txt
    • permissions.txt
    • plugins.txt
    • sandbox.txt
    • third-party-hooks.txt
  • pages/sdk

    • python.txt
route: /docs/approval-agents
title: Approval Agents
description: Automatically approve pull requests or route them to the right reviewers based on your approval criteria.

Approval Agents
Approval Agents auto-approve pull requests and assigns reviewers.
How it works
Approval agents run on top of your pull requests. They approve PRs when your criteria are met, or routes PRs to reviewers when more review is needed.
These agents do not replace a full code review. They use configured instructions, approval policy files, AI review agent findings, and risk thresholds to decide whether approval is safe.
Get started by configuring in the Approval Agents dashboard.
Core capabilities
Auto-approval
Approval Agents can auto-approve pull requests when your approval criteria are met.
Use approval criteria to describe the conditions a PR must meet before the agent approves it. The agent also considers applicable policy files, risk settings, AI reviewer findings, and the current review state.
Reviewer assignment
Approval Agents can assign reviewers to pull requests when more review is needed.
Use reviewer assignment to describe the conditions a PR must meet before the agent assigns reviewers. The agent also considers applicable policy files, risk settings, AI reviewer findings, and the current review state.
Core features
AI reviewer awareness
Approval Agents can use findings from other Cursor review systems:
Bugbot Review Context utilizes Bugbot findings in the approval decision.
Security Review Context utilizes Security Agent findings in the approval decision.
When these contexts are enabled, the agent waits for the relevant agentic reviewer checks to finish and uses their findings as approval signals.
If Bugbot or Security Agents report findings that need human review, the Approval Agent will not approve the PR.
Security Agents require a team or enterprise plan.
Risk scoring
Approval Agents can classify a PR by risk and enforce a maximum approval threshold.
Use Risk Score enables risk classification which can be customized further with prompting.
Maximum Risk Threshold sets the highest risk level the agent may approve.
If a PR exceeds the configured threshold, the agent will not approve it.
Approval policy files
Approval Agents can discover repository policy files and apply them before deciding whether to approve.
For each changed file, the agent checks the file's directory and each ancestor directory for this exact filename:
APPROVAL_POLICY.md
Only exact basename matches are trusted. Files such as POLICY.md, approval_policy.md, APPROVAL_POLICY.md.bak, and team_APPROVAL_POLICY.md are ignored during directory policy discovery.
The closest applicable APPROVAL_POLICY.md has the highest priority for files under that directory. Ancestor policies still apply unless they conflict with a more specific policy.
Routing policies
Approval Agents also check for a top-level routing file:
.cursor/approval-policies/ROUTING.md
ROUTING.md is a YAML list of product entries. Each entry contains:
product: the product or area name.
boundary: a semantic boundary or explicit repository-relative path or glob.
policies: policy prompt pointers, either explicit file paths or semantic descriptions.
If ROUTING.md is missing, directory-based APPROVAL_POLICY.md discovery still runs. Missing routing does not weaken policy discovery.
Policy precedence
Applicable approval policy prompts override generic approval criteria, risk thresholds, reviewer-selection guidance, custom approval instructions, and the default automated-review posture.
If policies conflict, the agent follows the most specific policy. If specificity is unclear, it follows the stricter instruction and avoids auto-approval.
If a PR changes an approval policy, routing file, routed policy file, or reviewer-specific policy file, the agent does not use the changed content to relax review requirements for that same PR. It uses the base-branch version when available, or requires human review when the base version cannot be determined.
Setup
To configure Approval Agents, open the Approval Agents Dashboard and create your first agent.
Create an agent
Choose New Agent, or use the onboarding card to create a Pull Request Approver.
New agents start with default pull request triggers and approval behavior. You can then tune triggers, approval criteria, reviewer routing, AI context, and notification tools.
Configure triggers
Triggers decide when the agent runs. Approval Agents support pull request events such as:
PR opened runs the agent when a pull request is created.
PR pushed / updated runs the agent when new commits are pushed to an existing PR.
PR commented runs the agent when a comment matching a regex is posted on an existing PR.
Triggers can be scoped to repositories or organizations. For team-owned repositories, team admins can configure broader team scopes.
Configure review signals
In Configuration, choose which signals the agent should use:
Use Bugbot Review Context
Use Security Review Context
Use Risk Score
Maximum Risk for Approval
Use these signals to decide whether the agent should rely on AI reviewer output, security findings, and risk thresholds before approving.
Write a custom prompt
Use the Custom Prompt to add approval criteria for your team. You can describe local review expectations, examples of PRs that are safe to approve, or cases that require human review.
Policy files still take precedence over the custom prompt for applicable files.
If the custom prompt is not set, the agent will use the default Cursor managed criteria.
Configure tools and MCPs
The agent must have at least one primary action enabled:
Approve PR
Request Reviewers
Optional integrations can include:
Slack notifications.
Microsoft Teams notifications.
MCP servers for additional tool access.
Use the custom prompt to guide how the agent should use MCP tools.
Save and enable
After configuring, save the agent. Existing agents can be enabled or disabled from the detail page.
Team members without admin permission can view Approval Agents but cannot edit them.
Previouspages/api.txtNextpages/bugbot.txt

© 2026 Tech Dev Notes

RSSAboutAPIPrivacyTermsSitemap@techdevnotes