The Production Playbook
Part 1 gave you the primitives. This is where theory becomes muscle memory. Twelve more modules: the complete command reference, git workflows, the DDS Vibe Coding methodology, build-along walkthroughs, multi-agent orchestration, cost control, IDE integration, three end-to-end case studies, and the $250K cheat sheet.
Part 2 of the Claude Code Masterclass is the production half. Twelve modules organized across three acts: Act IV covers daily production workflows (complete command reference, git discipline, the DDS Vibe Coding methodology, a React build-along, a Shopify section build-along). Act V covers advanced patterns (multi-agent orchestration, plugins and the ecosystem, deep IDE integration, cost and rate-limit control). Act VI is the DDS edge (three real case studies from the Sovereign AGI Suite, the $250K cheat sheet, and what comes next). If Part 1 was the manual, Part 2 is the playbook.
Prerequisites — start with Part 1 if you haven’t
This page assumes Part 1. You need working knowledge of: Claude Code installation, the Opus/Sonnet/Haiku model split, the four permission modes, CLAUDE.md as an always-on rules file, Skills with progressive disclosure, Subagents with context isolation, Hooks as deterministic safety rails, MCP servers for external reach, and Ollama as sovereign fallback. If any of that is unfamiliar, open Part 1 — Foundation & Mastery first. This page will still work without it, but you’ll be filling in gaps as you read.
What you’ll build, learn, and ship
Part 1 was the stretch and warm-up. Part 2 is the main set. By the end you will have: a reference-grade command table pinned to your wall, a git workflow that scales from solo to team, your own CLAUDE.md + skills + hooks template adapted from the DDS methodology, two complete project walkthroughs you can reproduce, a multi-agent orchestration playbook, a cost discipline that keeps you well under rate limits, and three real case studies from systems I built and ship with every day.
The three acts of Part 2
Production Workflows
Commands reference, git discipline, the 5 Pillars of Vibe Coding, a React app build-along from empty directory to shipped UI, a Shopify section build-along that passes theme check.
Advanced Patterns
Multi-agent orchestration for parallel feature work. The plugins ecosystem and marketplace. IDE deep dive (VS Code, JetBrains, Cursor, Windsurf). Cost control and rate limit discipline.
The DDS Edge
Three case studies from the Sovereign AGI Suite — patterns not internals. The $250K cheat sheet (one-pager you can print). What comes next: sovereign stack, specialization paths, the Mythos release horizon.
- Memorize ten commands, not fifty. /init, /plan, /model, /context, /compact, /memory, /rewind, /usage, /doctor, /focus. Everything else is situational. Module 14 has the full reference table.
- Branch-and-PR, always. Agents commit to feature branches via hooks-enforced discipline. Never
maindirectly. Worktree isolation prevents parallel-agent file conflicts. - The 5 Pillars of Vibe Coding: constraint-first design, progressive disclosure, deterministic rails, context hygiene, sovereign fallback. Every DDS system follows this shape.
- A React app from scratch takes one focused session with the right CLAUDE.md. Module 17 walks it step by step.
- A Shopify section that passes theme check takes a skill, not a prompt. The skill loads only when you need it. Module 18 shows the pattern.
- Subagents for research, teams for coordination. Default to subagents; reach for teams only when parallel tracks need to message each other.
- Plugins package everything. Skills + subagents + hooks + MCP bundled for one-click team install. Plugin subagents can’t escalate their own capabilities — security feature.
- Terminal for power, IDE for flow. VS Code extension has native inline diffs, @-mentions, drag-and-drop. Use both. They share session state.
- Cost is a config problem. Default to Sonnet. Reach for Opus on hard tasks only. Haiku-powered Explore subagents for research. Ollama for batch and private work.
/usageweekly. - The DDS systems you’ll study: VibeTube AI (Shopify-shipped Electron desktop app), Collection Hero Grid v4.2 (1,009-line Shopify section), SEO Magnet System V2 (the skill that powered this very page). All built with Claude Code. Module 23.
The Complete Command Reference
Claude Code ships with 50+ slash commands. You will use ten daily, fifteen more monthly, and the rest only when something breaks. This is the full table organized by purpose. Print it, pin it, memorize the daily drivers.
Daily drivers · the ten you use every session
| Command | Purpose | When |
|---|---|---|
| /init | Scan codebase, draft starter CLAUDE.md | New project, first run |
| /plan | Toggle plan mode (dry-run; approval before tool calls) | Unfamiliar code, large refactor |
| /model | Switch between Opus, Sonnet, Haiku | Before hard tasks (Opus) or research (Haiku) |
| /context | Show current context window usage | When session feels slow |
| /compact | Summarize conversation, drop history | At task boundaries, not mid-task |
| /memory | View and edit auto-memory | Correcting wrong remembered facts |
| /rewind | Undo code changes from current session | Regret recent edits |
| /usage | Show plan limits and current consumption | Weekly — stay ahead of limits |
| /doctor | Diagnostic check on install, API, MCP, git | Anything feels off |
| /focus | Hide transcript chatter; show only final message | Long autonomous runs (added 2026) |
Session management
| Command | Purpose |
|---|---|
| /resume | Resume a prior session from history |
| /recap | Get a re-orientation summary on return (added 2026) |
| /autocompact | Toggle auto-compact near context limit |
| /status | Show session state summary |
| /statusline | Configure terminal status line (rate limits, model, etc.) |
| /reload-plugins | Reload installed plugins without restart |
Agents, skills, plugins, MCP
| Command | Purpose |
|---|---|
| /agents | Interactive subagent manager: create, edit, test |
| /skills | List and manage installed skills |
| /plugins | Plugin marketplace: browse, install, manage |
| /mcp | MCP server management: list, enable/disable, inspect tools |
| /hooks | Interactive hook creation |
| /team-onboarding | Fast-track setup walkthrough for new team members |
Review & quality
| Command | Purpose |
|---|---|
| /review | Trigger code review subagent on current diff |
| /security-review | Security-focused code review |
| /ultraplan | Extended-thinking plan mode (deeper analysis before action) |
| /rename | Rename the current session for later /resume |
| /help | List all available commands with descriptions |
| /bug | File a bug report with session context to Anthropic |
| /btw | Pass a one-off aside to Claude without resetting state |
Commands you write yourself (Module 09 in Part 1) sit next to all of these in the picker. Your /ship-it, /review-pr, /add-tests, /explain appear with the built-ins. This is why investing in four to seven well-designed custom commands is higher leverage than memorizing the full built-in table.
Git Workflows — Agent-Safe From Day One
Most Claude Code disasters are git disasters. The agent force-pushes to main, commits .env to the public remote, or drops an in-progress branch when you ask for a clean slate. Every one of these is preventable at the hook level. Here is the workflow that makes agent-driven git safe for solo work, safer for teams, and bulletproof with the right rails.
Branch naming, enforced
CLAUDE.md should specify your branch format. Mine is feature/<ticket>-<slug> or fix/<ticket>-<slug>. Claude honors it. A PreToolUse hook on Bash rejects git checkout -b calls with names that don’t match. You never end up with a mybranch or test-thing in your repo again.
#!/usr/bin/env bash input=$(cat) command=$(echo "$input" | jq -r '.tool_input.command // ""') # Only intercept branch-creating commands if echo "$command" | grep -qE 'git (checkout -b|switch -c)'; then branch=$(echo "$command" | grep -oE '(-b|-c)\s+\S+' | awk '{print $2}') if ! echo "$branch" | grep -qE '^(feature|fix|chore|docs|refactor)/[A-Z0-9]+-.+'; then echo "BLOCKED: branch name must match (feature|fix|chore|docs|refactor)/TICKET-slug" >&2 exit 2 fi fi exit 0
Worktree isolation for parallel agents
When you run more than one subagent at once, and they both want to write files, they step on each other. Git worktrees solve this. Each subagent with isolation: worktree gets its own checkout of the repo in a sibling directory. Same git history, different working trees, zero file conflicts.
# Create a worktree for a new feature branch git worktree add ../repo-checkout feature/T-123-checkout # Your main repo stays on its branch; the worktree is on feature/T-123-checkout # Agent writes files in ../repo-checkout with no risk to your main working tree # List worktrees git worktree list # Clean up after the agent finishes git worktree remove ../repo-checkout
Conventional commits, auto-drafted
Conventional commits (feat:, fix:, docs:, refactor:, test:, chore:) give you readable history, automated changelogs, and semantic version bumps from tools like standard-version or release-please. Your CLAUDE.md requires the format; your /ship-it command drafts the message from staged changes. You approve, commit, push.
Branch
Claude runs git checkout -b feature/T-123-add-cart-widget. Hook validates the name.
Work
Implementation happens. Hooks auto-lint on every Write/Edit. Block-sensitive-commits hook (Part 1 Module 12) refuses to stage .env.
Ship-it
Your /ship-it runs lint + tests + build, then drafts a conventional commit message from the staged diff. You approve.
Commit & push
Claude commits. A PostToolUse hook on git push blocks --force on protected branches. You push.
PR
gh pr create --fill opens the PR with your commit body as description. Human reviewer assigned. Never merge your own PR if a human teammate exists.
The three git rules your CLAUDE.md must enforce: no direct commits to main/master/production; no git push --force without a --force-with-lease review gate; no committing .env, .key, .pem, .p12, id_rsa, or anything in your .gitignore-equivalent list. Back every one of these with a PreToolUse hook. The agent cannot be smooth-talked past deterministic code.
Solo vs team adjustments
Solo work: you can skip the PR step for small fixes and commit directly to a branch, then fast-forward main. Keep the branch discipline so your history stays clean even if review is self-review.
Team work: PRs are non-negotiable. Require at least one human reviewer even when Claude drafted the review. The reviewer subagent finds issues; the human weighs them and owns the merge. Do not let the agent be the last approver on its own work.
The DDS Vibe Coding Methodology — Five Pillars
Vibe Coding is how I built the DDS Sovereign AGI Suite solo: 15 synthetic employees, $11.1M+/year in automated labor, $0/month hosting. The core idea is simple — you are no longer writing most of the code. You are defining the constraints under which AI writes it for you. Your job is specification, architecture, and review. The AI’s job is implementation. Done right, your productivity stops scaling linearly with your typing speed.
Five pillars hold the methodology up. Remove any one and the system degrades into a chatbot conversation that produces inconsistent code. All five in place, and you have an engineering system.
Pillar 1 · Constraint-First Design
Write the rules before the code. Every DDS project begins with a CLAUDE.md that enumerates non-negotiables: language version, style rules, architecture pattern, test requirements, forbidden operations, communication conventions. The rules exist before the first file does. When Claude writes the first module, it inherits a coherent system. When it writes the hundredth, the system is still coherent.
Maps to Claude Code: CLAUDE.md + path-scoped rule files in .claude/rules/ + Skills for domain-specific constraints. The stricter the constraints up front, the less you arbitrate style later.
Pillar 2 · Progressive Disclosure
Load capability only when needed. Every Skill Claude knows about costs tokens on every turn. A 40-skill setup with bad discipline loads 40x the necessary context every prompt. The fix is tight skill descriptions that act as narrow triggers — each skill declares precisely when it applies and when it does not. Claude reads only the descriptions (100 tokens each) on every turn, and loads the full skill body only when your intent matches.
Maps to Claude Code: Skills with precise description strings, path-scoped rule files with paths: matchers, subagents that research in isolation and return summaries. The pattern is always: keep the always-on layer minimal; let the on-demand layer carry the depth.
Pillar 3 · Deterministic Rails
Hooks enforce what prompts cannot. CLAUDE.md says “never commit .env.” Claude respects that 99% of the time. A hook that rejects git add .env respects it 100%. The difference matters under load. Every DDS project has at minimum three hooks: block-sensitive-commits (PreToolUse on Bash), auto-lint (PostToolUse on Write/Edit), and session-end notification (Stop).
Maps to Claude Code: Hooks on PreToolUse, PostToolUse, SessionStart, Stop. Scoped to specific matchers. Non-zero exit codes that block. Written in whatever shell language your team can read and audit.
Pillar 4 · Context Hygiene
Every session starts clean. A 4-hour session with 40 files loaded is slower, dumber, and more expensive than a fresh session reading only what the next task needs. The methodology is: offload research to subagents, compact at task boundaries, resume sessions only when you need continuity, start fresh otherwise. Check /context when anything feels off.
Maps to Claude Code: Subagents for research, /compact at task boundaries, /autocompact for hands-off runs, /recap to re-orient on return, short sessions whenever possible. The cheapest productivity gain in Claude Code is the discipline to start fresh.
Pillar 5 · Sovereign Fallback
Always have a local path. API quota will hit. Internet will go down. A client will hand you regulated data. In every case, you need the option of running the same agent with a local model and no network. Ollama is the DDS answer: local for private or high-volume, Ollama Cloud free tier for routine, Anthropic API for frontier. The workflow is the same; only the provider changes.
Maps to Claude Code: Third-party providers configured in ~/.claude/settings.json, /model to switch, recommended Ollama env vars (Part 1 Module 05). Sovereign is a discipline, not a one-time setup — you test it monthly so it works when you need it.
The system test for vibe coding. Hand a DDS project to another engineer without explanation. Have them open it, run claude, and ask “add a feature that does X.” If Claude produces code that matches the existing style, passes tests, respects forbidden paths, uses the right library choices, and commits with the right format — your methodology is working. If Claude produces code that looks “AI-ish” or differs from the rest of the codebase — your pillars are leaking.
Walkthrough — A Full React App in One Session
Theory is cheap. Here is a complete walkthrough of building a real React app from empty directory to working UI in a single focused Claude Code session. The app: a task tracker with typed forms, local persistence, keyboard shortcuts, and tests. The method: the 5 Pillars, applied in sequence.
Step 1 · Pillar 1 applied: write constraints first
mkdir task-tracker && cd task-tracker git init claude
First prompt: “I’m building a React 19 + TypeScript task tracker with Vite, Zustand for state, Vitest for tests, Tailwind for styling. Before you do anything, draft a CLAUDE.md with rules for this stack. Keep it under 150 lines. I’ll review before you touch any other file.”
Claude drafts CLAUDE.md. You open it and tighten: no default exports, component files under 200 lines, co-located tests, Zod-validated env vars, conventional commits, never run npm audit fix --force. Save. Commit.
Step 2 · Pillar 2 applied: load only the skills you need
Second prompt: “Create .claude/skills/react-component-author/SKILL.md with our component conventions. It should trigger only when I ask for a new component. Include frontmatter with a precise description.”
Claude creates the skill. The description includes the exact trigger (“create a component,” “add a UI element”) and the explicit exclusions (“does NOT trigger for pages or hooks”). You check /context — still lean. Commit.
Step 3 · Pillar 3 applied: install the rails
{
"hooks": {
"PreToolUse": [{
"matcher": "Bash",
"hooks": [{ "type": "command", "command": "./.claude/hooks/block-sensitive.sh" }]
}],
"PostToolUse": [{
"matcher": "Write|Edit",
"hooks": [{ "type": "command", "command": "npx eslint --fix \"$CLAUDE_TOOL_FILE_PATH\" 2>/dev/null || true" }]
}]
}
}
Step 4 · Build the app
Now you can be loose because the rails are tight. Third prompt: “Scaffold the Vite + React + TS project. Run the tests. Set up Tailwind. Commit at each checkpoint. Conventional-commits format.”
Claude does. Watch the terminal — auto-lint fires after every file write, block-sensitive-commits is standing by, CLAUDE.md is enforcing style. You are not micromanaging. You are reviewing commits as they happen.
Fourth prompt: “Implement the task store with Zustand. Tasks have id, title, status (todo|doing|done), createdAt, updatedAt. Persist to localStorage. Include tests for add, update, toggle, delete. Do not wire the UI yet.”
Claude writes src/stores/tasks.ts and src/stores/tasks.test.ts. The component-author skill does not load — this is a store, not a component. Tests pass. Commit.
Step 5 · Pillar 4 applied: offload research to a subagent
Fifth prompt: “Before building the UI, use the Explore subagent to scan the Zustand docs at node_modules/zustand and summarize the persist middleware options in three bullets. Don’t load anything into my main context.”
Explore (Haiku, read-only) runs in its own context, scans, returns three clean bullets. Your main context is untouched. You now know exactly which middleware config you want without having read the docs yourself.
Step 6 · Components, tests, shortcuts
Sixth prompt: “Build the TaskList, TaskItem, TaskInput components. Use the component-author skill. Wire keyboard shortcuts: N for new, D for delete on focused item, Enter to toggle. Add tests for each component.”
The component-author skill loads now — the trigger matches. Claude builds three components following its rules. Co-located tests for each. /ship-it runs: lint clean, 23 tests pass, build succeeds. Draft commit message. Approve. Commit.
Step 7 · Reviewer subagent before final commit
Seventh prompt: “Run the code-reviewer subagent on the full diff from this branch. Focus on accessibility and keyboard navigation edge cases.”
The reviewer (Opus, read-only) finds two issues: one aria-label missing on the delete button, one focus-trap missing on the new-task input. You fix both. Commit. Push. PR open.
Step 8 · Pillar 5 applied: test the sovereign path
Before closing the session: /model ollama-cloud/qwen3-coder:480b-cloud. Ask one small follow-up to verify the sovereign provider works. Switch back. Now you know your fallback is live.
Total session time: 2-3 hours depending on how much you iterate. Total files written by you personally: zero. Total decisions made by you: every architecture decision, every CLAUDE.md rule, every commit approval, every reviewer finding. That is the point of the methodology — judgment stays yours, typing moves to the agent.
Walkthrough — A Shopify Section That Passes Theme Check
Shopify sections have their own discipline. Scoped CSS or you pollute the whole theme. Schema ranges that fail the (max-min)/step >= 3 rule refuse to save. IIFE JS or you leak globals into other sections. This walkthrough shows how a well-designed skill makes Claude Code produce sections that pass shopify theme check on first try — every time.
The skill that does the work
The shopify-section-author skill lives at .claude/skills/shopify-section-author/SKILL.md plus a references/atelier-standards.md file. Frontmatter triggers only on section-authoring requests. Skill body enforces: unique wrapper class for CSS scope, Liquid with defensive filters (| default:, | escape), JSON schema with valid ranges, IIFE JS block with zero globals, no !important on body/html/header/footer.
Step 1 · Trigger the skill
Prompt: “Build me a new Shopify section called testimonial-carousel. Three blocks with customer name, quote, star rating (1-5). Auto-advance every 5 seconds, pause on hover, respect reduced-motion. Style settings for background, text color, and padding.”
The skill description matches (“build a section”). Claude loads the full body and the Atelier standards reference. Your main context doesn’t load them — only Claude does, for this task.
Step 2 · What Claude produces
<style> .tc-section { /* all CSS scoped under .tc- */ } .tc-slide { /* ... */ } </style> <div class="tc-section" style="--tc-bg: {{ section.settings.bg_color | default: '#ffffff' }}"> {% for block in section.blocks %} <div class="tc-slide" {{ block.shopify_attributes }}> {%- liquid assign rating = block.settings.rating | default: 5 assign name = block.settings.customer_name | default: '' | escape -%} ... </div> {% endfor %} </div> <script> (function(){ /* IIFE, zero globals */ })(); </script> {% schema %} { "name": "Testimonial Carousel", "settings": [ { "type": "range", "id": "autoplay_seconds", "min": 3, "max": 12, "step": 1, "default": 5 } // (12-3)/1 = 9 ≥ 3 ✓, (5-3)%1 = 0 ✓, 5 ≤ 12 ✓ ], "blocks": [ /* ... */ ] } {% endschema %}
Step 3 · Validation
# A PostToolUse hook fires automatically after the file is written shopify theme check sections/testimonial-carousel.liquid # Theme check passes: scoped CSS confirmed, valid Liquid, valid schema
The pattern repeats for any domain. Docker compose files, Terraform modules, GitHub Actions workflows, SQL migrations — any template-heavy or convention-strict code benefits from a skill that encodes the conventions. Write the skill once; every future prompt in that domain produces work that passes validation on the first try.
Multi-Agent Orchestration
Part 1 introduced subagents and agent teams. This module is how you actually orchestrate them in production — the patterns, the anti-patterns, and the tradeoffs you hit at scale.
The four canonical patterns
Research + Implement
One subagent does heavy read-only research. Main session gets the summary. Main session writes the code. Oldest and safest pattern. Use for any task that requires scanning >10 files before making a decision.
Implement + Review
Main session writes the code. A reviewer subagent (Opus, read-only) reads the diff and returns ranked findings. Main session arbitrates which findings to fix. Guards against quality drift on fast runs.
Parallel Features (Teams)
Multiple teammates, each in their own worktree, each building a different independent feature. Lead teammate coordinates and tracks status. Use only when features genuinely don’t share code paths.
Spec + Build + QA
Architect teammate writes spec. Builder teammate implements. QA teammate tests. Sequential, not parallel, but each stage runs in its own context so no single agent hits context saturation.
The five anti-patterns
Spawning subagents for 2-file reads
If the research takes two minutes in main context, it’s not research — it’s a lookup. Spawning a subagent costs more in context than you save. Rule of thumb: only offload research that would require reading >10 files.
Teams where one teammate waits for another
If teammate B can’t start until teammate A finishes, you have a sequential dependency, not parallel work. Use subagents back-to-back instead, or use Pattern 4 above.
No maxTurns cap on subagents
A runaway subagent can burn hundreds of tokens before you notice. Always set maxTurns in your subagent YAML. 20-40 is reasonable for implementers; 5-10 for read-only reviewers.
Reviewer subagents with write access
A reviewer should find problems, not fix them. Restrict tools to [Read, Grep, Glob]. The implementer fixes. Separating find-it from fix-it keeps reviews honest and makes regressions easier to track.
Forgetting about worktree cleanup
Parallel agents with isolation: worktree leave orphaned worktree directories if the session crashes. Add a session cleanup script to your shell profile: git worktree prune weekly.
Plugins & the Ecosystem
A plugin is how you package everything — skills, subagents, slash commands, hooks, MCP server configs — for one-command install. Teams that share plugins share a consistent development experience. Open-source plugins let you adopt community expertise with a single command.
Plugin anatomy
my-plugin/ ├── manifest.json # name, version, author, description ├── skills/ │ └── review/ │ └── SKILL.md ├── agents/ │ └── security-reviewer.md ├── commands/ │ └── ship-it.md ├── hooks/ │ └── block-sensitive.sh └── mcp/ └── config.json # MCP server definitions (optional)
Installing and managing plugins
# Open the plugin marketplace /plugins # Install a plugin from a published marketplace /plugins install <plugin-name> # Install from a local path (team plugin during development) /plugins install ./my-team-plugin # Install from a git URL /plugins marketplace add https://github.com/org/repo-with-plugin # List installed plugins and their components /plugins list # Reload after editing a local plugin /reload-plugins
The security boundary for plugin subagents
A subagent bundled inside a plugin cannot define its own hooks, mcpServers, or permissionMode. This is deliberate. An installed plugin should not be able to silently add new hooks that run with your full permissions, connect to servers you didn’t approve, or escalate permission mode past what the host session granted. Plugin subagents inherit the host’s security context. Your plugins, your rails.
Audit every plugin before install. Run the same 6-item checklist you use for MCP servers (Part 1 Module 13): who publishes it, what does it expose, what credentials does it want, where does it phone home, what’s the update cadence, is it project-scoped or user-scoped. A plugin installed once runs in every future session. That makes poorly-audited plugins a persistent exposure, not a one-time risk.
Three plugin patterns worth knowing
The team starter kit
One plugin containing your team’s CLAUDE.md conventions, core skills, /ship-it and /review-pr commands, the minimum hook set, and safe MCP configs. New engineers install one plugin and are productive on day one.
The domain pack
A plugin for a specific domain — Shopify theme development, Terraform infrastructure, React component authoring. Bundles the skills, reviewer subagents, and validation hooks for that domain. Install the packs you need; ignore the rest.
The productivity layer
Personal plugin with your /explain, /add-tests, /tldr, and a few read-only research subagents. User-scoped so it follows you across projects. This is what “my Claude Code” feels like after a year of sharpening.
IDE Deep Dive — Where to Actually Work
Claude Code’s surfaces (terminal, VS Code, Cursor, Windsurf, JetBrains, desktop, web, mobile, Slack) sound like a long list of equivalent options. They are not. Each has a best use and a worst use. Here is how professionals actually divide their day.
Terminal CLI — the power seat
Use for: agent orchestration (subagents, teams), scripted runs in CI, third-party providers like Ollama, heavy multi-file refactors, anything you want to kick off and walk away from with hooks running. The terminal is where every Claude Code feature exists first; other surfaces catch up later.
Don’t use for: rapid exploratory coding where you want to see diffs inline with the surrounding code. Terminal diffs are good, but not as immediate as an editor-native diff view.
VS Code / Cursor / Windsurf extension — the flow seat
Use for: daily feature coding with tight iteration. @-mention files to add context, drag-and-drop images or PDFs as context, inline diff review with per-hunk accept/reject (as of 2026), a sidebar conversation history across sessions, Cmd+Esc / Ctrl+Esc to launch without leaving the editor.
The 2026 killer feature: inline edit review. When Claude proposes a multi-file change, you see each file’s diff inline with your code. Accept, reject, or edit per hunk. This is closer to a code review surface than a chat window.
JetBrains plugin
Use for: IntelliJ, PyCharm, WebStorm, CLion, Rider users. Feature parity with the VS Code extension: interactive diff viewer, shared selection with the editor, diagnostics integration. If you are already a JetBrains loyalist, the plugin is the right choice — don’t context-switch to VS Code just to use Claude.
Desktop app, web, mobile
Desktop for visual multi-session management: run three Claude sessions side by side, schedule recurring tasks, manage cloud sessions. Great when you’re coordinating multiple agents at once.
Web (claude.ai/code) for borrowed machines and remote work. Mobile (iOS/Android) for kicking off tasks in airports, reviewing finished work over coffee, and answering your agent’s one-line question without opening a laptop. None of these replaces terminal or editor for heavy lifting — they extend the surface area.
Slack integration
Use for: team workflows where the task request and the output both live in Slack. Tag @claude with a request; work happens; result posts back in thread. Also useful for the Claude GitHub app doing PR reviews — review output shows up where your team already discusses code.
The daily mix most professionals settle on
Heavy lifting — refactors, new features, multi-agent runs — in terminal. Daily coding in VS Code or JetBrains. Status checks and small tasks on mobile. PR reviews in Slack. All four share session state; switch between them without losing context.
Shared session state is the underrated feature. Start a session in your terminal, pause for lunch, resume from your phone to ask one clarifying question, return to your desk and continue in VS Code. The session is the same session. The history, the memory, the context window — all persist across surfaces.
Cost Control & Rate Limits
Claude Code usage is billed against your Claude Pro/Team/Enterprise plan or your Anthropic Console API credits. Rate limits apply in both cases — 5-hour and 7-day windows with usage percentages and reset times. Hit a limit in the middle of a task and you wait. Learn to see the limits coming and you never wait.
The four levers
Model choice
Opus 4.6 and Sonnet 4.6 have roughly a 5-10x cost ratio. Haiku 4.5 is cheaper still. Default to Sonnet. Switch to Opus on demand for hard tasks. Use Haiku-powered Explore for read-only research. The hybrid stretches the same plan 3-5x further than Opus-for-everything.
CLAUDE.md size
Every prompt pays for CLAUDE.md, all enabled rule files, the skill description menu, and your conversation history. A 400-line CLAUDE.md costs hundreds of tokens per prompt. Across a 100-prompt day, that’s meaningful budget. Keep it under 200 lines.
Subagent offloading
Heavy research done in the main session pollutes every subsequent prompt with the research content. Offload it to an Explore subagent (Haiku) and you pay the research cost once, in a cheaper model, in an isolated context.
Ollama routing
Routine work (classification, linting passes, summarization, tagging) routed to Ollama — local or cloud — costs zero. Frontier work stays on API. The sovereign routing pattern from Part 1 Module 05 pays for itself in a day of use.
Visible rate limits in your statusline
As of 2026 Claude Code exposes rate_limits objects in statusline scripts — with used_percentage and resets_at for both the 5-hour and 7-day windows. Wire these into your prompt and you see consumption at a glance. No more surprise throttle mid-refactor.
#!/usr/bin/env bash ctx=$(cat) pct_5h=$(echo "$ctx" | jq -r '.rate_limits.session.used_percentage // 0') pct_7d=$(echo "$ctx" | jq -r '.rate_limits.weekly.used_percentage // 0') model=$(echo "$ctx" | jq -r '.model.display_name // "?"') printf "%s | 5h: %s%% | 7d: %s%%" "$model" "$pct_5h" "$pct_7d"
Cost patterns by task type
| Task | Route To | Rationale |
|---|---|---|
| Architecture design, hard debugging | Opus 4.6 (API) | Quality justifies cost |
| Daily feature work, multi-file edits | Sonnet 4.6 (API) | Near-Opus quality, fraction of cost |
| Read-only research, codebase scans | Haiku 4.5 (Explore) | Fast, cheap, isolated context |
| Routine implementation, polish | Ollama Cloud free | $0, handles most of this well |
| Private or NDA’d work | Ollama Local | Data never leaves machine |
| Batch classification, tagging | Ollama Local | Volume makes per-token billing painful |
Three Case Studies from the Sovereign AGI Suite
Three DDS systems, built with Claude Code, shipped to production. What follows are the patterns — how Claude Code was used, which primitives did the heavy lifting, what went wrong and how it got fixed. The proprietary internals (the actual CLAUDE.md files, the skill libraries, the orchestration logic) stay with DDS. The patterns are yours to adapt.
VibeTube AI Desktop Pro V1.1.1
A Windows desktop application shipped as a .exe download on the DDS Shopify store. Electron 41.x, BYOK (bring your own API key), GCP Cloud Run DRM, 19 distinct content outputs, 20-industry theming, live cost tracker. Priced at $49.99.
Primitives used: Claude Code terminal CLI for the orchestration work. A dedicated skill for Electron-main-process patterns. A subagent with isolation: worktree for building the GCP Cloud Run DRM service in parallel with the app itself. MCP Filesystem server to scaffold the signed-installer directory structure.
What went wrong and how it got fixed: early versions had Electron main-process code scattered across 14 files. The skill description was too vague and didn’t load when it should have. Rewriting the description to explicitly name “ipcMain,” “BrowserWindow,” and “preload” as triggers fixed the problem overnight. Progressive disclosure only works if your trigger strings match how you actually talk about the task.
Collection Hero Grid v4.2
A production Shopify section powering DDS collection pages. 1,009 lines, 75 schema settings, 8 bug fixes from the prior version, green aura animation, five distinct title-animation styles, description tooltip, per-product price parsing, orb effects with accessibility fallbacks.
Primitives used: the shopify-section-author skill from Module 18. A review subagent specialized for Shopify — restricted tools (Read/Grep), pre-loaded Atelier theme standards, Opus model for depth. A PostToolUse hook that ran shopify theme check after every write, blocking the commit on failure.
What went wrong and how it got fixed: v4.0 shipped with a subtle bug where JavaScript tried to format Liquid price variables at runtime, causing to leak into the rendered HTML. The skill didn’t know about the interplay between Liquid rendering and client-side JS. Adding an explicit rule — “always wrap JS that handles money formats in {% raw %} blocks” — made v4.2 produce correct output on first run. The skill learns when you correct it.
SEO Magnet System V2
A Claude Code skill that, when triggered on any Shopify page.liquid build request, applies the full DDS SEO stack: 9+ JSON-LD schemas, OG/Twitter/canonical meta, speakable boxes with three distinct selectors, commercial-intent FAQ accordion (8-12 items), competitor comparison tables, persona targeting, sticky TOC, scroll-reveal. The SEO Magnet skill is the skill that wrote this very masterclass you are reading.
Primitives used: a Skill with a reference-heavy pattern — SKILL.md + references/schemas.md (all JSON-LD templates) + references/meta-tags.md (all meta tag sets). A PreToolUse hook that validates JSON-LD syntax on every Write to a .liquid file. A build-time script that runs the final file through the same 9-schema validation suite Google uses.
What went wrong and how it got fixed: V1 of the skill emitted https://ddsboston.com inside JavaScript string literals, which Shopify Liquid rendered at server time and broke the JS. V2 adds an explicit rule requiring {% raw %} wrapping for any JS block that contains -style syntax. The rule lives in the skill’s references, not in the CLAUDE.md — because it only matters when you’re authoring Liquid files, which is a small fraction of DDS work.
The pattern across all three: a tight skill description, a reference-heavy body, a reviewer subagent with matching domain knowledge, and a PreToolUse or PostToolUse hook that validates domain-specific output automatically. The skill captures what Claude needs to know. The hook guarantees the output passes regardless of how loosely you phrased the prompt. Replicable to any domain where you ship the same kind of artifact repeatedly.
The $250K Cheat Sheet
If you only remember seven things from this entire masterclass, remember these. Print this page. Pin it next to your monitor. Everything here is load-bearing — every line corresponds to a module above, condensed to its smallest useful form.
1 · The ten daily commands
/initscan codebase, draft starter CLAUDE.md/plandry-run mode: approve each action before it runs/modelswitch Opus / Sonnet / Haiku mid-session/contextcheck context window usage — compact when >75%/compactsummarize conversation, drop history/memoryview and edit auto-memory/rewindundo code changes from current session/usageplan limits and current consumption/doctordiagnose install, API, MCP, git issues/focushide transcript chatter; show only final message
2 · The 5 Pillars of Vibe Coding
1Constraint-First Design — CLAUDE.md before the first file2Progressive Disclosure — Skills load on demand, not always-on3Deterministic Rails — Hooks enforce what prompts cannot4Context Hygiene — subagents for research; compact at boundaries5Sovereign Fallback — Ollama local or cloud, always available
3 · CLAUDE.md skeleton (under 200 lines)
Identitywhat kind of codebase this is and what standard appliesCode Stylenon-negotiable language and structural rulesArchitecturefolder layout, API patterns, business-logic locationTestingmandatory test requirements and runnerValidationthe workflow: read, edit, lint, test, show diffGitbranch naming, commit format, protected branchesForbiddenfiles, commands, and paths the agent must not touchCommunicationhow to ask, how to summarize, how to end a task
4 · The three must-have hooks
PreToolblock-sensitive.sh — refuses to commit .env, .key, .pem, id_rsaPostToolauto-lint on Write/Edit matcherStopsession-end notification (Slack, desktop, email)
5 · The three must-have subagents
ExplorerHaiku, Read/Grep/Glob only, for read-only researchReviewerOpus, read-only, memory:project, runs after every featureImplementerSonnet, full tools, isolation:worktree, maxTurns:40
6 · The sovereign routing rule
FrontierAnthropic API · Opus 4.6 · hardest architecture and debuggingRoutineOllama Cloud · qwen3-coder:480b-cloud · free tierPrivateOllama Local · qwen2.5-coder:14b · NDA or regulated workBatchOllama Local · thousands of repeated calls at $0
7 · The four cost levers
Modeldefault Sonnet · Opus on demand only · Haiku for researchCLAUDE.mdunder 200 lines · path-scoped rules for the restSubagentsoffload research; your main context stays sharp and cheapOllamaroutine + batch + private work off the API entirely
What’s Next — Three Directions From Here
You finished 25 modules across two parts. You have the primitives, the patterns, the playbook. The question is: where does your own edge come from? Three directions. Pick the one that matches how you think.
Vertical · Specialize
Build a Claude Code setup that is the best in the world at one domain. A Shopify theme development setup. A Terraform infrastructure setup. A React component library setup. A specific regulated industry. The vertical play is narrower than generalist tooling and deeper than any public skill library.
Signal you should pick this: you already have a domain you work in every day and feel the generic patterns don’t cover your edge cases.
Horizontal · Integrate
Wire Claude Code into everything adjacent to your code. Your CI/CD, your CRM, your data warehouse, your monitoring, your ticketing. MCP servers become the connective tissue; hooks become the safety layer; your agent stops being “the thing that writes code” and starts being “the thing that runs the engineering organization.”
Signal you should pick this: the code itself is not the bottleneck — the handoffs between systems are.
Sovereign · Own The Stack
Move more work to local inference. Build your own model routing layer. Run multi-agent fleets on your own hardware. The sovereign path is what the DDS Sovereign AGI Suite is — 15 synthetic employees, $11.1M+/year automated labor, $0/month hosting. Not every team needs this. Teams that do, need it badly.
Signal you should pick this: your work involves regulated data, your usage is high enough that per-token billing adds up, or you want full architectural independence from any single API provider.
The next DDS Vibe Academy masterclass
The sovereign path is the direction the next DDS masterclass will go deep on. End-to-end: hardware sizing for multi-model fleets, Ollama orchestration at scale, building your own model router, running subagent teams against local inference, the full DDS Sovereign AGI Suite architecture in detail. Release horizon: Mythos Era — the codename for the next wave of DDS public releases, covering the AGI systems that ship in 2026 H2.
Subscribe to the DDS Vibe Academy to catch the release. Keep an eye on the portfolio for Sovereign Orchestrator Pro V5.0, AGI-CORE-Pro V.1.0, VibeTube AI Desktop Pro V1.1.1, and NICHE-FORGE-CORE V3.0 updates — those are where the methodology in this masterclass runs in production.
If this masterclass saved you $250K in consulting — that is not an inflation. A senior AI-engineering consultant charges $20K-50K for the kind of two-week engagement that teaches exactly what’s in these 25 modules. Five of those engagements is where the number comes from. This is free because sovereign AI infrastructure should not be gatekept behind enterprise pricing. Pay it forward by building something real with it.
Part 1 was the manual. Part 2 is the playbook. If you’ve worked through both, you now have: a command reference that covers every daily action, git workflows that make agent-driven commits safe, a five-pillar methodology you can apply to any stack, two complete build-along walkthroughs, multi-agent orchestration patterns for parallel work, cost discipline that keeps you under rate limits, IDE integration that matches terminal for flow, and three real case studies showing what the patterns look like in production. The rest is practice. Open a project, run claude, ship something real this week.
Need the foundations? Start with Part 1
If any primitive above felt unfamiliar — CLAUDE.md, Skills, Subagents, Agent Teams, Hooks, MCP, Ollama — the foundation half of this masterclass covers each in depth. 13 modules, the same format, the same discipline. Read Part 1, then come back here.
Frequently Asked Questions
/init to scaffold CLAUDE.md, /plan to enter plan mode, /model to switch between Opus, Sonnet, and Haiku, /context to see context window usage, /compact to shrink the conversation, /memory to view and edit memory, /rewind to undo changes, /usage to check rate limits, /doctor to diagnose config issues, and /focus to hide transcript chatter. Everything else is situational.
feature/ticket-slug or fix/ticket-slug naming. Use subagents with isolation:worktree for parallel work — each agent gets its own git worktree so file conflicts are impossible. Enforce conventional commits through a PostToolUse hook. Block force-pushes to protected branches with a PreToolUse hook. Never let Claude Code commit to main directly; branch-and-PR is the only path.
git init. Run /init to have Claude draft a CLAUDE.md — tighten it before you start building. Describe the app in one paragraph and ask for a plan (use /plan). Review the file structure Claude proposes; push back on anything off. Approve the plan, let Claude scaffold. Review each major milestone with a code-reviewer subagent. Keep CLAUDE.md updated as the architecture solidifies. Ship the first working version within a session; iterate from there. Module 17 walks the full 8-step pattern.
shopify-section-author with Atelier theme standards in its references. The skill should enforce: scoped CSS under a unique wrapper class, Liquid with defensive filters, JSON schema ranges that pass Shopify’s (max-min)/step >= 3 rule, and IIFE-wrapped JavaScript with zero globals. Run shopify theme check after every build via a PostToolUse hook. The skill loads only when you mention a section build, so it does not bloat every prompt. Module 18 shows a complete example.
/usage regularly. Wire rate_limits into your statusline so you see consumption at a glance. Module 22 has the statusline template.
/plugins marketplace add <url> or /plugins install from a local path. Teams get consistent tooling with one install. Note that plugin subagents cannot define their own hooks, mcpServers, or permissionMode — that is a security feature preventing installed plugins from silently escalating capabilities.
/compact leading to context drift. Ignoring subagents and doing research in the main session. Every one is fixable with the patterns in this masterclass.
