<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Alexandru Cioc</title>
    <description>The latest articles on DEV Community by Alexandru Cioc (@whitehatd).</description>
    <link>https://dev.to/whitehatd</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3862914%2F68aa569c-60f7-454a-83b4-4aba0eab6f06.png</url>
      <title>DEV Community: Alexandru Cioc</title>
      <link>https://dev.to/whitehatd</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/whitehatd"/>
    <language>en</language>
    <item>
      <title>AI Agents Don't Follow Your Rules. Here's a Compiler That Makes Them.</title>
      <dc:creator>Alexandru Cioc</dc:creator>
      <pubDate>Fri, 10 Apr 2026 18:24:23 +0000</pubDate>
      <link>https://dev.to/whitehatd/ai-agents-dont-follow-your-rules-heres-a-compiler-that-makes-them-5340</link>
      <guid>https://dev.to/whitehatd/ai-agents-dont-follow-your-rules-heres-a-compiler-that-makes-them-5340</guid>
      <description>&lt;h2&gt;
  
  
  The Problem Nobody Talks About
&lt;/h2&gt;

&lt;p&gt;You've set up Claude Code with a careful CLAUDE.md. Your Cursor rules are dialed in. Your AGENTS.md covers Codex. Maybe you've got copilot-instructions.md too.&lt;/p&gt;

&lt;p&gt;They all say roughly the same thing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Run &lt;code&gt;npm test&lt;/code&gt; before committing&lt;/li&gt;
&lt;li&gt;Use TypeScript strict mode&lt;/li&gt;
&lt;li&gt;Don't use &lt;code&gt;any&lt;/code&gt; — use &lt;code&gt;unknown&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Follow conventional commits&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But they're separate files. Maintained separately. And they drift.&lt;/p&gt;

&lt;p&gt;We cloned 50 of the highest-profile open-source repos — grafana, django, vue, prisma, supabase, airflow, tokio — and ran a governance audit on each one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;46% had drift.&lt;/strong&gt; Rules that reference commands that don't exist. Configs older than the governance they were compiled from. AI agents being told to run lint scripts that were removed months ago.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Fix: Treat It As a Compilation Problem
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/WhitehatD/crag" rel="noopener noreferrer"&gt;crag&lt;/a&gt; is a CLI that takes one &lt;code&gt;governance.md&lt;/code&gt; and compiles it to every AI tool format your team uses.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx @whitehatd/crag
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That single command:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Analyzes&lt;/strong&gt; your repo — reads CI workflows, package.json, tsconfig, Makefiles, directory structure — and generates &lt;code&gt;governance.md&lt;/code&gt; with your actual gates, architecture, testing profile, code style, and anti-patterns.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Compiles&lt;/strong&gt; to 13 targets — each in the tool's native format, with correct frontmatter and activation patterns.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here's what one command generates:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Target&lt;/th&gt;
&lt;th&gt;Output&lt;/th&gt;
&lt;th&gt;Consumer&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;agents-md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;AGENTS.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Codex, Aider, Factory&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;cursor&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.cursor/rules/governance.mdc&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Cursor&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;copilot&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.github/copilot-instructions.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;GitHub Copilot&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;gemini&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;GEMINI.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Gemini, Gemini CLI&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;claude&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;CLAUDE.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Claude Code&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;cline&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.clinerules&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Cline&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;continue&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.continuerules&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Continue.dev&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;windsurf&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.windsurf/rules/governance.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Windsurf&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;zed&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.rules&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Zed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;amazonq&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.amazonq/rules/governance.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Amazon Q&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;github&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.github/workflows/gates.yml&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;GitHub Actions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;husky&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.husky/pre-commit&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;husky&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;pre-commit&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.pre-commit-config.yaml&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;pre-commit.com&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;One file in, thirteen files out. Change a rule, recompile, done.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the Analyzer Actually Finds
&lt;/h2&gt;

&lt;p&gt;Run &lt;code&gt;crag analyze&lt;/code&gt; on a real project and it reads:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;25+ language detectors&lt;/strong&gt; — Node, TypeScript, Python, Go, Rust, Java, .NET, Swift, Elixir, and more&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;11 CI system extractors&lt;/strong&gt; — GitHub Actions, GitLab CI, CircleCI, Jenkins, Travis, Azure Pipelines...&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;8 framework convention engines&lt;/strong&gt; — Next.js, Django, Spring Boot, Rails...&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The output is what a senior engineer would write after spending a week with your codebase:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;## Gates (run in order, stop on failure)&lt;/span&gt;
&lt;span class="gu"&gt;### Lint&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; npm run lint
&lt;span class="gu"&gt;### Test&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; npm run test
&lt;span class="gu"&gt;### Build&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; npm run build
&lt;span class="p"&gt;-&lt;/span&gt; npm run typecheck

