<?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: koki kanda</title>
    <description>The latest articles on DEV Community by koki kanda (@kohli217).</description>
    <link>https://dev.to/kohli217</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4135355%2F963fe7dd-9133-4153-89ea-332f6c61a935.png</url>
      <title>DEV Community: koki kanda</title>
      <link>https://dev.to/kohli217</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kohli217"/>
    <language>en</language>
    <item>
      <title>I built a preflight linter for repositories used by multiple AI coding agents</title>
      <dc:creator>koki kanda</dc:creator>
      <pubDate>Mon, 21 Sep 2026 09:12:16 +0000</pubDate>
      <link>https://dev.to/kohli217/i-built-a-preflight-linter-for-repositories-used-by-multiple-ai-coding-agents-3mfp</link>
      <guid>https://dev.to/kohli217/i-built-a-preflight-linter-for-repositories-used-by-multiple-ai-coding-agents-3mfp</guid>
      <description>&lt;p&gt;When a repository is used with multiple AI coding agents, the instructions can slowly drift apart.&lt;/p&gt;

&lt;p&gt;You may end up with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;AGENTS.md&lt;/code&gt; telling Codex to use one command&lt;/li&gt;
&lt;li&gt;Copilot instructions using another&lt;/li&gt;
&lt;li&gt;Cursor rules targeting a different part of the repository&lt;/li&gt;
&lt;li&gt;package scripts that were renamed but are still referenced by AI instructions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I built &lt;strong&gt;codex-workspace-bootstrap (&lt;code&gt;cwb&lt;/code&gt;)&lt;/strong&gt; to catch those problems before an AI coding agent starts changing code.&lt;/p&gt;

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

&lt;p&gt;&lt;code&gt;cwb&lt;/code&gt; can detect:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;repository readiness issues&lt;/li&gt;
&lt;li&gt;package-manager mismatches&lt;/li&gt;
&lt;li&gt;missing &lt;code&gt;package.json&lt;/code&gt; scripts&lt;/li&gt;
&lt;li&gt;conflicting validation commands&lt;/li&gt;
&lt;li&gt;nested &lt;code&gt;AGENTS.md&lt;/code&gt; / &lt;code&gt;AGENTS.override.md&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;nested Cursor rules&lt;/li&gt;
&lt;li&gt;Copilot path-specific instructions&lt;/li&gt;
&lt;li&gt;risky filenames tracked by Git&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It currently understands instruction/config files used by:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Codex&lt;/li&gt;
&lt;li&gt;GitHub Copilot&lt;/li&gt;
&lt;li&gt;Cursor&lt;/li&gt;
&lt;li&gt;Cline&lt;/li&gt;
&lt;li&gt;Continue&lt;/li&gt;
&lt;li&gt;Claude Code&lt;/li&gt;
&lt;li&gt;Gemini CLI&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Usage
&lt;/h2&gt;

&lt;p&gt;Install:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;codex-workspace-bootstrap
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;cwb preflight &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The result is one of:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;READY&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;NEEDS ATTENTION&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;BLOCKED&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For CI:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;cwb preflight &lt;span class="nb"&gt;.&lt;/span&gt; &lt;span class="nt"&gt;--fail-on-integrity&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There is also a safe fix preview:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;cwb fix &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Existing conflicting instruction files are never automatically rewritten.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I made it
&lt;/h2&gt;

&lt;p&gt;AI coding tools are getting better at editing code, but the repository around them still needs to stay consistent.&lt;/p&gt;

&lt;p&gt;My goal with &lt;code&gt;cwb&lt;/code&gt; is not to replace Codex, Copilot, Cursor, Gitleaks, Trivy, or similar tools.&lt;/p&gt;

&lt;p&gt;It is a preflight layer that runs before them.&lt;/p&gt;

&lt;p&gt;The checks are local and deterministic. Commands found in AI instruction files are analyzed but not executed.&lt;/p&gt;

&lt;p&gt;GitHub:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/kohli217/codex-workspace-bootstrap" rel="noopener noreferrer"&gt;https://github.com/kohli217/codex-workspace-bootstrap&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I’m especially interested in false positives, unusual monorepos, and real-world instruction layouts.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>python</category>
      <category>opensource</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
