<?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: aicoding-guide</title>
    <description>The latest articles on DEV Community by aicoding-guide (@aicoding-guide).</description>
    <link>https://dev.to/aicoding-guide</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%2F4119600%2F36237543-8d98-41c3-b6a3-c8202a09085f.png</url>
      <title>DEV Community: aicoding-guide</title>
      <link>https://dev.to/aicoding-guide</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aicoding-guide"/>
    <language>en</language>
    <item>
      <title>Is your code used to train Anthropic's models? Claude Code data usage by plan</title>
      <dc:creator>aicoding-guide</dc:creator>
      <pubDate>Fri, 11 Sep 2026 19:14:43 +0000</pubDate>
      <link>https://dev.to/aicoding-guide/is-your-code-used-to-train-anthropics-models-claude-code-data-usage-by-plan-2ijp</link>
      <guid>https://dev.to/aicoding-guide/is-your-code-used-to-train-anthropics-models-claude-code-data-usage-by-plan-2ijp</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://aicoding-guide.com/en/posts/claude-code-privacy-data-training/" rel="noopener noreferrer"&gt;https://aicoding-guide.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;"Will the code I let Claude Code read end up training Anthropic's models?" This question comes up before any team adopts the tool. The answer is that &lt;strong&gt;it depends on your contract and your settings&lt;/strong&gt;. Personal and commercial plans have different defaults, and on personal plans you have to check the setting yourself.&lt;/p&gt;

&lt;p&gt;This article separates the concepts that get conflated, lays out the default per plan, and gives you a checklist to run before using Claude Code on work code. Always confirm the exact terms on Anthropic's own pages, since policy can change after this article's verification date.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Key point&lt;/strong&gt;&lt;br&gt;
What you will learn&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How data usage differs between personal plans (Free/Pro/Max) and commercial ones (API/Team/Enterprise)&lt;/li&gt;
&lt;li&gt;How to check and change the training opt-in&lt;/li&gt;
&lt;li&gt;What to decide before you use Claude Code at work&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Training, retention and access are three different things
&lt;/h2&gt;

&lt;p&gt;These get mixed up constantly, so separate them first.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Concept&lt;/th&gt;
&lt;th&gt;What it means&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Training&lt;/td&gt;
&lt;td&gt;Using what you send as training data for future models&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Retention&lt;/td&gt;
&lt;td&gt;Storing what you send on the server for some period, for things like abuse detection&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Access&lt;/td&gt;
&lt;td&gt;The conditions under which Anthropic staff can view content, normally limited to investigating policy violations&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Opting out of training does not reduce retention to zero. Conversely, data being retained does not mean it is used for training.&lt;/p&gt;

&lt;h2&gt;
  
  
  Defaults by plan
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Contract&lt;/th&gt;
&lt;th&gt;Training default&lt;/th&gt;
&lt;th&gt;Changeable&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Free / Pro / Max (personal)&lt;/td&gt;
&lt;td&gt;Follows your setting; you are asked once and can change it later&lt;/td&gt;
&lt;td&gt;Yes, in settings&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;API (Anthropic Console), pay as you go&lt;/td&gt;
&lt;td&gt;Not used for training&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Team / Enterprise&lt;/td&gt;
&lt;td&gt;Not used for training&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Via Amazon Bedrock / Google Vertex AI&lt;/td&gt;
&lt;td&gt;Governed by that cloud provider's terms; training data does not flow to Anthropic&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Claude Code follows &lt;strong&gt;the contract attached to the account you are logged in as&lt;/strong&gt;. Log in with a Pro/Max account and personal terms apply; authenticate with an API key and commercial terms apply.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Using a personal plan for work&lt;/strong&gt;&lt;br&gt;
Pro and Max are personal contracts. If you handle company code, opting out of training is not enough on its own: check whether your organization permits work data on a personal contract at all. For team use, a Team/Enterprise or API contract is the expected starting point.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Check the setting on a personal plan
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Log in to claude.ai in your browser.&lt;/li&gt;
&lt;li&gt;Open Settings and go to the Privacy section.&lt;/li&gt;
&lt;li&gt;Find the toggle equivalent to "Help improve Claude". On means your data can be used for training; off means it is not.&lt;/li&gt;
&lt;li&gt;You do not need to log in again in Claude Code afterwards. The setting applies at the account level.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Running &lt;code&gt;/status&lt;/code&gt; in a Claude Code session shows the account you are logged in as and the authentication method, which tells you which contract you are actually operating under.&lt;/p&gt;

