Every developer uses their coding assistant their own way and nobody knows what is changing. How to introduce Claude Code or Cursor to a small team with rules, permissions and review, starting this week.
What happens when every developer uses an AI assistant their own way?
It is Thursday and you are reviewing an eight-hundred-line pull request. The code works, but it uses a different date library from the rest of the project, a different style, and has no tests. You ask, and the answer is "the assistant generated it". Another teammate accepts every change without reading it. A third pasted a file with an API key into a chat.
Nobody acted in bad faith. The team adopted the tool without agreeing on how to use it. This article is for small teams, two to fifteen people, who want the benefits of Claude Code or Cursor without the codebase turning into a patchwork.
Why does the assistant ignore your project's habits?
Because every session starts from zero. Claude Code's documentation puts it this way: each session begins with a fresh context window, and what carries over between sessions is the instruction files you write. Without them, the assistant guesses from the code it sees, and guesses differently depending on who asks and how.
- No shared instructions. Each person explains the project to the tool in their own words, or does not explain it at all.
- No clear limits. What it may run, which folders it may touch and which files it must not read is left to each person.
- Review did not adapt. Code arrives faster and longer, but the review process is the same as before.
- Nobody measures. No one knows whether the tool saves time or just moves work from writing to fixing.
Step 1: write a rules file that lives in the repository
This is the highest-return piece and takes an afternoon. In Claude Code the file is called CLAUDE.md, sits in the project root (or in .claude/CLAUDE.md) and, per the documentation, is shared with the team through version control. It holds build and test commands, coding standards, architecture decisions and common workflows. The /init command generates a draft from your code, and you correct it.
Cursor works the same way under a different name. Its project rules live in .cursor/rules, are checked into version control so the team shares them, and it also supports a plain AGENTS.md in the project root. If the team uses both tools, keep a single set of rules and make sure they do not contradict each other.
What to put in, with concrete examples:
- How to run everything: "Tests: npm test. Linter: npm run lint. No task is done while either is red."
- Conventions: folders, naming, which date or form library is used and which are not.
- Sensitive areas: "Do not modify already-applied migrations or the billing module without asking".
- What not to do: no new dependencies without asking, no touching production config files.
Step 2: define what it may do without asking
Claude Code uses a tiered permission system. According to its documentation, reading files inside the project directory needs no approval, but running shell commands and modifying files do, apart from a built-in set of read-only commands. You can fine-tune this with allow, ask and deny rules in .claude/settings.json, which can be checked in for the whole team, while each person can add their own tweaks in .claude/settings.local.json.
- Allow the routine: running the project's tests and linter, so nobody approves the same thing forty times a day.
- Deny the sensitive: the documentation recommends read-deny rules such as Read(./.env) so file tools do not open your secrets.
- Start in manual mode. There is a bypassPermissions mode that skips prompts; the documentation itself says to use it only in isolated environments such as containers or VMs.
Cursor has its own controls and, on team plans, rules managed by admins from the dashboard. Check your plan's current settings, because these options change often.
Step 3: automate what cannot depend on memory
Claude Code hooks are shell commands that run at specific points in its lifecycle. The documentation presents them as deterministic control: the action always happens, instead of depending on the model choosing to do it. Two typical uses from its guide:
- Automatic formatting: a PostToolUse hook that runs Prettier on every file the assistant edits.
- Protected files: a PreToolUse hook that checks each edit before it happens and blocks it if it targets a file that must not be touched.
The practical rule: what you want the assistant to "remember" goes in the rules file; what must never fail goes in a hook or a denied permission.
Step 4: adapt code review
AI-generated code is reviewed like a new teammate's: with attention to what the diff does not show. Agree on a few simple rules:
- Whoever opens the PR owns it. "The AI wrote it" is not an explanation. They must be able to justify every change.
- Small PRs. Ask the assistant for bounded tasks. An eight-hundred-line change is hard to review wherever it came from.
- Tests required. If the change has no tests or existing tests fail, it is not reviewed.
- Extra scrutiny on sensitive code: authentication, payments, permissions, database queries and personal data handling.
- New dependencies: justified in the PR. Check that the package exists and is the right one before installing it.
Step 5: start small and measure
Do not roll it out to the whole team on Monday. A four-week plan you can copy:
- Week 1: one or two people, a low-risk repository, rules file v1 and basic permissions.
- Week 2: use it on bounded tasks: tests, small refactors, documentation, known bugs. Note what failed and adjust the rules file.
- Week 3: bring in the rest of the team with the tested rules, and turn on the hooks.
- Week 4: compare against what you already tracked: PR cycle time, issues caught in review, time on repetitive tasks. Decide whether to scale.
What are the risks and limits?
- Data and secrets. Before pasting or letting a tool read code that contains customer data, check your plan's terms and Colombia's Law 1581 of 2012 (personal data protection). Never put keys or credentials in the context. This is general information, not legal advice.
- Cost. Plans and prices for these tools change often. As of October 2026, check each vendor's official page before committing a per-seat budget.
- Dependence. If the team stops understanding the code it ships, technical debt grows. Keep the habit of reading and explaining.
- No guarantees. These tools are wrong with apparent confidence. Automated tests and human review remain the safety net.
There is no winning tool. Claude Code, Cursor, Copilot and others all work; what decides the outcome is the method: shared rules, clear permissions, adapted review and honest measurement.