AI usage policy template for software teams: the 10 sections to include
What an AI usage policy for an engineering team should cover, from approved tools and data classes to coding agents and incidents, with sample wording you can adapt for Copilot, Cursor and Claude Code.

Most engineering teams I talk to already use AI coding tools. Far fewer have written down how.
The tools arrived bottom-up. One engineer tried Copilot. Another brought Cursor. Someone connected Claude Code to the repository. Six months later, nobody can say which accounts are in use or what data has gone where.
From my perspective, an AI usage policy is the simplest fix. Not a 30-page document nobody reads. Two or three pages that answer the questions engineers actually have: Which tools can I use? What can I paste into them? What do I have to check before I merge?
Today, we'll walk through what to include, section by section, with sample wording you can adapt.
Who the policy is for
Write it for the engineers who will use it every day, not for an auditor. If an engineer can't find the answer to "can I use this tool on this repository?" in under a minute, the policy will be ignored and people will make their own rules.
Keep it short, put it in the repository or wiki where people work, and make one named person responsible for keeping it current. AI tools change every few weeks; a policy with no owner is out of date within a quarter.
A policy nobody can find in under a minute is a policy nobody follows.
1. Purpose and scope
Say why the policy exists in one or two sentences, and then be specific about what it covers. The scope is where most policies are too narrow. In 2026 it needs to cover more than autocomplete:
- editor assistants and chat (Copilot, Cursor, Claude Code and similar)
- agents that read files, run commands and open pull requests on their own
- background and cloud agents that run outside anyone's laptop
- AI review bots that comment on or approve pull requests
- any AI tool used with company code, data, tickets or documents, including browser extensions
2. Core principles
Five principles cover most situations, and they give people something to reason from when the policy doesn't mention their exact case:
- The human author is accountable. Whoever submits a change owns it, however it was produced.
- AI output is a draft. It must be read, understood, tested and reviewed like any other code.
- Data stays inside approved boundaries. Only approved tools, only permitted data.
- Be transparent. Note significant AI assistance in pull requests.
- Automated checks back up human judgment. Enforce the policy with CI checks and tool settings wherever possible.
The first one does the most work. Here's the truth: "the AI wrote it" is never an explanation for a bug, a vulnerability or a license problem. AI is a tool. The engineer is still the author.
3. Approved tools
List the tools by name, what each is approved for, and which account type is required. A table works well:
| Tool | Approved uses | Account | Data allowed |
|---|---|---|---|
| Claude Code | Chat and agentic changes in dev environments | Company Team plan | Internal, Confidential |
| GitHub Copilot | Completion, chat, code review | Company Business seat | Internal |
| Cursor | Chat and agent | Company Business plan | Internal |
Two rules belong right under the table. First, no personal accounts for company code: company plans usually come with contractual data protections that personal plans don't, so check each vendor's current terms with whoever handles procurement. Second, say how to request a new tool and who approves it. Browser extensions and MCP servers that send code to a third party count as new tools.
4. Data classification
This is the section that prevents the incidents people actually worry about. Most companies already have data classes; map them to AI use explicitly:
| Class | Examples | AI use |
|---|---|---|
| Public | Open-source code, public docs | Any approved tool |
| Internal | Most source code, tickets, internal docs | Approved tools on company accounts |
| Confidential | Unreleased plans, customer configurations, security architecture | Only tools approved for Confidential |
| Restricted | Secrets, credentials, production customer data, personal, health or payment data | Never sent to AI tools |
Then state the three rules everyone must remember: never paste secrets into any AI tool, never use real customer or personal data in prompts or test fixtures, and never point an agent at production systems or production data.
If it's Restricted, it never leaves your systems. No exceptions.
5. Agents
Agents deserve their own section because they act, not just suggest. They can read every file in the repository, run shell commands and push branches. The rules that matter:
- Run agents in development environments, containers or sandboxes, never on machines with production access.
- Use the most restrictive permission settings that still let the agent do the task, and require a human to approve destructive actions: deleting files, force-pushing, changing infrastructure, running migrations.
- Treat anything an agent reads (web pages, issues, dependency READMEs, logs) as untrusted. It can contain instructions written to manipulate the agent. This is prompt injection, and it's the main new risk agents introduce.
- Give background and cloud agents only the repository access and secrets the task needs.
- An AI review bot's approval never counts as a required human approval.
A policy can say "use restrictive permissions", but engineers need the actual settings. Ship a baseline permissions file for each tool alongside the policy, so the safe configuration is the default rather than something everyone works out alone.
6. Code quality and review
AI-assisted changes go through the same review as any other change, with two additions. The author must be able to explain every line they submit, and AI-written tests must be checked for meaningful assertions, not just coverage. Name your sensitive areas (authentication, payments, permissions, cryptography, data deletion) and require an owner's review there regardless of how the code was produced.
A short review checklist does more here than any paragraph of policy. The problems that slip through in AI-written pull requests are rarely exotic. They're the ordinary ones that are easy to miss when code looks finished: an authorization check that never got written because the prompt didn't mention it, a test that runs the code but asserts nothing useful, or a new dependency nobody asked for. A checklist makes reviewers look for exactly those. If you want a starting point, the free readiness assessment emails you the AI code review checklist from the kit.
7. Intellectual property and customer contracts
Keep this short. Don't prompt tools to reproduce code you aren't licensed to use. Then the one teams often miss: some customer contracts restrict which tools or subprocessors may touch their code or data, or where it can be processed. Check before using AI tools on that customer's work, and record any restriction where every engineer, and every agent, working in that repository will see it.
8. Incidents
Tell people exactly what to report and where: a secret or Restricted data sent to an AI tool, an agent making an unexpected or destructive change, or AI-generated code causing a security issue or outage. Add one line that matters more than the rest: rotate any exposed secret immediately; don't wait for the investigation.
9. Training and acknowledgement
Ask everyone to acknowledge the policy and attend a short kickoff before using AI tools on company code. Walk through the policy and agent settings with real examples from your own codebase.
10. Exceptions and review
Say who approves exceptions, how they're recorded and when they expire. Review the policy every quarter; the tools change that fast.
How to roll it out
Don't announce a finished policy. Draft it with two or three engineers who already use the tools heavily, run it for a month with one team, and fix what doesn't survive contact with real work. Then publish it with the supporting pieces that make it enforceable: the review checklist, a pull request template that asks about AI use, baseline agent settings, and a CI check for secrets.
Conclusion
A good AI usage policy is short, specific and owned by someone. It tells engineers what they can use, share and must check, and the tooling backs it up.
So, whether you're writing your team's first policy or tightening one that grew up bottom-up, if you only have one afternoon, start with sections 3 and 4: the approved tools and the data classes. They answer the two questions engineers ask most often, and they're the first things a customer's security questionnaire will ask you about.
I hope you found this helpful. If you'd rather not start from a blank page, I've put a ready-to-edit AI usage policy template, along with the pieces that make it enforceable, into the AI-Assisted Development Kit. It works with Claude Code, Copilot and Cursor.
The policy is the part people read. The settings and checks are the part that actually protects you.