&lt;h2&gt;
  
  
  Retention periods
&lt;/h2&gt;

&lt;p&gt;Retention depends on the training setting. Anthropic documents a long period (measured in years) when training is on, and a short one (measured in days) when it is off. The exact number of days is revised from time to time, so read the current wording in the Privacy Center rather than relying on a number quoted elsewhere.&lt;/p&gt;

&lt;p&gt;Commercial contracts may qualify for Zero Data Retention depending on the agreement. If your industry requires it, raise it with the sales contact.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checklist before using it at work
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Which contract are you on (personal / API / Team / Enterprise)?&lt;/li&gt;
&lt;li&gt;[ ] On a personal plan, is the training toggle off?&lt;/li&gt;
&lt;li&gt;[ ] Does your organization permit sending code to an external AI service?&lt;/li&gt;
&lt;li&gt;[ ] Do you have settings that keep secrets (credentials, customer data) out of Claude's reach? See &lt;a href="https://aicoding-guide.com/en/posts/ai-coding-security-secrets/" rel="noopener noreferrer"&gt;Stop AI coding tools from reading your API keys and secrets&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;[ ] Do you know what data your MCP servers forward to external services?&lt;/li&gt;
&lt;li&gt;[ ] If you go through Bedrock or Vertex AI, have you checked that provider's data terms?&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What Claude Code actually sends
&lt;/h2&gt;

&lt;p&gt;Claude Code reads the files it needs for the instruction you gave and sends their contents to the API. It does not ship your whole repository on every turn, but anything it reads with &lt;code&gt;grep&lt;/code&gt; or &lt;code&gt;cat&lt;/code&gt; is sent. Files you never want read should be blocked explicitly with a deny rule. See &lt;a href="https://aicoding-guide.com/en/posts/claude-code-settings-json-permissions/" rel="noopener noreferrer"&gt;Claude Code permissions in settings.json&lt;/a&gt; for how to write them.&lt;/p&gt;

&lt;p&gt;Usage telemetry is sent separately from conversation content, and the environment variable that disables it is documented in the official docs.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Glossary&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Telemetry&lt;/strong&gt;: statistics such as feature usage counts and error occurrences. It is handled separately from code content, and there is a setting to turn it off.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  How Codex and Gemini CLI compare
&lt;/h2&gt;

&lt;p&gt;Codex (OpenAI) and Gemini CLI (Google) follow the same shape: personal and commercial tiers have different defaults. Gemini CLI's free tier, signed in with a personal Google account, carries a notice that input may be used to improve the product. Check each tool on its own terms rather than assuming one policy covers all three.&lt;/p&gt;

&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Training, retention and access are separate; the setting mainly controls training&lt;/li&gt;
&lt;li&gt;API, Team and Enterprise are not used for training by default; Pro/Max follows your setting&lt;/li&gt;
&lt;li&gt;On a personal plan, check the toggle in claude.ai settings, and follow your company's policy for work code&lt;/li&gt;
&lt;li&gt;What gets sent is the content of files Claude reads, so block what you don't want read with deny rules&lt;/li&gt;
&lt;li&gt;Policy wording changes, so verify against Anthropic's Privacy Center rather than a secondhand summary&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>claudecode</category>
      <category>privacy</category>
      <category>datausage</category>
      <category>security</category>
    </item>
    <item>
      <title>Does # add to CLAUDE.md in Claude Code? What the current docs say</title>
      <dc:creator>aicoding-guide</dc:creator>
      <pubDate>Fri, 11 Sep 2026 04:03:08 +0000</pubDate>
      <link>https://dev.to/aicoding-guide/does-add-to-claudemd-in-claude-code-what-the-current-docs-say-5325</link>
      <guid>https://dev.to/aicoding-guide/does-add-to-claudemd-in-claude-code-what-the-current-docs-say-5325</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://aicoding-guide.com/en/posts/claude-md-hash-shortcut/" rel="noopener noreferrer"&gt;https://aicoding-guide.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;You saw a tip somewhere that typing &lt;code&gt;#&lt;/code&gt; at the start of the Claude Code prompt appends what you type to &lt;code&gt;CLAUDE.md&lt;/code&gt;. You tried it, and nothing happened. This article explains what the official documentation actually says.&lt;/p&gt;

