Saltar al contenido

Lección 23 · Privacy and Team Use

Using Cursor as a Team

Roll out Cursor in a team: shared rules and configuration, team controls, a short AI coding policy, pull request norms, fair measures and a careful pilot.

One developer can adopt a tool by habit. A team needs agreements, or each person ends up with different rules, permissions and review standards. This lesson gives you a practical starting point. Adapt it to your organization; it is not legal or HR advice.

What to share in the repository

File Purpose
AGENTS.md Commands, conventions, things not to do
.cursor/rules/*.mdc Targeted rules
.cursorignore Paths to keep away from the AI features
.cursor/permissions.json Shared allowlists (a convenience, not a security boundary)
.cursor/mcp.json Project servers, with secrets from environment variables
.cursor/hooks.json Automated checks and guards
.cursor/worktrees.json Setup for isolated checkouts

You do not need all of them. Because these files can change what an agent is told or allowed to do, protect them in review. For example, a code owners feature on your Git host can require approval from named people for changes under .cursor/.

Team controls

Team and Enterprise plans add central administration. As documented in December 2026, this includes team rules managed in a dashboard (which can be enforced so that members cannot turn them off), Privacy Mode enforcement, model and run mode restrictions, MCP controls and spending limits. Some controls depend on the plan, such as team hooks configured in the web dashboard, which the hooks page lists for Enterprise. Check the current plan comparison before you promise a control to your security team.

Team rules take precedence over project rules and user rules.

A short AI coding policy

A one-page policy is more likely to be read than a long document. Here is a draft to adapt:

TEXT
AI coding policy (draft)

1. Accountability: the person who opens a pull request owns every line.
2. Data: no customer data, production secrets or regulated data in prompts.
3. Tools: only approved tools and MCP servers. Request new ones from <owner>.
4. Permissions: no Run Everything on machines with real credentials.
5. Review: every change gets human review. Security, payment and data
   changes need a specialist reviewer.
6. Tests: new behavior needs tests. Never weaken tests to pass.
7. Dependencies: new packages need a reason and a license check.
8. Incidents: report leaked secrets or surprising agent actions at once.

Ask your legal and security colleagues to review your version, including questions about licensing and intellectual property.

Pull request norms

Ask authors to describe a change in their own words:

  • What changed, and why.
  • How it was tested.
  • Which parts were hard or uncertain.

If authors cannot explain their change, it is not ready. Your team may also ask people to say when an agent wrote much of a change, so reviewers know where to look carefully.

This real script checks a description before review. Your CI could run something like it.

Python Check a pull request description

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

A length check cannot judge quality, but it stops empty templates.

Roll out with a pilot

A careful rollout

Pilot Small group, low risk
Measure Quality and speed
Adjust Rules and policy
Expand
1 / 2

Decide what to measure before the pilot. Lines of code are a poor measure, because AI can produce many lines cheaply. More useful signals include:

  • Time from starting a task to merging it.
  • Review time and rework.
  • Defects found after release.
  • Reverted changes.
  • Developers' own reports about how well they understand the code.
  • Spending compared with the plan.

Compare with a baseline, be honest about small samples, and do not use these team numbers to rank individuals.

Python Compare pilot measures with a baseline

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

These numbers are invented. They show a possible pattern: delivery gets faster while review takes longer. Look at all the measures together.

Keep people growing

Newer developers still need to learn to read, debug and design. Encourage them to explain AI-written code in review, to try a problem before asking for a solution and to pair with experienced colleagues. A team that cannot understand its own code is in trouble, however fast it ships.

Plan for incidents

Decide in advance what happens if a secret is exposed or an agent does something unexpected:

  1. Stop the agent.
  2. Revoke or rotate affected credentials.
  3. Keep the relevant logs.
  4. Tell the right people.
  5. Fix the cause, and add a control or test.

Review incidents without blame, so that people report problems quickly.

Onboard people well

Give each new user a short path instead of a long document:

  1. Read the one-page policy.
  2. Set up the editor with the team's settings and check Privacy Mode.
  3. Complete one small, low-risk task with a mentor watching.
  4. Review one AI-written change using the team's checklist.
  5. Learn how to report a problem.

Hold a short monthly session where people share what worked and what failed. Turn repeated lessons into rules, tests or skills, and delete guidance that no longer helps. Name an owner for the shared configuration, so that updates after a product change do not depend on whoever notices first. With this product, that matters now: the rename to Grok Build may change names in integrations, documentation links and trigger words that your team scripts rely on.

Common mistakes

  • Rolling out to everyone before the policy and permissions are ready.
  • Letting rule files grow without an owner.
  • Measuring only speed.

Check your understanding

Quick check · 3 questions

of 3 answered You scored / 3 · perfect!

  1. 1. Why should changes under .cursor/ get careful review?

    Rules, hooks, permissions and MCP settings affect agent behavior.
  2. 2. Which is a weak measure of success?

    AI makes lines cheap, so the count says little about value.
  3. 3. In the draft policy, who is accountable for AI-written code in a pull request?

    A person must own and understand the change.

Summary

  • Share and protect configuration in the repository.
  • Use team controls where your plan provides them.
  • Write a short policy and require clear pull request descriptions.
  • Pilot first, and measure quality along with speed.

Next: Project: Add a Feature with Cursor

Tu progreso se guarda en este navegador. No necesitas una cuenta.