&lt;span class="gu"&gt;## Architecture&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; Type: monolith
&lt;span class="p"&gt;-&lt;/span&gt; Entry: bin/app.js

&lt;span class="gu"&gt;## Testing&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; Framework: vitest
&lt;span class="p"&gt;-&lt;/span&gt; Naming: &lt;span class="err"&gt;*&lt;/span&gt;.test.ts

&lt;span class="gu"&gt;## Code Style&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; Indent: 2 spaces
&lt;span class="p"&gt;-&lt;/span&gt; Formatter: prettier
&lt;span class="p"&gt;-&lt;/span&gt; Linter: eslint

&lt;span class="gu"&gt;## Anti-Patterns&lt;/span&gt;
Do not:
&lt;span class="p"&gt;-&lt;/span&gt; Use &lt;span class="sb"&gt;`any`&lt;/span&gt; in TypeScript — use &lt;span class="sb"&gt;`unknown`&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; Use &lt;span class="sb"&gt;`getServerSideProps`&lt;/span&gt; with App Router — use Server Components
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Under 1 second. Zero config.&lt;/p&gt;

&lt;h2&gt;
  
  
  Then It Watches Your Back
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;crag audit

  Compiled configs
  ✗ .cursor/rules/governance.mdc     stale — governance.md is newer
  ✗ AGENTS.md                        stale — governance.md is newer
  ✓ .github/workflows/gates.yml      &lt;span class="k"&gt;in &lt;/span&gt;&lt;span class="nb"&gt;sync&lt;/span&gt;
  ✓ .husky/pre-commit                &lt;span class="k"&gt;in &lt;/span&gt;&lt;span class="nb"&gt;sync

  &lt;/span&gt;Gate reality
  ✗ npx tsc &lt;span class="nt"&gt;--noEmit&lt;/span&gt;                 tsc not &lt;span class="k"&gt;in &lt;/span&gt;devDependencies
  ✗ npm run lint                     &lt;span class="s2"&gt;"lint"&lt;/span&gt; script not &lt;span class="k"&gt;in &lt;/span&gt;package.json

  2 stale · 2 drift
  Fix: crag compile &lt;span class="nt"&gt;--target&lt;/span&gt; all
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Install the hook and it auto-fixes on every commit:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;crag hook &lt;span class="nb"&gt;install&lt;/span&gt;              &lt;span class="c"&gt;# auto-recompile when governance changes&lt;/span&gt;
crag hook &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;--drift-gate&lt;/span&gt; &lt;span class="c"&gt;# also block commits if drift detected&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  The Benchmark
&lt;/h2&gt;

&lt;p&gt;50 repos. 20 languages. 7 CI systems. Monorepos to single-crate Rust libraries.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Repos tested&lt;/td&gt;
&lt;td&gt;50&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Crashes&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Total gates inferred&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1,809&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Mean gates/repo&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;36.2&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Repos with drift&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;23 (46%)&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Time per repo&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;~1.2s&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Some highlights:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Repo&lt;/th&gt;
&lt;th&gt;Stack&lt;/th&gt;
&lt;th&gt;Gates Found&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;grafana/grafana&lt;/td&gt;
&lt;td&gt;Go + React + Docker&lt;/td&gt;
&lt;td&gt;67&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;calcom/cal.com&lt;/td&gt;
&lt;td&gt;Next.js + React + Docker&lt;/td&gt;
&lt;td&gt;53&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;hashicorp/vault&lt;/td&gt;
&lt;td&gt;Go + Docker + Node&lt;/td&gt;
&lt;td&gt;50&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;biomejs/biome&lt;/td&gt;
&lt;td&gt;Rust + React + TS&lt;/td&gt;
&lt;td&gt;47&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;django/django&lt;/td&gt;
&lt;td&gt;Python&lt;/td&gt;
&lt;td&gt;38&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Plus a 101-repo stress test: 4,400 invocations, 0 crashes.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/WhitehatD/crag/blob/master/benchmarks/phase1-benchmark.md" rel="noopener noreferrer"&gt;Full benchmark results&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How It's Different
&lt;/h2&gt;