&lt;p&gt;Here is the short answer. &lt;strong&gt;As of September 11, 2026, the official documentation contains no description of &lt;code&gt;#&lt;/code&gt; as a special input.&lt;/strong&gt; The documented ways to add to &lt;code&gt;CLAUDE.md&lt;/code&gt; during a session are the &lt;code&gt;/memory&lt;/code&gt; command, asking Claude in plain language, and auto memory.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Key point&lt;/strong&gt;&lt;br&gt;
What you will learn&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How &lt;code&gt;#&lt;/code&gt; is treated in the current docs, and which pages were checked&lt;/li&gt;
&lt;li&gt;The three documented ways to add content to &lt;code&gt;CLAUDE.md&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Why "remember this" does not end up in &lt;code&gt;CLAUDE.md&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The docs list five input prefixes, and # is not one of them
&lt;/h2&gt;

&lt;p&gt;The interactive mode reference has a "Quick commands" table listing characters that carry special meaning in the prompt. These are the five entries.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Input&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;/&lt;/code&gt; (at start)&lt;/td&gt;
&lt;td&gt;Command or skill&lt;/td&gt;
&lt;td&gt;Opens the list of built-in commands and skills&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;!&lt;/code&gt; (at start)&lt;/td&gt;
&lt;td&gt;Shell mode&lt;/td&gt;
&lt;td&gt;Runs a command directly and adds its output to the session&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;@&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;File path mention&lt;/td&gt;
&lt;td&gt;Triggers file path autocomplete and pulls the file into context&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;:&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Emoji shortcode&lt;/td&gt;
&lt;td&gt;Inserts an emoji from a &lt;code&gt;:name:&lt;/code&gt; shortcode&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;?&lt;/code&gt; (on empty input)&lt;/td&gt;
&lt;td&gt;Help panel&lt;/td&gt;
&lt;td&gt;Toggles the keyboard shortcut help panel&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;There is no &lt;code&gt;#&lt;/code&gt; row. The commands reference, the memory page, and the best practices page were checked as well, and none of them describes &lt;code&gt;#&lt;/code&gt; as an append shortcut.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Whether it ever existed is not something we can confirm&lt;/strong&gt;&lt;br&gt;
Whether &lt;code&gt;#&lt;/code&gt; worked in an earlier version, or whether the tip confuses Claude Code with another product, could not be confirmed in the official documentation. This article sticks to the verifiable fact that the current docs do not mention it. If it happens to work in your installation, treat that as behavior specific to your version.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Three documented ways to add to CLAUDE.md
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Open the file with /memory
&lt;/h3&gt;

&lt;p&gt;Running &lt;code&gt;/memory&lt;/code&gt; in a session lists your memory file locations, including &lt;code&gt;CLAUDE.md&lt;/code&gt; and &lt;code&gt;CLAUDE.local.md&lt;/code&gt;, and includes entries for files that do not exist yet. Selecting a row opens it in your editor, creating it first if needed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/memory
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;GUI editors such as VS Code open the file in a separate window, so you can keep using the session while it is open. Terminal editors such as Vim take over the terminal until you exit.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Ask Claude in plain language
&lt;/h3&gt;

&lt;p&gt;This takes the fewest keystrokes. The documentation says that to add instructions to &lt;code&gt;CLAUDE.md&lt;/code&gt;, you should ask Claude directly, like "add this to CLAUDE.md", or edit the file yourself via &lt;code&gt;/memory&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Add the rule we just agreed on to CLAUDE.md: run tests with pnpm test, not npm test.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;CLAUDE.md&lt;/code&gt; is an ordinary Markdown file, so Claude appends to it with its edit tool. Name the section you want it under if placement matters to you.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Let auto memory handle it
&lt;/h3&gt;

