AI use policy template for coding agents

The short answer

A one-page AI use policy your team will follow. It approves the coding tools people already use (Claude Code, Cursor), sets a few clear rules for what an agent may and may not do, and requires a record. The difference that matters: some clauses are blocked by rules before the action runs, and some stay advisory. This template marks which is which, so the policy is honest about what software stops and what people uphold.

The template

  • Scope. Applies to AI coding agents (Claude Code, Cursor, Copilot, Codex, MCP tools) used for company work.
  • Approved tools. List the tools you approve; using an unlisted tool for company code is not permitted (see shadow AI).
  • Blocked by rules. No force-push to protected branches; no destructive commands (rm -rf, disk format); no reads of secret files (.env, keys) or writes to CI config. In a workspace, force-pushes and secret-file reads are blocked from the start; the other rules start in Monitor, and once one is switched to Block, it stops the action before it runs. Cursor file edits are recorded, not prevented; a required GitHub check stops them from merging.
  • Advisory (people uphold). Review agent-generated code before merge; do not paste production secrets into prompts; use agents on non-production systems first.
  • Records. Every agent action gets a signed record that anyone can check offline with the signing computer's public key; records carry no file contents or prompts.
  • Incident response. If an agent does something it shouldn't, follow the incident steps.

Turn on protection

The "blocked by rules" clauses match Scopebond's starter rules. Install Scopebond (see Get started). In a workspace, force-pushes and secret-file reads are blocked from the start; every other rule starts in Monitor, so you see what it would block; switch each one your policy lists to Block.

Good to know

What this does not do

A policy document does not enforce itself, and Scopebond does not judge whether your policy is complete. The blocked clauses depend on rules in Block; the advisory clauses depend on people. Keep the two separate, and never present an advisory line as blocked.

Alternatives

Questions

Is this legal advice?

No. It is a practical starting template to adapt; nothing here is legal advice. Have counsel review a policy before you rely on it.

How do I make a clause stick?

Match it to a rule that runs before the action. Scopebond's starter rules cover protected branches, destructive commands and secret files; in a workspace, force-pushes and secret-file reads are blocked from the start, and you switch the others to Block.

Do you keep our code or prompts?

No. The record carries the action's details and fingerprints, never file contents or prompts; common secret shapes are scrubbed, best effort.