&lt;p&gt;The agent governance space is heating up. Microsoft just released their Agent Governance Toolkit. Coder has an AI Governance Add-On. Kong has a gateway approach.&lt;/p&gt;

&lt;p&gt;crag takes a fundamentally different angle:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Compile-time, not runtime.&lt;/strong&gt; Your rules are compiled to static files that each tool reads natively. No sidecar, no proxy, no MCP server required.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deterministic.&lt;/strong&gt; Same input → byte-identical output, SHA-verified across Linux, macOS, and Windows.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No LLM.&lt;/strong&gt; The analyzer uses pattern matching, not inference. It finds what's actually in your repo, not what an LLM thinks should be there.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero dependencies.&lt;/strong&gt; Node built-ins only. No supply chain risk.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Works offline.&lt;/strong&gt; No network, no API keys, no cloud account required (cloud sync is optional).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Get Started
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# One command — analyze + compile&lt;/span&gt;
npx @whitehatd/crag

&lt;span class="c"&gt;# Step by step&lt;/span&gt;
npx @whitehatd/crag analyze           &lt;span class="c"&gt;# generate governance.md&lt;/span&gt;
npx @whitehatd/crag compile &lt;span class="nt"&gt;--target&lt;/span&gt; all   &lt;span class="c"&gt;# compile to 13 targets&lt;/span&gt;
npx @whitehatd/crag audit             &lt;span class="c"&gt;# check for drift&lt;/span&gt;
npx @whitehatd/crag hook &lt;span class="nb"&gt;install&lt;/span&gt;      &lt;span class="c"&gt;# enforce on every commit&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Requirements: Node.js 18+ and git. That's it.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Links:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/WhitehatD/crag" rel="noopener noreferrer"&gt;WhitehatD/crag&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;npm: &lt;a href="https://www.npmjs.com/package/@whitehatd/crag" rel="noopener noreferrer"&gt;@whitehatd/crag&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Website: &lt;a href="https://crag.sh" rel="noopener noreferrer"&gt;crag.sh&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;VS Code: &lt;a href="https://marketplace.visualstudio.com/items?itemName=whitehatd.vscode-crag" rel="noopener noreferrer"&gt;Marketplace&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Neovim: &lt;a href="https://github.com/WhitehatD/crag.nvim" rel="noopener noreferrer"&gt;crag.nvim&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Docs: &lt;a href="https://crag.sh/docs" rel="noopener noreferrer"&gt;crag.sh/docs&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>opensource</category>
      <category>productivity</category>
    </item>
    <item>
      <title>I checked 13 top open-source repos. 9 have zero AI agent config.</title>
      <dc:creator>Alexandru Cioc</dc:creator>
      <pubDate>Tue, 07 Apr 2026 23:49:47 +0000</pubDate>
      <link>https://dev.to/whitehatd/i-checked-13-top-open-source-repos-9-have-zero-ai-agent-config-51k0</link>
      <guid>https://dev.to/whitehatd/i-checked-13-top-open-source-repos-9-have-zero-ai-agent-config-51k0</guid>
      <description>&lt;p&gt;Django. Angular. Vue. Svelte. Tokio. Remix. Cal.com. Airflow. Tauri.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;None of them&lt;/strong&gt; have a CLAUDE.md. No &lt;code&gt;.cursorrules&lt;/code&gt;. No &lt;code&gt;AGENTS.md&lt;/code&gt;. No &lt;code&gt;copilot-instructions.md&lt;/code&gt;. Nothing.&lt;/p&gt;

&lt;p&gt;These are projects with hundreds of contributors. If they don't have AI agent config, your project almost certainly doesn't either.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem is worse than "no config"
&lt;/h2&gt;

&lt;p&gt;The 4 projects that DO have AI configs?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Grafana&lt;/strong&gt; has a CLAUDE.md. It's literally one line: &lt;code&gt;@AGENTS.md&lt;/code&gt;. Their hand-written AGENTS.md has 157 lines, but it misses quality gates from their CI.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prisma&lt;/strong&gt; has a 166-line AGENTS.md that says:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Your training data contains a lot of outdated information that doesn't apply to Prisma 7. Always analyze this codebase like you would analyze a project you are not familiar with."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If Prisma's own maintainers don't trust AI training data, why do you?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Supabase&lt;/strong&gt; has three separate AI configs — one for Claude, one for Copilot, one for Cursor. Three tools, three configs, &lt;strong&gt;zero overlap&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8gp58l4726xx05pbuopv.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8gp58l4726xx05pbuopv.gif" alt="crag scoreboard" width="1420" height="761"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What this means for your code
&lt;/h2&gt;

