<?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: Nixon Perinchery</title>
    <description>The latest articles on DEV Community by Nixon Perinchery (@nixonperinchery).</description>
    <link>https://dev.to/nixonperinchery</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%2F4208701%2F3dc40dc8-9e5d-4045-a6e7-7749199bc6a4.jpg</url>
      <title>DEV Community: Nixon Perinchery</title>
      <link>https://dev.to/nixonperinchery</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nixonperinchery"/>
    <language>en</language>
    <item>
      <title>Write a Claude Code Skill: SKILL.md, Tools and Testing</title>
      <dc:creator>Nixon Perinchery</dc:creator>
      <pubDate>Fri, 04 Dec 2026 14:38:07 +0000</pubDate>
      <link>https://dev.to/nixonperinchery/write-a-claude-code-skill-skillmd-tools-and-testing-34ab</link>
      <guid>https://dev.to/nixonperinchery/write-a-claude-code-skill-skillmd-tools-and-testing-34ab</guid>
      <description>&lt;p&gt;&lt;strong&gt;The short version&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A Claude Code skill is a folder with a SKILL.md file; put it in .claude/skills/ and commit it so the whole team gets it.&lt;/li&gt;
&lt;li&gt;The description decides when Claude loads a skill, so write what it does and when to use it, with the key use case first.&lt;/li&gt;
&lt;li&gt;Mark anything with side effects, such as deploys, as manual-only with disable-model-invocation, and pre-approve only the exact commands it needs with allowed-tools.&lt;/li&gt;
&lt;li&gt;Keep SKILL.md under 500 lines and move detail into supporting files, because skill text costs tokens every time it is loaded.&lt;/li&gt;
&lt;li&gt;Test a skill on three real scenarios against a no-skill baseline before sharing it, and check it on each model your team uses.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A Claude Code skill is a folder with a &lt;code&gt;SKILL.md&lt;/code&gt; file in it. You write what the skill does and when to use it, add the steps, and Claude Code loads it when a request matches or when someone types &lt;code&gt;/skill-name&lt;/code&gt;. This guide shows how to write one that triggers reliably, stays cheap in context, and is safe to share with a team.&lt;/p&gt;

&lt;p&gt;Everything below comes from Anthropic's &lt;a href="https://code.claude.com/docs/en/skills" rel="noopener noreferrer"&gt;Claude Code skills documentation&lt;/a&gt; and its &lt;a href="https://platform.claude.com/docs/en/agents-and-tools/agent-skills/best-practices" rel="noopener noreferrer"&gt;skill authoring best practices&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is a Claude Code skill, and when should you write one?
&lt;/h2&gt;

&lt;p&gt;A skill packages a procedure you keep explaining: how to cut a release, how to review a diff against your standards, how to fix an issue the way your team does. Unlike an instructions file such as &lt;code&gt;CLAUDE.md&lt;/code&gt;, which is read every session, a skill's description is always in context but its full text loads only when the skill is invoked.&lt;/p&gt;

&lt;p&gt;Write a skill when you notice you are pasting the same steps into prompts. Keep short, always-true rules in your instructions file. Put procedures, checklists and task recipes in skills.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where do skills live?
&lt;/h2&gt;

&lt;p&gt;The path decides who gets the skill:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Location&lt;/th&gt;
&lt;th&gt;Path&lt;/th&gt;
&lt;th&gt;Loads in&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Personal&lt;/td&gt;
&lt;td&gt;&lt;code&gt;~/.claude/skills/&amp;lt;name&amp;gt;/SKILL.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;All your projects on this machine&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Project&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.claude/skills/&amp;lt;name&amp;gt;/SKILL.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Sessions in this repository; commit it to share&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nested&lt;/td&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;subdir&amp;gt;/.claude/skills/&amp;lt;name&amp;gt;/SKILL.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Sessions started in or below that subdirectory&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Enterprise&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;.claude/skills/&amp;lt;name&amp;gt;/SKILL.md&lt;/code&gt; in the managed settings directory&lt;/td&gt;
&lt;td&gt;All users on machines where your organisation deploys it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Plugin&lt;/td&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;plugin&amp;gt;/skills/&amp;lt;name&amp;gt;/SKILL.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Wherever the plugin is enabled, as &lt;code&gt;/plugin-name:skill-name&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If a personal, project and enterprise skill share a name, enterprise wins over personal, and personal wins over project. Plugin skills are namespaced, so they never collide.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you write a minimal SKILL.md?
&lt;/h2&gt;

&lt;p&gt;Create the folder and file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;mkdir -p ~/.claude/skills/summarize-changes
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then save this as &lt;code&gt;~/.claude/skills/summarize-changes/SKILL.md&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;---
description: "Summarizes uncommitted changes and flags anything risky. Use when the user asks what changed, wants a commit message, or asks to review their diff."
---

&lt;span class="gu"&gt;## Current changes
&lt;/span&gt;
!&lt;span class="sb"&gt;`git diff HEAD`&lt;/span&gt;

&lt;span class="gu"&gt;## Instructions
&lt;/span&gt;
Summarize the changes above in two or three bullet points, then list any risks you notice such as missing error handling, hardcoded values, or tests that need updating. If the diff is empty, say there are no uncommitted changes.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Invoke it by asking something that matches the description, or directly with &lt;code&gt;/summarize-changes&lt;/code&gt;. Claude Code watches the skill folders and picks up added or edited skills within the current session; if a brand-new skill does not appear, run &lt;code&gt;/reload-skills&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The line starting with &lt;code&gt;!&lt;/code&gt; followed by a backtick command is dynamic context injection. The command runs before the content reaches Claude and its output replaces the placeholder, so Claude sees the real diff rather than being told to go and fetch it. With the default bash shell, a non-zero exit code aborts the whole invocation, so Claude never sees the content. The one carve-out is exit code 1 from search and comparison commands, which is treated as a normal result; exit code 2 or higher still fails. Append &lt;code&gt;|| true&lt;/code&gt; where failure is fine.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you write a description that triggers?
&lt;/h2&gt;

&lt;p&gt;The description is the single most important line. Claude uses it to choose among potentially 100+ skills. Anthropic's guidance:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Say both what the skill does and when to use it.&lt;/li&gt;
&lt;li&gt;Write in the third person. The description is injected into the system prompt, and inconsistent point of view can cause discovery problems.&lt;/li&gt;
&lt;li&gt;Use specific key terms. "Helps with documents" is a bad description; "Extract text and tables from PDF files... Use when working with PDF files or when the user mentions PDFs, forms, or document extraction" is a good one.&lt;/li&gt;
&lt;li&gt;Put the key use case first. In Claude Code, &lt;code&gt;description&lt;/code&gt; plus &lt;code&gt;when_to_use&lt;/code&gt; are truncated at 1,536 characters in the skill listing. The platform's upload rules are stricter: a 1,024-character description and a name of at most 64 characters (lowercase letters, numbers and hyphens, no &lt;code&gt;anthropic&lt;/code&gt; or &lt;code&gt;claude&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you only run skills inside Claude Code, the longer limit applies, but short is still better, because every skill's description sits in context.&lt;/p&gt;

&lt;h2&gt;
  
  
  The frontmatter fields worth knowing
&lt;/h2&gt;

&lt;p&gt;All fields are optional; only &lt;code&gt;description&lt;/code&gt; is recommended, so Claude knows when to use the skill. Claude Code silently ignores fields it does not recognise, so a typo fails quietly. Packaging a skill for claude.ai or the Skills API is stricter and reports an error.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&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;name&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The &lt;code&gt;/&lt;/code&gt; command name; defaults to the folder name&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;when_to_use&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Extra trigger phrases, appended to the description and counted toward the 1,536-character cap&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;argument-hint&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Autocomplete hint such as &lt;code&gt;[issue-number]&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;arguments&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Named positional arguments for &lt;code&gt;$name&lt;/code&gt; substitution&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;disable-model-invocation&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;true&lt;/code&gt; stops Claude loading it automatically&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;user-invocable&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;false&lt;/code&gt; hides it from the &lt;code&gt;/&lt;/code&gt; menu; only Claude can use it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;allowed-tools&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Tools Claude can use without asking during the turn that invokes the skill&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;disallowed-tools&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Tools removed from Claude's pool while the skill is active&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;model&lt;/code&gt;, &lt;code&gt;effort&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Model and effort for the turn; effort options are &lt;code&gt;low&lt;/code&gt;, &lt;code&gt;medium&lt;/code&gt;, &lt;code&gt;high&lt;/code&gt;, &lt;code&gt;xhigh&lt;/code&gt; and &lt;code&gt;max&lt;/code&gt;, depending on the model&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;context&lt;/code&gt;, &lt;code&gt;agent&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;fork&lt;/code&gt; runs the skill in a subagent; &lt;code&gt;agent&lt;/code&gt; picks which one&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;background&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Only with &lt;code&gt;context: fork&lt;/code&gt;; &lt;code&gt;false&lt;/code&gt; waits for the result&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;paths&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Glob patterns for the files that activate the skill&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  How do you stop Claude running a risky skill on its own?
&lt;/h2&gt;

&lt;p&gt;By default both you and Claude can invoke a skill. For anything with side effects, make it manual-only:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="nn"&gt;---
&lt;/span&gt;&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;deploy&lt;/span&gt;
&lt;span class="na"&gt;description&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Deploy the application to production&lt;/span&gt;
&lt;span class="na"&gt;disable-model-invocation&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
&lt;span class="nn"&gt;---
&lt;/span&gt;
&lt;span class="na"&gt;Deploy $ARGUMENTS to production&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;

&lt;span class="s"&gt;1. Run the test suite&lt;/span&gt;
&lt;span class="s"&gt;2. Build the application&lt;/span&gt;
&lt;span class="s"&gt;3. Push to the deployment target&lt;/span&gt;
&lt;span class="s"&gt;4. Verify the deployment succeeded&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With &lt;code&gt;disable-model-invocation: true&lt;/code&gt;, the description is not in context; the full skill loads only when you type &lt;code&gt;/deploy&lt;/code&gt;. The opposite setting, &lt;code&gt;user-invocable: false&lt;/code&gt;, hides a skill from the menu but lets Claude use it, which suits background knowledge.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do allowed-tools and arguments work?
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;allowed-tools&lt;/code&gt; lets Claude use the listed tools without asking during the turn that invokes the skill. It does not restrict anything else; your permission settings still govern the rest, and the grant clears when you send your next message. Scope it tightly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="nn"&gt;---
&lt;/span&gt;&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;commit&lt;/span&gt;
&lt;span class="na"&gt;description&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Stage and commit the current changes&lt;/span&gt;
&lt;span class="na"&gt;disable-model-invocation&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
&lt;span class="na"&gt;allowed-tools&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Bash(git add *) Bash(git commit *) Bash(git status *)&lt;/span&gt;
&lt;span class="nn"&gt;---
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One security note from the docs: a project skill's &lt;code&gt;allowed-tools&lt;/code&gt; apply even in &lt;code&gt;-p&lt;/code&gt; runs in untrusted folders, so read them before running Claude Code in a repository you did not write. If you do not want shell injection at all, set &lt;code&gt;"disableSkillShellExecution": true&lt;/code&gt; in settings; it covers user, project, plugin and additional-directory skills, but not bundled or managed ones.&lt;/p&gt;

&lt;p&gt;For arguments, &lt;code&gt;$ARGUMENTS&lt;/code&gt; receives everything after the skill name, and &lt;code&gt;$0&lt;/code&gt;, &lt;code&gt;$1&lt;/code&gt; and so on give positional access (quote multi-word values). Named arguments work too:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="nn"&gt;---
&lt;/span&gt;&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ticket&lt;/span&gt;
&lt;span class="na"&gt;arguments&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;issue&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;branch&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="nn"&gt;---
&lt;/span&gt;&lt;span class="s"&gt;Fix $issue on branch $branch.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;/ticket 123 fix-login&lt;/code&gt; then expands &lt;code&gt;$issue&lt;/code&gt; to &lt;code&gt;123&lt;/code&gt; and &lt;code&gt;$branch&lt;/code&gt; to &lt;code&gt;fix-login&lt;/code&gt;. If no placeholder receives your input, Claude Code appends &lt;code&gt;ARGUMENTS: &amp;lt;value&amp;gt;&lt;/code&gt; instead. A bundled script can run without a permission prompt if you point at it with &lt;code&gt;${CLAUDE_SKILL_DIR}&lt;/code&gt;, the folder that holds &lt;code&gt;SKILL.md&lt;/code&gt;, in both the body and &lt;code&gt;allowed-tools&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  When should a skill run in a subagent?
&lt;/h2&gt;

&lt;p&gt;Add &lt;code&gt;context: fork&lt;/code&gt; and the skill's content becomes the prompt of a forked subagent, chosen with &lt;code&gt;agent&lt;/code&gt; (for example &lt;code&gt;Explore&lt;/code&gt;, &lt;code&gt;Plan&lt;/code&gt;, &lt;code&gt;general-purpose&lt;/code&gt; or your own). The subagent does not see your conversation, so the instructions must stand alone. &lt;code&gt;background&lt;/code&gt; defaults to &lt;code&gt;true&lt;/code&gt;, so the subagent runs in the background; set &lt;code&gt;background: false&lt;/code&gt; to wait for the result. Claude Code also waits in some settings, such as &lt;code&gt;-p&lt;/code&gt; runs and the Agent SDK.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="nn"&gt;---
&lt;/span&gt;&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;pr-summary&lt;/span&gt;
&lt;span class="na"&gt;description&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Summarize changes in a pull request&lt;/span&gt;
&lt;span class="na"&gt;context&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;fork&lt;/span&gt;
&lt;span class="na"&gt;agent&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Explore&lt;/span&gt;
&lt;span class="na"&gt;allowed-tools&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Bash(gh *)&lt;/span&gt;
&lt;span class="nn"&gt;---
&lt;/span&gt;
&lt;span class="c1"&gt;## Pull request context
&lt;/span&gt;&lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;PR diff&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;!`gh&lt;/span&gt; &lt;span class="s"&gt;pr diff`&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;Changed files&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;!`gh&lt;/span&gt; &lt;span class="s"&gt;pr diff --name-only`&lt;/span&gt;

&lt;span class="c1"&gt;## Your task
&lt;/span&gt;&lt;span class="s"&gt;Summarize this pull request...&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use this only for skills with an explicit task; guideline-only content gives the subagent nothing to act on.&lt;/p&gt;

&lt;h2&gt;
  
  
  How big can a skill be before it costs too much?
&lt;/h2&gt;

&lt;p&gt;Skill text is a recurring token cost. The rules of thumb:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Keep the &lt;code&gt;SKILL.md&lt;/code&gt; body under 500 lines and split the rest into files it links to, such as &lt;code&gt;reference.md&lt;/code&gt;, &lt;code&gt;examples.md&lt;/code&gt; or &lt;code&gt;scripts/&lt;/code&gt;. Supporting files load only when read, and scripts are run, not loaded.&lt;/li&gt;
&lt;li&gt;Keep links one level deep from &lt;code&gt;SKILL.md&lt;/code&gt;. Anthropic warns that Claude may only preview files that are referenced from other referenced files.&lt;/li&gt;
&lt;li&gt;Once invoked, a skill's rendered content stays in the conversation. After compaction, Claude Code re-attaches the most recent invocation of each skill, keeping the first 5,000 tokens per skill within a combined 25,000-token budget, starting from the most recently used.&lt;/li&gt;
&lt;li&gt;Only add what Claude does not already know. Anthropic's example: a roughly 50-token snippet beats a roughly 150-token explanation of what a PDF is.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Prefer a script for fragile, repeatable steps. The guidance is to match freedom to risk: loose text for code review, an exact command for a database migration.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you test a skill before sharing it?
&lt;/h2&gt;

&lt;p&gt;Anthropic recommends building evaluations before writing extensive documentation:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Run Claude on representative tasks without the skill and note where it fails.&lt;/li&gt;
&lt;li&gt;Write three scenarios that test those gaps.&lt;/li&gt;
&lt;li&gt;Record the baseline without the skill.&lt;/li&gt;
&lt;li&gt;Write the minimum instructions that fix the gaps.&lt;/li&gt;
&lt;li&gt;Re-run, compare against the baseline, and refine.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The docs say there is currently no built-in way to run these evaluations, so keep them as simple files, for example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"skills"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"pdf-processing"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"query"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Extract all text from this PDF file and save it to output.txt"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"files"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"test-files/document.pdf"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"expected_behavior"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="s2"&gt;"Reads the PDF with an appropriate library or tool"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"Extracts text from all pages"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"Saves the text to output.txt"&lt;/span&gt;
  &lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Also test with each model your team uses. Haiku may need more guidance than Opus, while Opus may be over-instructed by text Haiku needs. Then watch real use: does the skill trigger when expected, does Claude read the files you linked, does it ignore any you bundled?&lt;/p&gt;

&lt;h2&gt;
  
  
  Where Atlas fits
&lt;/h2&gt;

&lt;p&gt;Atlas is a team of AI engineers built on Claude Code. It does not write, show or review &lt;code&gt;SKILL.md&lt;/code&gt; files for you today. What it does in a nearby area: lessons from finished work are passed to future engineers, one is held back as a control, and lessons that track worse results or higher cost are retired automatically. Domain plugins also teach the team a product's rules, and those rules are checked against every change before work counts as done.&lt;/p&gt;

&lt;p&gt;Help with writing and reviewing skills is coming to Atlas, built in, so it needs no setup. Until then, follow the steps above in your own Claude Code sessions and review skill files in code review like any other code. You can find Atlas at &lt;a href="https://bridge-terminal.com/atlas/?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=write-claude-code-skill-skill-md-guide" rel="noopener noreferrer"&gt;the Atlas home page&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Start with one skill for a procedure you have explained three times. Write a third-person description with the trigger first, mark risky skills manual-only, pre-approve only the exact commands needed, keep the body short, and test against a no-skill baseline. Commit it under &lt;code&gt;.claude/skills/&lt;/code&gt; and review changes to it like code, since its &lt;code&gt;allowed-tools&lt;/code&gt; and shell lines run with your permissions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/skills" rel="noopener noreferrer"&gt;Extend Claude with skills - Claude Code Docs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://platform.claude.com/docs/en/agents-and-tools/agent-skills/best-practices" rel="noopener noreferrer"&gt;Skill authoring best practices - Claude Docs&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://bridge-terminal.com/atlas/blog/write-claude-code-skill-skill-md-guide/?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=write-claude-code-skill-skill-md-guide" rel="noopener noreferrer"&gt;Atlas blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>What Is Atlas? An AI Software Team on Your Mac, Built on Claude Code</title>
      <dc:creator>Nixon Perinchery</dc:creator>
      <pubDate>Wed, 02 Dec 2026 10:50:36 +0000</pubDate>
      <link>https://dev.to/nixonperinchery/what-is-atlas-an-ai-software-team-on-your-mac-built-on-claude-code-4gn4</link>
      <guid>https://dev.to/nixonperinchery/what-is-atlas-an-ai-software-team-on-your-mac-built-on-claude-code-4gn4</guid>
      <description>&lt;p&gt;&lt;em&gt;I build Atlas, so I'm biased. This post sticks to what Atlas does today, what it costs and where it falls short. The one part still being built is marked as such.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The short answer
&lt;/h2&gt;

