<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Developer-Tools on Vitalii Sukach</title><link>https://sukachvitally.github.io/tags/developer-tools/</link><description>Recent content in Developer-Tools on Vitalii Sukach</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 02 Jun 2026 17:21:27 +0000</lastBuildDate><atom:link href="https://sukachvitally.github.io/tags/developer-tools/index.xml" rel="self" type="application/rss+xml"/><item><title>Claude Code: The Complete Guide Nobody Wrote</title><link>https://sukachvitally.github.io/posts/claude-code-the-complete-guide-nobody-wrote/</link><pubDate>Tue, 02 Jun 2026 17:21:27 +0000</pubDate><guid>https://sukachvitally.github.io/posts/claude-code-the-complete-guide-nobody-wrote/</guid><description>&lt;p>&lt;img loading="lazy" src="https://sukachvitally.github.io/posts/claude-code-the-complete-guide-nobody-wrote/image-01.png">&lt;/p>
&lt;h3 id="the-agentic-loop-how-claude-actuallythinks">The Agentic Loop (How Claude Actually Thinks)&lt;/h3>
&lt;p>Before anything else, you need to understand what makes Claude Code different from your IDE’s autocomplete. Autocomplete guesses the next word. Claude Code runs a loop — it gathers context, takes action, verifies results, then repeats until the task is done. Think of it less like a text editor feature and more like a developer who works asynchronously while you make coffee.&lt;/p></description><content:encoded><![CDATA[<p><img loading="lazy" src="https://sukachvitally.github.io/posts/claude-code-the-complete-guide-nobody-wrote/image-01.png"></p>
<h3 id="the-agentic-loop-how-claude-actuallythinks">The Agentic Loop (How Claude Actually Thinks)</h3>
<p>Before anything else, you need to understand what makes Claude Code different from your IDE’s autocomplete. Autocomplete guesses the next word. Claude Code runs a loop — it gathers context, takes action, verifies results, then repeats until the task is done. Think of it less like a text editor feature and more like a developer who works asynchronously while you make coffee.</p>
<p>The loop has three phases that blend together depending on the task:</p>
<p><img loading="lazy" src="https://sukachvitally.github.io/posts/claude-code-the-complete-guide-nobody-wrote/image-02.png"></p>
<p>The loop adapts to what you ask. A question might only hit phase 1. A bug fix cycles through all three phases multiple times. A full feature might chain dozens of tool calls before Claude surfaces for air. You’re part of the loop too — you can interrupt at any point with Ctrl+C and steer it in a different direction.</p>
<blockquote>
<p><strong>THE HONEST SUMMARY</strong></p></blockquote>
<blockquote>
<p>Claude Code is basically a language model with access to your entire computer strapped to it. It can read everything, run anything you could run from a terminal, and it just keeps going until it either finishes the task or you tell it to stop. This is either exhilarating or terrifying depending on how much you trust your test coverage.</p></blockquote>
<h3 id="sessions--how-claude-remembers-ordoesnt">Sessions &amp; How Claude Remembers (Or Doesn’t)</h3>
<p>Here’s the thing about Claude: <strong>every session starts with a completely blank memory.</strong> No recollection of last week’s chat. No memory of that convention you mentioned. Tabula rasa. Every. Single. Time. If you don’t explicitly persist knowledge, it’s gone when the session closes.</p>
<p>This isn’t a bug — it’s how LLMs work. But Claude Code gives you two mechanisms to work around it:</p>
<p><img loading="lazy" src="https://sukachvitally.github.io/posts/claude-code-the-complete-guide-nobody-wrote/image-03.png"></p>
<h4 id="how-a-session-actuallystarts">How a session actually starts</h4>
<p>When you run claude in a directory, here&rsquo;s what happens in the first few seconds before you&rsquo;ve typed anything:</p>
<ol>
<li>**Settings load (all scopes)**Global ~/.claude/settings.json → project .claude/settings.json → local .claude/settings.local.json. Scalar settings use the most specific value; array settings (like permissions) merge across all scopes.</li>
<li><strong>MCP servers connect</strong>All configured MCP servers from .mcp.json and ~/.claude.json start up. Tool schemas are deferred and load on demand. If a server fails to connect, Claude continues without it — it just loses those tools.</li>
<li><strong>CLAUDE.md files load into context</strong>Org-level → user-level (~/.claude/CLAUDE.md) → project-level (./CLAUDE.md) → local (./CLAUDE.local.md). Plus your ~/.claude/MEMORY.md auto memory. All of this costs context window tokens immediately.</li>
<li><strong>Plugins activate</strong>All enabled plugins load their skills, hooks, MCP servers, and settings. Run /reload-plugins to activate changes mid-session.</li>
<li><strong>Session is ready</strong>You see the prompt. Everything above has already happened. Claude now has your project context and is ready to work.</li>
</ol>
<blockquote>
<p><strong>CONTEXT WINDOW BUDGET</strong></p></blockquote>
<blockquote>
<p>Everything loaded at startup costs tokens before you type a single character. A bloated CLAUDE.md, a dozen MCP servers, and a large MEMORY.md can eat a significant chunk of your context window. Run /status to see current token usage. Use /compact when a session gets long.</p></blockquote>
<h3 id="theclaude-directoryevery-folder-explained">The .claude Directory — Every Folder Explained</h3>
<p>The .claude/ folder is Claude Code&rsquo;s configuration home in your project. There&rsquo;s also ~/.claude/ in your home directory for global settings. Here&rsquo;s the complete layout with every file and folder you&rsquo;ll actually encounter:</p>
<p><img loading="lazy" src="https://sukachvitally.github.io/posts/claude-code-the-complete-guide-nobody-wrote/image-04.png"></p>
<blockquote>
<p><strong>COMMIT STRATEGY</strong></p></blockquote>
<blockquote>
<p>Everything marked <strong>committed</strong> should go in Git so your whole team gets the same Claude setup. Everything marked <strong>gitignored</strong> is personal — Claude automatically adds settings.local.json to your global Git ignore. Add CLAUDE.local.md to your project&rsquo;s .gitignore manually.</p></blockquote>
<h3 id="claudemdthe-fullstory">CLAUDE.md — The Full Story</h3>
<p>You’ve heard about CLAUDE.md. Everyone mentions it. But few people explain the <em>entire</em> system behind it, which has four separate scope levels that load in a specific order:</p>
<p><img loading="lazy" src="https://sukachvitally.github.io/posts/claude-code-the-complete-guide-nobody-wrote/image-05.png"></p>
<p>They load in that order — managed first, local last. More specific scopes appear later in the context window, giving them higher effective priority.</p>
<h4 id="what-to-actually-put-in-claudemd">What to actually put in CLAUDE.md</h4>
<p>The golden rule: add something to CLAUDE.md when Claude makes the same mistake a second time. Here’s a battle-tested example for a Spring Boot project:</p>
<p><img loading="lazy" src="https://sukachvitally.github.io/posts/claude-code-the-complete-guide-nobody-wrote/image-06.png"></p>
<blockquote>
<p><strong>SIZE MATTERS</strong></p></blockquote>
<blockquote>
<p>Target under 200 lines per CLAUDE.md. Longer files still load fully but adherence drops. If it’s getting long, split topic-specific rules into .claude/rules/ files and skills for complex procedures — they load conditionally and save your context window.</p></blockquote>
<h4 id="auto-memory-memorymd">Auto Memory (MEMORY.md)</h4>
<p>This is the magical part most people miss. Claude can write its own notes — automatically. When you correct Claude, it optionally remembers that correction for next session in ~/.claude/MEMORY.md. The first 200 lines or 25KB load at the start of every session.</p>
<p>Enable it with /memory in session or toggle it in settings. Then: tell Claude something once, it remembers it forever (until you delete the entry). This is how you get a Claude that feels like it&rsquo;s been on your team for months.</p>
<h3 id="settingsjsonthe-enforcement-layer">settings.json — The Enforcement Layer</h3>
<p>There’s a critical distinction most people miss: <strong>CLAUDE.md is guidance Claude reads.settings.json is configuration Claude Code enforces.</strong> One is a polite suggestion. The other is a locked door.</p>
<p>Settings live in .claude/settings.json (project/team) and .claude/settings.local.json(personal overrides). Here&rsquo;s what you can configure:</p>
<p><img loading="lazy" src="https://sukachvitally.github.io/posts/claude-code-the-complete-guide-nobody-wrote/image-07.png"></p>
<blockquote>
<p><strong>ALLOW VS DENY PRECEDENCE</strong></p></blockquote>
<blockquote>
<p>Deny rules always win over allow rules. If you allow Bash(kubectl *) and deny Bash(kubectl delete *), the delete command is blocked. Patterns support wildcards — Bash(npm test *)matches any command starting with npm test.</p></blockquote>
<h3 id="rulesscoped-instructions-that-load-ondemand">rules/ — Scoped Instructions That Load On Demand</h3>
<p>Once your CLAUDE.md hits 200 lines, start splitting it into .claude/rules/. Rules are Markdown files that can load <em>conditionally</em> based on which files Claude is working with — only when it reads a file that matches the rule&rsquo;s path pattern. This keeps your global context lean while ensuring Claude gets the right rules at the right time.</p>
<p><img loading="lazy" src="https://sukachvitally.github.io/posts/claude-code-the-complete-guide-nobody-wrote/image-08.png"></p>
<p><img loading="lazy" src="https://sukachvitally.github.io/posts/claude-code-the-complete-guide-nobody-wrote/image-09.png"></p>
<blockquote>
<p><strong>THE REAL POWER</strong></p></blockquote>
<blockquote>
<p>A rule file without paths: frontmatter loads every session like CLAUDE.md. A rule WITH paths:only loads when Claude reads a matching file. This means your Kafka rules don&rsquo;t eat context window during a CLAUDE.md update, and your migration rules only appear when Claude actually opens a migration file.</p></blockquote>
<h3 id="skillsyour-custom-slashcommands">skills/ — Your Custom Slash Commands</h3>
<p>Skills are reusable prompts you or Claude can invoke by name using /skill-name. Think of them as saved workflows — things you do repeatedly that are more than a one-liner but less than a custom tool. You write the instructions once in a SKILL.md, and invoke it whenever you need it.</p>
<p><img loading="lazy" src="https://sukachvitally.github.io/posts/claude-code-the-complete-guide-nobody-wrote/image-10.png"></p>
<p>Now you type /db-migrate and Claude walks through all seven steps. No more explaining the process from scratch every time. Skills also accept arguments via $ARGUMENTS:</p>
<p><img loading="lazy" src="https://sukachvitally.github.io/posts/claude-code-the-complete-guide-nobody-wrote/image-11.png"></p>
<p>Usage: /review-pr 127 — Claude reviews MR #127 with your exact conventions baked in.</p>
<blockquote>
<p>SKILLS VS COMMANDS</p></blockquote>
<blockquote>
<p>You may see references to .claude/commands/ in older docs — this is the same mechanism as skills. For new workflows, use skills/ instead: same /name invocation, plus you can bundle supporting files alongside the SKILL.md.</p></blockquote>
<h3 id="hooksthe-automation-engine">Hooks — The Automation Engine</h3>
<p>Hooks are shell commands that fire automatically at specific points in Claude’s lifecycle. They’re deterministic — they <em>always</em> run when triggered, regardless of what Claude decides. This is the difference between “please format the file” (Claude might forget) and “PostToolUse hook runs Spotless” (it definitely happens).</p>
<h4 id="available-hookevents">Available hook events</h4>
<p><strong>PreToolUse</strong><em>Fires before any tool call. Can block execution (exit 2). Use to protect files or validate commands.</em></p>
<p><strong>PostToolUse</strong><em>Fires after a tool completes. Perfect for auto-formatting files after Claude edits them.</em></p>
<p><strong>Notification</strong><em>Fires when Claude needs your input. Desktop notification so you don’t stare at the terminal.</em></p>
<p><strong>SessionStart</strong><em>Fires when a session begins. Inject additional context, set environment, run setup scripts.</em></p>
<p><strong>PreCompact</strong><em>Fires before conversation compaction. Re-inject context that would otherwise be lost.</em></p>
<p><strong>Stop</strong><em>Fires when Claude finishes a response. Useful for post-response validation or logging.</em></p>
<h3 id="practical-examples-for-a-javaspring-bootproject">Practical examples for a Java/Spring Boot project</h3>
<p><img loading="lazy" src="https://sukachvitally.github.io/posts/claude-code-the-complete-guide-nobody-wrote/image-12.png"></p>
<p><img loading="lazy" src="https://sukachvitally.github.io/posts/claude-code-the-complete-guide-nobody-wrote/image-13.png"></p>
<blockquote>
<p><strong>EXIT CODES MATTER</strong></p></blockquote>
<blockquote>
<p>exit 0 = allow. exit 1 = warn Claude but let it continue. exit 2 = hard block — Claude gets told why and has to try something else. It&rsquo;s the digital equivalent of a bouncer who also explains the dress code.</p></blockquote>
<h3 id="mcpconnecting-claude-to-theworld">MCP — Connecting Claude to the World</h3>
<p>Model Context Protocol (MCP) is an open standard for connecting AI to external tools. Without MCP, Claude can only see your filesystem and run terminal commands. With MCP, Claude can query your Jira board, check Sentry errors, read Slack messages, query your PostgreSQL database, and more — all without you copying and pasting anything.</p>
<blockquote>
<p><strong>THE MENTAL MODEL</strong></p></blockquote>
<blockquote>
<p>MCP is how Claude gets a login to your tools. Without it: “here’s a pasted error from Sentry.” With it: “Claude, check what errors happened in prod in the last hour and correlate them with my recent commits.”</p></blockquote>
<h4 id="three-types-of-mcpservers">Three types of MCP servers</h4>
<p><img loading="lazy" src="https://sukachvitally.github.io/posts/claude-code-the-complete-guide-nobody-wrote/image-14.png"></p>
<h4 id="project-scoped-mcp-mcpjson">Project-scoped MCP (.mcp.json)</h4>
<p>Put your team’s MCP servers in .mcp.json at the project root. This file gets committed to Git so everyone on the team gets the same tools:</p>
<p><img loading="lazy" src="https://sukachvitally.github.io/posts/claude-code-the-complete-guide-nobody-wrote/image-15.png"></p>
<h4 id="user-scoped-mcp-personal-tools">User-scoped MCP (personal tools)</h4>
<p>For tools only you need (not your team), use the &ndash;scope user flag. This writes to ~/.claude.json instead of .mcp.json:</p>
<p><img loading="lazy" src="https://sukachvitally.github.io/posts/claude-code-the-complete-guide-nobody-wrote/image-16.png"></p>
<blockquote>
<p><strong>CHANNELS: MCP THAT PUSHES TO CLAUDE</strong></p></blockquote>
<blockquote>
<p>Normal MCP is pull — Claude queries a server when it needs something. Channels flip this: an MCP server <em>pushes</em> messages into your running session. This means Claude can react to CI results, monitoring alerts, or Slack messages while you’re doing something else. Enable with &ndash;channelsflag on startup.</p></blockquote>
<h3 id="pluginspackage--share-everything">Plugins — Package &amp; Share Everything</h3>
<p>Everything you’ve built — skills, hooks, MCP servers, rules — can be packaged into a <strong>plugin</strong> and shared with your team, your org, or the whole world. Plugins are just directories with a .claude-plugin/plugin.json manifest. They&rsquo;re the difference between &ldquo;config that lives in one project&rdquo; and &ldquo;config that lives everywhere.&rdquo;</p>
<h4 id="standalone-config-vsplugins">Standalone config vs plugins</h4>
<p><img loading="lazy" src="https://sukachvitally.github.io/posts/claude-code-the-complete-guide-nobody-wrote/image-17.png"></p>
<h4 id="plugin-structure">Plugin structure</h4>
<p><img loading="lazy" src="https://sukachvitally.github.io/posts/claude-code-the-complete-guide-nobody-wrote/image-18.png"></p>
<p><img loading="lazy" src="https://sukachvitally.github.io/posts/claude-code-the-complete-guide-nobody-wrote/image-19.png"></p>
<h4 id="installing-aplugin">Installing a plugin</h4>
<p><img loading="lazy" src="https://sukachvitally.github.io/posts/claude-code-the-complete-guide-nobody-wrote/image-20.png"></p>
<blockquote>
<p><strong>THE REAL VALUE</strong></p></blockquote>
<blockquote>
<p>Your platform team builds a plugin once with all the Spring Boot conventions, Kafka rules, code review skills, and MCP servers your org uses. Every developer installs it once. Every project gets the same setup. No more “did you add the Flyway rules to your CLAUDE.md?” Slack messages.</p></blockquote>
<h3 id="subagentsclaude-spawningclaude">Subagents — Claude Spawning Claude</h3>
<p>This is the part where things get genuinely science-fiction. Subagents let Claude spin up <em>other Claude instances</em> to handle subtasks in parallel or in isolated contexts. The main Claude orchestrates; the subagents execute. Think distributed computing, but the workers are also AI and can also spawn more workers.</p>
<p><img loading="lazy" src="https://sukachvitally.github.io/posts/claude-code-the-complete-guide-nobody-wrote/image-21.png"></p>
<p>Subagents can maintain their own MEMORY.md too. Imagine a &ldquo;database specialist&rdquo; subagent that remembers every schema change it&rsquo;s ever helped with. That&rsquo;s the direction this is heading.</p>
<blockquote>
<p><strong>WHEN TO USE SUBAGENTS</strong></p></blockquote>
<blockquote>
<p>For most day-to-day tasks, you don’t need subagents. They’re most useful when you have truly parallel workstreams (implement feature A and feature B simultaneously without conflicts), when you need a clean context for a specific task, or when you’re building automation pipelines that run without human interaction.</p></blockquote>
<h3 id="complete-quick-reference">Complete Quick Reference</h3>
<ul>
<li><strong>.claude/settings.json</strong> — permissions + hooks + model config. Enforced, not just read.</li>
<li><strong>CLAUDE.md</strong> — persistent instructions. Team version in ./CLAUDE.md, personal in ~/.claude/CLAUDE.md.</li>
<li><strong>MEMORY.md</strong> — auto-written by Claude. Persists learnings across sessions (200 lines / 25KB limit).</li>
<li><strong>.claude/rules/</strong> — conditional instruction files. Use paths: frontmatter to load only for relevant files.</li>
<li><strong>.claude/skills/</strong> — custom /commands. Each skill = a folder with SKILL.md. Accepts $ARGUMENTS.</li>
<li><strong>hooks</strong> — deterministic automation. PreToolUse (block/allow), PostToolUse (format), Notification (alert).</li>
<li><strong>.mcp.json</strong> — team MCP servers (committed). ~/.claude.json for personal servers.</li>
<li><strong>Plugins</strong> — packaged, shareable bundles of skills + hooks + MCP + settings. Install with /plugin install.</li>
<li><strong>Subagents</strong> — parallel Claude instances for complex multi-track workflows. Three isolation levels.</li>
<li><strong>/init</strong> — always run first in a new project. Generates CLAUDE.md automatically.</li>
<li><strong>/compact</strong> — compresses long sessions. <strong>/clear</strong> = fresh start (CLAUDE.md reloads).</li>
<li><strong>/mcp</strong> — shows server status + tool count. <strong>/hooks</strong> — shows configured hooks. <strong>/memory</strong> — edit CLAUDE.md.</li>
</ul>
]]></content:encoded></item></channel></rss>