Structured Index
Browse every article by topic
This page is the full HTML map of the blog library. Use it when you want a topic-by-topic view of every section and article, or when you want a stable index page to link into from other guides.
Handbook
Setup, mechanics, performance, development, and agent workflows.
Agents
- Agent FundamentalsFive ways to build specialist agents in Claude Code: Task sub-agents, .claude/agents YAML, custom slash commands, CLAUDE.md personas, and perspective prompts.
- Agent Teams Best PracticesBattle-tested patterns for Claude Code Agent Teams. Context-rich spawn prompts, right-sized tasks, file ownership, delegate mode, and v2.1.33-v2.1.45 fixes.
- Custom AgentsDefine your own Claude Code specialists with .claude/commands slash commands, .claude/agents YAML, and CLAUDE.md personas. Real examples and mistakes to avoid.
- Builder-Validator Agent TeamsPair a builder agent with a read-only validator in Claude Code. Task 2 blocks on Task 1 via addBlockedBy, so every sub-agent output gets a second set of eyes.
- Sub-Agent Design in Claude CodeSplit a hard code review across specialist sub-agents. Architecture, security, and performance each run in their own context, findings merge back in minutes.
- Sub-Agent RoutingA CLAUDE.md routing block that teaches your main Claude Code thread when to dispatch sub-agents in parallel, sequentially, or in the background. Copy and paste.
- Background Agents in Claude CodePress Ctrl+B the moment a Claude Code sub-agent starts and it drops to the background. Keep typing in the main session while research or analysis runs alone.
- Claude Code Task DistributionSplit Claude Code work across parallel Task sub-agents with a 7-slot delegation pattern. Boundary rules, coordination principles, and failure modes to avoid.
- Agent PatternsOrchestrator, fan-out, validation chain, specialist routing, progressive refinement, and watchdog. Six orchestration shapes to wire Claude Code sub-agents with.
- Agent Teams Prompt TemplatesTen tested Agent Teams prompts for Claude Code. Parallel code review, debugging, feature builds, architecture calls, and campaign research. Paste and go.
- Agent Teams ControlsConfigure delegate mode, display modes, plan approval, file boundaries, and CLAUDE.md rules so your Claude Code team lead coordinates instead of coding.
- Claude Code Agent TeamsRun multiple Claude Code sessions as a coordinated crew that swaps notes through the shared task list. Setup with one env var, plus patterns and real use cases.
- Agent Teams WorkflowThe seven-step Claude Code Agent Teams workflow. Brain dump, Q&A, structured plan, fresh context, contract chains, wave execution, and validation before ship.
- Human-like AgentsPersonality patterns for Claude Code agents: reasoning out loud, admitting uncertainty, weighing trade-offs, asking follow-ups. A CLAUDE.md block to paste in.
Core
- Context Management in Claude CodeHow to manage Claude Code sessions with 1M context: when to keep going, when to /rewind, when to /clear, when to /compact, and when to push work into subagents.
- Claude Code RoutinesClaude Code routines run saved prompts on Anthropic's cloud, triggered by a schedule, API call, or GitHub event. Repo clone, connectors, no local deps.
- CLAUDE.md MasteryTreat CLAUDE.md as a control file for Claude's behavior, not project onboarding. Cover operational workflows, delegation, context rules, skill loading.
- Claude Skills GuideSkills are folders of instructions Claude Code loads on demand. Drop SKILL.md in .claude/skills/your-skill for procedural workflows, checklists, house rules.
- Context EngineeringContext engineering decides what Claude Code sees, when it sees it, and what stays out. Staged information flow, deferred loading, and cleanly bounded contexts.
- Auto Memory in Claude CodeAuto memory lets Claude Code keep running project notes. Where the files sit, what gets written, how /memory toggles it, and when to pick it over CLAUDE.md.
- Claude Code Rules DirectoryThe .claude/rules directory splits CLAUDE.md into path-targeted markdown files. Each loads only where it applies, at the same high priority as CLAUDE.md.
- 1M Context Window in Claude CodeAnthropic flipped the 1M token context window on for Opus 4.6 and Sonnet 4.6 in Claude Code. No beta header, no surcharge, flat pricing, and fewer compactions.
- Terminal as Main ThreadOpen a second terminal tab while Claude Code grinds through a long task. Run parallel sessions as a CPU scheduler. tmux, VS Code, and iTerm2 layouts included.
- Planning ModesShift+Tab twice flips Claude Code into read-only planning mode. The model analyses the project and proposes a strategy, and no files change until you approve.
- Team Onboarding in Claude CodeThe /team-onboarding slash command reads 30 days of Claude Code usage, scans .claude/, inspects CLAUDE.md, and writes a ramp-up guide for a new teammate.
- Auto DreamClaude Code cleans up its own project notes between sessions. Stale entries get pruned, contradictions get resolved, topic files get reshuffled. Run /memory.
- Claude Code Voice ModeType /voice, hold spacebar, talk, release. Spoken words stream to the cursor mid-prompt so you can mix typed and voiced input without any mode switching.
- /powerupClaude Code v2.1.90 shipped /powerup, an animated in-terminal lesson system that teaches hooks, sub-agents, plan mode, and worktrees without leaving your shell.
- Claude Code Diff ReviewFour keys gate every file change Claude Code proposes: y approves, n rejects, d shows the diff, e opens the edit. Built-in tools Write and Edit explained.
- Auto-Planning StrategiesAuto Plan Mode uses --append-system-prompt to force Claude Code into a plan-first loop. File operations pause for approval before anything gets touched.
- The Ralph Wiggum TechniqueHand Claude Code a task list, use stop hooks plus completion promises, and the autonomous loop ships features overnight. Native tasks now replace most plumbing.
- Claude Code UltraplanUltraplan moves the heavy planning phase off your machine. Three launch paths, a browser review surface, and the system prompt variants the leak exposed.
- Thread-Based EngineeringA framework for measuring AI-assisted engineering. Every unit of work becomes a thread with human prompt and review bookends. Six patterns: base, P, C, F, B, L.
- Claude Code /simplify and /batchRun /simplify for a three-agent review of your diff covering reuse, quality, and efficiency. Reach for /batch when a change has to land across your codebase.
- Claude Code Session MemorySession Memory summarises each Claude Code session and reloads relevant ones next time you open the project. Watch for Recalled X memories, Ctrl+O expands.
- The Claude Code Source Map LeakA missing .npmignore entry shipped 512K lines of TypeScript, 44 GrowthBook feature flags, the KAIROS daemon, and Undercover Mode to every npm install.
- A Central Library for Your .claude ConfigStand up one private Git repo for every skill, agent, command, hook, and CLAUDE.md across all your projects. A map.json picks which repo gets which items.
- Claude BuddyAnthropic's April Fools 2026 surprise: a Tamagotchi system inside Claude Code. 18 species, 5 rarity tiers, CHAOS and SNARK stats, hex-encoded easter egg leaked.
- Autonomous Claude CodeA unified stack for agents that ship features overnight. Threads give you the structure, Ralph loops give you the autonomy, verification keeps it honest.
- Robots-First EngineeringDesign code for autonomous agents running 24/7 at $10 an hour, not humans. Rails, failure domains, verification loops, and back-pressure replace code review.
- Dynamic Starting ContextPair --init with a slash command like /blog or /ship to load the exact context bundle that kind of work needs. No setup hooks, no env vars, no copy-paste.
- Claude Code MemoryConfigure CLAUDE.md so your stack, conventions, and focus load at startup into the high-priority slot Claude follows more tightly than chat or fetched files.
- Claude Code Context BufferClaude Code's autocompact buffer dropped from 45K to 33K tokens in early 2026. Why it reserves space, when compaction fires, and the env var to tune it.
- Claude Code Interactive Mode ReferenceShortcuts, modes, and slash commands most Claude Code users never find. Ctrl+F kills background agents, /btw asks side questions, /vim flips on modal editing.
- Experimentation MindsetFive Claude Code experiments to replace guessing with data. Test prompt styles, file context, planning mode, CLAUDE.md settings, and context pressure.
- Claude Code Monitor ToolThe Claude Code Monitor tool wraps a background process in an event-driven watcher. Your dev server stays quiet until it breaks, then wakes Claude with errors.
Performance
- Deep Thinking TechniquesThinking trigger phrases like think harder, ultrathink, and think step by step push Claude Code into extended reasoning and more test-time compute, same model.
- Claude Code Fast ModeFast mode routes your Opus 4.6 requests down a priority serving path in Claude Code. Same weights, same ceiling, replies 2.5x quicker at a higher token rate.
- Efficiency PatternsPermutation frameworks turn 8 to 12 manual builds into a CLAUDE.md template Claude Code uses to generate variations 11, 12, and 13 on demand. Captured once.
- Speed OptimizationModel selection, context size, and prompt specificity are the three levers that decide how fast Claude Code replies. /model haiku, /compact, and /clear covered.
Reference
- Claude Code ChangelogRelease-by-release notes for Claude Code from the v0.2 beta through March 2026. Bare mode, Channels permission relay, OAuth fixes, and every breaking change.
- Claude Code TroubleshootingFive ordered checks for Claude Code breakage: install errors, bad API keys, 503 timeouts, slow replies, and permission trouble. Exact fixes for each path.
- Claude Code FAQStraight answers on Claude Code pricing, daily spend, model choice, Cursor comparison, Skills, CLAUDE.md, API keys, and what the terminal agent can actually do.
- Prompt Templates That Ship CodeTen prompt recipes that ship code: full-stack scaffolding, APIs, schemas, tests, refactors, debugging, reviews, and CI. Each with failure modes to avoid.
Setup
- Claude Code Terminal Setup GuideMatch themes, enable Shift+Enter, set notifications, fix long-paste truncation, and turn on vim mode across iTerm2, WezTerm, Ghostty, Kitty, and more terminals.
- Claude Code Settings ReferenceEvery key in settings.json, the full environment variable list, and the five-scope precedence chain that decides which config wins when managed and user clash.
- Claude Code SandboxingClaude Code sandboxing enforces filesystem and network limits at the kernel. Setup for macOS Seatbelt, Linux and WSL2 bubblewrap, and proxy allowlists.
- Claude Code ConfigurationThree files set Claude Code up per project: CLAUDE.md for context, MCP servers for tools, slash commands for workflows. One hierarchy, every session ready.
Start here
- What Is Claude Code?Anthropic's agentic coding assistant runs in your terminal or IDE, reads your repo and git history, and runs commands with approval. Plan mode, skills, hooks.
- Claude Code Native InstallerOne command installs Claude Code on Windows, macOS, Linux, or WSL. Zero Node.js, zero npm, zero PATH setup. Auto-updates included. Compared to the npm path.
- Your First Claude Code ProjectBuild a working CLI task manager with Claude Code in five minutes. Watch the Write, Bash, and Read tools fire in real time, then debug it with a single prompt.
- Claude Code InstallationInstall Claude Code in two minutes on Windows, macOS, or Linux. Native installers, Homebrew, and npm paths with verify steps, no Node.js required on native.
Workflow
- Claude Opus 4.7 Best PracticesUse Claude Opus 4.7 well in Claude Code: first turns, effort settings, adaptive thinking, tool prompting, subagents, session resets, and token control.
- Claude Code Scheduled TasksDesktop scheduled tasks for durable automation, CLI /loop for in-session polling, catch-up rules, worktree isolation, and real prompts teams run each morning.
- Claude Code PermissionsFive permission modes, one keystroke to cycle them, and a clean way to match the mode to the task you are on. Here is the full rule syntax and when to use each.
- Claude Code ReviewParallel Claude agents hunt bugs on every PR, cross-check findings, and post one high-signal comment. What it catches, what it costs, how to enable it.
- Claude Code Auto ModeA second Sonnet model reviews every Claude Code tool call before it fires. What auto mode blocks, what it allows, and the allow rules it drops in your settings.
- Todo WorkflowsAsk Claude Code for the todo list first, then catch wrong order, missing steps, or misread intent before any file gets touched. Works on any involved task.
- Claude Code ChannelsPlug Claude Code into Telegram, Discord, or iMessage with plugin MCP servers. Setup walkthroughs and the async mobile workflows that make it worth wiring up.
- Claude Code Pricing and Token UsageCut Claude Code costs 40-70% with ccusage tracking, /model switching, /compact and /clear, plan mode, and the pricing tier that matches your workload.
- Claude Code Best PracticesFive habits separate engineers who ship with Claude Code: PRDs, modular CLAUDE.md rules, custom slash commands, /clear resets, and a system-evolution mindset.
- Git IntegrationClaude Code drives git from your terminal. Say what you need in plain English and the commit, branch, or PR lands with your team's conventions baked in.
- Claude Code TasksUse TaskCreate, TaskUpdate, addBlockedBy, and shared task lists to run dependent work across parallel Claude Code sessions without Ralph Wiggum workarounds.
- Project TemplatesDrop /init into any repo. Claude Code scans the codebase, writes a CLAUDE.md that captures file layout, frameworks, and commands for every future session.
- Claude Code on a VPSRun Claude Code on a fresh Ubuntu VPS. SSH hardening, Node.js install, Docker isolation, headless auth, and the monitoring commands you need for a 24/7 box.
- Claude Code Remote ControlDrive a local Claude Code terminal session from your phone, tablet, or browser. Setup, security model, and how Remote Control stacks up against OpenClaw.
- Feedback LoopsHand Claude Code one prompt that writes code, runs your test or dev command, reads the output, fixes whatever breaks, and loops until the suite is green.
- Claude Code WorktreesThe --worktree flag, auto-named branches, parallel Desktop sessions, subagent isolation, and hook patterns that let non-Git teams run Claude Code safely.
Toolkit
MCP servers, hooks, extensions, and daily-use integrations.
Core Pages
- Status Line GuideSet up a Claude Code status line for model name, git branch, session cost, and context usage. settings.json config, JSON input, bash, Python, Node.js scripts.
- Keyboard ShortcutsConfigure Claude Code keybindings.json: 17 contexts, keystroke syntax, chord sequences, modifier combinations, and how to unbind any default shortcut instantly.
Extensions
- Claude Code VSCode ExtensionAnthropic's VS Code extension puts Claude Code inside the editor sidebar as a Spark-icon panel, with inline diffs, plan mode, subagents, and MCP support.
- OpenClaw vs Claude CodeOpenClaw vs Claude Code: a life assistant wired into messaging apps versus a terminal coding agent that reads your repo. When each one earns a slot in workflow.
- Claude Code KeybindingsRebind Claude Code shortcuts via keybindings.json. 17 contexts, keystroke syntax, chord sequences, modifier stacks, unbinding defaults, ready-to-paste configs.
- Claude Code Status Line SetupWire a Claude Code status line for model, git branch, session cost, and context usage. settings.json config, JSON input contract, bash, Python, Node scripts.
- AI SEO and GEO OptimizationA rundown of Generative Engine Optimization: how to get content cited inside ChatGPT, Claude, and Perplexity responses instead of just ranked on Google.
- Claude Code vs Cursor in 2026A side-by-side look at Claude Code and Cursor in 2026: agent models, context windows, pricing tiers, and how each tool fits different developer workflows.
Hooks
- Hooks GuideClaude Code hooks from first principles: exit codes, JSON output, async commands, HTTP endpoints, PreToolUse and PostToolUse matchers, production patterns.
- Claude Code Setup HooksBraid scripts, agents, and docs into Claude Code setup hooks. One command runs a deterministic script, hands output to a diagnosing agent, logs living docs.
- Stop HooksStop hooks block Claude Code from ending a turn while tests fail, builds break, or lint is red. Four enforcement patterns plus loop-protection safeguards.
- Skill Activation HookA UserPromptSubmit hook that scans each message, matches keywords, and appends skill activation hints so Claude Code never forgets to load the right skill.
- Claude Code Session HooksFour Claude Code session lifecycle hooks: run init on demand, inject project context on SessionStart, back up transcripts, and log cleanup on SessionEnd exit.
- Claude Code Permission HookInstall a three-tier Claude Code permission hook: instant allow for safe calls, instant deny for dangerous ones, LLM check for the gray area. No skip flag.
- Context Backup Hooks for Claude CodeA StatusLine-driven Claude Code context backup hook. Writes structured snapshots every 10K tokens so auto-compaction never eats errors, signatures, decisions.
- Self-Validating Claude Code AgentsSelf-validating Claude Code agents: wire PostToolUse lint hooks, Stop hooks, and read-only reviewer sub-agents into agent definitions so bad output never ships.
- Cross-Platform Hooks for Claude CodeCross-platform Claude Code hooks: skip .cmd, .sh, and .ps1 wrappers and invoke node directly so one .mjs file runs on macOS, Linux, and Windows across the team.
MCP
- Claude Code SearchAttach a web search MCP server to Claude Code so the terminal session pulls live docs, current tickets, fresh benchmarks, and new posts without a browser tab.
- Cursor MCP ServersConfigure MCP servers in Cursor IDE. Where .cursor/mcp.json lives, the JSON format Cursor expects, and the first servers to add for search, git, and browser.
- Social Media Automation with Claude CodeAutomate Twitter/X and LinkedIn posting from Claude Code: generate platform drafts, wire direct API calls, pair with browser MCPs, and schedule output yourself.
- MCP BasicsModel Context Protocol basics: server processes expose tools, APIs, and services to Claude Code over a shared wire format. Config, transports, and first server.
- Build Your Own MCP Server for Claude CodeBuild a custom Claude Code MCP server in Node.js. Tool definitions, request handlers, REST and Postgres patterns, plus the config Claude Code needs to load it.
- Context7 MCPAdd Context7 MCP to Claude Code so prompts fetch current library docs at query time, killing stale training-data guesses, invented APIs, and renamed functions.
- 50+ MCP Servers for Claude Code50+ Claude Code MCP servers, editor integrations, usage monitors, orchestrators, database connectors, browser drivers, and starter kits worth wiring in today.
- MCP Tool SearchMCP Tool Search lazy-loads Claude Code tool definitions once they cross 10% of the context window, reclaiming tens of thousands of tokens from idle MCP servers.
- Browser Automation MCP for Claude CodeWire Playwright or Puppeteer into Claude Code over MCP and drive real browsers with plain-language prompts for scraping, QA, regression clicks, zero selectors.
Model Picker
Model capabilities, tradeoffs, and where each Claude variant fits.
Core Pages
- Claude Opus 4.7 Use CasesClaude Opus 4.7 use cases across multi-file coding, security review, legal, finance, document reasoning, multimodal review, long-running Claude Code agents.
- Claude Opus 4.7Claude Opus 4.7, Anthropic's April 2026 flagship: stronger hard coding, document reasoning, long-running agent tasks, same $5/$25 pricing as Opus 4.6.
- Claude Opus 4.6Claude Opus 4.6 ships February 2026 with 1M context GA, 128K max output, and the same $5/$25 pricing. Sharper planning, longer agent runs, big-codebase gains.
- Claude Code ModelsPick the right Claude Code model: Sonnet, Opus, Haiku, sonnet[1m], or opusplan. Switching per task cuts model costs 60-80% without sacrificing output quality.
- Claude 4Claude 4 launched May 2025 with Sonnet 4 and Opus 4, pushing Claude Code mainstream. 200K context, 16K output, agentic reliability, extended thinking baked in.
- Claude Haiku 4.5Claude Haiku 4.5 launched October 2025 as budget tier for Claude Code smart model switching. 200K context, sub-2s latency, routes routine work cheaply.
- Claude Opus 4.5 in Claude CodeSet Claude Opus 4.5 as your Claude Code default in two commands. 76% fewer output tokens than Sonnet 4.5, 50% fewer tool calls, $5/$25, same 200K window.
- Claude 3.7 SonnetClaude 3.7 Sonnet shipped February 2025 with hybrid reasoning and extended thinking. 64K output, thinking-budget control, SWE-bench coding gains at $3/$15.
- Claude Opus 4.1Claude Opus 4.1 shipped August 2025 as a reliability patch on Opus 4. Steadier long-session output, fewer regressions, safer error handling, 200K context.
- Claude 3Claude 3 launched March 2024 with Opus, Sonnet, Haiku tiers, vision input, 200K context windows. Specs, benchmark scores, pricing, and the three-tier template.
- Claude 3.5 SonnetClaude 3.5 Sonnet launched June 2024 at $3/$15, beating Claude 3 Opus on MMLU, GPQA, HumanEval at a fifth of the cost. Specs, benchmarks, and code gains.
- Claude Sonnet 4.6Claude Sonnet 4.6 ships February 2026 at $3/$15 with 1M context GA. 70% developer preference over Sonnet 4.5, beats Opus 4.5 on 59% of coding sessions.
- Every Claude ModelEvery Claude model on one page: Claude 3, 3.5, 3.7, 4, Opus 4.1 to 4.6, Sonnet 4.5 and 4.6, Haiku 4.5. Specs, pricing, benchmarks, and when to use each.
- Claude Opus 4.5Claude Opus 4.5 launched November 2025 at $5/$25 per million tokens, two-thirds off Opus 4.1. 80.9% SWE-bench, 1M context beta, tighter sub-agent delegation.
- Claude 3.5 Sonnet v2 and Claude 3.5 HaikuClaude 3.5 Sonnet v2 and 3.5 Haiku launched October 2024 with Computer Use beta, cursor control, upgraded coding and tool use, and cheaper Haiku at $0.80/$4.
- Claude Sonnet 4.5Claude Sonnet 4.5 launched September 2025 at $3/$15, closing the gap with Opus 4.1 on coding and agents. 200K standard context, 1M beta, 16K max output tokens.
Real Builds
Concrete systems, experiments, and shipped agent workflows.
Core Pages
- AI Cleans ItselfThree overnight Claude Code workflows that clean AI's own mess: slop-cleaner removes dead code, /heal repairs broken branches, /drift catches pattern drift.
- AI Email SequencesOne Claude Code command builds 17 lifecycle emails across 6 sequences, wires Inngest behavioral triggers, and ships a branching email funnel ready to deploy.
- Autonomous AI SwarmAn autonomous Claude Code swarm: a 30-min trigger, an orchestrator, specialist sub-agents in worktrees, and five gates that ship overnight features safely.
- AI Security AgentsTwo Claude Code commands spin up eight security sub-agents: phase 1 scans SaaS logic for RLS gaps and auth bugs, phase 2 penetrates to confirm real exploits.
- Idea to SaaSPlain-English walkthrough of the Build This Now pipeline: market discovery, auto-planning, 7-stage build, and 14 post-launch commands that keep your SaaS live.
- GAN LoopOne agent generates, one tears it apart, they loop until the score stops improving. GAN Loop implementation with agent definitions and rubric templates.
- Distribution AgentsFour Claude Code agents that run on a schedule, write SEO posts, read PostHog, build carousels, and scout Reddit. Copy the definitions and plug them in.
- Self-Evolving HooksThree hooks turn every 'no, not like that' correction into a skill or rule Claude reads on the next session. Self-improving agents, no prompt tuning needed.
- Trace to SkillTrace2Skill: run an agent 20 times, log what worked, let four Claude analysts read the traces, and merge them into a SKILL.md that beats hand-written ones.