&lt;p&gt;Atlas is a Mac app that gives you a software team made of AI engineers, built on Claude Code (Anthropic's AI coding tool). You talk to one of them, PA, your project assistant, in plain words. PA shares the work out to specialists who design, build, test and security-check it. Nothing goes live until you say so. Atlas runs on Macs with Apple silicon, on your own Claude Pro or Max plan. One project in development on your Mac is free, for ever.&lt;/p&gt;

&lt;p&gt;Five things set it apart:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;AI and plain programs, each where it fits.&lt;/strong&gt; AI does the thinking. Programs with no AI do the work that repeats, so your Claude plan goes further.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You stay in control.&lt;/strong&gt; The big calls always wait for you, and every question comes in plain words.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It can run unattended.&lt;/strong&gt; The team keeps going while you sleep, and the big calls still wait for you.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Security and performance are part of the team,&lt;/strong&gt; not an extra at the end.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It makes help videos and training lessons for your users,&lt;/strong&gt; not just the app.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Atlas is independent. It is not affiliated with or endorsed by Anthropic or OpenAI.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who is it for?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;People who want software built but don't write code.&lt;/strong&gt; You answer PA's questions with buttons. Every finished piece comes back with evidence, like tests and screenshots.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;People who already pay for Claude Pro or Max&lt;/strong&gt; and want that plan doing the building, with no AI credits to buy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Engineers who use Claude Code&lt;/strong&gt; and want a team around it: roles, a shared board, reviews and careful releases.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Teams that already have a product&lt;/strong&gt; and need help videos and training for its users. Atlas can make them without touching the product's code.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What makes Atlas different?
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. AI for the thinking, plain programs for the rest
&lt;/h3&gt;

&lt;p&gt;Most AI coding tools use the AI for everything, even for running the same tests again and again. Atlas splits the work. AI engineers do the thinking: planning, designing, building and reviewing. Plain programs, with no AI, do the work that repeats:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The test runner&lt;/strong&gt; tests finished work and lands it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Two re-checkers&lt;/strong&gt; run a fix's tests again, and re-check a saved screen with its saved steps.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The security checks&lt;/strong&gt; run on every change. They look for passwords or keys saved in the code by mistake, risky packages, and code that a crafted input could use to freeze your app. The AI security engineer is asked only for judgement.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The deployer&lt;/strong&gt; puts a release on your test site when the steps can be followed exactly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The proof runner&lt;/strong&gt; tries saved inputs on your product's own AI and reports only the ones that came out wrong.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Why it matters:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Your Claude plan goes further.&lt;/strong&gt; A program uses none of it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It's faster.&lt;/strong&gt; There's no AI to wait for.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It gives the same answer every time.&lt;/strong&gt; A check doesn't pass today and fail tomorrow because the AI read it differently.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It also grows. When reviews send back the same kind of problem three times in 14 days and no program covers it, Atlas has a check written for it. On the Network screen the programs sit on their own rail, marked "program · no AI", so you can see which is which. The AI is used carefully too: each kind of task gets the model and effort it needs, the top model for design and a small one for chores, and a cheaper setting is kept only when it measures as good. Programs plus AI is the default, and "AI only" is one switch away in Settings.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. You stay in control
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Five things are never decided for you:&lt;/strong&gt; going live in production, spending money, deleting data, sending anything outside, and dropping something you asked for.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An approval covers exactly what it asked about.&lt;/strong&gt; Approving one version for production never lets a different one through. Before you approve a release, Atlas backs up your data, rehearses the database changes on that copy, and shows you anything it found.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cloud costs are exactly what you saw.&lt;/strong&gt; A new database, storage or bigger server is made only at the size, region and price your tap saw. Otherwise Atlas asks again.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No consoles, no passwords.&lt;/strong&gt; Atlas never sends you to a cloud console or asks you for a password. It works out the change and makes it on one tap.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An optional daily budget&lt;/strong&gt; warns you at 50% and 80% and pauses the team at 100%. Your Claude usage is on the Home screen.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You choose how each change is tested,&lt;/strong&gt; only what changed or everything, and how often the chat updates you.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Questions come in plain words,&lt;/strong&gt; with buttons to answer and the technical detail folded underneath. Atlas won't send you a question a person can't read.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Passwords and keys&lt;/strong&gt; pasted into the chat go to a locked store first.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Run unattended
&lt;/h3&gt;

&lt;p&gt;One switch on the chat's top bar, "Run unattended", keeps the team moving while you sleep or get on with your day. While it's on, the questions meant for you go to PA, which answers from each task's own record.&lt;/p&gt;

&lt;p&gt;A safety floor still waits for your own tap: the five decisions above, letting anyone or anything into a database, and raising any spending or usage limit. Those questions wait quietly overnight and come back once you're in the chat or Slack again. You can also just tell PA to run unattended.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Security and performance, built in
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A security engineer is on the team.&lt;/strong&gt; A change that touches sign-in, payments or stored secrets gets a security look at once.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Security can't be skipped to finish faster.&lt;/strong&gt; When a big task is split up, its security work can't be split off and left behind. A problem counts as fixed only when the code near it really changed, never on the AI's word alone. A review that says "releasable, but…" counts as not yet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Security screen&lt;/strong&gt; starts with what has never been reviewed, and keeps a ledger of the kinds of attack it checks for, more than 160. Atlas looks for a signed security pack from its makers every day. A new one brings new kinds of attack to check, and you choose when to run it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Advisories screen&lt;/strong&gt; lists known security problems in the software your app actually runs. Nothing starts before your tap, and "Fix all" deals with everything shown in one tap.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A Security assessment for management:&lt;/strong&gt; one living document, built from Atlas's own records, with no technical detail.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Performance screen&lt;/strong&gt; puts your app under load and checks it against its targets. A change made for speed or cost is kept only if it measures better.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Before a production release,&lt;/strong&gt; everything going out is reviewed together: the code, plus security and performance when you switch them on. The release waits for every review, test and security check of what it ships.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  5. Help videos and training for your users
&lt;/h3&gt;

&lt;p&gt;Atlas doesn't stop at the app. Switch on Help and it makes the help your users need, then keeps it up to date:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A help video for every screen,&lt;/strong&gt; made from the real screen. Atlas opens your app's development or test copy (never the live one), goes through each step in the order a person meets it, and explains it. Nothing that saves, sends or pays is ever pressed. You pick how long: about 30 seconds, a minute or three minutes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A Help button inside your app&lt;/strong&gt; for the screen in view, with search, What's new, and a manual as one page and a PDF.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Training lessons for every screen&lt;/strong&gt; (often called CBT, computer-based training). Each part of the screen is ringed and said aloud. A lesson plays by itself, or one step at a time, waiting for the person to do each step. It can keep a training record for each person with a list for managers, and send records to your company's learning system (SCORM or xAPI).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Other languages.&lt;/strong&gt; Each language gets its own help, manual and captions, and the panel follows the browser's language. Only what changed is translated again.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An optional help assistant&lt;/strong&gt; answers your users' questions from your product's own help, and says where each answer came from. It runs in your own DigitalOcean account, on a Claude API key of your own, with a monthly cap.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It stays current.&lt;/strong&gt; When a change lands, a program finds the help it touches. Only those videos are made again, and help for screens that are gone is retired.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every video, lesson and cost waits for your yes, and the help lives in your own cloud account. Already have a product? A project can be help-only: Atlas makes the help and training for software you already have, and never changes, runs or deploys its code.&lt;/p&gt;

&lt;p&gt;Atlas also makes videos about your product, in a choice of styles. Every claim is checked against your project's own facts, and every check runs before any voice is paid for.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Being built now: from MVP to battle-tested
&lt;/h3&gt;

&lt;p&gt;Not every idea needs the full treatment on day one. Atlas is adding a choice of how far it takes your work, from a quick first version (an MVP) to try an idea, to a battle-tested build for real users, so the time and cost fit what you need. It is being built into Atlas right now and will arrive in an update.&lt;/p&gt;

&lt;h2&gt;
  
  
  How does a piece of work go from your words to done?
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;You say what you want,&lt;/strong&gt; in the Atlas app or in Slack, the way you would say it to a person.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PA asks what it needs to know,&lt;/strong&gt; with buttons to answer. Then it plans the work and shares it out.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The work goes on a board&lt;/strong&gt; in a database. Each task has an owner, and after a restart each engineer picks up where it stopped.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Things happen in a sound order.&lt;/strong&gt; Building waits for an approved architecture (the overall technical plan), a signed-off design, and tests that are written first and fail until the work exists. A screen waits for the part of the system it gets its data from.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Specialists work side by side.&lt;/strong&gt; Each engineer is its own Claude Code session with a written role, such as design, back end, testing or security, and its own copy of the code. On our own projects, this did 26.1 hours of work in 10.6 hours on the clock.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"Done" has to be earned.&lt;/strong&gt; Work can't be marked finished until it is on the main copy of the code (or queued to get there), a screen has its test cases and screenshots, and the product's rules pass.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Every build is reviewed&lt;/strong&gt; as it finishes. It comes back "releasable", or with fix tasks sent to its builder by name.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Finished work is tested together.&lt;/strong&gt; Atlas merges up to six finished pieces at a time and runs the project's own checks once on the result. If a batch fails, it is split until the piece that broke it is found.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You decide when it goes live.&lt;/strong&gt; Releases beyond your Mac follow the same eight steps every time: the way back is marked, your data is backed up and the backup proven by restoring it, database changes are rehearsed on that copy, then it is released and checked.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What do you need?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;A Mac with Apple silicon.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your own Claude account with Claude Code, on a Pro or Max plan.&lt;/strong&gt; There are no API keys and no per-token bill; usage counts against your plan. Several engineers at once use its limits faster. For medium to large projects we recommend at least Claude's $100-a-month Max plan.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An email address&lt;/strong&gt; to sign in. No card is needed to start.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Optional: a DigitalOcean account,&lt;/strong&gt; only if you want to work laptop-free on your own server. You sign in with DigitalOcean once and Atlas sets up a server in your own account. The project moves across in one click, and the team keeps working with your laptop closed.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Free:&lt;/strong&gt; one project in development on your Mac, for ever, with the whole team and every screen.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Free trial:&lt;/strong&gt; 30 days from sign-up, once for each team, including one project in development on your company's own server. No card needed. Atlas reminds you three days and a day before it ends. Then the server project pauses with its work saved.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Licence:&lt;/strong&gt; $50 a month for each project in development at the same time. Each project in development on your company's server needs one. On a Mac, one lets the team work on a second project at once. A paused project, or one asleep on the server, doesn't count.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What you build is yours. It runs live on your own hosting, for as many users as you like, and Atlas never charges for that. Claude is billed by Anthropic and a server by DigitalOcean, not by Atlas. Optional extras, like Help's storage, the help assistant or a paid voice, are billed by those services, and Atlas shows the price before you tap. Details are on the &lt;a href="https://bridge-terminal.com/atlas/pricing.html?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=what-is-atlas" rel="noopener noreferrer"&gt;pricing page&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How is it different from Lovable, Bolt or Replit?
&lt;/h2&gt;

&lt;p&gt;Lovable, Bolt and Replit build apps from a chat. They work in the browser, and Lovable and Replit have Windows apps too. They can host your app for you, and their AI use is counted in credits or tokens. They have their own checks too: Lovable adds and runs tests when you add or change a rule, and Replit's agent checks and fixes its own work as it goes.&lt;/p&gt;

&lt;p&gt;Atlas works differently:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It is a Mac app, and the AI runs on your own Claude plan, so there are no AI credits to buy.&lt;/li&gt;
&lt;li&gt;Work is planned, tested and reviewed before it is called done, and the evidence is there to open.&lt;/li&gt;
&lt;li&gt;The code and the live app sit in accounts you own. Atlas doesn't host your app.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One of them may suit you better if you want to start in a browser in minutes on any computer, want the tool to host your app, or don't have a Claude Pro or Max plan. Side-by-side comparisons, with a source for every line about the other product, are on the &lt;a href="https://bridge-terminal.com/atlas/compare.html?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=what-is-atlas" rel="noopener noreferrer"&gt;Compare page&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How is it different from using Claude Code on its own?
&lt;/h2&gt;

&lt;p&gt;Claude Code is a very good engineer, and every engineer in Atlas is a Claude Code session. On its own, though, you are the glue. You drive every session, keep the order of work in your head, review when you have time, merge the pieces, and remember the backup before a release.&lt;/p&gt;

&lt;p&gt;Atlas adds what a team adds around a good engineer: specialists in parallel, a board that remembers the work, gates on the order, "done" that has to be proven, a review of every build, and the same release steps every time. It also adds programs that take the repeating work off your plan, a safety floor that holds while you're away, and help and training for your users. Lessons from finished work are passed on, and retired automatically when they track worse results or higher cost.&lt;/p&gt;

&lt;h2&gt;
  
  
  What are the limits?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Macs with Apple silicon only.&lt;/strong&gt; There is no Windows version and no browser version.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You need your own Claude Pro or Max plan,&lt;/strong&gt; billed by Anthropic, on top of anything you pay for Atlas.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;On your Mac, a team works only while its tab is open.&lt;/strong&gt; To keep working with the laptop closed, the project needs a server, in your own DigitalOcean account.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Atlas doesn't host your app.&lt;/strong&gt; What it builds runs on hosting you own.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You still make the big calls.&lt;/strong&gt; The safety floor always waits for you, so you need to come back to say yes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It is still AI.&lt;/strong&gt; Engineers can get things wrong. That's why "done" needs proof, every build is reviewed, and the way back is marked before a release.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How do I try it?
&lt;/h2&gt;

&lt;p&gt;Download Atlas from &lt;a href="https://bridge-terminal.com/atlas/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=what-is-atlas" rel="noopener noreferrer"&gt;the Atlas site&lt;/a&gt;, sign in with your email, and start one project on your Mac. That project is free, for ever. &lt;a href="https://bridge-terminal.com/atlas/how-it-works.html?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=what-is-atlas" rel="noopener noreferrer"&gt;How it works&lt;/a&gt; has every role and step in detail. Short answers to common questions are in the &lt;a href="https://bridge-terminal.com/atlas/faq.html?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=what-is-atlas" rel="noopener noreferrer"&gt;FAQ&lt;/a&gt;. Questions go to &lt;a href="mailto:atlas@bridge-terminal.com"&gt;atlas@bridge-terminal.com&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>nocode</category>
      <category>productivity</category>
    </item>
    <item>
      <title>AI-Built Software Handover: What to Keep in Your Hands</title>
      <dc:creator>Nixon Perinchery</dc:creator>
      <pubDate>Wed, 02 Dec 2026 09:14:10 +0000</pubDate>
      <link>https://dev.to/nixonperinchery/ai-built-software-handover-what-to-keep-in-your-hands-4m75</link>
      <guid>https://dev.to/nixonperinchery/ai-built-software-handover-what-to-keep-in-your-hands-4m75</guid>
      <description>&lt;p&gt;&lt;strong&gt;The short version&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A handover is ready when a stranger could run, change and release your software using only what you hold: the code, the written guide, the accounts and the passwords.&lt;/li&gt;
&lt;li&gt;With an AI coding agent, much of what the team 'knows' sits in short instruction files, so ask for those files in plain text and keep your own copy.&lt;/li&gt;
&lt;li&gt;The best test is cheap: ask someone who has never seen the project to follow your written guide and see where they get stuck.&lt;/li&gt;
&lt;li&gt;Keep the accounts, the code store and the hosting under your own name, not the tool's or an agency's, so no one can lock you out.&lt;/li&gt;
&lt;li&gt;Agent notes are context, not guarantees, so anything that must always happen belongs in a written rule and a check, not only in a note.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If your software was built by an AI coding agent, could someone else take it over tomorrow? Only if you hold four things: the code, a written guide to how it works, the accounts it runs on, and the instructions the agent was working from. This article is a plain AI-built software handover checklist for founders, product owners and agency owners who do not write code.&lt;/p&gt;

&lt;p&gt;Handover sounds like something you do at the end. It is better treated as something you check every month. A project that cannot be handed over is a project you do not fully own.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why does handover matter more with an AI team?
&lt;/h2&gt;

&lt;p&gt;With a human team, a lot of knowledge sits in people's heads. You can at least ask them. An AI agent starts each session fresh. Anthropic's documentation says each Claude Code session begins with a fresh context window, and that instruction files and the agent's own notes carry knowledge from one session to the next. So what the agent "knows" about your project is mostly what is written down.&lt;/p&gt;

&lt;p&gt;That is good news. Written things can be copied, read and moved. But it also means that if the writing is thin, nothing else holds the knowledge. The agent that built your checkout page last week may not remember why it did it that way.&lt;/p&gt;

&lt;p&gt;Your own role changes here too. We cover that in &lt;a href="https://bridge-terminal.com/atlas/blog/your-role-when-ai-builds-your-software/?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=ai-built-software-handover-what-to-keep" rel="noopener noreferrer"&gt;Your Role When AI Builds the Software&lt;/a&gt;. One part of it is being the person who knows where everything is kept.&lt;/p&gt;

&lt;h2&gt;
  
  
  What should I own outright?
&lt;/h2&gt;

&lt;p&gt;Think of your software as a shop. You need the building, the keys and the shop's own manual. Four things matter.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. The code, in a place you control
&lt;/h3&gt;

&lt;p&gt;The code lives in a "repository", which is a folder with a full history of every change. Ask where yours is kept and whose account it sits under. It should be an account that belongs to you or your company, not to a freelancer, an agency or a tool. If you want to understand who legally owns what the agent writes, see &lt;a href="https://bridge-terminal.com/atlas/blog/who-owns-ai-written-code-plain-guide/?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=ai-built-software-handover-what-to-keep" rel="noopener noreferrer"&gt;Who Owns AI-Written Code?&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;A quick test: can you log in and see the full history yourself? If the answer is "I would have to ask someone", you do not hold it yet.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. The accounts the software runs on
&lt;/h3&gt;

&lt;p&gt;Your software also lives somewhere: a hosting account, a domain name, a database, an email sender, a payment provider. List each one. For each, write down who is the owner and who else can get in. The rule is simple: the company is the owner, and people are added as users.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. The secrets, kept safely
&lt;/h3&gt;

&lt;p&gt;Software uses passwords and keys to talk to other services. These should be in a proper store, not in chat messages or documents. Our plain guide, &lt;a href="https://bridge-terminal.com/atlas/blog/api-keys-secrets-ai-built-software-plain-guide/?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=ai-built-software-handover-what-to-keep" rel="noopener noreferrer"&gt;API Keys and Secrets in AI-Built Software&lt;/a&gt;, covers how to keep them safe. For handover, you need to know who can reach them and how you would replace them if someone leaves.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. The written guide
&lt;/h3&gt;

&lt;p&gt;This is the part most teams skip. More below.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is the written guide, and what should be in it?
&lt;/h2&gt;

&lt;p&gt;There are usually two kinds of guide.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One for people.&lt;/strong&gt; This is often called a README. It says what the product does, how to run it on a laptop, how to test it, and how it is released. A newcomer should be able to follow it start to finish.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One for the agent.&lt;/strong&gt; Claude Code reads a file called CLAUDE.md. Anthropic's &lt;a href="https://code.claude.com/docs/en/memory" rel="noopener noreferrer"&gt;memory documentation&lt;/a&gt; describes these as instructions you write to give Claude persistent context for a project, loaded into every session. Claude Code can also read a repository's AGENTS.md file in place of CLAUDE.md. Many other tools read AGENTS.md too. Its &lt;a href="https://agents.md" rel="noopener noreferrer"&gt;own website&lt;/a&gt; describes it as a "README for agents" and says it complements the README written for people. It lists Codex among the tools that support it.&lt;/p&gt;

&lt;p&gt;You do not need to read these files like code. They are ordinary sentences. Open one and ask yourself: would this make sense to a new hire? If yes, it is probably useful. If it is empty, or full of rules that contradict each other, that is a warning sign. We looked at why this causes trouble in &lt;a href="https://bridge-terminal.com/atlas/blog/why-ai-coding-agents-forget-project-memory/?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=ai-built-software-handover-what-to-keep" rel="noopener noreferrer"&gt;Why AI Coding Agents Forget and How to Fix It&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;A useful handover guide answers these plain questions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What does the product do, and for whom?&lt;/li&gt;
&lt;li&gt;Which parts are the most important to the business?&lt;/li&gt;
&lt;li&gt;How do we run it, test it and release it?&lt;/li&gt;
&lt;li&gt;How do we undo a bad release?&lt;/li&gt;
&lt;li&gt;Which accounts and services does it depend on, and who owns each?&lt;/li&gt;
&lt;li&gt;What was decided and why, such as "we chose this payment provider because..."?&lt;/li&gt;
&lt;li&gt;What is known to be broken or unfinished?&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Are the agent's own notes enough?
&lt;/h2&gt;

&lt;p&gt;No. Claude Code can also keep notes of its own. The same documentation describes "auto memory" as notes Claude writes itself, based on your corrections and preferences. Useful, but treat them as a helper, not as your record.&lt;/p&gt;

&lt;p&gt;Two reasons. First, the documentation says Claude treats CLAUDE.md files as context, not enforced configuration. The agent usually follows them, but nothing forces it to. Second, you did not write the auto-memory notes and may never read them. Anything that truly must happen every time, such as "never release without a backup", should be a written rule that you control, and ideally a check that fails loudly when it is skipped.&lt;/p&gt;

&lt;p&gt;So use the agent's notes, but copy the important decisions into a document that a human owns.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do I test whether my handover is real?
&lt;/h2&gt;

&lt;p&gt;Do a dry run. It takes an afternoon and costs little.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Find someone who has not worked on the project. A friendly engineer, a contractor, or a different AI session with no history.&lt;/li&gt;
&lt;li&gt;Give them only what a real successor would get: the code, the guide and the access list.&lt;/li&gt;
&lt;li&gt;Ask them to run the software on their own machine, make one small change, and show you how it would be released.&lt;/li&gt;
&lt;li&gt;Write down every place they got stuck or had to ask you.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Each stuck point is a gap in your guide. Fix the guide, not just the answer. Repeat every few months, and always before you change agency, change tool, or hire your first in-house engineer.&lt;/p&gt;

&lt;h2&gt;
  
  
  What are the warning signs?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Only one person, or one tool, can explain how a release works.&lt;/li&gt;
&lt;li&gt;The code sits in someone else's account.&lt;/li&gt;
&lt;li&gt;Nobody can say where the passwords are kept.&lt;/li&gt;
&lt;li&gt;The guide was last updated when the project began.&lt;/li&gt;
&lt;li&gt;Every question starts with "ask the agent", and the agent's answer is the only record.&lt;/li&gt;
&lt;li&gt;You are not sure whether you could cancel the tool without losing your history.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Any one of these is fixable now. All of them together is a dependence you will pay for later.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Atlas fits
&lt;/h2&gt;

&lt;p&gt;Atlas is a team of AI engineers built on Claude Code. It produces design and architecture documents as HTML or PDF, passes lessons from finished work to later engineers, and never rewrites the history of the main code line. A team can also move to the company's own server, set up in the company's own account, which keeps hosting under your name. A single ready-made handover pack per project is not something Atlas produces today. It is coming to Atlas, built in, so it needs no setup on your side. Until then, use the checklist above and keep your own written guide. You can see how the team works on the &lt;a href="https://bridge-terminal.com/atlas/?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=ai-built-software-handover-what-to-keep" rel="noopener noreferrer"&gt;Atlas home page&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Handover is a test of ownership. If you hold the code, the accounts, the secrets and a guide a newcomer can follow, you can change tools, agencies or people without fear. Start small: list your accounts this week, read your instruction file once, and book the dry run. What you find will tell you what to fix first.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/memory" rel="noopener noreferrer"&gt;How Claude remembers your project (Claude Code docs)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://agents.md" rel="noopener noreferrer"&gt;AGENTS.md: a README for agents&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://bridge-terminal.com/atlas/blog/ai-built-software-handover-what-to-keep/?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=ai-built-software-handover-what-to-keep" rel="noopener noreferrer"&gt;Atlas blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>startup</category>
      <category>beginners</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Claude Code Custom Subagents: Files, Tools and Model Cost</title>
      <dc:creator>Nixon Perinchery</dc:creator>
      <pubDate>Mon, 30 Nov 2026 07:17:06 +0000</pubDate>
      <link>https://dev.to/nixonperinchery/claude-code-custom-subagents-files-tools-and-model-cost-5h6n</link>
      <guid>https://dev.to/nixonperinchery/claude-code-custom-subagents-files-tools-and-model-cost-5h6n</guid>
      <description>&lt;p&gt;&lt;strong&gt;The short version&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A Claude Code custom subagent is one Markdown file with a name, a description and a system prompt, saved in .claude/agents/ so the whole team can share it through version control.&lt;/li&gt;
&lt;li&gt;Each subagent runs in a fresh context with its own tool list and model, and only its result returns to your main conversation.&lt;/li&gt;
&lt;li&gt;Restrict tools with an allowlist, add a PreToolUse hook when you need finer rules, and route routine work to a cheaper model such as Haiku.&lt;/li&gt;
&lt;li&gt;Subagent requests count toward the same usage limits as your main conversation, so a subagent saves context, not plan usage, and each one spends tokens of its own.&lt;/li&gt;
&lt;li&gt;Keep subagents few and sharply described: Claude picks one by its description, and Claude Code warns at startup when custom descriptions together exceed 15,000 tokens.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;How do you create a custom subagent in Claude Code? Write a Markdown file with a &lt;code&gt;name&lt;/code&gt;, a &lt;code&gt;description&lt;/code&gt; and a system prompt, and save it in &lt;code&gt;.claude/agents/&lt;/code&gt; (project) or &lt;code&gt;~/.claude/agents/&lt;/code&gt; (all your projects). Claude then delegates matching tasks to it, in its own context window, with the tools and model you chose.&lt;/p&gt;

&lt;p&gt;This guide covers where the files go, which fields matter, three working examples, how to cut cost, and the limits to know. Everything below comes from the &lt;a href="https://code.claude.com/docs/en/sub-agents" rel="noopener noreferrer"&gt;Claude Code subagents documentation&lt;/a&gt;. Fields and version numbers change, so check that page against your installed version.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is a Claude Code subagent?
&lt;/h2&gt;

&lt;p&gt;A subagent is a specialised assistant that runs in its own context window with a custom system prompt, restricted tool access and independent permissions. When it finishes, its result comes back to your main conversation. That keeps verbose output such as search results, logs and file contents out of the context you are paying to carry.&lt;/p&gt;

&lt;p&gt;Two facts matter for planning:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A subagent starts fresh. It does not see your conversation history. It receives its own system prompt, the delegation message, your CLAUDE.md files (unless you set &lt;code&gt;omitClaudeMd&lt;/code&gt;) and git status.&lt;/li&gt;
&lt;li&gt;Subagent requests count toward the same usage limits as your main conversation. A subagent saves context, not plan usage.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Claude Code also ships built-in subagents. Explore does fast, read-only codebase search, Plan does research while in plan mode, and general-purpose handles multi-step work with every tool available to subagents. You can block a specific one in settings with &lt;code&gt;permissions.deny&lt;/code&gt;, for example &lt;code&gt;Agent(Explore)&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where do subagent files go?
&lt;/h2&gt;

&lt;p&gt;When two subagents share a name, the higher-priority location wins:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Location&lt;/th&gt;
&lt;th&gt;Scope&lt;/th&gt;
&lt;th&gt;Priority&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Managed settings&lt;/td&gt;
&lt;td&gt;Organisation-wide&lt;/td&gt;
&lt;td&gt;1 (highest)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;--agents&lt;/code&gt; CLI flag&lt;/td&gt;
&lt;td&gt;Current session&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;.claude/agents/&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Current project&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;~/.claude/agents/&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;All your projects&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Plugin &lt;code&gt;agents/&lt;/code&gt; directory&lt;/td&gt;
&lt;td&gt;Where the plugin is enabled&lt;/td&gt;
&lt;td&gt;5 (lowest)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Claude Code scans these directories recursively, so subfolders are fine. Identity comes only from the &lt;code&gt;name&lt;/code&gt; field, so keep names unique. Changes are detected within seconds, though files in directories added with &lt;code&gt;--add-dir&lt;/code&gt; need a restart.&lt;/p&gt;

&lt;p&gt;For a team, commit &lt;code&gt;.claude/agents/&lt;/code&gt; to the repository. The docs list "check into version control" among their best practices, and it is the simplest way to make every engineer's agent behave the same. To share across repositories, &lt;a href="https://code.claude.com/docs/en/plugins/components.md#agents" rel="noopener noreferrer"&gt;package subagents in a plugin&lt;/a&gt;. Plugin subagents ignore &lt;code&gt;hooks&lt;/code&gt;, &lt;code&gt;mcpServers&lt;/code&gt; and &lt;code&gt;permissionMode&lt;/code&gt;, so put hooks in the plugin's own hooks instead.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you write a custom subagent?
&lt;/h2&gt;

&lt;p&gt;Only &lt;code&gt;name&lt;/code&gt; and &lt;code&gt;description&lt;/code&gt; are required. Multi-word field names are camelCase, and unrecognised fields are ignored without an error, so a typo fails quietly. Run &lt;code&gt;claude --debug&lt;/code&gt; and search the log for &lt;code&gt;does not recognize or apply&lt;/code&gt; to find them.&lt;/p&gt;

&lt;p&gt;The fields you will use most:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&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;description&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Tells Claude when to delegate to this subagent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;tools&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Allowlist of tools&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;disallowedTools&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Denylist, applied before &lt;code&gt;tools&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;model&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;sonnet&lt;/code&gt;, &lt;code&gt;opus&lt;/code&gt;, &lt;code&gt;haiku&lt;/code&gt;, &lt;code&gt;fable&lt;/code&gt;, a full model ID, or &lt;code&gt;inherit&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;permissionMode&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;default&lt;/code&gt;, &lt;code&gt;acceptEdits&lt;/code&gt;, &lt;code&gt;auto&lt;/code&gt;, &lt;code&gt;dontAsk&lt;/code&gt;, &lt;code&gt;bypassPermissions&lt;/code&gt; or &lt;code&gt;plan&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;maxTurns&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Turn limit; output is marked partial when it is reached&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;skills&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Skills whose full content is preloaded at startup&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;hooks&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Lifecycle hooks scoped to this subagent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;isolation&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;worktree&lt;/code&gt; runs it in a temporary git worktree&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;memory&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Persistent memory: &lt;code&gt;user&lt;/code&gt;, &lt;code&gt;project&lt;/code&gt; or &lt;code&gt;local&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;effort&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;low&lt;/code&gt;, &lt;code&gt;medium&lt;/code&gt;, &lt;code&gt;high&lt;/code&gt;, &lt;code&gt;xhigh&lt;/code&gt; or &lt;code&gt;max&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Example 1: a read-focused reviewer
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;---
name: code-reviewer
description: "Expert code review specialist. Proactively reviews code for quality, security, and maintainability. Use immediately after writing or modifying code."
tools: Read, Grep, Glob, Bash
model: inherit
---

You are a senior code reviewer ensuring high standards of code quality and security.

When invoked:
1. Run git diff to see recent changes
2. Focus on modified files
3. Begin review immediately

Provide feedback organized by priority:
&lt;span class="k"&gt;- &lt;/span&gt;Critical issues (must fix)
&lt;span class="k"&gt;- &lt;/span&gt;Warnings (should fix)
&lt;span class="k"&gt;- &lt;/span&gt;Suggestions (consider improving)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is shortened from the docs' example. Note the docs' own caveat: leaving out Edit and Write does not make the reviewer read-only, because it can still change files through Bash. If that matters, use a hook (Example 3).&lt;/p&gt;

&lt;h3&gt;
  
  
  Example 2: a debugger that may edit
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;---
name: debugger
description: Debugging specialist for errors, test failures, and unexpected behavior. Use proactively when encountering any issues.
tools: Read, Edit, Bash, Grep, Glob
---

You are an expert debugger specializing in root cause analysis.

When invoked:
1. Capture error message and stack trace
2. Identify reproduction steps
3. Isolate the failure location
4. Implement minimal fix
5. Verify solution works
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The difference from the reviewer is one word in &lt;code&gt;tools&lt;/code&gt;: &lt;code&gt;Edit&lt;/code&gt;. Give a subagent the narrowest list that lets it finish its job.&lt;/p&gt;

&lt;h3&gt;
  
  
  Example 3: block writes with a hook
&lt;/h3&gt;

&lt;p&gt;When a tools list is too coarse, add a &lt;code&gt;PreToolUse&lt;/code&gt; hook to the subagent. This definition allows Bash but runs a script before every command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;---
name: db-reader
description: Execute read-only database queries. Use when analyzing data or generating reports.
tools: Bash
hooks:
  PreToolUse:
    &lt;span class="k"&gt;- &lt;/span&gt;matcher: "Bash"
      hooks:
        &lt;span class="k"&gt;- &lt;/span&gt;type: command
          command: "./scripts/validate-readonly-query.sh"
---

You are a database analyst with read-only access. Execute SELECT queries only.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The script reads the hook's JSON from stdin and exits with code 2 to block:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#!/bin/bash&lt;/span&gt;
&lt;span class="nv"&gt;INPUT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;cat&lt;span class="o"&gt;)&lt;/span&gt;
&lt;span class="nv"&gt;COMMAND&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"$INPUT"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; jq -r &lt;span class="s1"&gt;'.tool_input.command // empty'&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
&lt;span class="o"&gt;[&lt;/span&gt; -z &lt;span class="s2"&gt;"$COMMAND"&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;exit&lt;/span&gt; 0

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"$COMMAND"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; grep -iE &lt;span class="s1"&gt;'\b(INSERT|UPDATE|DELETE|DROP|CREATE|ALTER|TRUNCATE|REPLACE|MERGE)\b'&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; /dev/null&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
  &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Blocked: Write operations not allowed. Use SELECT queries only."&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;amp;&lt;/span&gt;2
  &lt;span class="nb"&gt;exit&lt;/span&gt; 2
&lt;span class="k"&gt;fi&lt;/span&gt;
&lt;span class="nb"&gt;exit&lt;/span&gt; 0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run &lt;code&gt;chmod +x&lt;/code&gt; on the script on macOS or Linux, or the hook fails instead of blocking. The docs call the hook a backstop: the prompt already tells the subagent to refuse writes, and the hook catches an attempt anyway. A keyword filter like this is crude, so treat it as a guard rail, not a security boundary.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you invoke a subagent?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Automatically.&lt;/strong&gt; Claude delegates by matching the task to each description. Phrases like "use proactively" in the description encourage it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;By name in plain language:&lt;/strong&gt; &lt;code&gt;Use the test-runner subagent to fix failing tests&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;With an @-mention:&lt;/strong&gt; &lt;code&gt;@"code-reviewer (agent)" look at the auth changes&lt;/code&gt;, or type &lt;code&gt;@agent-&amp;lt;name&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;As the whole session:&lt;/strong&gt; &lt;code&gt;claude --agent code-reviewer&lt;/code&gt;. To make it a project default, set &lt;code&gt;"agent": "code-reviewer"&lt;/code&gt; in &lt;code&gt;.claude/settings.json&lt;/code&gt;. The flag overrides the setting.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For one-off or scripted use, &lt;code&gt;--agents&lt;/code&gt; takes JSON for the current session:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude --agents &lt;span class="s1"&gt;'{
  "code-reviewer": {
    "description": "Expert code reviewer. Use proactively after code changes.",
    "prompt": "You are a senior code reviewer. Focus on code quality, security, and best practices.",
    "tools": ["Read", "Grep", "Glob", "Bash"],
    "model": "sonnet"
  }
}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In non-interactive mode, &lt;code&gt;--agents&lt;/code&gt; also accepts a path to a JSON file, for example &lt;code&gt;claude -p --agents ./agents.json "Review my changes"&lt;/code&gt;. The docs say the file form needs v2.1.281 or later, and an interactive session refuses a file path.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do subagents affect cost?
&lt;/h2&gt;