&lt;p&gt;When you use Cursor, Claude, Copilot, or any AI coding agent, it needs to know:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What quality gates CI enforces (lint, test, build, typecheck)&lt;/li&gt;
&lt;li&gt;Your architecture and key directories&lt;/li&gt;
&lt;li&gt;Anti-patterns to avoid&lt;/li&gt;
&lt;li&gt;Code style conventions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Without this, your AI is working off stale training data. It writes code that breaks in CI.&lt;/p&gt;

&lt;h2&gt;
  
  
  One command
&lt;/h2&gt;

&lt;p&gt;I built &lt;a href="https://github.com/WhitehatD/crag" rel="noopener noreferrer"&gt;crag&lt;/a&gt; to solve this.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx @whitehatd/crag
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It reads your project — CI workflows, package manifests, configs, directory structure — and generates a single &lt;code&gt;governance.md&lt;/code&gt; that compiles to every AI tool's native format.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fye8mcqs1t0n0xmbw7rsq.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fye8mcqs1t0n0xmbw7rsq.gif" alt="crag command" width="1420" height="806"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One file in, twelve files out:&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Target&lt;/th&gt;
&lt;th&gt;File&lt;/th&gt;
&lt;th&gt;Consumer&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;agents-md&lt;/td&gt;
&lt;td&gt;&lt;code&gt;AGENTS.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Codex, Aider, Gemini CLI&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;cursor&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.cursor/rules/&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Cursor&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;copilot&lt;/td&gt;
&lt;td&gt;&lt;code&gt;copilot-instructions.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;GitHub Copilot&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;claude&lt;/td&gt;
&lt;td&gt;&lt;code&gt;CLAUDE.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Claude Code&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;gemini&lt;/td&gt;
&lt;td&gt;&lt;code&gt;GEMINI.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Gemini&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;cline&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.clinerules&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Cline&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;continue&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.continuerules&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Continue&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;windsurf&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.windsurf/rules/&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Windsurf&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;zed&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.rules&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Zed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;amazonq&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.amazonq/rules/&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Amazon Q&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;github&lt;/td&gt;
&lt;td&gt;&lt;code&gt;gates.yml&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;GitHub Actions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;husky&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.husky/pre-commit&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;husky&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Change a rule in &lt;code&gt;governance.md&lt;/code&gt;, run &lt;code&gt;crag compile&lt;/code&gt;, all 12 update.&lt;/p&gt;

&lt;h2&gt;
  
  
  The benchmark
&lt;/h2&gt;

&lt;p&gt;We tested on 50 of the most important open-source projects:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;1,809 gates&lt;/strong&gt; inferred across 50 repos&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;96.4% accuracy&lt;/strong&gt; — 187/194 gates verified against codebase&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;20 languages&lt;/strong&gt;, 7 CI systems, &lt;strong&gt;0 crashes&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Repo&lt;/th&gt;
&lt;th&gt;Stack&lt;/th&gt;
&lt;th&gt;Gates&lt;/th&gt;
&lt;th&gt;Finding&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;grafana/grafana&lt;/td&gt;
&lt;td&gt;Go + React + Docker&lt;/td&gt;
&lt;td&gt;67&lt;/td&gt;
&lt;td&gt;CLAUDE.md: 1 line&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;supabase/supabase&lt;/td&gt;
&lt;td&gt;TS + React + Docker&lt;/td&gt;
&lt;td&gt;43&lt;/td&gt;
&lt;td&gt;3 configs, fragmented&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;prisma/prisma&lt;/td&gt;
&lt;td&gt;TypeScript + Rust&lt;/td&gt;
&lt;td&gt;40&lt;/td&gt;
&lt;td&gt;"data outdated"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;django/django&lt;/td&gt;
&lt;td&gt;Python&lt;/td&gt;
&lt;td&gt;38&lt;/td&gt;
&lt;td&gt;No config&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;angular/angular&lt;/td&gt;
&lt;td&gt;TypeScript&lt;/td&gt;
&lt;td&gt;38&lt;/td&gt;
&lt;td&gt;No config&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Analyze.&lt;/strong&gt; Reads CI workflows (GitHub Actions, GitLab, Jenkins, etc.), package manifests, tool configs. 25+ language detectors, 11 CI extractors.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Generate.&lt;/strong&gt; Writes &lt;code&gt;governance.md&lt;/code&gt; with quality gates, architecture, testing profile, code style, anti-patterns, framework conventions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Compile.&lt;/strong&gt; Converts to each tool's native format — MDC frontmatter for Cursor, numbered steps for AGENTS.md, YAML triggers for Windsurf.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Audit.&lt;/strong&gt; Detects stale configs, missing tools, drift.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Hook.&lt;/strong&gt; Pre-commit auto-recompile. Optional drift gate blocks commits.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;No LLM. No network. No API key. 500ms. Deterministic.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx @whitehatd/crag
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Node.js 18+. Zero dependencies. MIT.&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/WhitehatD/crag" rel="noopener noreferrer"&gt;WhitehatD/crag&lt;/a&gt;&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>ai</category>
      <category>cli</category>
      <category>productivity</category>
    </item>
    <item>
      <title>I stopped copy-pasting my lint rules into 12 different config files</title>
      <dc:creator>Alexandru Cioc</dc:creator>
      <pubDate>Mon, 06 Apr 2026 00:29:44 +0000</pubDate>
      <link>https://dev.to/whitehatd/i-stopped-copy-pasting-my-lint-rules-into-12-different-config-files-13b2</link>
      <guid>https://dev.to/whitehatd/i-stopped-copy-pasting-my-lint-rules-into-12-different-config-files-13b2</guid>
      <description>&lt;p&gt;Every project I work on has the same problem: my lint/test/build rules exist in my CI workflow, my pre-commit hook, my &lt;code&gt;.cursorrules&lt;/code&gt;, my &lt;code&gt;AGENTS.md&lt;/code&gt;, my &lt;code&gt;GEMINI.md&lt;/code&gt;, and 7 more files. When I change a rule in one place, the others drift.&lt;/p&gt;

