Writing an AI Usage Policy Your Engineers Will Actually Follow
The Policy That Nobody Reads
Every engineering team dealing with AI tools has the same problem: leadership wants an AI usage policy, so someone writes one, it gets forwarded to the team channel, and nobody reads past the first paragraph. Then six months later, someone leaks customer data into ChatGPT, and suddenly the policy is the only document anyone cares about.
I’ve seen this cycle play out across teams of 10 to 50+ engineers. The ones that work don’t read like legal documents. They read like engineering guidelines — the kind your team actually references when making decisions.
What Makes a Policy Fail
Most AI policies fail for three reasons:
1. They’re written by people who don’t write code. A policy that bans “all unapproved AI tools” sounds clean on paper. In practice, it means your engineers grab a personal ChatGPT account, paste code into a free tier, and you’ve just created the exact security risk the policy was meant to prevent. You can’t policy your way out of a tool your team needs.
2. They punish the behavior they’re trying to shape. If the penalty for using an unapproved AI tool is a formal write-up, engineers will hide it. And hidden AI usage is the worst kind — you have no visibility into what data went where, what models were used, or what code patterns your team is adopting.
3. They treat AI like a separate category instead of a tool. The best engineering policies I’ve worked with don’t have a section called “AI.” They have sections about code quality, security, testing, and ownership. AI fits into all of those. The moment you create a special AI category, you signal that AI is somehow outside normal engineering standards — and that’s exactly when engineers start treating it that way.
What a Working Policy Looks Like
Here’s what actually works, based on teams I’ve watched get this right:
One page. Plain language. No legal jargon.
Your policy should fit on one page and be readable by a new hire in 10 minutes. If it takes a legal review to understand it, it’s already too long. Here’s the structure I recommend:
What’s allowed: List the approved tools (GitHub Copilot, Claude, etc.) and what you can and can’t paste into them. This section should be the longest — it’s the one engineers will actually look at.
What’s not allowed: Be specific. Not “sensitive data” — say “customer PII, internal API keys, uncommitted code from repositories.” The Samsung case that leaked internal code into ChatGPT three times in 2023 happened because the policy was too vague. Be explicit about what data categories are off-limits.
What happens if you break it: Not punishment — consequences. “If you accidentally paste proprietary code into an unapproved tool, here’s the process: stop, report to your manager within 24 hours, and here’s who to contact for the security team.” This is about damage control, not blame.
Ground rules that match how engineers actually work
From the Stack Overflow discussion on coding guidelines for AI (March 2026), one insight stands out: “The code that agents produce needs to work with a bunch of code that’s already in production.” Your policy should reflect that.
Include these practical rules:
- You own what you commit. Whether AI wrote 10% or 90% of a function, you’re responsible for reviewing it, testing it, and explaining it in code review. This is the single most important line in the policy, and it’s the one that most teams get right.
- Plan before you generate. For anything non-trivial, write the plan first. Review and iterate on the plan before letting AI generate code. This catches the cases where the engineer doesn’t actually understand the problem well enough yet.
- No AI on critical paths without human-written core logic. Authentication, payments, security-sensitive code — write the core yourself. Let AI help with tests, documentation, and edge cases, but not the critical logic itself.
- Traceability for non-trivial changes. If a PR contains significant AI-generated code, note it. Not for blame — so reviewers know to pay extra attention to the AI portions, which tend to have different failure modes than human-written code (plausible but subtly wrong on edge cases).
Separate autocomplete from autonomous agents
This is something most policies miss. There’s a meaningful difference between GitHub Copilot’s inline suggestions (autocomplete-style, context-aware, limited scope) and an autonomous agent that writes entire functions or modules based on a natural language prompt. The risk profile is different, and your policy should treat them differently.
Inline autocomplete: fine, same rules as normal coding. Autonomous agents: review more carefully, test more thoroughly, and consider whether the output touches any of your stop-list categories (auth, payments, security). As one senior engineer put it on r/ExperiencedDevs: “I won’t let AI touch auth, payments, or anything security-sensitive without me writing the core logic first. Too easy for it to generate something that looks right but has subtle vulnerabilities.”
How to Roll It Out Without Getting Ignored
Writing the policy is the easy part. Getting engineers to actually follow it requires a different approach:
Co-create it with the team. Put the draft in a shared document. Ask engineers to add edge cases they’ve encountered. When your team helps write the policy, they’re more likely to follow it. This is the same principle that makes good coding guidelines work — they’re living documents that evolve with the codebase.
Use it as a training tool, not a weapon. Run a 30-minute workshop going through real scenarios. “Here’s a situation where you’d use Copilot. Here’s where you wouldn’t. Here’s what you do if you accidentally paste something you shouldn’t have.” Engineers learn from examples, not bullet points.
Review it every quarter. AI tools change fast. Your policy should too. Every quarter, ask: “Are there new tools we’re using that aren’t covered? Are there new risks we haven’t thought about?” The EU AI Act’s August 2026 compliance deadlines are also pushing many organizations to revisit their policies — treat that as a catalyst, not a burden.
Lead by example. If your managers are using unapproved tools or bypassing the policy, it’s dead on arrival. Models that work: managers use the same approved tools, report their own AI usage, and model the behavior you want to see in code reviews.
What I’d Tell Another Manager
Here’s what I’ve learned from watching teams get this right and get it wrong:
Don’t write a policy to avoid risk. Write a policy to enable the right kind of risk-taking. Your engineers are going to use AI tools whether you have a policy or not. The question is whether that usage is visible, traceable, and aligned with your team’s standards.
The best AI usage policies I’ve seen share one characteristic: they’re short enough that engineers will actually read them, specific enough that they’re useful, and fair enough that nobody feels like they’re being policed. That’s a hard balance to hit, but it’s the difference between a document that sits in a shared drive and one that gets referenced in code reviews.
One thing I’d do differently the next time: involve the security team earlier. They think about supply chain risks and data leakage in ways that engineering leaders don’t always consider. Bringing them into the policy-writing process from the start catches edge cases you won’t think of until after they happen.
Question for you: What’s the most counterintuitive rule in your team’s AI policy? The one that surprised people when you introduced it?