&lt;p&gt;Subagents are a context tool first. Used well they cut cost, because noisy work such as a long log read stays in the subagent and you carry only its result. Used carelessly they add cost: the docs warn that running many subagents that each return detailed results can consume significant context, and each subagent spends tokens of its own while it runs.&lt;/p&gt;

&lt;p&gt;Practical levers from the docs:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Pick the model per subagent.&lt;/strong&gt; Claude Code uses the first of these that applies: the per-invocation model, then the &lt;code&gt;model&lt;/code&gt; field, then the &lt;code&gt;CLAUDE_CODE_SUBAGENT_MODEL&lt;/code&gt; environment variable, then the main conversation's model. Set &lt;code&gt;model: haiku&lt;/code&gt; on routine search or log-reading agents. To force one model onto every subagent, set &lt;code&gt;CLAUDE_CODE_SUBAGENT_MODEL&lt;/code&gt; and &lt;code&gt;CLAUDE_CODE_SUBAGENT_MODEL_FORCE&lt;/code&gt; to &lt;code&gt;1&lt;/code&gt; (v2.1.257 or later).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Skip what the agent does not need.&lt;/strong&gt; &lt;code&gt;omitClaudeMd: true&lt;/code&gt; leaves out your CLAUDE.md files for a narrow helper.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cap runaway work.&lt;/strong&gt; &lt;code&gt;maxTurns&lt;/code&gt; stops a subagent after a set number of turns.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Compact earlier for long readers.&lt;/strong&gt; &lt;code&gt;autoCompactWindow&lt;/code&gt; takes a token count of &lt;code&gt;100000&lt;/code&gt; or more, written as a plain integer: write &lt;code&gt;200000&lt;/code&gt;, not &lt;code&gt;200k&lt;/code&gt;, which is read as 200 and ignored. It needs v2.1.296 or later.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep the results short.&lt;/strong&gt; Ask the subagent in its system prompt to report only what the main conversation needs.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What are the limits?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Subagents can spawn subagents. Nesting is on by default, up to three layers below the main conversation. Set &lt;code&gt;CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH&lt;/code&gt; to change the limit, or to &lt;code&gt;1&lt;/code&gt; to turn nesting off.&lt;/li&gt;
&lt;li&gt;By default, 20 subagents can run at once. &lt;code&gt;CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS&lt;/code&gt; changes that.&lt;/li&gt;
&lt;li&gt;When the combined descriptions of your custom subagents exceed 15,000 tokens, Claude Code shows a startup warning. Keep descriptions short and move detail into the system prompt.&lt;/li&gt;
&lt;li&gt;If the main conversation is in &lt;code&gt;bypassPermissions&lt;/code&gt;, &lt;code&gt;acceptEdits&lt;/code&gt; or auto mode, the subagent uses that mode and ignores its own &lt;code&gt;permissionMode&lt;/code&gt;. If the main conversation is in plan mode, the subagent stays in plan mode. Do not rely on &lt;code&gt;permissionMode&lt;/code&gt; as a fence.&lt;/li&gt;
&lt;li&gt;Subagent transcripts are deleted after 30 days by default (the &lt;code&gt;cleanupPeriodDays&lt;/code&gt; setting).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A related feature is the fork, a subagent that inherits the whole conversation so far. Because a fork's system prompt and tool definitions match its parent's, its first request reuses the parent's prompt cache, so it costs less than a fresh subagent when the task needs the same context. Fork mode is on by default from v2.1.302. You can start one yourself with &lt;code&gt;/subtask&lt;/code&gt; followed by a task.&lt;/p&gt;

&lt;p&gt;If subagents edit files in parallel, give them &lt;code&gt;isolation: worktree&lt;/code&gt; so their edits land in a separate git worktree.&lt;/p&gt;

&lt;h2&gt;
  
  
  A short checklist for your team
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Start with two subagents, a reviewer and a debugger, not ten.&lt;/li&gt;
&lt;li&gt;Write each description so it singles out one job; overlapping descriptions make routing unpredictable.&lt;/li&gt;
&lt;li&gt;Give each the shortest tool list that works, and add a hook where Bash must be constrained.&lt;/li&gt;
&lt;li&gt;Set &lt;code&gt;model&lt;/code&gt; deliberately: cheaper for reading, stronger for judgement.&lt;/li&gt;
&lt;li&gt;Commit &lt;code&gt;.claude/agents/&lt;/code&gt; and review changes to it like code.&lt;/li&gt;
&lt;li&gt;Watch usage for a week before adding more.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Custom subagents are cheap to write and easy to share: one file, a sharp description, a short tool list and a deliberate model. They cut context, not plan usage, so measure before you multiply them.&lt;/p&gt;

