{"slug": "firefox-ai-coding-policy", "title": "Firefox AI Coding Policy", "summary": "Mozilla has published a new AI coding policy for contributors to the Firefox project, requiring that all AI-assisted code meet the same standards of correctness, security, and maintainability as human-written patches. Contributors must understand and be able to explain every change they submit, and they remain fully accountable for all code regardless of the tools used. The policy also warns new contributors against using AI tools to fix \"Good First\" bugs, as doing so undermines the learning purpose of those tasks.", "body_md": "# Firefox AI Coding Policy\n\nThis policy applies to anyone contributing to the Firefox project. It defines expectations and requirements for any usage of AI or AI-adjacent tools when authoring production code for the browser. These guidelines may evolve as the Mozilla community gains experience.\n\n## Philosophy\n\nAI-assisted tools are evolving quickly, but it’s clear that they present both opportunities and risks when used by developers to explore, understand, and create code. They can accelerate work and help catch issues earlier, but they also make it easy to generate code that looks right without being right.\n\nFor contributors who choose to use these tools, we trust them to do so with care, just as we trust them with every other part of Firefox’s development. AI can assist, but responsibility always stays with the human behind the change.\n\n## Responsibilities\n\nAI-assisted contributions must meet the same standards of correctness, security, and maintainability as any other patch.\n\n### When using AI tools\n\n**Maintain quality and scope.** You are responsible for the technical excellence of your work, regardless of the tools you used. Keep patches small and focused so they’re easy to review and clearly justified.**Understand what you submit.** You’re expected to understand and be able to explain every change you make. The role of the[reviewer](Code_Review_FAQ.html)is to double-check the work of a human, not the output of a tool.**Self-review before submitting.** To fully understand the patch you must fully review the code yourself, before requesting peer review. In addition to this, consider running an AI review locally to catch issues you may have missed.**Protect sensitive data.** Do not include private, security-sensitive, or otherwise confidential information in prompts to external AI tools.\n\nAt the end of the day you are accountable for all changes you submit, regardless of the tools you use.\n\nFor new contributors\n\n“Good First” and “Good Next” bugs exist to help new contributors learn the Firefox codebase. Take these only if you intend to learn and continue contributing. Fixing a large number of these with AI tools alone is counterproductive to that goal.", "url": "https://wpnews.pro/news/firefox-ai-coding-policy", "canonical_source": "https://firefox-source-docs.mozilla.org/contributing/ai-coding.html#firefox-ai-coding-policy", "published_at": "2026-06-02 22:13:26+00:00", "updated_at": "2026-06-02 22:47:50.412717+00:00", "lang": "en", "topics": ["ai-policy", "ai-ethics", "ai-tools", "generative-ai", "ai-safety"], "entities": ["Firefox", "Mozilla"], "alternates": {"html": "https://wpnews.pro/news/firefox-ai-coding-policy", "markdown": "https://wpnews.pro/news/firefox-ai-coding-policy.md", "text": "https://wpnews.pro/news/firefox-ai-coding-policy.txt", "jsonld": "https://wpnews.pro/news/firefox-ai-coding-policy.jsonld"}}