Enterprise
AI Coding Policy Template
An AI coding policy should state which tools are allowed, which repos are approved, what data must stay out, when human review is required and how incidents are reported. Keep it short enough that developers can follow it during a normal workday.
On this page
What controls matter for AI coding policy?
AI coding policy is a governance question before it is a tooling one. Four controls decide whether security can sign off: who has access, what the policy allows, how data moves, and whether anyone is measuring adoption. The table assigns each an owner.
- Control
- Identity
- Owner
- IT
- Evidence
- SSOSingle Sign-On. One company login (usually via SAML or OIDC) instead of a separate password per tool. Press Enter for the full definition., SCIMSystem for Cross-domain Identity Management. A standard for automatically creating and removing user accounts when people join or leave. Press Enter for the full definition. or membership source is defined
- Control
- Policy
- Owner
- Engineering leadership
- Evidence
- Allowed repos, tools and review rules are documented
- Control
- Security
- Owner
- Security team
- Evidence
- Data flow, secrets boundary and audit path are reviewed
- Control
- Adoption
- Owner
- DevEx
- Evidence
- Pilot metrics and training path are live
| Control | Owner | Evidence |
|---|---|---|
| Identity | IT | SSOSingle Sign-On. One company login (usually via SAML or OIDC) instead of a separate password per tool. Press Enter for the full definition., SCIMSystem for Cross-domain Identity Management. A standard for automatically creating and removing user accounts when people join or leave. Press Enter for the full definition. or membership source is defined |
| Policy | Engineering leadership | Allowed repos, tools and review rules are documented |
| Security | Security team | Data flow, secrets boundary and audit path are reviewed |
| Adoption | DevEx | Pilot metrics and training path are live |
The owners column matters more than the controls themselves, which I realise is a slightly odd thing to say about a governance table. But a control with nobody's name against it is a control nobody checks, and it fails at exactly the moment someone has to answer for it. The usual mistake is assuming security owns all four. They don't. Identity is IT's system of record, policy is an engineering-leadership call about what the team is allowed to ship, and adoption belongs to whoever owns developer experience. Security owns the data-flow question and the audit path, and they will ask about both.
Data flow is the one that stalls approvals, so answer it before the meeting rather than during it. Write down what the tool can read, what it can change, what leaves your network and where any of it is retained. Most of that comes straight from the vendor's documentation and your own configuration. It's dull work, but it turns a vague objection into a specific one, and specific objections are the kind you can actually close.
Interactive diagram. Tab through its regions; each focused region shows its detail in the panel below.
This is covered hands-on in Teams and Enterprise Admin — 6 short modules, free to read.
How should the rollout work?
A rollout works when it starts narrow and earns its expansion. One team, one repo and a few real tasks in week one, with policy and training in place before anyone scales it wider.
- 1Week 1: pick one team, one repo and three realistic tasks.
- 2Week 2: write the workflow standard from the pilot.
- 3Week 3: train champions and add policy guardrails.
- 4Week 4: expand only after quality, cost and review load are visible.
Four weeks is a shape, not a rule. The dates matter much less than the order, and the reason to start with a single team is that those first two weeks are mostly you finding out what your standard should even say. You can't write that from a pilot too broad to watch properly. Pick the team that will tell you when something doesn't work, rather than the team most likely to hand you a good result.
Expansion is where this usually goes wrong. Not because anyone's careless, either — the pilot went well, someone senior noticed, and now there's pressure. That's a hard thing to say no to. Before you add teams, though, check that you can answer three things with numbers instead of impressions: did review load go up or down, what does a developer actually cost per month, did quality hold. If any of those is a shrug, another fortnight of the same pilot beats a rollout you have to walk back.
What's new in Cursor recently?
Cursor ships often, so here is the current state of the surfaces this page touches. Each row links to the source where you can confirm the detail.
- Surface
- Compile 2026
- What to know
- Cursor's June 16 event highlighted Origin, larger from-scratch model training and Cursor Mobile alongside the broader June release wave.
- Surface
- Origin
- What to know
- Cursor's Origin page says code is moving faster than existing infrastructure was built to handle. The public page is waitlist-first, so migration and security details still need confirmation.
- Surface
- Model and mobile
- What to know
- Composer 2.5The current Composer release, better at long-running tasks and at judging when a job needs a light touch versus deep work. Press Enter for the full definition. is available now. Cursor says a larger model is training with SpaceX. Mobile-native details remain beta until Cursor publishes a product page.
- Surface
- Automations
- What to know
/automate, Slack emoji triggers, GitHub issue/comment/review/workflow triggers, computer use, PR defaults and memory cleanup.
- Surface
- Cloud AgentsAgents that run in a Cursor-managed virtual machine, check out the repo, do the work and open a pull request, then shut down, with no load on your laptop. Press Enter for the full definition.
- What to know
- Guided cloud environment setup, reusable snapshots,
.cursor/environment.json,/in-cloud,/babysitand local/cloud handoff.
- Surface
- Review
- What to know
- BugbotCursor's automated PR reviewer that posts inline findings and can push fix commits from isolated VMs. Press Enter for the full definition. averages about 90 seconds and finds 10% more bugs per review, and can run locally before push with
/review. Cursor hasn't published Bugbot's underlying model. Don't assert one; treat the figures as perishable.
- Surface
- Design and Canvas
- What to know
- Design ModeA way to point at an element in Cursor's built-in browser and change it directly, instead of describing it in words. Press Enter for the full definition. supports multi-select and voice queueing; canvases support Design Mode, context reports, Debug with Agent, full-screen sharing and prompt buttons.
- Surface
- SDK and run modes
- What to know
- SDK agents can use custom tools, auto-review, JSONL/custom stores, nested subagents and request IDs; Auto-review Run Mode routes tool calls through safer execution paths.
- Surface
- Enterprise and pricing
- What to know
- Organizations sit above teams, groups scope model/spend/agent permissions and Teams now has Standard/Premium seats with Auto + ComposerCursor's own fast coding model, tuned for the editor and priced well below frontier models; the recommended day-to-day model for executing a plan. Press Enter for the full definition. and third-party API pools.
| Surface | What to know |
|---|---|
| Compile 2026 | Cursor's June 16 event highlighted Origin, larger from-scratch model training and Cursor Mobile alongside the broader June release wave. |
| Origin | Cursor's Origin page says code is moving faster than existing infrastructure was built to handle. The public page is waitlist-first, so migration and security details still need confirmation. |
| Model and mobile | Composer 2.5The current Composer release, better at long-running tasks and at judging when a job needs a light touch versus deep work. Press Enter for the full definition. is available now. Cursor says a larger model is training with SpaceX. Mobile-native details remain beta until Cursor publishes a product page. |
| Automations | /automate, Slack emoji triggers, GitHub issue/comment/review/workflow triggers, computer use, PR defaults and memory cleanup. |
| Cloud AgentsAgents that run in a Cursor-managed virtual machine, check out the repo, do the work and open a pull request, then shut down, with no load on your laptop. Press Enter for the full definition. | Guided cloud environment setup, reusable snapshots, .cursor/environment.json, /in-cloud, /babysit and local/cloud handoff. |
| Review | BugbotCursor's automated PR reviewer that posts inline findings and can push fix commits from isolated VMs. Press Enter for the full definition. averages about 90 seconds and finds 10% more bugs per review, and can run locally before push with /review. Cursor hasn't published Bugbot's underlying model. Don't assert one; treat the figures as perishable. |
| Design and Canvas | Design ModeA way to point at an element in Cursor's built-in browser and change it directly, instead of describing it in words. Press Enter for the full definition. supports multi-select and voice queueing; canvases support Design Mode, context reports, Debug with Agent, full-screen sharing and prompt buttons. |
| SDK and run modes | SDK agents can use custom tools, auto-review, JSONL/custom stores, nested subagents and request IDs; Auto-review Run Mode routes tool calls through safer execution paths. |
| Enterprise and pricing | Organizations sit above teams, groups scope model/spend/agent permissions and Teams now has Standard/Premium seats with Auto + ComposerCursor's own fast coding model, tuned for the editor and priced well below frontier models; the recommended day-to-day model for executing a plan. Press Enter for the full definition. and third-party API pools. |
As of July 9, 2026. See Sources below for links.
How do you tell an enforced policy clause from a request?
Ask what happens when someone ignores it. Cursor splits agent safety into deterministic security controls that block an operation whatever the model suggests, and non-deterministic steering that makes good behaviour more likely. Any clause resting on the second kind is a request, and the template should say so in the clause itself.
- The clause rests on
- Approvals, hooks, sandboxing, file permissions
- Enforced or expected
- Enforced
- Why
- Deterministic. The operation is blocked regardless of what the model proposes.
- The clause rests on
- Run Mode set to Auto-review
- Enforced or expected
- Partly
- Why
- Runs allowlisted calls and sandboxes shell commands where it can; the rest goes through a best-effort classifier, so Cursor's guidance is to pair it with hooks.
- The clause rests on
.cursorignoreon secrets and regulated paths- Enforced or expected
- Expected
- Why
- Excludes files from semantic search, agent file reading and context selection, but a user can still open an ignored file, and terminal and MCPModel Context Protocol. A standard that lets an AI agent pull in context from outside the repo, like Jira tickets or internal docs. Press Enter for the full definition. tools cannot honor it.
- The clause rests on
- Team rules
- Enforced or expected
- Expected
- Why
- Instructions the model attempts to follow. Not a guarantee.
| The clause rests on | Enforced or expected | Why |
|---|---|---|
| Approvals, hooks, sandboxing, file permissions | Enforced | Deterministic. The operation is blocked regardless of what the model proposes. |
| Run Mode set to Auto-review | Partly | Runs allowlisted calls and sandboxes shell commands where it can; the rest goes through a best-effort classifier, so Cursor's guidance is to pair it with hooks. |
.cursorignore on secrets and regulated paths | Expected | Excludes files from semantic search, agent file reading and context selection, but a user can still open an ignored file, and terminal and MCPModel Context Protocol. A standard that lets an AI agent pull in context from outside the repo, like Jira tickets or internal docs. Press Enter for the full definition. tools cannot honor it. |
| Team rules | Expected | Instructions the model attempts to follow. Not a guarantee. |
Write the expected rows as expectations. A clause that reads enforced and isn't is the one that fails an audit.
Being pedantic about this is not about tidiness. A clause saying secrets must be excluded via .cursorignore reads, to anyone who doesn't know the mechanism, like a guarantee that secrets cannot reach a model. It is not one. For paths that genuinely must not be read, the answers are file system permissions, encryption, or a hook that blocks the read, and probably all three on anything you would have to disclose.
Right, so mark every clause with one of those two words before you circulate the draft. Cheapest edit this document takes.
Which clause do teams write that they cannot actually evidence?
The one promising a record of what the agent did. Cursor's audit logs record security events and administrative actions, and they do not log agent responses or generated code content. A clause saying AI-assisted changes are logged and reviewable cannot be satisfied from audit logs alone.
Cursor's own recommendation for that gap is hooks. A prompts-submitted hook can log when a prompt is sent and a code-generated hook can log when code is written, posting to your compliance endpoint, and Cursor advises logging metadata rather than full prompt or code content.
My first instinct was to write the logging clause and hand it to whoever owns the SIEM. Wrong order, I think. Whoever writes the hook decides what the clause can truthfully claim, so the sentence gets drafted after the hook exists rather than before it. Otherwise the policy makes a promise the pipeline has to be bent to keep.
Audit logs are an Enterprise-plan feature, viewable in the team dashboard and streamable to a SIEM, a webhook or S3. Confirm which plan you are on before that clause is written, because without them the escalation path has to be a named person rather than a query.
What clause do most AI coding policies leave out?
Model access, and personal API keys in particular. With your own key, zero data retention is subject to your agreement with the model provider rather than Cursor's. A policy that enforces Privacy ModeCursor's setting that guarantees code data is not used for training by Cursor or its model providers, and that an admin can enforce org-wide; data-retention terms are a separate, contractual layer. Press Enter for the full definition. org-wide and says nothing about bring-your-own-key has a hole in the middle of it.
Two lines close it. Name which models the org allows and restrict the rest; state whether personal API keys are permitted at all. Non-ZDRZero Data Retention. A contractual guarantee that the model provider won't store your code or train on it. Press Enter for the full definition. models already require admin approval, so the approval step exists either way, and the policy's job is to say who grants it and on what basis.
A repository blocklist is the matching clause from the other direction. For the repos that should not be reachable from Cursor at all.
Frequently asked questions
Who is this guide for?
Engineering leaders, security teams and DevEx owners writing policy.
What should I do next?
Start with one real repo task, capture the prompt and review the result before scaling the workflow.
Sources & last verified
- Cursor teams dashboard
- Cursor privacy and data governance
- Cursor SSO
- Cursor enterprise docs
- Cursor enterprise
Cursor ships frequently. Facts verified against primary sources on July 9, 2026.