&lt;p&gt;Teams that run many Claude Code sessions at once meet the same trade-offs at larger scale. &lt;a href="https://bridge-terminal.com/atlas/?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=claude-code-custom-subagents-tools-model-cost" rel="noopener noreferrer"&gt;Atlas&lt;/a&gt; is built on Claude Code and gives each engineer its own session, written role and model and effort for that role; its own helpers that read files run on Haiku. Managing subagent definition files is not something Atlas does today; that is coming to Atlas, built in, so it needs no setup.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/sub-agents" rel="noopener noreferrer"&gt;Create custom subagents - Claude Code docs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/plugins/components.md#agents" rel="noopener noreferrer"&gt;Add components to a plugin: agents - Claude Code docs&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://bridge-terminal.com/atlas/blog/claude-code-custom-subagents-tools-model-cost/?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=claude-code-custom-subagents-tools-model-cost" rel="noopener noreferrer"&gt;Atlas blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>claudecode</category>
      <category>ai</category>
      <category>agents</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Security Review of AI-Built Software: What to Ask</title>
      <dc:creator>Nixon Perinchery</dc:creator>
      <pubDate>Fri, 27 Nov 2026 06:36:05 +0000</pubDate>
      <link>https://dev.to/nixonperinchery/security-review-of-ai-built-software-what-to-ask-5and</link>
      <guid>https://dev.to/nixonperinchery/security-review-of-ai-built-software-what-to-ask-5and</guid>
      <description>&lt;p&gt;&lt;strong&gt;The short version&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A security review of AI-built software is a separate check, done by someone or something other than the author, that looks for ways the product could be misused or broken into.&lt;/li&gt;
&lt;li&gt;Ask three things before launch: what was checked, what was not checked, and who fixes what turns up.&lt;/li&gt;
&lt;li&gt;The areas that matter most are sign-in, who can see whose data, payments, stored secrets and the outside packages the software relies on.&lt;/li&gt;
&lt;li&gt;Automatic AI security reviews help but can miss problems, and a review of the code alone does not test the live product.&lt;/li&gt;
&lt;li&gt;You do not need to read code to run this well: you need written findings, a clear list of gaps and a decision on each one.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If an AI coding agent builds your product, how do you know it is secure? You ask for a security review: a separate check, by a different reviewer than the one who wrote the code, that looks for ways the product could be misused or broken into. You do not need to read code to run it well. You need to ask the right questions and insist on written answers.&lt;/p&gt;

&lt;p&gt;This guide explains what a security review covers, what it cannot cover, and the questions a founder, product owner or tester can ask.&lt;/p&gt;

&lt;h2&gt;
  
  
  Is AI-written code secure?
&lt;/h2&gt;

&lt;p&gt;Sometimes, and not always. AI-written code is not secure or insecure by nature. It is code, and like code written by people it can contain mistakes. The difference is speed: an agent can produce a lot of working-looking software quickly, so there is more to check in less time.&lt;/p&gt;

&lt;p&gt;Anthropic is direct about who carries the responsibility. Its &lt;a href="https://code.claude.com/docs/en/security" rel="noopener noreferrer"&gt;Claude Code security page&lt;/a&gt; says: "You're responsible for reviewing proposed code and commands for safety before approval." It also says that while its protections "significantly reduce risk," no system "is completely immune to all attacks."&lt;/p&gt;

&lt;p&gt;So the working assumption should be: the agent can help find problems, but a person owns the decision to ship.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does a security review actually look at?
&lt;/h2&gt;

&lt;p&gt;A security review asks one question: if someone wanted to misuse this product, where could they get in? A common reference for the answers is the &lt;a href="https://top10.owasp.org/2025/0x00_2025-Introduction" rel="noopener noreferrer"&gt;OWASP Top 10:2025&lt;/a&gt;, a public list of the most common kinds of web application weakness. Its ten entries are:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Broken access control&lt;/li&gt;
&lt;li&gt;Security misconfiguration&lt;/li&gt;
&lt;li&gt;Software supply chain failures&lt;/li&gt;
&lt;li&gt;Cryptographic failures&lt;/li&gt;
&lt;li&gt;Injection&lt;/li&gt;
&lt;li&gt;Insecure design&lt;/li&gt;
&lt;li&gt;Authentication failures&lt;/li&gt;
&lt;li&gt;Software or data integrity failures&lt;/li&gt;
&lt;li&gt;Security logging and alerting failures&lt;/li&gt;
&lt;li&gt;Mishandling of exceptional conditions&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You do not need to memorise these. Here is what a few of them mean in everyday terms:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Broken access control:&lt;/strong&gt; a customer can see another customer's invoices by changing a number in the web address.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Authentication failures:&lt;/strong&gt; sign-in that can be guessed, bypassed or never expires.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Injection:&lt;/strong&gt; a form field that lets an attacker slip in instructions the software then obeys.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Supply chain failures:&lt;/strong&gt; the software relies on outside packages (ready-made code libraries), and one of them has a known flaw.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Security misconfiguration:&lt;/strong&gt; something left switched on that should be off, such as a test account or a public storage folder.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A good review checks these against your product, not in general.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which parts of my product need the closest look?
&lt;/h2&gt;

&lt;p&gt;Not every screen carries the same risk. Ask for extra attention on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Sign-in and sessions.&lt;/strong&gt; Who gets in, and how long do they stay in?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Who can see whose data.&lt;/strong&gt; If you have more than one customer or role, test that each can only reach their own.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Payments.&lt;/strong&gt; Anything that moves money or stores payment details.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Secrets.&lt;/strong&gt; Passwords and keys the software uses to talk to other services. They should never sit in the code itself.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Outside text.&lt;/strong&gt; Anything the software or the agent reads from the outside world, such as a web page or an email, which could carry hidden instructions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Packages.&lt;/strong&gt; The ready-made code libraries your product depends on.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What can automatic AI security reviews do?
&lt;/h2&gt;

&lt;p&gt;Claude Code has tools that review code for security automatically. Anthropic's &lt;a href="https://code.claude.com/docs/en/security-guidance.md" rel="noopener noreferrer"&gt;security guidance plugin&lt;/a&gt; is one. According to its documentation, it reviews Claude's own changes at three points: on each file edit, at the end of each turn, and on each commit or push Claude makes. The first is a quick pattern match with no AI involved. The end-of-turn and commit reviews run as "a separate Claude call with a fresh context," so the reviewer does not grade its own work. Anthropic lists problems it can catch, such as authorization bypass, injection and weak cryptography.&lt;/p&gt;

&lt;p&gt;There is also an on-demand command, &lt;code&gt;/security-review&lt;/code&gt;, which runs a security pass over the changes on the current branch.&lt;/p&gt;

&lt;p&gt;Useful, but read the limits Anthropic states:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The plugin does not block anything. Its findings go back to the writing Claude as instructions, and Anthropic says "the review model can miss issues."&lt;/li&gt;
&lt;li&gt;It is described as "one layer of defense in depth, not a complete security solution."&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;/security-review&lt;/code&gt; covers only the changes on the current branch, and reviews read the source code, "not a running site or deployed service."&lt;/li&gt;
&lt;li&gt;The end-of-turn and commit reviews spend usage that counts toward your plan like any other Claude request, so security checking is not free.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In plain terms: an AI reviewer reads the code carefully, but nobody has yet tried to use the live product the way an attacker would. Keep that gap in mind when someone says "it passed review."&lt;/p&gt;

&lt;h2&gt;
  
  
  What questions should I ask before launch?
&lt;/h2&gt;

&lt;p&gt;Use this list with your agency, your engineer or your AI team. Ask for the answers in writing.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Who or what reviewed the security, and was it someone other than the author?&lt;/strong&gt; A review by the same session that wrote the code is weaker.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What exactly was checked?&lt;/strong&gt; Ask for a list of areas: sign-in, data access, payments, secrets, packages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What was not checked?&lt;/strong&gt; This is the most useful question. An honest answer names gaps such as "the live site was not tested" or "payments not reviewed."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Were there findings, and what happened to each?&lt;/strong&gt; Every finding should be fixed, accepted with a reason, or postponed with a date.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Are passwords or keys stored in the code?&lt;/strong&gt; They should not be.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Do the packages have known serious problems?&lt;/strong&gt; Ask for a scan result, and for who looks again after launch.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Who decides to ship if something is open?&lt;/strong&gt; You should know, and it should be a named person.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If an answer is vague, treat it as "not checked."&lt;/p&gt;

&lt;h2&gt;
  
  
  How can I check this myself without reading code?
&lt;/h2&gt;

&lt;p&gt;You can do a fair amount without reading any code:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Try the boundaries as a tester.&lt;/strong&gt; Sign in as one customer and try to open another customer's page. Try an expired session. Try an action your role should not allow.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Read the findings, not the code.&lt;/strong&gt; Ask for each finding in a sentence: what the problem was, how bad it is, who fixed it, how it was re-checked.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Look for a coverage view.&lt;/strong&gt; A good review shows what has never been reviewed, not only what passed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Re-check after changes.&lt;/strong&gt; Security is not a one-time stamp. When sign-in or payments change, those parts need a fresh look.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep a human decision at the gate.&lt;/strong&gt; Releasing to real customers should wait for a person.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How does Atlas handle security review?
&lt;/h2&gt;

&lt;p&gt;Atlas, a team of AI engineers built on Claude Code, reviews every build as it finishes, and before a production release it reviews everything going out together, including security when switched on. A change touching sign-in, payments or stored secrets gets a security look at once. Its Security screen leads with what has never been reviewed and keeps a coverage ledger of 162 attack classes. Its security scan looks for passwords or keys committed in what changed on main and for high or critical package advisories. Production go-lives still wait for you. The Atlas home page is at &lt;a href="https://bridge-terminal.com/atlas/?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=security-review-ai-built-software-what-to-ask" rel="noopener noreferrer"&gt;/atlas/&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;You cannot outsource responsibility for security, but you can run the process without writing code. Ask who reviewed, what was checked and what was not. Focus on sign-in, data access, payments, secrets and packages. Treat automatic AI reviews as a helpful layer, not a guarantee, and keep a person in charge of the final go-ahead. When the answer to "what was not checked?" is written down, you can decide with open eyes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/security" rel="noopener noreferrer"&gt;Claude Code security&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/security-guidance.md" rel="noopener noreferrer"&gt;Catch security issues as Claude writes code (security guidance plugin)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://top10.owasp.org/2025/0x00_2025-Introduction" rel="noopener noreferrer"&gt;OWASP Top 10:2025 introduction&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://bridge-terminal.com/atlas/blog/security-review-ai-built-software-what-to-ask/?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=security-review-ai-built-software-what-to-ask" rel="noopener noreferrer"&gt;Atlas blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>startup</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Claude Code MCP Servers: Scopes, Security and Context Cost</title>
      <dc:creator>Nixon Perinchery</dc:creator>
      <pubDate>Wed, 25 Nov 2026 06:37:18 +0000</pubDate>
      <link>https://dev.to/nixonperinchery/claude-code-mcp-servers-scopes-security-and-context-cost-314</link>
      <guid>https://dev.to/nixonperinchery/claude-code-mcp-servers-scopes-security-and-context-cost-314</guid>
      <description>&lt;p&gt;&lt;strong&gt;The short version&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Add an MCP server to Claude Code with claude mcp add, and choose a scope: local (default, private to you), project (a .mcp.json shared through git) or user (all your projects).&lt;/li&gt;
&lt;li&gt;Keep credentials out of .mcp.json by using ${VAR} expansion, so the file is safe to commit and each engineer supplies their own secret.&lt;/li&gt;
&lt;li&gt;Project servers need approval in interactive sessions, but claude -p loads them without asking, so scripts and CI need an explicit block list or strict config.&lt;/li&gt;
&lt;li&gt;Tool search defers MCP tool definitions by default, so more servers cost little context, but tool output is still capped at 25,000 tokens by default.&lt;/li&gt;
&lt;li&gt;Anthropic does not security-audit or manage MCP servers; treat any server that fetches outside content as a prompt injection risk, and use allowlists or a managed config if a team needs control.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To add an MCP server to Claude Code, run &lt;code&gt;claude mcp add&lt;/code&gt; with a transport, a name and a URL or command, then choose where the setting lives: local, project or user scope. Put shared servers in a &lt;code&gt;.mcp.json&lt;/code&gt; file at the project root, keep secrets in environment variables, and let tool search keep the context cost low. This guide covers the commands, the scopes, the security checks and the limits, as documented in &lt;a href="https://code.claude.com/docs/en/mcp" rel="noopener noreferrer"&gt;Anthropic's Claude Code MCP reference&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;MCP (Model Context Protocol) servers give the agent tools it does not have by default: an issue tracker, a database, a docs search. They also add risk and context cost, so it is worth setting them up deliberately instead of pasting commands from a README.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do I add an MCP server to Claude Code?
&lt;/h2&gt;

&lt;p&gt;There are three common transports. HTTP is the recommended one for remote services, SSE is deprecated, and stdio runs a local process.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;## Remote HTTP server&lt;/span&gt;
claude mcp add --transport http notion https://mcp.notion.com/mcp

&lt;span class="c"&gt;## Remote server with a header&lt;/span&gt;
claude mcp add --transport http secure-api https://api.example.com/mcp \
  --header &lt;span class="s2"&gt;"Authorization: Bearer your-token"&lt;/span&gt;

&lt;span class="c"&gt;## Local stdio server, with an environment variable&lt;/span&gt;
claude mcp add --env &lt;span class="nv"&gt;AIRTABLE_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;YOUR_KEY --transport stdio airtable \
  -- npx -y airtable-mcp-server
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two details trip people up. For stdio, the &lt;code&gt;--&lt;/code&gt; separates Claude's own options from the server command, and everything after it is passed to the server untouched. And &lt;code&gt;--env&lt;/code&gt; takes &lt;code&gt;KEY=value&lt;/code&gt; pairs, so if the server name comes straight after &lt;code&gt;--env&lt;/code&gt;, the CLI reads the name as another pair and rejects it. Put another option, such as &lt;code&gt;--transport stdio&lt;/code&gt;, between &lt;code&gt;--env&lt;/code&gt; and the name.&lt;/p&gt;

&lt;p&gt;WebSocket servers cannot be added with &lt;code&gt;--transport&lt;/code&gt;. Use &lt;code&gt;claude mcp add-json &amp;lt;name&amp;gt; '{"type":"ws","url":"wss://..."}'&lt;/code&gt; instead.&lt;/p&gt;

&lt;p&gt;Manage what you have added with these commands:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp list
claude mcp get notion
claude mcp remove notion
claude mcp login sentry     &lt;span class="c"&gt;# OAuth from the shell&lt;/span&gt;
claude mcp &lt;span class="nb"&gt;logout&lt;/span&gt; sentry    &lt;span class="c"&gt;# clear stored credentials&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Inside a session, &lt;code&gt;/mcp&lt;/code&gt; shows server status and lets you turn a server off without removing it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which scope should an MCP server use?
&lt;/h2&gt;

&lt;p&gt;Scope decides who gets the server. The default is local.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Scope&lt;/th&gt;
&lt;th&gt;Loads in&lt;/th&gt;
&lt;th&gt;Shared&lt;/th&gt;
&lt;th&gt;Stored in&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Local (default)&lt;/td&gt;
&lt;td&gt;Current project only&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;&lt;code&gt;~/.claude.json&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Project&lt;/td&gt;
&lt;td&gt;Current project&lt;/td&gt;
&lt;td&gt;Yes, via git&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;.mcp.json&lt;/code&gt; in the project root&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;User&lt;/td&gt;
&lt;td&gt;All your projects&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;&lt;code&gt;~/.claude.json&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add --transport http stripe --scope &lt;span class="kd"&gt;local&lt;/span&gt; https://mcp.stripe.com
claude mcp add --transport http shared-server --scope project https://example.com/mcp
claude mcp add --transport http hubspot --scope user https://mcp.hubspot.com/anthropic
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A practical split: servers the whole team needs to do the job (the issue tracker, the staging database reader) go in project scope. Anything experimental or tied to your own account stays local or user.&lt;/p&gt;

&lt;p&gt;When the same server name is defined in more than one place, the order is local, then project, then user, then plugin-provided servers, then claude.ai connectors. The whole entry from the winning source is used. Fields are not merged, so a local override replaces the project entry completely.&lt;/p&gt;

&lt;h2&gt;
  
  
  What goes in a shared .mcp.json?
&lt;/h2&gt;

&lt;p&gt;A project-scope server is written to &lt;code&gt;.mcp.json&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"shared-server"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"http"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://example.com/mcp"&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Always include &lt;code&gt;type&lt;/code&gt; for a remote server. A &lt;code&gt;url&lt;/code&gt; entry with no &lt;code&gt;type&lt;/code&gt; is read as stdio and skipped.&lt;/p&gt;

&lt;h3&gt;
  
  
  Keep secrets out with variable expansion
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;.mcp.json&lt;/code&gt; is committed, so never put a token in it. Claude Code expands &lt;code&gt;${VAR}&lt;/code&gt; and &lt;code&gt;${VAR:-default}&lt;/code&gt; in &lt;code&gt;command&lt;/code&gt;, &lt;code&gt;args&lt;/code&gt;, &lt;code&gt;env&lt;/code&gt;, &lt;code&gt;url&lt;/code&gt; and &lt;code&gt;headers&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"api-server"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"http"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"${API_BASE_URL:-https://api.example.com}/mcp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"headers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Bearer ${API_KEY}"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each engineer sets &lt;code&gt;API_KEY&lt;/code&gt; in their own shell. Some behaviours to know:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An unset variable with no default leaves the literal &lt;code&gt;${VAR}&lt;/code&gt; text in place and shows a warning in &lt;code&gt;claude mcp list&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;A variable set to an empty string counts as set, so &lt;code&gt;:-default&lt;/code&gt; does not apply.&lt;/li&gt;
&lt;li&gt;In remote &lt;code&gt;url&lt;/code&gt; and &lt;code&gt;headers&lt;/code&gt;, credential variables such as &lt;code&gt;ANTHROPIC_API_KEY&lt;/code&gt;, &lt;code&gt;ANTHROPIC_AUTH_TOKEN&lt;/code&gt;, &lt;code&gt;AWS_BEARER_TOKEN_BEDROCK&lt;/code&gt;, &lt;code&gt;HTTPS_PROXY&lt;/code&gt; and &lt;code&gt;NPM_TOKEN&lt;/code&gt; read as empty. A cloned project therefore cannot send your own credentials to a server it names. To pass one on purpose, copy it into a variable with your own name and reference that.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Is a project MCP server safe to trust?
&lt;/h2&gt;

&lt;p&gt;Not automatically. Anthropic reviews connectors before listing them in its directory, but does not security-audit or manage any MCP server. A server that returns a ticket body or a web page is handing untrusted text to the agent, which is how prompt injection reaches it.&lt;/p&gt;

&lt;p&gt;Claude Code has some guardrails:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Interactive sessions ask for approval before using servers from a project's &lt;code&gt;.mcp.json&lt;/code&gt;. Reset your choices with &lt;code&gt;claude mcp reset-project-choices&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;A cloned repository cannot approve its own servers. &lt;code&gt;enableAllProjectMcpServers&lt;/code&gt; and &lt;code&gt;enabledMcpjsonServers&lt;/code&gt; in a project's &lt;code&gt;.claude/settings.json&lt;/code&gt; are ignored in an untrusted folder, and the server stays at "Pending approval".&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The gap is automation. &lt;code&gt;claude -p&lt;/code&gt;, Agent SDK and cloud sessions load project servers without an approval prompt. If you run the agent in scripts or CI, block servers explicitly in one of three ways:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Add the server to &lt;code&gt;disabledMcpjsonServers&lt;/code&gt;, which blocks it in every permission mode.&lt;/li&gt;
&lt;li&gt;Exclude project settings with &lt;code&gt;--setting-sources&lt;/code&gt; (or &lt;code&gt;settingSources&lt;/code&gt; in the SDK).&lt;/li&gt;
&lt;li&gt;Start with &lt;code&gt;--strict-mcp-config&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Pair this with permission rules for the tools themselves, since MCP tools go through the same allow and deny system as built-in ones.&lt;/p&gt;

