AI policy files are becoming a thing - here's a generator
The problem AI coding agents are everywhere. Copilot, Cursor, Claude Code, Codex -- they're writing code in repos with no AI policy. Most repos have a LICENSE file. Many have CONTRIBUTING.md. Almost none have an AI policy. Can a contributor submit AI-generated code? Does it need review? Can agents m
vmx
Original Source
Dev.to
https://dev.to/vnykmshr/ai-policy-files-are-becoming-a-thing-heres-a-generator-25l7The problem
AI coding agents are everywhere. Copilot, Cursor, Claude Code, Codex -- they're writing code in repos with no AI policy.
Most repos have a LICENSE file. Many have CONTRIBUTING.md. Almost none have an AI policy.
Can a contributor submit AI-generated code? Does it need review? Can agents modify CI pipelines? Should the project opt out of training data collection?
What projects are doing about it
A few projects already check these files into their repos:
AI_POLICY.md declares how AI tools interact with the codebase -- what's permitted, how AI-generated code is handled, training data preferences.
AGENTS.md gives AI coding agents their operating instructions -- code style, testing requirements, restricted paths, commit conventions. The AGENTS.md spec is already supported by Codex, Copilot, and Cursor.
CLAUDE.md configures Claude Code specifically, referencing the AGENTS.md rules.
Projects like CloudNativePG, Kyverno, and Kubewarden already ship these files.
aipolicy: a generator for these files
aipolicy.1mb.dev generates all three files from presets.
Three presets:
- Permissive -- AI tools welcome, no restrictions
- Standard -- AI-assisted code requires human review
- Strict -- AI tools restricted, explicit maintainer approval
The URL encodes your configuration, so you can share a direct link to your exact setup:
https://aipolicy.1mb.dev/?preset=standard&ai_usage=restricted&training_optout=yes
CLI works too:
curl -O https://aipolicy.1mb.dev/presets/standard/{AI_POLICY,AGENTS,CLAUDE}.md
Why bother?
Even for solo projects:
- Contributors and AI agents know the rules before submitting code
- The project's training data position is explicit, not assumed
For teams, it turns the "should we allow Copilot on this repo?" conversation into a file that's checked in next to your LICENSE.
AGENTS.md and CLAUDE.md aren't just documentation -- agents actually read them. It's closer to .editorconfig than to a code of conduct.
The tool itself
No framework, no build step, no backend. Vanilla HTML, CSS, and JavaScript running on GitHub Pages. MIT licensed.
- Web: aipolicy.1mb.dev
- Source: github.com/1mb-dev/aipolicy
Found this useful? Share it!
Read the Full Story
Continue reading on Dev.to
Related Stories
Majority Element
about 2 hours ago
Building a SQL Tokenizer and Formatter From Scratch โ Supporting 6 Dialects
about 2 hours ago
Markdown Knowledge Graph for Humans and Agents
about 2 hours ago

Moving Beyond Disk: How Redis Supercharges Your App Performance
about 2 hours ago