&lt;p&gt;I built &lt;a href="https://github.com/WhitehatD/crag" rel="noopener noreferrer"&gt;crag&lt;/a&gt; to fix this.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;p&gt;You write one ~20-line &lt;code&gt;governance.md&lt;/code&gt;. crag compiles it to 12 downstream files atomically:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;.github/workflows/gates.yml&lt;/code&gt; (GitHub Actions)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;.husky/pre-commit&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;.pre-commit-config.yaml&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;AGENTS.md&lt;/code&gt; (Codex, Aider, Factory)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;.cursor/rules/governance.mdc&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;GEMINI.md&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;.github/copilot-instructions.md&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;.clinerules&lt;/code&gt;, &lt;code&gt;.continuerules&lt;/code&gt;, &lt;code&gt;.windsurfrules&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;&lt;code&gt;.zed/rules.md&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;.sourcegraph/cody-instructions.md&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Change one line, regenerate everything.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it in 3 seconds
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx @whitehatd/crag demo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No install. No config. No network. No LLM. ~500ms to a verified&lt;br&gt;
12-target pipeline with a determinism SHA printed inline.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frdb7vopnwrda3lxcnc3p.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frdb7vopnwrda3lxcnc3p.gif" alt="npx @whitehatd/crag demo Usage" width="960" height="540"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What backs it up
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;512 tests passing across Ubuntu + macOS + Windows × Node 18/20/22&lt;/li&gt;
&lt;li&gt;Stress-tested on 101 OSS repos (4,400 invocations, 0 crashes)&lt;/li&gt;
&lt;li&gt;Reference benchmark: 40/40 Grade A on ship-ready governance&lt;/li&gt;
&lt;li&gt;Deterministic: same input → byte-identical output, SHA-verified on every CI push across 9 runners&lt;/li&gt;
&lt;li&gt;Zero runtime dependencies&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/WhitehatD/crag" rel="noopener noreferrer"&gt;https://github.com/WhitehatD/crag&lt;/a&gt;&lt;br&gt;
npm: &lt;a href="https://www.npmjs.com/package/@whitehatd/crag" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/@whitehatd/crag&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;MIT licensed. If you use more than one AI coding tool alongside CI,&lt;br&gt;
this is for you.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tags:&lt;/strong&gt; &lt;code&gt;devtools&lt;/code&gt;, &lt;code&gt;opensource&lt;/code&gt;, &lt;code&gt;javascript&lt;/code&gt;, &lt;code&gt;ai&lt;/code&gt;&lt;/p&gt;

</description>
      <category>automation</category>
      <category>productivity</category>
      <category>showdev</category>
      <category>tooling</category>
    </item>
  </channel>
</rss>