&lt;h3&gt;
  
  
  Controls for a team or organisation
&lt;/h3&gt;

&lt;p&gt;By default anyone can connect any server. Administrators can change that with &lt;a href="https://code.claude.com/docs/en/managed-mcp" rel="noopener noreferrer"&gt;managed MCP configuration&lt;/a&gt;. The main patterns:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;managed-mcp.json&lt;/code&gt; deploys a fixed set and takes exclusive control. On Linux it lives at &lt;code&gt;/etc/claude-code/managed-mcp.json&lt;/code&gt;. An empty &lt;code&gt;mcpServers&lt;/code&gt; map disables MCP, apart from a few servers that still load under exclusive control.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;managedMcpServers&lt;/code&gt; in managed settings gives everyone a set of remote servers while users keep their own. It needs Claude Code v2.1.259 or later.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;allowedMcpServers&lt;/code&gt; and &lt;code&gt;deniedMcpServers&lt;/code&gt; filter what users configure. Add &lt;code&gt;allowManagedMcpServersOnly: true&lt;/code&gt; to make the managed allowlist the only one that counts.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"allowManagedMcpServersOnly"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"allowedMcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"serverUrl"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://api.githubcopilot.com/*"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"serverUrl"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://*.internal.example.com/*"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Match by &lt;code&gt;serverUrl&lt;/code&gt; or &lt;code&gt;serverCommand&lt;/code&gt;, not &lt;code&gt;serverName&lt;/code&gt;. The docs state that a name is the label a user assigns, so a user can call any server &lt;code&gt;github&lt;/code&gt;; it is not a security control. The denylist is checked first and nothing overrides a match.&lt;/p&gt;

&lt;h2&gt;
  
  
  How much context do MCP servers cost?
&lt;/h2&gt;

&lt;p&gt;Every tool definition a server exposes can take space in the context window. Claude Code handles this with tool search, which is on by default: only tool names and server instructions load at session start, and definitions are fetched when the agent needs them. There is no fixed per-server tool cap; the practical limit is your context budget.&lt;/p&gt;

&lt;p&gt;You can tune it with &lt;code&gt;ENABLE_TOOL_SEARCH&lt;/code&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;th&gt;Behaviour&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;unset or &lt;code&gt;true&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;All MCP tools deferred and loaded on demand&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;auto&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Tools load upfront while their definitions total under 10% of the context window; tool search turns on at 10% or more&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;auto:N&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Same, with your own percentage, 0 to 100&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;false&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;All MCP tools loaded upfront&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;ENABLE_TOOL_SEARCH&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;auto:5 claude
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Tool search applies on Opus 4, Sonnet 4, Haiku 4.5 and later models; on earlier models everything loads upfront. If a server has a few tools the agent needs on every turn, set &lt;code&gt;"alwaysLoad": true&lt;/code&gt; on that server in &lt;code&gt;.mcp.json&lt;/code&gt; so they skip the search step. Use it sparingly, since each upfront tool uses context. Run &lt;code&gt;/context&lt;/code&gt; in a session to see which tools are loaded and which are deferred.&lt;/p&gt;

&lt;p&gt;If you write servers, keep descriptions short and put the important words first. Server instructions and the description of an upfront tool are cut at 4,096 characters; a tool loaded through search is cut at 16,384.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happens when a tool returns a huge result?
&lt;/h2&gt;

&lt;p&gt;Output is capped separately from definitions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The transcript viewer warns when any MCP tool output exceeds 10,000 tokens.&lt;/li&gt;
&lt;li&gt;The default maximum is 25,000 tokens, adjustable with &lt;code&gt;MAX_MCP_OUTPUT_TOKENS&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;A successful text result over the limit is saved to a file in the session's &lt;code&gt;tool-results&lt;/code&gt; directory under &lt;code&gt;~/.claude/projects/&lt;/code&gt;, and the conversation gets the file path instead.&lt;/li&gt;
&lt;li&gt;Independent of tokens, a text result over 50,000 characters is also saved to a file unless the tool sets &lt;code&gt;anthropic/maxResultSizeChars&lt;/code&gt;.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;MAX_MCP_OUTPUT_TOKENS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;50000
claude
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Raising the limit puts more text into the conversation on every call. Before you do, ask whether the server can paginate or filter. For slow servers, &lt;code&gt;MCP_TIMEOUT&lt;/code&gt; sets the startup timeout, &lt;code&gt;MCP_TOOL_TIMEOUT&lt;/code&gt; the tool timeout, and a per-server &lt;code&gt;"timeout"&lt;/code&gt; in milliseconds works in &lt;code&gt;.mcp.json&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  A short setup checklist
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Decide the scope: project for team tools, local or user for the rest.&lt;/li&gt;
&lt;li&gt;Add the server with &lt;code&gt;claude mcp add&lt;/code&gt;, and confirm with &lt;code&gt;claude mcp list&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Replace any literal token with &lt;code&gt;${VAR}&lt;/code&gt; and document the variable in the README.&lt;/li&gt;
&lt;li&gt;Commit &lt;code&gt;.mcp.json&lt;/code&gt;; tell the team to expect an approval prompt.&lt;/li&gt;
&lt;li&gt;In scripts and CI, block project servers you do not want loaded.&lt;/li&gt;
&lt;li&gt;Check &lt;code&gt;/context&lt;/code&gt; and keep only what the agent uses on most tasks.&lt;/li&gt;
&lt;li&gt;Treat servers that read outside text as untrusted input.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  How Atlas relates
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://bridge-terminal.com/atlas/?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=claude-code-mcp-servers-setup-scopes-security" rel="noopener noreferrer"&gt;Atlas&lt;/a&gt; is a team of AI engineers built on Claude Code, and it keeps context lean in a related way: each engineer loads only the tools its role uses, and the project's instructions once. On the makers' measurements a builder's first turn went from about 31k tokens to 11k. Choosing which MCP servers each role loads, with approval handled for you, is coming to Atlas, built in, so it needs no setup. Until then, follow the scope and approval steps above in the project's own Claude Code setup.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;MCP servers are useful, but they are code and text from outside your repo. Pick the narrowest scope that works, keep secrets in variables, remember that &lt;code&gt;-p&lt;/code&gt; skips the approval prompt, and let tool search carry the context cost. Review &lt;code&gt;/mcp&lt;/code&gt; and &lt;code&gt;/context&lt;/code&gt; now and then, and remove servers nobody uses.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/mcp" rel="noopener noreferrer"&gt;Connect Claude Code to tools via MCP&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/managed-mcp" rel="noopener noreferrer"&gt;Control MCP server access for your organization&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://bridge-terminal.com/atlas/blog/claude-code-mcp-servers-setup-scopes-security/?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=claude-code-mcp-servers-setup-scopes-security" rel="noopener noreferrer"&gt;Atlas blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>claude</category>
      <category>mcp</category>
      <category>ai</category>
      <category>security</category>
    </item>
    <item>
      <title>Pull Requests Explained: What to Check When AI Opens One</title>
      <dc:creator>Nixon Perinchery</dc:creator>
      <pubDate>Mon, 23 Nov 2026 06:35:13 +0000</pubDate>
      <link>https://dev.to/nixonperinchery/pull-requests-explained-what-to-check-when-ai-opens-one-3lfp</link>
      <guid>https://dev.to/nixonperinchery/pull-requests-explained-what-to-check-when-ai-opens-one-3lfp</guid>
      <description>&lt;p&gt;&lt;strong&gt;The short version&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A pull request is a proposal to merge a set of changes into a project, so people can discuss and review it before it becomes part of the real product.&lt;/li&gt;
&lt;li&gt;You do not need to read code to use a pull request well: read the description, compare it with what you asked for, look at the size and the checks, and ask what could go wrong.&lt;/li&gt;
&lt;li&gt;A green list of automated checks is evidence, not proof; it only covers what someone wrote a test for.&lt;/li&gt;
&lt;li&gt;On GitHub, administrators can require approving reviews and passing status checks before changes merge into a protected branch, so review cannot be skipped by accident.&lt;/li&gt;
&lt;li&gt;Ask the AI to highlight risks in plain words, as Claude Code's documentation advises, then judge the answer against what you asked for.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A pull request is a proposal to merge a set of changes into a software project. When an AI coding agent finishes a piece of work, it often opens one so that a person, another AI, or an automatic check can look at the changes before they join the real product. If you manage or fund AI-built software, the pull request is the moment where you can still say "wait".&lt;/p&gt;

&lt;p&gt;You do not need to read code to use it well. This guide explains what a pull request contains, what a non-coder can check, and which questions to ask.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is a pull request?
&lt;/h2&gt;

&lt;p&gt;Think of a shared document with tracked changes. Nobody edits the master copy directly. Instead, someone makes their edits on a separate copy, and then asks: "Please look at what I changed, and add it to the master if you agree."&lt;/p&gt;

&lt;p&gt;That is a pull request. In software, the separate copy is called a &lt;strong&gt;branch&lt;/strong&gt;, and the master copy is usually called &lt;strong&gt;main&lt;/strong&gt;. &lt;a href="https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests" rel="noopener noreferrer"&gt;GitHub's documentation&lt;/a&gt; describes pull requests as proposals to merge code changes into a project, and says they let teams discuss and review changes before merging. "Merging" simply means adding the changes to main.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does a pull request show you?
&lt;/h2&gt;

&lt;p&gt;On GitHub, a pull request is split into several tabs, each showing a different view of the same change:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Conversation:&lt;/strong&gt; the description, timeline, comments and reviews.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Commits:&lt;/strong&gt; how the branch changed over time, step by step.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Files changed:&lt;/strong&gt; the exact differences, line by line. This is the part engineers read closely.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Checks:&lt;/strong&gt; automated tests, builds and other validations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Findings:&lt;/strong&gt; automated code review results, such as code scanning alerts (warnings about possible security problems).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;As a non-coder, you will spend most of your time in two places: the &lt;strong&gt;Conversation&lt;/strong&gt; (what is this change, and why?) and the &lt;strong&gt;Checks&lt;/strong&gt; (did the automatic tests pass?). The line-by-line view is for someone who writes code, or for an AI reviewer you have asked to read it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why do pull requests matter more with AI agents?
&lt;/h2&gt;

&lt;p&gt;An AI agent can produce a lot of changes quickly. That is useful, but it also means a lot of changes can arrive that nobody has understood. The pull request creates a pause. It is a natural place to ask whether the work matches your request, whether it was tested, and whether it touches something sensitive such as sign-in or payments.&lt;/p&gt;

&lt;p&gt;Claude Code, Anthropic's coding agent, can open pull requests when asked. Its &lt;a href="https://code.claude.com/docs/en/common-workflows" rel="noopener noreferrer"&gt;documentation&lt;/a&gt; says you can ask it directly ("create a pr for my changes"), and adds a tip: review the generated pull request before submitting, and ask Claude to highlight potential risks or considerations. That is good advice for anyone, coder or not.&lt;/p&gt;

&lt;h2&gt;
  
  
  What can a non-coder check in a pull request?
&lt;/h2&gt;

&lt;p&gt;You can get real value from a five-minute look. Try this order.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Read the description
&lt;/h3&gt;

&lt;p&gt;A good description says what changed, why, and how it was tested. A bad one says "various fixes". If it is vague, ask the agent to rewrite it in plain words.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Compare it with what you asked for
&lt;/h3&gt;

&lt;p&gt;Open your original request next to the description. Is everything you asked for there? Is there anything you did not ask for? Extra changes are a common source of surprises, because every extra change is something else that can break.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Look at the size
&lt;/h3&gt;

&lt;p&gt;A small pull request is easier to judge than a huge one. If a "small fix" touches dozens of files, ask why. You do not need to understand the files. The number is the signal.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Look at the checks
&lt;/h3&gt;

&lt;p&gt;The Checks tab shows whether automated tests and builds passed. Green is good news. Red means something failed and the change should not merge yet. Be careful with green, though: it only means the tests that exist passed. If nobody wrote a test for the thing you care about, a green tick says nothing about it.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Ask for the risks in plain words
&lt;/h3&gt;

&lt;p&gt;Ask: "What could go wrong with this change, who would notice first, and how would we undo it?" If the agent cannot answer, that tells you something. The undo part matters: before anything goes live, you want to know the way back.&lt;/p&gt;

&lt;h2&gt;
  
  
  What are draft pull requests?
&lt;/h2&gt;

&lt;p&gt;A draft is a pull request marked as work in progress. GitHub's documentation says drafts are useful for sharing work in progress without formally requesting reviews, and that draft pull requests cannot be merged. When the author is ready, they mark it ready for review. This helps: if an agent opens a draft, you know it is not asking for a decision yet.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do teams stop changes skipping review?
&lt;/h2&gt;

&lt;p&gt;A rule that says "please review first" only works if the system enforces it. On GitHub, this is done with protected branches. &lt;a href="https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches" rel="noopener noreferrer"&gt;GitHub's documentation on protected branches&lt;/a&gt; says administrators can require:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;that every pull request gets a set number of approving reviews before it merges;&lt;/li&gt;
&lt;li&gt;that required status checks pass before collaborators can change the branch;&lt;/li&gt;
&lt;li&gt;and by default, GitHub blocks force pushes on protected branches. A force push is a way of overwriting a project's history.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If your project is on GitHub and an AI agent has access to it, ask your engineer or agency one question: "Is main protected, and what does it require?" If the answer is "no", nothing in the system forces a review step, and the process depends on everyone remembering to follow it. That is a cheap risk to remove.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who should approve a pull request when AI wrote it?
&lt;/h2&gt;

&lt;p&gt;Approval should come from someone who is accountable and understands the change well enough to say yes. That can be:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;an engineer on your team;&lt;/li&gt;
&lt;li&gt;a separate AI reviewer, as long as a person decides what to do with its findings;&lt;/li&gt;
&lt;li&gt;you, for questions only you can answer, such as "is this what I meant?"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What you should avoid is the same agent writing the change, judging it and approving it. A second pair of eyes, human or AI, is the point of the process.&lt;/p&gt;

&lt;h2&gt;
  
  
  How does Atlas handle this?
&lt;/h2&gt;

&lt;p&gt;Atlas is a software team made of AI engineers, built on Claude Code. It does not work through GitHub pull requests as described above, but it follows similar ideas in its own way. Each engineer works in its own copy of the code. Every build is reviewed as it finishes and comes back either releasable or with fix tasks filed to the engineer who built it. Finished branches go through what Atlas calls the landing train, which merges up to six of them and runs the project's own checks once on the result. If a batch fails, it is split until the branch that broke it is found. Main's history is never rewritten.&lt;/p&gt;

&lt;p&gt;What Atlas does not do today is turn each landed batch into a plain-English summary of what changed for a non-coder. That is coming to Atlas, built in, so it needs no setup. Until then, you can use the habits in this guide: compare what was delivered with what you asked for, ask PA, the project assistant, to explain the change and its risks in plain words, and check which tests ran. You can read more on the &lt;a href="https://bridge-terminal.com/atlas/?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=pull-requests-explained-plain-guide-ai-coding" rel="noopener noreferrer"&gt;Atlas home page&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  A short checklist
&lt;/h2&gt;

&lt;p&gt;Before you say yes to a change:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Does the description match what I asked for?&lt;/li&gt;
&lt;li&gt;Is the size what I expected?&lt;/li&gt;
&lt;li&gt;Did the checks pass, and do they cover what I care about?&lt;/li&gt;
&lt;li&gt;Has someone other than the author reviewed it?&lt;/li&gt;
&lt;li&gt;Do I know how we would undo it?&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;A pull request is a pause point, and you control how much you get out of it. You do not need to read the code. Read the description, compare it with your request, check the size and the checks, and ask for the risks in plain words. Then make sure the project is set up so that the review step cannot be skipped.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests" rel="noopener noreferrer"&gt;About pull requests - GitHub Docs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches" rel="noopener noreferrer"&gt;About protected branches - GitHub Docs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/common-workflows" rel="noopener noreferrer"&gt;Common workflows - Claude Code Docs&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://bridge-terminal.com/atlas/blog/pull-requests-explained-plain-guide-ai-coding/?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=pull-requests-explained-plain-guide-ai-coding" rel="noopener noreferrer"&gt;Atlas blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>beginners</category>
      <category>github</category>
      <category>codereview</category>
    </item>
    <item>
      <title>Claude Code Worktrees: Run Parallel Sessions Safely</title>
      <dc:creator>Nixon Perinchery</dc:creator>
      <pubDate>Wed, 18 Nov 2026 06:45:56 +0000</pubDate>
      <link>https://dev.to/nixonperinchery/claude-code-worktrees-run-parallel-sessions-safely-38be</link>
      <guid>https://dev.to/nixonperinchery/claude-code-worktrees-run-parallel-sessions-safely-38be</guid>
      <description>&lt;p&gt;&lt;strong&gt;The short version&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Run &lt;code&gt;claude --worktree &amp;lt;name&amp;gt;&lt;/code&gt; in each terminal and every Claude Code session gets its own checkout and branch, so parallel edits cannot overwrite each other.&lt;/li&gt;
&lt;li&gt;A worktree is a fresh checkout: install dependencies in it, and list gitignored files such as .env in a .worktreeinclude file so they are copied in.&lt;/li&gt;
&lt;li&gt;New worktrees branch from the remote default branch unless you set worktree.baseRef to head, which carries your unpushed local work.&lt;/li&gt;
&lt;li&gt;Worktrees isolate files only; they share the repository's .git directory, project-scope plugins and saved permission approvals with the main checkout.&lt;/li&gt;
&lt;li&gt;An unnamed clean worktree is removed on exit; a named one prompts you first, and one with work in it asks you to keep or remove it. Non-interactive -p runs are never cleaned up automatically.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To run several Claude Code sessions on one repository without them overwriting each other, give each session its own git worktree. Start each one with &lt;code&gt;claude --worktree &amp;lt;name&amp;gt;&lt;/code&gt;; Claude Code then creates a separate checkout on its own branch and works only there. This guide covers the setup, the files a fresh worktree lacks, how branches are chosen, how subagents can be isolated too, and how cleanup works.&lt;/p&gt;

&lt;p&gt;Everything below comes from Anthropic's &lt;a href="https://code.claude.com/docs/en/worktrees.md" rel="noopener noreferrer"&gt;worktrees documentation&lt;/a&gt; and its &lt;a href="https://code.claude.com/docs/en/common-workflows" rel="noopener noreferrer"&gt;common workflows page&lt;/a&gt;. Flags and behaviour change between Claude Code versions, so check &lt;code&gt;claude --help&lt;/code&gt; and the docs for the version you run.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is a git worktree, and why use one with Claude Code?
&lt;/h2&gt;

&lt;p&gt;A git worktree is a separate working directory with its own files and branch that shares the repository's history and remote with your main checkout. If two sessions edit the same directory, one can change a file while the other is mid-task. With a worktree per session, each has its own copy of the files.&lt;/p&gt;

&lt;p&gt;The docs list worktrees as one of several ways to run Claude in parallel, and they are specific about the scope: worktrees isolate file edits. Subagents split work up inside one session, and cross-session messaging lets sessions in different worktrees pass findings to each other. Agent teams, which coordinate several sessions automatically, are a separate feature. This article is about the isolation layer under them.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do I start Claude Code in a worktree?
&lt;/h2&gt;

