<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Surya Consulting Blog</title>
    <link>https://suryaconsultinginc.com/blog</link>
    <atom:link href="https://suryaconsultinginc.com/blog/rss.xml" rel="self" type="application/rss+xml" />
    <description>Adhithi Ravichandran on AI-assisted development, software architecture and engineering leadership.</description>
    <language>en-us</language>
    <lastBuildDate>Tue, 24 Nov 2026 03:59:20 GMT</lastBuildDate>
    <item>
      <title>AGENTS.md vs CLAUDE.md vs Cursor rules: what goes where</title>
      <link>https://suryaconsultinginc.com/blog/agents-md-vs-claude-md-cursor-rules</link>
      <guid isPermaLink="true">https://suryaconsultinginc.com/blog/agents-md-vs-claude-md-cursor-rules</guid>
      <pubDate>Mon, 23 Nov 2026 12:00:00 GMT</pubDate>
      <dc:creator>Adhithi Ravichandran</dc:creator>
      <category>AGENTS.md</category>
      <category>Claude Code</category>
      <category>Cursor</category>
      <category>GitHub Copilot</category>
      <description>AGENTS.md, CLAUDE.md, Cursor rules and copilot-instructions.md explained: which tool reads which file, and how to keep one source of truth for your team.</description>
      <content:encoded><![CDATA[<p>If your team uses more than one AI coding tool, you&#39;ve probably noticed the files multiplying. An <code>AGENTS.md</code> here, a <code>CLAUDE.md</code> there, a <code>.cursor/rules</code> folder, and a <code>.github/copilot-instructions.md</code> that someone added last spring. They all say slightly different things, and nobody is sure which one each tool actually reads.</p>
<p>This isn&#39;t talked about clearly enough. From my perspective, it&#39;s one of the easiest wins in an AI rollout: get the instruction files right once, and every agent on the team starts from the same picture of your codebase.</p>
<p>Today, we&#39;ll walk through what each file is, which tool reads it, and the simple setup I recommend so you maintain one source of truth instead of four.</p>
<h2 id="the-short-answer">The Short Answer</h2>
<p>Put your shared project instructions in <strong>AGENTS.md</strong>. Then add thin, tool-specific files only where a tool doesn&#39;t read AGENTS.md on its own, or where you need something that only that tool supports.</p>
<ul>
<li><strong>AGENTS.md</strong> is the cross-tool file. Codex, Cursor, GitHub Copilot&#39;s coding agent and many others read it.</li>
<li><strong>CLAUDE.md</strong> is what Claude Code reads. It does not read AGENTS.md by itself, but one line fixes that.</li>
<li><strong>Cursor rules</strong> live in <code>.cursor/rules/</code> and are for Cursor-specific, file-scoped guidance.</li>
<li><strong>copilot-instructions.md</strong> is Copilot&#39;s repository-wide instructions file.</li>
</ul>
<p>Let&#39;s look at each one.</p>
<h2 id="agentsmd-the-shared-file">AGENTS.md: The Shared File</h2>
<p><a href="https://agents.md/">AGENTS.md</a> describes itself as a simple, open format for guiding coding agents, a &quot;README for agents.&quot; It&#39;s plain Markdown with no required fields. The project is now stewarded by the Agentic AI Foundation under the Linux Foundation, and the list of tools that support it is long: Codex, Cursor, GitHub Copilot&#39;s coding agent, Gemini CLI, Jules, Windsurf, Zed, Junie and more.</p>
<p>What belongs in it is the stuff you&#39;d tell a new teammate on their first day:</p>
<ul>
<li>what the project is and how it&#39;s laid out</li>
<li>how to build, test and lint</li>
<li>code style and conventions</li>
<li>security rules (&quot;never commit secrets&quot;, &quot;don&#39;t touch the payments module without a review&quot;)</li>
<li>how you want commits and pull requests written</li>
</ul>
<p>In a monorepo, you can put an AGENTS.md in each package. Agents read the nearest file in the directory tree, so the closest one to the file being edited wins.</p>
<blockquote>
<p>Write AGENTS.md for the agent the way you&#39;d write onboarding notes for a new engineer. Specific, short, and true today.</p>
</blockquote>
<h2 id="claudemd-what-claude-code-reads">CLAUDE.md: What Claude Code Reads</h2>
<p>Here&#39;s the detail that trips teams up. According to <a href="https://code.claude.com/docs/en/memory">Anthropic&#39;s documentation</a>, Claude Code reads <code>CLAUDE.md</code> (or <code>.claude/CLAUDE.md</code>), not <code>AGENTS.md</code>.</p>
<p>You don&#39;t need to copy your instructions into a second file. The documented approach is a <code>CLAUDE.md</code> that imports AGENTS.md, plus anything that only applies to Claude Code:</p>
<pre><code class="language-markdown">@AGENTS.md

## Claude Code

Use plan mode for changes under src/billing/.
</code></pre>
<p>A symlink from <code>CLAUDE.md</code> to <code>AGENTS.md</code> also works, but the docs note it needs Administrator privileges or Developer Mode on Windows, so the import is the safer choice for a mixed team.</p>
<p>A few other Claude Code details worth knowing:</p>
<ul>
<li><strong>Personal preferences</strong> go in <code>CLAUDE.local.md</code>, which should be in <code>.gitignore</code>. That keeps &quot;I like verbose explanations&quot; out of the team file.</li>
<li><strong>Path-scoped rules</strong> can go in <code>.claude/rules/</code>. A rule with a <code>paths</code> list in its frontmatter only loads when Claude works on matching files, which is handy for something like &quot;all API endpoints need input validation.&quot;</li>
<li><strong>Organization-wide instructions</strong> can be deployed as a managed <code>CLAUDE.md</code> by IT, and users can&#39;t exclude them.</li>
</ul>
<h2 id="cursor-rules-scoped-guidance-for-cursor">Cursor Rules: Scoped Guidance for Cursor</h2>
<p><a href="https://cursor.com/docs/context/rules">Cursor reads AGENTS.md</a> at the project root and in subdirectories, and combines nested files with their parents. So for most teams, Cursor is already covered by your shared file.</p>
<p>Where Cursor&#39;s own rules earn their place is scoping. Project rules live in <code>.cursor/rules/</code> as <code>.mdc</code> files (a plain <code>.md</code> file in that folder is ignored), and each rule can be set to:</p>
<ul>
<li><strong>Always Apply</strong>, included in every session</li>
<li><strong>Apply Intelligently</strong>, chosen by the agent from the rule&#39;s description</li>
<li><strong>Apply to Specific Files</strong>, matched by a glob like <code>src/**/*.tsx</code></li>
<li><strong>Apply Manually</strong>, only when someone @-mentions it</li>
</ul>
<p>On Team and Enterprise plans, admins can also set Team Rules from the dashboard and enforce them so members can&#39;t switch them off. That&#39;s a good place for the handful of rules you never want ignored.</p>
<h2 id="copilot-instructionsmd-github-copilot">copilot-instructions.md: GitHub Copilot</h2>
<p><a href="https://docs.github.com/en/copilot/how-tos/configure-custom-instructions/add-repository-instructions">GitHub Copilot</a> supports a few kinds of repository instructions:</p>
<ul>
<li><code>.github/copilot-instructions.md</code> applies to all requests made in the context of the repository.</li>
<li><code>.github/instructions/NAME.instructions.md</code> files are path-specific, using an <code>applyTo</code> glob. On GitHub.com these are supported for the cloud agent and Copilot code review.</li>
<li><code>AGENTS.md</code> files are used by AI agents, and the nearest one in the directory tree takes precedence.</li>
</ul>
<p>One detail I like: Copilot code review reads instructions from the head branch of the pull request. So a change to your review rules is tested on the very PR that introduces it.</p>
<h2 id="which-tool-reads-what">Which Tool Reads What</h2>
<p>Here&#39;s the whole picture in one table. Tools change quickly, so check each vendor&#39;s docs (linked above) before you rely on a detail.</p>
<table>
<thead>
<tr>
<th>File</th>
<th>Read by</th>
<th>Use it for</th>
</tr>
</thead>
<tbody><tr>
<td><code>AGENTS.md</code></td>
<td>Codex, Cursor, Copilot agents, Gemini CLI, and many others</td>
<td>Shared project instructions: the single source of truth</td>
</tr>
<tr>
<td><code>CLAUDE.md</code></td>
<td>Claude Code</td>
<td>One line, <code>@AGENTS.md</code>, plus Claude-only notes</td>
</tr>
<tr>
<td><code>.claude/rules/*.md</code></td>
<td>Claude Code</td>
<td>Rules that apply only to certain paths</td>
</tr>
<tr>
<td><code>.cursor/rules/*.mdc</code></td>
<td>Cursor</td>
<td>Glob-scoped or manually invoked Cursor rules</td>
</tr>
<tr>
<td><code>.github/copilot-instructions.md</code></td>
<td>GitHub Copilot</td>
<td>Repository-wide Copilot guidance</td>
</tr>
<tr>
<td><code>.github/instructions/*.instructions.md</code></td>
<td>Copilot cloud agent and code review</td>
<td>Path-specific Copilot guidance</td>
</tr>
</tbody></table>
<h2 id="the-setup-i-recommend">The Setup I Recommend</h2>
<p>Keep it boring. Boring is what scales across a team.</p>
<ol>
<li><strong>Write one AGENTS.md</strong> at the root, with nested ones only where a package genuinely works differently.</li>
<li><strong>Add a two-line CLAUDE.md</strong> that imports AGENTS.md, so Claude Code users get the same instructions.</li>
<li><strong>Only add Cursor or Copilot files for things the shared file can&#39;t do</strong>, like glob-scoped rules or review-specific guidance. If a line would make sense for every tool, it belongs in AGENTS.md.</li>
<li><strong>Keep personal preferences out of the repo.</strong> <code>CLAUDE.local.md</code>, Cursor User Rules and personal Copilot instructions exist for exactly this.</li>
<li><strong>Review instruction files like code.</strong> They change how every agent behaves in your repository, so changes to them should go through a pull request like anything else.</li>
</ol>
<blockquote>
<p>If a rule would make sense for every tool, it belongs in AGENTS.md. Everything else is the exception.</p>
</blockquote>
<p>A quick way to check your setup: ask each tool, in a fresh session, &quot;What are the testing conventions in this repository?&quot; If the answers don&#39;t match, your files have drifted.</p>
<p>If you&#39;re not sure how ready your team is beyond the instruction files, the <a href="/ai-readiness?source=blog">free readiness assessment</a> scores five areas of AI adoption in about three minutes.</p>
<h2 id="common-mistakes">Common Mistakes</h2>
<ul>
<li><strong>Copying the same content into every file.</strong> It drifts within weeks. Import or reference instead.</li>
<li><strong>Writing a novel.</strong> Every line is loaded into the agent&#39;s context, and the important rules get buried. Lead with what the agent can&#39;t figure out from the code.</li>
<li><strong>Stale commands.</strong> If <code>npm test</code> became <code>pnpm test:unit</code> three months ago, the agent will keep running the wrong thing.</li>
<li><strong>Secrets or internal URLs in the file.</strong> These files are committed. Treat them as visible to anyone with repository access.</li>
</ul>
<h2 id="conclusion">Conclusion</h2>
<p>The instruction files are small, but they shape every change an agent makes in your codebase. One shared AGENTS.md, a thin CLAUDE.md that imports it, and tool-specific rules only where you truly need them. That&#39;s it.</p>
<p>So, whether you&#39;re setting this up for the first time or cleaning up a repository with four competing files, start with the shared file and make the others point to it.</p>
<p>I hope you found this helpful. If you&#39;d like a head start, there&#39;s a <a href="/ai-kit">ready-to-edit AGENTS.md template</a> that works across Claude Code, Copilot and Cursor in the AI-Assisted Development Kit.</p>
<p>Write it once. Point everything at it.</p>
]]></content:encoded>
    </item>
    <item>
      <title>AI usage policy template for software teams: the 10 sections to include</title>
      <link>https://suryaconsultinginc.com/blog/ai-usage-policy-for-software-teams</link>
      <guid isPermaLink="true">https://suryaconsultinginc.com/blog/ai-usage-policy-for-software-teams</guid>
      <pubDate>Thu, 19 Nov 2026 12:00:00 GMT</pubDate>
      <dc:creator>Adhithi Ravichandran</dc:creator>
      <category>AI policy</category>
      <category>AI governance</category>
      <category>AI-assisted development</category>
      <description>What an AI usage policy for an engineering team should cover, from approved tools and data classes to coding agents and incidents, with sample wording you can adapt for Copilot, Cursor and Claude Code.</description>
      <content:encoded><![CDATA[<p>Most engineering teams I talk to already use AI coding tools. Far fewer have written down how.</p>
<p>The tools arrived bottom-up. One engineer tried Copilot. Another brought Cursor. Someone connected Claude Code to the repository. Six months later, nobody can say which accounts are in use or what data has gone where.</p>
<p>From my perspective, an AI usage policy is the simplest fix. Not a 30-page document nobody reads. Two or three pages that answer the questions engineers actually have: <em>Which tools can I use? What can I paste into them? What do I have to check before I merge?</em></p>
<p>Today, we&#39;ll walk through what to include, section by section, with sample wording you can adapt.</p>
<h2 id="who-the-policy-is-for">Who the policy is for</h2>
<p>Write it for the engineers who will use it every day, not for an auditor. If an engineer can&#39;t find the answer to &quot;can I use this tool on this repository?&quot; in under a minute, the policy will be ignored and people will make their own rules.</p>
<p>Keep it short, put it in the repository or wiki where people work, and make one named person responsible for keeping it current. AI tools change every few weeks; a policy with no owner is out of date within a quarter.</p>
<blockquote>
<p>A policy nobody can find in under a minute is a policy nobody follows.</p>
</blockquote>
<h2 id="1-purpose-and-scope">1. Purpose and scope</h2>
<p>Say why the policy exists in one or two sentences, and then be specific about what it covers. The scope is where most policies are too narrow. In 2026 it needs to cover more than autocomplete:</p>
<ul>
<li>editor assistants and chat (Copilot, Cursor, Claude Code and similar)</li>
<li><strong>agents</strong> that read files, run commands and open pull requests on their own</li>
<li><strong>background and cloud agents</strong> that run outside anyone&#39;s laptop</li>
<li><strong>AI review bots</strong> that comment on or approve pull requests</li>
<li>any AI tool used with company code, data, tickets or documents, including browser extensions</li>
</ul>
<h2 id="2-core-principles">2. Core principles</h2>
<p>Five principles cover most situations, and they give people something to reason from when the policy doesn&#39;t mention their exact case:</p>
<blockquote>
<ol>
<li><strong>The human author is accountable.</strong> Whoever submits a change owns it, however it was produced.</li>
<li><strong>AI output is a draft.</strong> It must be read, understood, tested and reviewed like any other code.</li>
<li><strong>Data stays inside approved boundaries.</strong> Only approved tools, only permitted data.</li>
<li><strong>Be transparent.</strong> Note significant AI assistance in pull requests.</li>
<li><strong>Automated checks back up human judgment.</strong> Enforce the policy with CI checks and tool settings wherever possible.</li>
</ol>
</blockquote>
<p>The first one does the most work. Here&#39;s the truth: &quot;the AI wrote it&quot; is never an explanation for a bug, a vulnerability or a license problem. AI is a tool. The engineer is still the author.</p>
<h2 id="3-approved-tools">3. Approved tools</h2>
<p>List the tools by name, what each is approved for, and which account type is required. A table works well:</p>
<table>
<thead>
<tr>
<th>Tool</th>
<th>Approved uses</th>
<th>Account</th>
<th>Data allowed</th>
</tr>
</thead>
<tbody><tr>
<td>Claude Code</td>
<td>Chat and agentic changes in dev environments</td>
<td>Company Team plan</td>
<td>Internal, Confidential</td>
</tr>
<tr>
<td>GitHub Copilot</td>
<td>Completion, chat, code review</td>
<td>Company Business seat</td>
<td>Internal</td>
</tr>
<tr>
<td>Cursor</td>
<td>Chat and agent</td>
<td>Company Business plan</td>
<td>Internal</td>
</tr>
</tbody></table>
<p>Two rules belong right under the table. First, <strong>no personal accounts for company code</strong>: company plans usually come with contractual data protections that personal plans don&#39;t, so check each vendor&#39;s current terms with whoever handles procurement. Second, say <strong>how to request a new tool</strong> and who approves it. Browser extensions and MCP servers that send code to a third party count as new tools.</p>
<h2 id="4-data-classification">4. Data classification</h2>
<p>This is the section that prevents the incidents people actually worry about. Most companies already have data classes; map them to AI use explicitly:</p>
<table>
<thead>
<tr>
<th>Class</th>
<th>Examples</th>
<th>AI use</th>
</tr>
</thead>
<tbody><tr>
<td>Public</td>
<td>Open-source code, public docs</td>
<td>Any approved tool</td>
</tr>
<tr>
<td>Internal</td>
<td>Most source code, tickets, internal docs</td>
<td>Approved tools on company accounts</td>
</tr>
<tr>
<td>Confidential</td>
<td>Unreleased plans, customer configurations, security architecture</td>
<td>Only tools approved for Confidential</td>
</tr>
<tr>
<td>Restricted</td>
<td>Secrets, credentials, production customer data, personal, health or payment data</td>
<td>Never sent to AI tools</td>
</tr>
</tbody></table>
<p>Then state the three rules everyone must remember: never paste secrets into any AI tool, never use real customer or personal data in prompts or test fixtures, and never point an agent at production systems or production data.</p>
<blockquote>
<p>If it&#39;s Restricted, it never leaves your systems. No exceptions.</p>
</blockquote>
<h2 id="5-agents">5. Agents</h2>
<p>Agents deserve their own section because they act, not just suggest. They can read every file in the repository, run shell commands and push branches. The rules that matter:</p>
<ul>
<li>Run agents in development environments, containers or sandboxes, never on machines with production access.</li>
<li>Use the most restrictive permission settings that still let the agent do the task, and require a human to approve destructive actions: deleting files, force-pushing, changing infrastructure, running migrations.</li>
<li>Treat anything an agent reads (web pages, issues, dependency READMEs, logs) as untrusted. It can contain instructions written to manipulate the agent. This is prompt injection, and it&#39;s the main new risk agents introduce.</li>
<li>Give background and cloud agents only the repository access and secrets the task needs.</li>
<li>An AI review bot&#39;s approval never counts as a required human approval.</li>
</ul>
<p>A policy can say &quot;use restrictive permissions&quot;, but engineers need the actual settings. Ship a baseline permissions file for each tool alongside the policy, so the safe configuration is the default rather than something everyone works out alone.</p>
<h2 id="6-code-quality-and-review">6. Code quality and review</h2>
<p>AI-assisted changes go through the same review as any other change, with two additions. The author must be able to explain every line they submit, and AI-written tests must be checked for meaningful assertions, not just coverage. Name your sensitive areas (authentication, payments, permissions, cryptography, data deletion) and require an owner&#39;s review there regardless of how the code was produced.</p>
<p>A short review checklist does more here than any paragraph of policy. The problems that slip through in AI-written pull requests are rarely exotic. They&#39;re the ordinary ones that are easy to miss when code looks finished: an authorization check that never got written because the prompt didn&#39;t mention it, a test that runs the code but asserts nothing useful, or a new dependency nobody asked for. A checklist makes reviewers look for exactly those. If you want a starting point, the <a href="/ai-readiness?source=blog">free readiness assessment</a> emails you the AI code review checklist from the kit.</p>
<h2 id="7-intellectual-property-and-customer-contracts">7. Intellectual property and customer contracts</h2>
<p>Keep this short. Don&#39;t prompt tools to reproduce code you aren&#39;t licensed to use. Then the one teams often miss: <strong>some customer contracts restrict which tools or subprocessors may touch their code or data</strong>, or where it can be processed. Check before using AI tools on that customer&#39;s work, and record any restriction where every engineer, and every agent, working in that repository will see it.</p>
<h2 id="8-incidents">8. Incidents</h2>
<p>Tell people exactly what to report and where: a secret or Restricted data sent to an AI tool, an agent making an unexpected or destructive change, or AI-generated code causing a security issue or outage. Add one line that matters more than the rest: <strong>rotate any exposed secret immediately; don&#39;t wait for the investigation.</strong></p>
<h2 id="9-training-and-acknowledgement">9. Training and acknowledgement</h2>
<p>Ask everyone to acknowledge the policy and attend a short kickoff before using AI tools on company code. Walk through the policy and agent settings with real examples from your own codebase.</p>
<h2 id="10-exceptions-and-review">10. Exceptions and review</h2>
<p>Say who approves exceptions, how they&#39;re recorded and when they expire. Review the policy every quarter; the tools change that fast.</p>
<h2 id="how-to-roll-it-out">How to roll it out</h2>
<p>Don&#39;t announce a finished policy. Draft it with two or three engineers who already use the tools heavily, run it for a month with one team, and fix what doesn&#39;t survive contact with real work. Then publish it with the supporting pieces that make it enforceable: the review checklist, a pull request template that asks about AI use, baseline agent settings, and a CI check for secrets.</p>
<h2 id="conclusion">Conclusion</h2>
<p>A good AI usage policy is short, specific and owned by someone. It tells engineers what they can use, share and must check, and the tooling backs it up.</p>
<p>So, whether you&#39;re writing your team&#39;s first policy or tightening one that grew up bottom-up, if you only have one afternoon, start with sections 3 and 4: the approved tools and the data classes. They answer the two questions engineers ask most often, and they&#39;re the first things a customer&#39;s security questionnaire will ask you about.</p>
<p>I hope you found this helpful. If you&#39;d rather not start from a blank page, I&#39;ve put a <a href="/ai-kit">ready-to-edit AI usage policy template</a>, along with the pieces that make it enforceable, into the AI-Assisted Development Kit. It works with Claude Code, Copilot and Cursor.</p>
<p>The policy is the part people read. The settings and checks are the part that actually protects you.</p>
]]></content:encoded>
    </item>
  </channel>
</rss>