&lt;p&gt;Auto memory is the mechanism by which Claude writes notes for itself. It is on by default, and files live in &lt;code&gt;~/.claude/projects/&amp;lt;project&amp;gt;/memory/&lt;/code&gt;, with a &lt;code&gt;MEMORY.md&lt;/code&gt; index plus one file per topic.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why "remember this" never lands in CLAUDE.md
&lt;/h2&gt;

&lt;p&gt;This is the part that trips people up. When you ask Claude to remember something, such as "always use pnpm, not npm", that note goes into &lt;strong&gt;auto memory, not &lt;code&gt;CLAUDE.md&lt;/code&gt;&lt;/strong&gt;. That is why the file looks unchanged afterwards.&lt;/p&gt;

&lt;p&gt;The two systems divide up as follows.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;CLAUDE.md&lt;/th&gt;
&lt;th&gt;Auto memory&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Who writes it&lt;/td&gt;
&lt;td&gt;You&lt;/td&gt;
&lt;td&gt;Claude&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What it holds&lt;/td&gt;
&lt;td&gt;Instructions and rules&lt;/td&gt;
&lt;td&gt;Learnings and patterns&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scope&lt;/td&gt;
&lt;td&gt;Project, user, or org&lt;/td&gt;
&lt;td&gt;Per repository, machine-local&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Loaded into&lt;/td&gt;
&lt;td&gt;Every session&lt;/td&gt;
&lt;td&gt;Every session (first 200 lines or 25KB of &lt;code&gt;MEMORY.md&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Rules your team needs go in &lt;code&gt;CLAUDE.md&lt;/code&gt; and get committed to version control. Auto memory is machine-local and is not shared across machines or cloud environments, so a shared convention parked there only ever helps you. See &lt;a href="https://aicoding-guide.com/en/posts/claude-code-auto-memory-disable/" rel="noopener noreferrer"&gt;Turn off Claude Code auto memory or move it&lt;/a&gt; for the settings that control it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check that what you added is actually loaded
&lt;/h2&gt;

&lt;p&gt;Appending to a file does not guarantee the session loads it. The command that shows you is &lt;code&gt;/context&lt;/code&gt;, not &lt;code&gt;/memory&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/context
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Look for the &lt;strong&gt;Memory files&lt;/strong&gt; list in the output. If your file is not there, Claude cannot see it. To check whether your file is in a location that gets loaded, see &lt;a href="https://aicoding-guide.com/en/posts/claude-md-how-to-write/" rel="noopener noreferrer"&gt;How to write CLAUDE.md: the three levels and a ready-to-use template&lt;/a&gt;. Files in subdirectories load on a different schedule, covered in &lt;a href="https://aicoding-guide.com/en/posts/claude-md-subdirectory/" rel="noopener noreferrer"&gt;When does Claude Code load a CLAUDE.md in a subdirectory?&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you have no &lt;code&gt;CLAUDE.md&lt;/code&gt; yet, &lt;code&gt;/init&lt;/code&gt; generates a first draft from your project structure. See &lt;a href="https://aicoding-guide.com/en/posts/claude-md-init-command/" rel="noopener noreferrer"&gt;What Claude Code's /init puts in CLAUDE.md, and what to change afterwards&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The current official documentation does not describe &lt;code&gt;#&lt;/code&gt; as a shortcut for appending to &lt;code&gt;CLAUDE.md&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;The documented input prefixes are &lt;code&gt;/&lt;/code&gt;, &lt;code&gt;!&lt;/code&gt;, &lt;code&gt;@&lt;/code&gt;, &lt;code&gt;:&lt;/code&gt;, and &lt;code&gt;?&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;To append mid-session, open the file with &lt;code&gt;/memory&lt;/code&gt; or ask Claude to "add this to CLAUDE.md"&lt;/li&gt;
&lt;li&gt;Asking Claude to "remember this" writes to auto memory, which stays machine-local&lt;/li&gt;
&lt;li&gt;Confirm the result with &lt;code&gt;/context&lt;/code&gt; and check the &lt;strong&gt;Memory files&lt;/strong&gt; list&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>claudecode</category>
      <category>claudemd</category>
      <category>memory</category>
    </item>
  </channel>
</rss>