&lt;p&gt;Pass &lt;code&gt;--worktree&lt;/code&gt; (or &lt;code&gt;-w&lt;/code&gt;) with a name:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude --worktree feature-auth
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;By default the worktree is created under &lt;code&gt;.claude/worktrees/&amp;lt;name&amp;gt;/&lt;/code&gt; at your repository root, on a new branch called &lt;code&gt;worktree-&amp;lt;name&amp;gt;&lt;/code&gt;. Run the same command with a different name in a second terminal and you have a second isolated session. If you omit the name, Claude generates one such as &lt;code&gt;bright-running-fox&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Requirements and details from the docs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The repository needs at least one commit, because a worktree is created from an existing commit.&lt;/li&gt;
&lt;li&gt;Interactive runs need workspace trust. If you have never run &lt;code&gt;claude&lt;/code&gt; in the directory, run it once and accept the dialog, or &lt;code&gt;--worktree&lt;/code&gt; exits with an error. Non-interactive &lt;code&gt;-p&lt;/code&gt; runs skip that check.&lt;/li&gt;
&lt;li&gt;Add &lt;code&gt;.claude/worktrees/&lt;/code&gt; to &lt;code&gt;.gitignore&lt;/code&gt; so worktree contents do not show up as untracked files in the main checkout.&lt;/li&gt;
&lt;li&gt;If a worktree with that name already exists, Claude Code opens it instead of creating a new one.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--worktree&lt;/code&gt; only works in a git repository, unless you configure &lt;code&gt;WorktreeCreate&lt;/code&gt; and &lt;code&gt;WorktreeRemove&lt;/code&gt; hooks for another version control system.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can also ask Claude mid-session to "work in a worktree". It then uses its &lt;code&gt;EnterWorktree&lt;/code&gt; tool. If the target path is outside &lt;code&gt;.claude/worktrees/&lt;/code&gt;, Claude Code asks for your approval first.&lt;/p&gt;

&lt;h3&gt;
  
  
  Branch from a pull request
&lt;/h3&gt;

&lt;p&gt;To start from a specific pull request or merge request, pass its number with a &lt;code&gt;#&lt;/code&gt;, or its URL. Quote it so the shell does not read &lt;code&gt;#&lt;/code&gt; as a comment:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude --worktree &lt;span class="s2"&gt;"#1234"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Claude Code fetches that change's head commit from &lt;code&gt;origin&lt;/code&gt; and creates the worktree at &lt;code&gt;.claude/worktrees/pr-&amp;lt;number&amp;gt;&lt;/code&gt;. The fetch never waits for input: if git or ssh would ask for a password, passphrase or new-host confirmation, it fails with an error instead. The docs suggest loading your key into &lt;code&gt;ssh-agent&lt;/code&gt; and running &lt;code&gt;git fetch&lt;/code&gt; once by hand first.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why does my fresh worktree not run? Set up the environment
&lt;/h2&gt;

&lt;p&gt;A worktree is a fresh checkout. Dependencies are not installed and untracked files are missing. Two fixes:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Ask Claude to install dependencies in the worktree, or run your setup yourself in the directory under &lt;code&gt;.claude/worktrees/&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Add a &lt;code&gt;.worktreeinclude&lt;/code&gt; file at the project root to copy gitignored files such as &lt;code&gt;.env&lt;/code&gt; into every new worktree.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The file uses &lt;code&gt;.gitignore&lt;/code&gt; syntax. Only files that match a pattern and are also gitignored are copied, so tracked files are never duplicated:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.env
.env.local
config/secrets.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This applies to &lt;code&gt;--worktree&lt;/code&gt; worktrees, subagent worktrees and desktop-app sessions. It does not apply if you replace creation with a &lt;code&gt;WorktreeCreate&lt;/code&gt; hook; then you copy files in your own script.&lt;/p&gt;

&lt;p&gt;One thing to decide on purpose: &lt;code&gt;.worktreeinclude&lt;/code&gt; copies secrets into more places on disk. Keep the list short and only include what the session truly needs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which branch does a new worktree start from?
&lt;/h2&gt;

&lt;p&gt;By default new worktrees branch from the repository's default branch on the remote, usually &lt;code&gt;main&lt;/code&gt;. That is &lt;code&gt;worktree.baseRef&lt;/code&gt; set to &lt;code&gt;"fresh"&lt;/code&gt;. If you want the worktree to carry your unpushed commits and feature-branch state, set it to &lt;code&gt;"head"&lt;/code&gt; in settings:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"worktree"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"baseRef"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"head"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You cannot set &lt;code&gt;baseRef&lt;/code&gt; to a branch name. To start from a specific existing branch, create the worktree with git yourself:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git worktree add ../project-bugfix fix-issue-456
&lt;span class="nb"&gt;cd&lt;/span&gt; ../project-bugfix
claude
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With &lt;code&gt;"fresh"&lt;/code&gt;, Claude Code fetches the default branch if the repository has not been fetched in the last 24 hours, capped at five seconds, and falls back to the cached ref if the fetch fails. With no remote configured, or no cached &lt;code&gt;origin/HEAD&lt;/code&gt; that it can fetch, it falls back to your local &lt;code&gt;HEAD&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;A reuse gotcha: with the default &lt;code&gt;"fresh"&lt;/code&gt; base, reopening a worktree name can reset it to the default branch instead of continuing at its old tip. That happens only when the sandbox is not restricting file writes in your session, the worktree has no uncommitted or untracked files, it is still on its own branch, and it either has no commits of its own or its pull request was merged and the remote branch deleted. In every other case, including when &lt;code&gt;baseRef&lt;/code&gt; is &lt;code&gt;"head"&lt;/code&gt;, it reopens at the old tip. If you use the sandbox with &lt;code&gt;"fresh"&lt;/code&gt;, run &lt;code&gt;git fetch origin&lt;/code&gt; and pass a new name to start from the latest default branch.&lt;/p&gt;

&lt;h2&gt;
  
  
  Can subagents get their own worktrees?
&lt;/h2&gt;

&lt;p&gt;Yes. Ask Claude to "use worktrees for your agents", or make it permanent for a custom subagent with &lt;code&gt;isolation: worktree&lt;/code&gt; in its frontmatter. This file in &lt;code&gt;.claude/agents/&lt;/code&gt; always runs in its own worktree:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;---
name: refactorer
description: "Applies mechanical refactors across many files"
isolation: worktree
---

Apply the requested refactor across every affected file, then run the tests
and report the results.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each subagent gets a temporary worktree, removed automatically when it finishes without changes. A worktree with changes stays until a periodic sweep can remove it without losing work. Subagent worktrees use the same base branch rule as &lt;code&gt;--worktree&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Note one subtlety from the docs: a subagent in its own worktree takes its starting instruction files from your main conversation, not from the worktree. In the default location it also does not load the &lt;code&gt;CLAUDE.md&lt;/code&gt; or &lt;code&gt;.claude/rules/&lt;/code&gt; at the worktree's root as it reads files there, even if those differ on the worktree's branch. If your branches change instruction files, do not assume the subagent sees them.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does Claude Code block inside a worktree?
&lt;/h2&gt;

&lt;p&gt;While a session is isolated in a worktree, Claude Code blocks four kinds of tool call:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;File edits&lt;/strong&gt; (&lt;code&gt;Edit&lt;/code&gt;, &lt;code&gt;Write&lt;/code&gt;, &lt;code&gt;NotebookEdit&lt;/code&gt;) that target a path in the main checkout.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Commands whose working directory&lt;/strong&gt; resolves to the main checkout, or cannot be verified to stay outside it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Git redirects&lt;/strong&gt; into the main checkout, through &lt;code&gt;git -C&lt;/code&gt;, &lt;code&gt;--git-dir&lt;/code&gt;, &lt;code&gt;GIT_DIR&lt;/code&gt;, &lt;code&gt;GIT_WORK_TREE&lt;/code&gt;, or a &lt;code&gt;cd&lt;/code&gt; before git.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Command shapes&lt;/strong&gt; where it cannot verify from the text that git stays inside the worktree, such as a computed command name. You cannot turn this check off.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The same enforcement covers subagents spawned from the isolated session. The docs are clear about the limit: these checks read the edit path, the directory and the command text. They do not track which files a shell command writes, so &lt;code&gt;cp&lt;/code&gt; or a shell redirect into the main checkout is not refused by them. Such commands fall under your normal permissions and sandbox settings. Treat the checks as a guard against accidents, not a security boundary.&lt;/p&gt;

&lt;h2&gt;
  
  
  What do worktrees share with the main checkout?
&lt;/h2&gt;

&lt;p&gt;Files and branch are separate. These are shared:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The &lt;code&gt;.git&lt;/code&gt; directory.&lt;/strong&gt; With the sandbox on, &lt;code&gt;git commit&lt;/code&gt; works from the worktree root, but by default fails with an &lt;code&gt;index.lock&lt;/code&gt; error if you run &lt;code&gt;claude&lt;/code&gt; in a subdirectory of the worktree.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Plugins&lt;/strong&gt; installed at project scope.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Permission approvals.&lt;/strong&gt; Choosing "Yes, and don't ask again" for a Bash command in a worktree session saves the rule to the main checkout's &lt;code&gt;.claude/settings.local.json&lt;/code&gt;. It then applies in every worktree of that repository and survives the worktree's removal. On Windows the rule stays with that worktree.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Untracked skills, agents and commands&lt;/strong&gt;, when the worktree has no &lt;code&gt;.claude/skills&lt;/code&gt; directory of its own.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Hooks have a trap too. After Claude enters a worktree, &lt;code&gt;${CLAUDE_PROJECT_DIR}&lt;/code&gt; still points at the project root where the session started. If a hook needs the worktree path, read the &lt;code&gt;cwd&lt;/code&gt; field in the hook's input JSON.&lt;/p&gt;

&lt;p&gt;The docs do not describe isolating databases, ports or other services, because worktrees only separate files. If two sessions run the same dev server or share one local database, plan for that separately.&lt;/p&gt;

&lt;h2&gt;
  
  
  How does worktree cleanup work?
&lt;/h2&gt;

&lt;p&gt;When you exit an interactive worktree session, Claude Code checks for changed or untracked files, uncommitted submodule work and new commits:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Clean and unnamed:&lt;/strong&gt; the worktree and its branch are removed automatically. A named session prompts you first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Has work in it:&lt;/strong&gt; you are asked to keep or remove. Keeping preserves the directory and branch; return with the &lt;code&gt;claude --worktree &amp;lt;name&amp;gt; --resume&lt;/code&gt; command Claude Code prints. Removing deletes both, along with the work in them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;State cannot be verified:&lt;/strong&gt; it prompts instead of removing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Two cases catch teams out. Non-interactive &lt;code&gt;-p&lt;/code&gt; runs have no exit prompt, so their worktrees are not cleaned up, and the lock Claude Code took stays until a later sweep releases it. Remove one with &lt;code&gt;git worktree remove&lt;/code&gt;, running &lt;code&gt;git worktree unlock&lt;/code&gt; first if git refuses. Subagent and background-session worktrees are removed by a periodic sweep once older than your &lt;code&gt;cleanupPeriodDays&lt;/code&gt; setting, but never when they still hold work, never one belonging to a &lt;code&gt;--worktree&lt;/code&gt; session you have not backgrounded, and never worktrees you made yourself with &lt;code&gt;git worktree add&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Resuming works across all this: a session that ended inside a worktree without exiting it returns to that worktree on &lt;code&gt;--resume&lt;/code&gt; or &lt;code&gt;--continue&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  A workable routine for two or three parallel tasks
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Add &lt;code&gt;.claude/worktrees/&lt;/code&gt; to &lt;code&gt;.gitignore&lt;/code&gt; and write a &lt;code&gt;.worktreeinclude&lt;/code&gt; with only the env files needed.&lt;/li&gt;
&lt;li&gt;Start each task with &lt;code&gt;claude --worktree &amp;lt;short-task-name&amp;gt;&lt;/code&gt; in its own terminal. Name them: an unnamed clean worktree is deleted on exit, while a named one prompts you first.&lt;/li&gt;
&lt;li&gt;Have each session install dependencies and run its own tests inside its worktree.&lt;/li&gt;
&lt;li&gt;Pick tasks that touch different areas. Separate worktrees stop overwrites but do nothing about two branches changing the same lines; you still resolve that at merge time.&lt;/li&gt;
&lt;li&gt;Open a pull request per branch, review each, and merge through your normal CI. Exit each session and remove worktrees you no longer need.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Isolation is cheap to set up; the cost is usage. Several sessions draw on the same plan or token budget at once, so keep an eye on usage when you go beyond two or three.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Worktrees give each Claude Code session its own files and branch, which removes the most common failure of parallel work: two agents editing the same file. Set up &lt;code&gt;.worktreeinclude&lt;/code&gt;, pick the right &lt;code&gt;worktree.baseRef&lt;/code&gt;, remember that databases and ports are still shared, and clean up &lt;code&gt;-p&lt;/code&gt; worktrees yourself. Merge conflicts, review and CI remain your job.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/worktrees.md" rel="noopener noreferrer"&gt;Run parallel sessions with worktrees – Claude Code docs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/common-workflows" rel="noopener noreferrer"&gt;Common workflows – Claude Code docs&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://bridge-terminal.com/atlas/blog/claude-code-worktrees-parallel-sessions-setup/?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=claude-code-worktrees-parallel-sessions-setup" rel="noopener noreferrer"&gt;Atlas blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>git</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Rollback Explained: Can You Undo a Bad AI Release?</title>
      <dc:creator>Nixon Perinchery</dc:creator>
      <pubDate>Mon, 16 Nov 2026 06:17:29 +0000</pubDate>
      <link>https://dev.to/nixonperinchery/rollback-explained-can-you-undo-a-bad-ai-release-fci</link>
      <guid>https://dev.to/nixonperinchery/rollback-explained-can-you-undo-a-bad-ai-release-fci</guid>
      <description>&lt;p&gt;&lt;strong&gt;The short version&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A rollback puts the previous version of the software back, and it is usually quick when the release only changed the program.&lt;/li&gt;
&lt;li&gt;Rollback gets hard when a release also changed the database, because the old program may not understand data the new one wrote.&lt;/li&gt;
&lt;li&gt;When you cannot go back safely, teams fix forward: they ship a prepared, corrected release instead of reversing the change.&lt;/li&gt;
&lt;li&gt;Before any release, ask: what is the way back, is there a backup that has been proven by restoring it, and who decides to use it.&lt;/li&gt;
&lt;li&gt;Undoing an AI agent's file edits while it works is a different thing from undoing a release to real users.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If an AI-built release goes wrong, can you undo it? Often yes, but only if someone prepared the way back before the release went out. A rollback puts the previous version of the software back in place. It works well for changes to the program and works badly for changes to the data.&lt;/p&gt;

&lt;p&gt;This guide explains what a rollback is, why it is not a magic undo button, and what a non-technical owner should ask before approving a release.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is a rollback?
&lt;/h2&gt;

&lt;p&gt;A rollback means going back to the last version that worked. Think of a shop that rearranges its shelves overnight. If customers cannot find anything the next morning, staff move the shelves back to how they were. Nothing is lost, because the shelves hold the same goods either way.&lt;/p&gt;

&lt;p&gt;Software releases have the same idea. The team keeps the previous version, and if the new one misbehaves, they switch back. Martin Fowler describes one version of this on his page about &lt;a href="https://martinfowler.com/bliki/BlueGreenDeployment.html" rel="noopener noreferrer"&gt;blue-green deployment&lt;/a&gt;. You run two production environments (two copies of the live setup) that are kept as identical as possible. One serves users and the other sits idle. You release to the idle one, and if the new release fails, you point users back at the previous one.&lt;/p&gt;

&lt;p&gt;That is a fast, low-drama way back. It is the best case.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why rollback is harder than it sounds
&lt;/h2&gt;

&lt;p&gt;The shop analogy breaks down when a release changes the database. The database is where your software keeps its records: customers, orders, invoices, messages.&lt;/p&gt;

&lt;p&gt;Imagine the new release stores each customer's phone number in a new format, and it converts the old records as it goes. Now you roll back to the old program. The old program does not understand the new format. It may show blank fields, crash, or quietly save wrong data. Putting the old program back did not put the old data back.&lt;/p&gt;

&lt;p&gt;An engineering write-up on &lt;a href="https://oneuptime.com/blog/post/2026-08-06-database-compatible-rollbacks-forward-fixes/view" rel="noopener noreferrer"&gt;safe rollbacks and forward fixes&lt;/a&gt; makes the same point. It splits "rolling back" into four operations that are not equivalent:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Sending users back to the previous version of the program.&lt;/li&gt;
&lt;li&gt;Redeploying a known earlier build of the program.&lt;/li&gt;
&lt;li&gt;Reversing a change to the database's structure.&lt;/li&gt;
&lt;li&gt;Restoring the data from an earlier copy.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The last one is the risky one. Restoring an earlier copy of the data can throw away legitimate work done after that copy was taken. Say customers placed 200 orders since the release: a restore to the pre-release copy could erase those 200 orders. The write-up also notes that reversing a change to the database's structure does not necessarily undo a conversion of the data already done.&lt;/p&gt;

&lt;p&gt;So when someone says "we can just roll back", ask which kind they mean.&lt;/p&gt;

&lt;h2&gt;
  
  
  What do teams do when they cannot go back?
&lt;/h2&gt;

&lt;p&gt;They fix forward. Instead of reversing the change, they ship a corrected release on top of it. The same write-up says to use a forward fix when new writes or a change that cannot be reversed make the old behaviour unsafe. It adds that the fix should be a built, reviewable piece of work rather than a manual edit to the live system, and that the team should rehearse in a throwaway copy of the environment before they need it.&lt;/p&gt;

&lt;p&gt;Teams also reduce the problem by splitting risky changes into steps. Both Fowler's page and the write-up describe the same pattern:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;First, change the database in a way that old and new versions of the program can both live with. Fowler notes this gives you a point to go back to.&lt;/li&gt;
&lt;li&gt;Then release the new program.&lt;/li&gt;
&lt;li&gt;Remove the old structures later, in a separate release, once things have settled.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Done this way, there is a safe point to return to after each step. Removing old data structures is the step that cannot be undone, so it is kept until last.&lt;/p&gt;

&lt;p&gt;You do not need to run these steps yourself. You need to know they exist, so you can ask whether the plan keeps a way back open.&lt;/p&gt;

&lt;h2&gt;
  
  
  Is a backup the same as a rollback?
&lt;/h2&gt;

&lt;p&gt;No. A backup is a saved copy of your data. A rollback is a way of going back to an earlier version of the program. You usually want both, because they cover different failures.&lt;/p&gt;

&lt;p&gt;A backup only helps if it works. A backup that has never been restored is a hope, not a safeguard. Ask whether anyone has restored the backup to a test copy and checked that the data is there.&lt;/p&gt;

&lt;h2&gt;
  
  
  Is this the same as "undo" in the AI tool?
&lt;/h2&gt;

&lt;p&gt;It is not, and mixing them up causes trouble. Claude Code, the AI coding tool from Anthropic, has a feature called checkpoints. According to its &lt;a href="https://code.claude.com/docs/en/checkpointing" rel="noopener noreferrer"&gt;checkpointing documentation&lt;/a&gt;, it tracks the file edits the agent makes during a session, so you can rewind your code to an earlier point.&lt;/p&gt;

&lt;p&gt;That is useful while the agent is working. But the same page lists limits. A file that was only ever changed by commands run in the terminal, and never edited by the agent directly, is not tracked. Edits made by helper agents are usually not captured. Changes you make outside the session are normally not tracked either. And the page says checkpoints are for quick recovery within a session, not a replacement for version control, the permanent history of every change to your code.&lt;/p&gt;

&lt;p&gt;None of this touches your live database or the release your customers are using. An agent's undo is a drafting tool. A rollback is a release tool. Treat them as separate safety nets.&lt;/p&gt;

&lt;h2&gt;
  
  
  What should you ask before approving a release?
&lt;/h2&gt;

&lt;p&gt;You do not need to read code to ask good questions. Try these:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;What is the way back?&lt;/strong&gt; The answer should be specific: "we return to version X, and it takes about N minutes", not "we can fix it if needed".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Does this release change the database?&lt;/strong&gt; If yes, rollback is harder, and the next questions matter more.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Is there a backup, and has it been restored somewhere to prove it works?&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Was the database change rehearsed on a copy first?&lt;/strong&gt; A rehearsal finds problems when they cost nothing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What would we do if it fails at 6pm on a Friday?&lt;/strong&gt; Who decides, and who acts?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;How will we know it is working?&lt;/strong&gt; Someone should check after the release, not assume.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Notice that the last question belongs after the release. A way back is only useful if you notice early that you need it.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Atlas handles this
&lt;/h2&gt;

&lt;p&gt;Atlas is a team of AI engineers built on Claude Code. For releases beyond the Mac, it follows eight steps: the way back is marked, data is backed up and the backup is proven by restoring it, database changes are rehearsed on that copy, then the release goes out and is checked. Atlas never decides a production go-live for you; that stays your call.&lt;/p&gt;

&lt;p&gt;Atlas does not describe a one-step "go back" button today. A guided rollback that picks the right kind of way back for each release is coming to Atlas, built in, so it needs no setup. Until then, use the questions above with whoever releases your software, and check that the marked way back and the proven backup exist before you approve. You can read more on the &lt;a href="https://bridge-terminal.com/atlas/?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=rollback-undo-bad-ai-release-plain-guide" rel="noopener noreferrer"&gt;Atlas home page&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Rollback is a good safety net, but it is not a promise that anything can be undone. Program changes are usually easy to reverse. Data changes are not, and that is where owners should focus their questions.&lt;/p&gt;

&lt;p&gt;Before you approve a release, get a clear answer to three things: what the way back is, whether the backup has been proven to restore, and who decides to use it. If the answers are vague, delay the release. A day of waiting costs far less than a night of lost orders.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://martinfowler.com/bliki/BlueGreenDeployment.html" rel="noopener noreferrer"&gt;Martin Fowler: Blue Green Deployment&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://oneuptime.com/blog/post/2026-08-06-database-compatible-rollbacks-forward-fixes/view" rel="noopener noreferrer"&gt;Can You Safely Roll Back a Database Change? (OneUptime)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/checkpointing" rel="noopener noreferrer"&gt;Checkpointing - Claude Code Docs&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://bridge-terminal.com/atlas/blog/rollback-undo-bad-ai-release-plain-guide/?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=rollback-undo-bad-ai-release-plain-guide" rel="noopener noreferrer"&gt;Atlas blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>beginners</category>
      <category>devops</category>
      <category>startup</category>
    </item>
    <item>
      <title>Codex Rules: Control Commands with prefix_rule</title>
      <dc:creator>Nixon Perinchery</dc:creator>
      <pubDate>Fri, 13 Nov 2026 17:29:44 +0000</pubDate>
      <link>https://dev.to/nixonperinchery/codex-rules-control-commands-with-prefixrule-1o93</link>
      <guid>https://dev.to/nixonperinchery/codex-rules-control-commands-with-prefixrule-1o93</guid>
      <description>&lt;p&gt;&lt;strong&gt;The short version&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Codex rules are .rules files that decide, per command prefix, whether a command runs without asking, asks first, or is blocked.&lt;/li&gt;
&lt;li&gt;When several rules match one command, the most restrictive wins: forbidden beats prompt, and prompt beats allow.&lt;/li&gt;
&lt;li&gt;Test rules with codex execpolicy check before relying on them, and put match and not_match examples in the rule so Codex validates them on load.&lt;/li&gt;
&lt;li&gt;Rules match an exact prefix of the command, so option order matters; shell scripts using redirection, substitution, variables or wildcards are judged as one whole command.&lt;/li&gt;
&lt;li&gt;Project rules in .codex/rules only load when the project's .codex layer is trusted, and the feature is marked experimental.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you want Codex to stop asking about commands you always approve, and to refuse commands you never want run, you write rules. Codex rules are small &lt;code&gt;.rules&lt;/code&gt; files that match a command's prefix and give it a decision: allow, prompt or forbidden. This guide shows where the files go, how &lt;code&gt;prefix_rule&lt;/code&gt; works, how to test a rule before trusting it, and where compound shell commands can surprise you.&lt;/p&gt;

&lt;p&gt;Everything about Codex behaviour below comes from OpenAI's &lt;a href="https://learn.chatgpt.com/docs/agent-configuration/rules" rel="noopener noreferrer"&gt;Codex rules documentation&lt;/a&gt;. The docs mark rules as experimental and subject to change, so re-check the page before you roll anything out to a team. The old &lt;a href="https://github.com/openai/codex/blob/main/docs/execpolicy.md" rel="noopener noreferrer"&gt;execpolicy page in the openai/codex repository&lt;/a&gt; is now only a pointer to the hosted docs.&lt;/p&gt;

&lt;h2&gt;
  
  
  What are Codex rules?
&lt;/h2&gt;

&lt;p&gt;Rules control which commands Codex can run outside the sandbox. They sit alongside the approval mode and sandbox you already configure: approval mode answers "how much does Codex ask in general", and rules answer "what about this specific command".&lt;/p&gt;

&lt;p&gt;A rule has three possible decisions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;allow&lt;/code&gt;: the command runs without prompting.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;prompt&lt;/code&gt;: Codex asks before each matching run.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;forbidden&lt;/code&gt;: Codex blocks the request.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you do not give a decision, the default is &lt;code&gt;allow&lt;/code&gt;. Keep that in mind when you copy a rule and forget the &lt;code&gt;decision&lt;/code&gt; line.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where do the rules files go?
&lt;/h2&gt;

&lt;p&gt;Create a &lt;code&gt;.rules&lt;/code&gt; file in a &lt;code&gt;rules/&lt;/code&gt; folder next to an active config layer. The documented example is &lt;code&gt;~/.codex/rules/default.rules&lt;/code&gt;. Codex scans the &lt;code&gt;rules/&lt;/code&gt; folder in every active config layer at startup, including Team Config locations and your user layer.&lt;/p&gt;

&lt;p&gt;Two details matter in practice:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Project-local rules in &lt;code&gt;&amp;lt;repo&amp;gt;/.codex/rules/&lt;/code&gt; load only when the project's &lt;code&gt;.codex/&lt;/code&gt; layer is trusted. A cloned repo you have not trusted will not silently apply its own rules.&lt;/li&gt;
&lt;li&gt;When you add a command to the allow list from the terminal UI, Codex writes it to &lt;code&gt;~/.codex/rules/default.rules&lt;/code&gt;. That file can grow without you editing it, so read it now and then.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Restart Codex after adding a rule.&lt;/p&gt;

&lt;p&gt;The format is Starlark, a Python-like language designed so that evaluating it has no side effects. A rules file can only describe matches.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you write a prefix_rule?
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;prefix_rule()&lt;/code&gt; takes these fields:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;pattern&lt;/code&gt; (required): a non-empty list. Each element is either a literal string or a list of alternatives for that argument position.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;decision&lt;/code&gt;: &lt;code&gt;allow&lt;/code&gt;, &lt;code&gt;prompt&lt;/code&gt; or &lt;code&gt;forbidden&lt;/code&gt;. Defaults to &lt;code&gt;allow&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;justification&lt;/code&gt;: a human-readable reason that can show up in approval prompts or rejection messages. For &lt;code&gt;forbidden&lt;/code&gt;, it can suggest an alternative.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;match&lt;/code&gt; and &lt;code&gt;not_match&lt;/code&gt;: lists of example commands that Codex validates when it loads the rules, to catch mistakes early.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is the example from the documentation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nf"&gt;prefix_rule&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;pattern&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"gh"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"pr"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"view"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;decision&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"prompt"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;justification&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Viewing PRs is allowed with approval"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="k"&gt;match&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="s2"&gt;"gh pr view 7888"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"gh pr view --repo openai/codex"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"gh pr view 7888 --json title,body,comments"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;not_match&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="c1"&gt;# Does not match because the `pattern` must be an exact prefix.&lt;/span&gt;
        &lt;span class="s2"&gt;"gh pr --repo openai/codex view 7888"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The comment in &lt;code&gt;not_match&lt;/code&gt; is the important lesson. The pattern is an exact prefix of the command's words. &lt;code&gt;gh pr --repo openai/codex view 7888&lt;/code&gt; is the same operation to a human, but the words are in a different order, so the rule does not match it. Write rules for the form your team actually types, and add the awkward orderings to &lt;code&gt;not_match&lt;/code&gt; so you can see the gap.&lt;/p&gt;

&lt;h3&gt;
  
  
  A forbidden rule with an alternative
&lt;/h3&gt;

&lt;p&gt;Here is a rule of the same shape that I wrote as an illustration, not one from the documentation. It blocks force pushes and uses alternatives at the last position of the pattern:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nf"&gt;prefix_rule&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;pattern&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"git"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"push"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"--force"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"-f"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;decision&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"forbidden"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;justification&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Force pushes are blocked. Use a new commit or ask a maintainer."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="k"&gt;match&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="s2"&gt;"git push --force"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"git push -f"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;not_match&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="s2"&gt;"git push origin main"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Notice what it does not catch. &lt;code&gt;git push origin --force&lt;/code&gt; has the flag after &lt;code&gt;origin&lt;/code&gt;, so this prefix does not match it. A rule like this is a speed bump for the common spelling, not a guarantee. For anything you truly cannot allow, combine rules with the sandbox and with branch protection on the server side.&lt;/p&gt;

&lt;h3&gt;
  
  
  Allowing the boring commands
&lt;/h3&gt;

&lt;p&gt;The other half of the job is trimming prompts. A read-only command you run all day is a good candidate:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nf"&gt;prefix_rule&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;pattern&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"git"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"status"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;decision&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"allow"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="k"&gt;match&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"git status"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"git status --short"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Allow narrow prefixes. &lt;code&gt;["git", "status"]&lt;/code&gt; is a safer thing to approve than &lt;code&gt;["git"]&lt;/code&gt;, which would cover every Git subcommand.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you test rules before relying on them?
&lt;/h2&gt;

&lt;p&gt;Use &lt;code&gt;codex execpolicy check&lt;/code&gt; to see how your rules apply to a command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;codex execpolicy check --pretty \
  --rules ~/.codex/rules/default.rules \
  -- gh pr view 7888 --json title,body,comments
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Pass &lt;code&gt;--rules&lt;/code&gt; more than once to combine files, which is how you can test a project rules file together with your personal one.&lt;/p&gt;

&lt;p&gt;A practical routine:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Write the rule with &lt;code&gt;match&lt;/code&gt; and &lt;code&gt;not_match&lt;/code&gt; examples, so Codex checks them when it loads the file.&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;codex execpolicy check&lt;/code&gt; on three or four real commands, including one you expect not to match.&lt;/li&gt;
&lt;li&gt;Restart Codex and try the command in a real session.&lt;/li&gt;
&lt;li&gt;Commit project rules only after a teammate has run the same check on their machine.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What happens when two rules match?
&lt;/h2&gt;

&lt;p&gt;The most restrictive decision applies: &lt;code&gt;forbidden&lt;/code&gt; beats &lt;code&gt;prompt&lt;/code&gt;, and &lt;code&gt;prompt&lt;/code&gt; beats &lt;code&gt;allow&lt;/code&gt;. So you can allow a broad prefix and then add a stricter rule for a dangerous variant, and the stricter one wins. Admins can also enforce restrictive &lt;code&gt;prefix_rule&lt;/code&gt; entries through &lt;code&gt;requirements.toml&lt;/code&gt;, which gives a team a way to set limits that personal rules do not override.&lt;/p&gt;

&lt;h2&gt;
  
  
  Shell wrappers and compound commands
&lt;/h2&gt;

&lt;p&gt;Agents rarely run bare commands. They often run &lt;code&gt;bash -lc "..."&lt;/code&gt;. Codex treats &lt;code&gt;bash -c&lt;/code&gt;, &lt;code&gt;bash -lc&lt;/code&gt; and the &lt;code&gt;zsh&lt;/code&gt; and &lt;code&gt;sh&lt;/code&gt; equivalents specially, and the behaviour decides whether your rules protect you.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If the script is a simple chain of plain words joined by &lt;code&gt;&amp;amp;&amp;amp;&lt;/code&gt;, &lt;code&gt;||&lt;/code&gt;, &lt;code&gt;;&lt;/code&gt; or &lt;code&gt;|&lt;/code&gt;, Codex splits it and evaluates each command separately. For example, &lt;code&gt;git add . &amp;amp;&amp;amp; rm -rf /&lt;/code&gt; is evaluated as &lt;code&gt;git add .&lt;/code&gt; and &lt;code&gt;rm -rf /&lt;/code&gt;, so allowing &lt;code&gt;git add&lt;/code&gt; does not allow the whole line.&lt;/li&gt;
&lt;li&gt;If the script uses redirection, substitution, environment variables, wildcards or control flow, Codex does not split it. It treats the whole invocation as one command and applies rules to that.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The second case is where allow rules get less useful. A line such as &lt;code&gt;git status &amp;gt; out.txt&lt;/code&gt; is one command to Codex, so check what your &lt;code&gt;["git", "status"]&lt;/code&gt; rule does with it using &lt;code&gt;codex execpolicy check&lt;/code&gt; rather than assuming. Test your real habitual command lines, not only the tidy ones.&lt;/p&gt;

&lt;h2&gt;
  
  
  Smart approvals and the allow list
&lt;/h2&gt;

&lt;p&gt;With Smart approvals, which are on by default per the docs, Codex may suggest a &lt;code&gt;prefix_rule&lt;/code&gt; when it escalates a command. That is convenient and also the easiest way to approve something too broad by reflex. Read the proposed pattern. If it is shorter than you expected, narrow it before you accept.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common mistakes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Forgetting that &lt;code&gt;decision&lt;/code&gt; defaults to &lt;code&gt;allow&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Writing a pattern that is too short, so it covers more than intended.&lt;/li&gt;
&lt;li&gt;Assuming option order does not matter. It does, because the match is an exact prefix.&lt;/li&gt;
&lt;li&gt;Expecting project rules to apply in a repo whose &lt;code&gt;.codex/&lt;/code&gt; layer you have not trusted.&lt;/li&gt;
&lt;li&gt;Relying on rules for security by themselves. They are experimental, and a prefix match is only one layer.&lt;/li&gt;
&lt;li&gt;Assuming Work Cloud setups read local files. The docs say local &lt;code&gt;.rules&lt;/code&gt; files don't apply there; Work Cloud containers follow existing Work Cloud policies, and admins set supported command rules in the &lt;code&gt;rules&lt;/code&gt; TOML field in Agent Security.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Codex rules turn "approve this again" into a decision you make once, in a file you can review and test. Start with a few narrow &lt;code&gt;allow&lt;/code&gt; rules for commands you run constantly, add &lt;code&gt;forbidden&lt;/code&gt; rules with a justification for the commands that should never run, and always run &lt;code&gt;codex execpolicy check&lt;/code&gt; on real command lines before trusting the result. Treat the whole feature as experimental, and keep the sandbox and server-side protections as your backstop.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://learn.chatgpt.com/docs/agent-configuration/rules" rel="noopener noreferrer"&gt;Codex rules (OpenAI docs)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/openai/codex/blob/main/docs/execpolicy.md" rel="noopener noreferrer"&gt;openai/codex execpolicy doc pointer&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://bridge-terminal.com/atlas/blog/codex-rules-prefix-rule-allow-forbid-commands/?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=codex-rules-prefix-rule-allow-forbid-commands" rel="noopener noreferrer"&gt;Atlas blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>codex</category>
      <category>ai</category>
      <category>security</category>
      <category>devops</category>
    </item>
    <item>
      <title>What Is a Staging Environment? A Plain Guide for Founders</title>
      <dc:creator>Nixon Perinchery</dc:creator>
      <pubDate>Wed, 11 Nov 2026 08:42:12 +0000</pubDate>
      <link>https://dev.to/nixonperinchery/what-is-a-staging-environment-a-plain-guide-for-founders-4lnn</link>
      <guid>https://dev.to/nixonperinchery/what-is-a-staging-environment-a-plain-guide-for-founders-4lnn</guid>
      <description>&lt;p&gt;&lt;strong&gt;The short version&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A staging environment is a nearly exact copy of your live product where a change is tried before real customers can see it.&lt;/li&gt;
&lt;li&gt;It matters more with AI agents, because they produce changes quickly and a mistake on the live product affects real customers.&lt;/li&gt;
&lt;li&gt;Staging only protects you if it matches the live setup closely; a copy that differs gives false comfort.&lt;/li&gt;
&lt;li&gt;Staging cannot easily copy heavy traffic or problems that take a long time to appear, so keep a way back and check the live product right after release.&lt;/li&gt;
&lt;li&gt;Your job at staging is simple: click through the five things that matter most, then decide whether to go live.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A staging environment is a private copy of your live product, set up to match it as closely as possible, where a change is tried before customers see it. If you work with an AI coding agent, it is the place where you check the work with your own eyes, and where mistakes are cheap. Here is what it is, what it can and cannot catch, and what to ask for.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is a staging environment, in plain words?
&lt;/h2&gt;

&lt;p&gt;Think of a restaurant that tests a new dish on the staff before it goes on the menu. The kitchen is the same and the recipe is the same. Only the diners are different. If the dish is bad, nobody paying has been harmed.&lt;/p&gt;

&lt;p&gt;Staging works the same way for software. TechTarget &lt;a href="https://www.techtarget.com/searchsoftwarequality/definition/staging-environment" rel="noopener noreferrer"&gt;defines it&lt;/a&gt; as "a nearly exact replica of a production environment for software testing". "Production" is the word engineers use for the live product, the one your customers use. Because staging is separate, a serious flaw can break staging without taking the live product down.&lt;/p&gt;

&lt;p&gt;There are usually three places a change passes through:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Development:&lt;/strong&gt; where the work is built. It is rough and changes constantly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Staging:&lt;/strong&gt; the dress rehearsal. It looks and behaves like the real thing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Production:&lt;/strong&gt; the live product, used by real people.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why does staging matter more with AI coding agents?
&lt;/h2&gt;

&lt;p&gt;An AI agent works fast. It can produce in an afternoon what used to take a team much longer. That is a real benefit, but it also means more changes arrive, and each one is a chance for something to be wrong.&lt;/p&gt;

&lt;p&gt;The agent's own tests tell you the code did what the agent expected. They do not tell you that the sign-up page still works with your real settings, or that the new report looks right to the person who reads it every Monday. Staging is where a human answers those questions.&lt;/p&gt;

&lt;p&gt;It also fits how agents are meant to be used. Anthropic's security page for Claude Code states that &lt;a href="https://code.claude.com/docs/en/security" rel="noopener noreferrer"&gt;you are responsible for reviewing proposed code and commands&lt;/a&gt; for safety before approval. Reviewing is easier when you can click through a working copy instead of reading a description of one.&lt;/p&gt;

&lt;h2&gt;
  
  
  What should staging match?
&lt;/h2&gt;

&lt;p&gt;Staging is only useful if it resembles the live product. TechTarget says everything in staging should be as close a copy of production as possible, including the same hardware, server, database and cache settings. It warns that when the two differ, the data gathered from the tests isn't accurate and defects could be released to production.&lt;/p&gt;

&lt;p&gt;In plain terms, ask three questions:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Is it set up the same way?&lt;/strong&gt; Same kind of server, same settings, same connected services where possible. A rehearsal on a different stage proves little.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Does it have realistic data?&lt;/strong&gt; A page that works with five test customers may crawl or break with fifty thousand. Staging should hold data that looks like yours.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Is it released the same way?&lt;/strong&gt; If staging is put live one way and production another, you have tested the wrong thing.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Realistic data raises a second question: privacy. Copies of real customer data need the same care as the original. Ask who can see staging and whether personal details are hidden or removed.&lt;/p&gt;

&lt;h2&gt;
  
  
  What staging cannot catch
&lt;/h2&gt;

&lt;p&gt;Staging reduces risk. It does not remove it. TechTarget lists some limits worth knowing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Traffic:&lt;/strong&gt; it can be extremely difficult or impractical to recreate heavy traffic, so a change that only fails under load can slip through.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mismatch:&lt;/strong&gt; any difference from production can hide a problem.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Slow problems:&lt;/strong&gt; things like memory leaks, where a system gradually uses up its memory, can take longer to show up. Staging needs to run as long as production does to expose them.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So staging is not a promise that go-live will be smooth. Pair it with two habits. First, make sure there is a marked way back, so you can undo a release quickly. Second, check the live product straight after release, not a week later.&lt;/p&gt;

&lt;h2&gt;
  
  
  What about the database?
&lt;/h2&gt;

&lt;p&gt;Changes to stored data are the riskiest part of any release, because they can be hard to undo. A new field, a renamed column or a clean-up of old records all touch your customers' information.&lt;/p&gt;

&lt;p&gt;The safe pattern is to rehearse those changes on a copy first, and to be sure a backup exists and actually restores before touching the live data.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you check a change on staging?
&lt;/h2&gt;

&lt;p&gt;You do not need to understand the code. You need a short list and ten minutes.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Ask what changed, in one paragraph.&lt;/strong&gt; If the agent or your team cannot say it simply, that is a finding.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pick the five things that matter most.&lt;/strong&gt; Usually sign-up or sign-in, the main thing customers do, anything involving money, anything that sends messages, and the report or screen you personally rely on.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Click through them as a customer would.&lt;/strong&gt; Use a normal account, not an admin one, as well as an admin one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Try one thing that should fail.&lt;/strong&gt; Enter a wrong password, an empty form, a letter where a number belongs. Good software refuses politely.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Look at something that did not change.&lt;/strong&gt; Side effects often show up next to the new work, not in it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write down what you saw.&lt;/strong&gt; "Checkout works with a card, fails with no message when the card is declined" is a useful note. "Looks fine" is not.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If something is off, describe it the way you would to a colleague: what you did, what you expected, what happened.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who decides when to go live?
&lt;/h2&gt;

&lt;p&gt;You do, or someone you name. The step from staging to production is a business decision, not only a technical one. A change that is technically finished may still be wrong to release on a Friday evening, or the week of a big campaign.&lt;/p&gt;

&lt;p&gt;Be wary of any setup where an AI agent can put changes on the live product by itself, with no one signing off. Keep the live product's passwords and access away from the agent's everyday work, so the easy path is always staging first.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does Atlas do about staging?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://bridge-terminal.com/atlas/?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=what-is-staging-environment-plain-guide" rel="noopener noreferrer"&gt;Atlas&lt;/a&gt; is a team of AI engineers built on Claude Code. Its releases beyond the Mac follow eight steps: the way back is marked, data is backed up and the backup proven by restoring it, database changes are rehearsed on that copy, then the release goes out and is checked. It has a program that does a plain staging deploy when the release steps can be followed exactly, and another that re-runs the tests a fix named on staging. Production go-lives are never decided for you.&lt;/p&gt;

&lt;p&gt;What Atlas does not do today is give you a plain-English walk-through for the person signing off on staging, covering what changed and what to click. That is coming to Atlas, built in, so it needs no setup on your side. Until then, use the six-step list above before you tell PA to go ahead.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Staging is a cheap place to be wrong. It gives you a safe place to look at AI-built work before customers do. Make sure it matches the live product, use realistic but protected data, and spend ten minutes on the five things that matter. Then keep a way back and check the live product right after release, because staging can reduce risk but never remove it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.techtarget.com/searchsoftwarequality/definition/staging-environment" rel="noopener noreferrer"&gt;TechTarget: staging environment definition&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/security" rel="noopener noreferrer"&gt;Claude Code security (Anthropic docs)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://bridge-terminal.com/atlas/blog/what-is-staging-environment-plain-guide/?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=what-is-staging-environment-plain-guide" rel="noopener noreferrer"&gt;Atlas blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>founders</category>
      <category>testing</category>
      <category>ai</category>
      <category>devops</category>
    </item>
    <item>
      <title>Claude Code in a Monorepo or Large Codebase: Setup Guide</title>
      <dc:creator>Nixon Perinchery</dc:creator>
      <pubDate>Mon, 09 Nov 2026 08:33:20 +0000</pubDate>
      <link>https://dev.to/nixonperinchery/claude-code-in-a-monorepo-or-large-codebase-setup-guide-1e68</link>
      <guid>https://dev.to/nixonperinchery/claude-code-in-a-monorepo-or-large-codebase-setup-guide-1e68</guid>
      <description>&lt;p&gt;&lt;strong&gt;The short version&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In a large repository, keep Claude's context on the part of the code a task touches: unrelated instructions and file reads cost tokens and can degrade Claude's performance.&lt;/li&gt;
&lt;li&gt;Where you launch claude decides which files it can edit without another grant, which CLAUDE.md files load at startup and which project settings apply, so start from the package you are working in when the work is scoped.&lt;/li&gt;
&lt;li&gt;Per-directory CLAUDE.md files, claudeMdExcludes and Read deny rules keep other teams' conventions, generated code and vendored code out of context.&lt;/li&gt;
&lt;li&gt;worktree.sparsePaths with symlinkDirectories makes worktrees lighter, and a code intelligence plugin lets Claude look up definitions and references through a language server instead of scanning files.&lt;/li&gt;
&lt;li&gt;Deny rules do not stop a Bash search such as grep -r from listing denied files, so treat them as a context filter, not a security boundary.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To set up Claude Code in a monorepo or large codebase, scope it to the part of the tree each task touches: start it from the package you are working in, split instructions into per-directory CLAUDE.md files, and block reads of generated and vendored code. The defaults are tuned for smaller projects. In a big tree they can fill the context window with instructions and file reads unrelated to the task, which costs tokens and, according to &lt;a href="https://code.claude.com/docs/en/large-codebases.md" rel="noopener noreferrer"&gt;Anthropic's large-codebase guide&lt;/a&gt;, degrades Claude's performance.&lt;/p&gt;

&lt;p&gt;This article walks through that guide's settings in the order you would apply them, with config you can copy. Each setting is independent, so adopt the ones that fit your repository.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why does a large codebase need different setup?
&lt;/h2&gt;

&lt;p&gt;Instructions and file reads both grow with the size of the repository. A single root CLAUDE.md that covers every subsystem either grows long and mostly irrelevant to any one task, or stays so generic it helps nobody. File searches pull in generated and vendored code that no one wants Claude to read.&lt;/p&gt;

&lt;p&gt;The fix is the same in each case: load less, and load it only when it matters. Everything below is a way to do that.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where should you start Claude Code in a monorepo?
&lt;/h2&gt;

&lt;p&gt;Where you run &lt;code&gt;claude&lt;/code&gt; decides which files it can read and edit without another permission grant, which CLAUDE.md files load at launch, and which project settings apply. The docs give this split:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Start from&lt;/th&gt;
&lt;th&gt;File access&lt;/th&gt;
&lt;th&gt;CLAUDE.md loaded at launch&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Repository root&lt;/td&gt;
&lt;td&gt;Every file&lt;/td&gt;
&lt;td&gt;Root only; subdirectory files load on demand&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A subdirectory&lt;/td&gt;
&lt;td&gt;That subtree only, until you grant more&lt;/td&gt;
&lt;td&gt;That directory's plus every ancestor's&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Start from the root when a task spans packages. Start from a package when the work stays inside it. One catch: project settings in &lt;code&gt;.claude/settings.json&lt;/code&gt; are not inherited from parent directories the way CLAUDE.md files are. If you launch from &lt;code&gt;packages/api/&lt;/code&gt;, the settings that apply are that directory's, so each subdirectory's settings file has to be self-contained.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you layer CLAUDE.md files by directory?
&lt;/h2&gt;

&lt;p&gt;Keep the root file for rules that apply everywhere, and put area-specific conventions next to the code. Claude Code loads CLAUDE.md files from the working directory and every parent at launch, then loads each subdirectory's file on demand. Commit them so teammates inherit them; the directory's owners usually maintain their file.&lt;/p&gt;

&lt;p&gt;The root file from the docs' example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;Run package scripts from the package directory, not the monorepo root.
Prefix commit subjects with the package name, for example &lt;span class="sb"&gt;`api: add rate limiting`&lt;/span&gt;.
Never edit files under packages/&lt;span class="err"&gt;*&lt;/span&gt;/generated/. Run &lt;span class="sb"&gt;`npm run codegen`&lt;/span&gt; in the package instead.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And &lt;code&gt;packages/api/CLAUDE.md&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;Copy &lt;span class="sb"&gt;`.env.example`&lt;/span&gt; to &lt;span class="sb"&gt;`.env`&lt;/span&gt; before running anything. Tests and the dev server fail without it.
Write database queries with the Knex query builder. Never put raw SQL strings in route handlers.
Never edit a migration after it has merged. Add a new migration instead.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Started from &lt;code&gt;packages/api/&lt;/code&gt;, Claude sees both files and nothing from &lt;code&gt;packages/web/&lt;/code&gt;. To check what actually loaded, run &lt;code&gt;/context all&lt;/code&gt; and look under &lt;strong&gt;Memory files&lt;/strong&gt;. If a checked-in file has grown too large, the docs point to the &lt;code&gt;/doctor&lt;/code&gt; checkup.&lt;/p&gt;

&lt;p&gt;Three habits keep these files honest, all from the same guide:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Review CLAUDE.md edits in pull requests, like any documentation change.&lt;/li&gt;
&lt;li&gt;Revisit them after major model releases, since a workaround for an older model's limitation can become overhead.&lt;/li&gt;
&lt;li&gt;Consider a &lt;code&gt;Stop&lt;/code&gt; hook. It receives the path to the session transcript when Claude finishes responding, so a script can propose CLAUDE.md updates while the gap is fresh.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Per-directory CLAUDE.md or path-scoped rules?
&lt;/h3&gt;

&lt;p&gt;Both target instructions at part of the tree. Per-directory files live with the code and are maintained by that directory's owners. Rules under &lt;code&gt;.claude/rules/&lt;/code&gt; live centrally and load when Claude works with a file matching the rule's &lt;code&gt;paths:&lt;/code&gt; glob, which suits conventions that apply to many scattered paths.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you exclude CLAUDE.md files you never need?
&lt;/h2&gt;

&lt;p&gt;When you start from the root, subdirectory files can load on demand. The &lt;code&gt;claudeMdExcludes&lt;/code&gt; setting skips files by glob so they never load. Patterns are matched against absolute file paths, so begin relative-style patterns with &lt;code&gt;**/&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"claudeMdExcludes"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"**/packages/web/**"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This skips every CLAUDE.md and rules file under that package. Put it in &lt;code&gt;.claude/settings.local.json&lt;/code&gt; if it is only for you. Claude Code adds that file to your global gitignore when it saves a setting there, but if you create it by hand, add it to gitignore yourself.&lt;/p&gt;

&lt;p&gt;The list is static, not a per-task switch: to work on a different package tomorrow, start Claude from that package instead of editing exclusions. The setting works at any settings scope and arrays merge across scopes. A managed organisation-wide CLAUDE.md cannot be excluded this way.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you stop Claude reading generated and vendored code?
&lt;/h2&gt;

&lt;p&gt;Content searches respect &lt;code&gt;.gitignore&lt;/code&gt; by default, so &lt;code&gt;node_modules/&lt;/code&gt;, &lt;code&gt;dist/&lt;/code&gt; and &lt;code&gt;build/&lt;/code&gt; are usually covered if they are listed there. For checked-in generated code or a vendored SDK, add &lt;code&gt;Read&lt;/code&gt; deny rules:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"permissions"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"deny"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="s2"&gt;"Read(./**/dist/**/*)"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="s2"&gt;"Read(./**/build/**/*)"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="s2"&gt;"Read(./**/*.generated.*)"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="s2"&gt;"Read(./**/vendor/**/*)"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The patterns end in &lt;code&gt;/**/*&lt;/code&gt;, not &lt;code&gt;/**&lt;/code&gt;, so Claude can still list or &lt;code&gt;cd&lt;/code&gt; into the directories but cannot open what is inside. Commit the rules to &lt;code&gt;.claude/settings.json&lt;/code&gt; for the team, use &lt;code&gt;.claude/settings.local.json&lt;/code&gt; for yourself, or use managed settings to enforce them for everyone. Relative patterns anchor at the session's working directory, so if you start sessions from subdirectories and keep the rules in the root's local file, write them as &lt;code&gt;//&lt;/code&gt;-absolute paths.&lt;/p&gt;

&lt;p&gt;Know the limits. Deny rules cover Claude's built-in file tools. In Bash they cover the file commands Claude Code recognises, such as &lt;code&gt;cat&lt;/code&gt;, &lt;code&gt;head&lt;/code&gt;, &lt;code&gt;grep&lt;/code&gt; and &lt;code&gt;find&lt;/code&gt;, when a denied path appears as an argument. A Bash search like &lt;code&gt;grep -r&lt;/code&gt; or &lt;code&gt;find&lt;/code&gt; over a directory that contains denied files still includes them, and deny rules do not cover subprocesses that open files themselves. Use them to save context, not as a security control.&lt;/p&gt;

&lt;h2&gt;
  
  
  Can Claude find code without scanning every file?
&lt;/h2&gt;

&lt;p&gt;In a large tree, finding a symbol's definition or callers can cost many file reads and grep calls. A code intelligence plugin connects Claude to a language server so it can jump to definitions, find references and surface type errors directly. The &lt;a href="https://code.claude.com/docs/en/common-workflows" rel="noopener noreferrer"&gt;common workflows page&lt;/a&gt; recommends installing one for your language. From the official marketplace, the TypeScript one installs at the &lt;code&gt;claude&lt;/code&gt; prompt with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;/plugin &lt;span class="nb"&gt;install &lt;/span&gt;typescript-lsp@claude-plugins-official
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If Claude Code reports that the marketplace is not found, add it with &lt;code&gt;/plugin marketplace add anthropics/claude-plugins-official&lt;/code&gt; and retry. If it reports the plugin is not found, refresh the catalog with &lt;code&gt;/plugin marketplace update claude-plugins-official&lt;/code&gt;. Each developer's machine also needs the language's server binary. To enable a plugin for everyone in the repository, use the &lt;code&gt;enabledPlugins&lt;/code&gt; project setting.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you keep worktrees light in a big repo?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://code.claude.com/docs/en/common-workflows" rel="noopener noreferrer"&gt;&lt;code&gt;claude --worktree&lt;/code&gt;&lt;/a&gt; starts a session in its own git worktree, a separate checkout on its own branch. By default it checks out the whole repository. The &lt;code&gt;worktree.sparsePaths&lt;/code&gt; setting uses git sparse-checkout to write only the listed directories plus root-level files. Pair it with &lt;code&gt;symlinkDirectories&lt;/code&gt; so &lt;code&gt;node_modules&lt;/code&gt; is symlinked back to the main copy instead of duplicated:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"worktree"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"sparsePaths"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="s2"&gt;".claude"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="s2"&gt;"packages/api"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="s2"&gt;"packages/shared"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"symlinkDirectories"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="s2"&gt;"node_modules"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Paths are relative to the repository root, whichever subdirectory you start from. Root-level files such as &lt;code&gt;package.json&lt;/code&gt; and lock files always come along, but root-level directories do not, so list &lt;code&gt;.claude&lt;/code&gt; if you want the root settings or rules inside the worktree. List directories, not individual files.&lt;/p&gt;

&lt;p&gt;This also helps subagents that run in worktrees, since each gets a lightweight checkout. All worktrees in a session share the same &lt;code&gt;sparsePaths&lt;/code&gt;, so list every package any subagent needs. If you set it in &lt;code&gt;.claude/settings.local.json&lt;/code&gt;, the lists merge with the committed one: a local file can add paths but not remove them.&lt;/p&gt;

&lt;p&gt;One gotcha: inside a worktree the working directory is the worktree root, so a package's own &lt;code&gt;.claude/settings.json&lt;/code&gt; does not load there. Put settings you need in worktrees, such as deny rules or hooks, in the repository root's &lt;code&gt;.claude/settings.json&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you edit across packages?
&lt;/h2&gt;

&lt;p&gt;Started from &lt;code&gt;packages/api/&lt;/code&gt;, Claude can read and edit files in that directory. Grant access to siblings with &lt;code&gt;additionalDirectories&lt;/code&gt; or a flag:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"permissions"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"additionalDirectories"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"../shared"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"../web"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude &lt;span class="nt"&gt;--add-dir&lt;/span&gt; ../shared
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The two differ in what else loads. Directories from the &lt;code&gt;additionalDirectories&lt;/code&gt; setting never load their CLAUDE.md, rules or skills. With &lt;code&gt;--add-dir&lt;/code&gt; or &lt;code&gt;/add-dir&lt;/code&gt;, skills load, and CLAUDE.md and rules load only if you set an environment variable:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;1 claude &lt;span class="nt"&gt;--add-dir&lt;/span&gt; ../shared
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For a change that crosses packages, such as a shared type and its call sites, the guide suggests giving Claude the whole change in one session and planning first in plan mode. Claude writes the plan to a file, and Claude Code re-injects that file after each compaction, so the plan survives a long session.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where do skills and plugins fit?
&lt;/h2&gt;

&lt;p&gt;Skills under a directory's &lt;code&gt;.claude/skills/&lt;/code&gt; load on demand when Claude determines they are relevant. Claude picks a skill by reading every discovered skill's name and description, and only the chosen skill's full content enters context. So area-specific procedures, such as a package's testing patterns, cost little until needed. A skill's &lt;code&gt;paths&lt;/code&gt; frontmatter can also scope it to matching files by glob.&lt;/p&gt;

&lt;p&gt;Keep descriptions short and lead with the words a request would contain, because when there are many skills, some lose their descriptions entirely. Started from the repository root, the skills in scope include those from every subdirectory Claude touches, which can accumulate into the hundreds.&lt;/p&gt;

&lt;p&gt;When per-directory files become hard to govern, the guide recommends moving conventions into skills, versioned plugins owned by a platform team, or an MCP server over a code search or RAG index you already run.&lt;/p&gt;

&lt;h2&gt;
  
  
  A minimal starting point
&lt;/h2&gt;

&lt;p&gt;If you do nothing else, do these four things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Commit a short root CLAUDE.md and one per package for local conventions.&lt;/li&gt;
&lt;li&gt;Start Claude from the package, not the root, when work is scoped.&lt;/li&gt;
&lt;li&gt;Add &lt;code&gt;Read&lt;/code&gt; deny rules for committed generated and vendored paths.&lt;/li&gt;
&lt;li&gt;Set &lt;code&gt;worktree.sparsePaths&lt;/code&gt; and &lt;code&gt;symlinkDirectories&lt;/code&gt; before running parallel sessions.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Then run &lt;code&gt;/context all&lt;/code&gt; once and confirm only what you expect is loaded.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Atlas does today
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://bridge-terminal.com/atlas/?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=claude-code-monorepo-large-codebase-setup" rel="noopener noreferrer"&gt;Atlas&lt;/a&gt; is a team of AI engineers built on Claude Code. Each engineer is its own Claude Code session with its own copy of the code to work in, loads only the tools its role uses, and loads the project's instructions once. Atlas also builds and keeps a code map of the project so engineers can find their way around a large codebase. Several engineers at once use your Claude plan's limits faster, so keeping each one's context narrow matters there too.&lt;/p&gt;

&lt;p&gt;Atlas does not yet set up language-server lookups or read blocking for generated and vendored code. That is coming to Atlas, built in, so it will need no setup. Until then, you can apply the deny rules and plugin install above in your own project's settings.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Claude Code does not need a different tool for a large repository, just narrower scoping. Choose the launch directory deliberately, layer instructions by area, keep generated code out of reads, and keep worktrees sparse. Revisit the setup after model releases, because instructions that were once necessary can turn into overhead.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/large-codebases.md" rel="noopener noreferrer"&gt;Set up Claude Code in a monorepo or large codebase&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/common-workflows" rel="noopener noreferrer"&gt;Common workflows - Claude Code Docs&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://bridge-terminal.com/atlas/blog/claude-code-monorepo-large-codebase-setup/?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=claude-code-monorepo-large-codebase-setup" rel="noopener noreferrer"&gt;Atlas blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>claudecode</category>
      <category>ai</category>
      <category>monorepo</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
