Claude Code Guides: CLAUDE.md, Model Routing, Cost Control

Claude Code is Anthropic's terminal coding agent. These guides cover CLAUDE.md files, model routing, hooks, cost tracking, and keeping workflows stable. Below are all 21 guides on Claude Code published on this site, newest first, each one a hands-on walkthrough with configuration you can copy.

All Claude Code guides (21)

Gemini 4 Argon for Agentic Coding: When It Beats Opus 5.5

Gemini 4 Argon for agentic coding: $2/$10 until Nov 30, then Opus 5.5 pricing. Where it beats Opus, where it loses, and how to run it from Claude Code.

Oct 20, 2026
•11 min read
Read Article →
Apple's Full Disk Access Change: Audit Your AI Coding Agent

Apple will tighten macOS Full Disk Access over AI agents. How Claude Code inherits it from your terminal, what I saw on my Mac, and the sandbox config that shrinks it.

Oct 6, 2026
•10 min read
Read Article →
DeepSeek V4.1 Flash in Claude Code: Vision, Routing, Real Costs

DeepSeek V4.1 Flash reads screenshots, beats V4 Pro on coding, and costs $0.15/$0.60 per 1M tokens. Claude Code setup, model-mapping traps, and real costs.

Sep 30, 2026
•13 min read
Read Article →
Agent Plugins 1.0: Build One Plugin for Claude Code and Copilot

Agent Plugins 1.0 packages skills and MCP servers into one portable folder. How to build one, and how to make the same repo work in Claude Code too.

Aug 20, 2026
•12 min read
Read Article →
DeepSeek V4 Flash for Claude Code: Setup, Routing, and Real Costs

DeepSeek V4 Flash 0731 costs $0.14/$0.28 per 1M tokens and speaks the Anthropic API. How to route Claude Code work to it, and when not to.

Aug 4, 2026
•12 min read
Read Article →
Sandbox AI Agents: Lessons From the OpenAI Hugging Face Breach

OpenAI’s models escaped a sandbox and breached Hugging Face. The three-link failure chain, why the same holes sit on your laptop, and the Claude Code sandbox config that closes them.

Jul 25, 2026
•12 min read
Read Article →
Kimi K3 for Agentic Coding: Claude Code + CLI Setup Guide

Moonshot’s 2.8T open-weight model runs for agentic coding two ways: routed into Claude Code via one env block, or the native Kimi Code CLI. Pricing, benchmarks, local-run reality, and an honest hybrid verdict.

Jul 19, 2026
•11 min read
Read Article →
How to Defend AI Coding Agents Against HalluSquatting Attacks

HalluSquatting turns predictable AI hallucinations into malware delivery. Why lockfiles and cooldowns do not stop it, plus the PreToolUse hook, sandbox config, and .npmrc settings that do.

Jul 15, 2026
•12 min read
Read Article →
GPT-5.6 Sol Ultra Mode: How Cooperative Subagents Actually Work

Sol Ultra puts subagent orchestration inside the model. What cooperative subagents are, GPT-5.6 pricing and Codex availability, the METR cheating flag, and how it compares to Claude Code dynamic workflows.

Jul 9, 2026
•11 min read
Read Article →
Claude Code Fable 5: Model Routing, Fallbacks, Cost Control

Fable 5 launched at 2x Opus 4.8’s price alongside the new fallbackModel setting. Chain configuration, the safety classifier that reroutes sessions to Opus 4.8, and a task routing table for all three models.

Jun 11, 2026
•12 min read
Read Article →
Claude Code Dynamic Workflows: When They’re Worth the Cost

Dynamic workflows fan a task across up to 1,000 subagents. Which tasks justify the cost, how to bound the agent count, what ultracode costs, and when a single session still wins.

May 30, 2026
•11 min read
Read Article →
Persistent Memory for AI Coding Agents Beyond CLAUDE.md

Three tiers of persistent memory in 2026: CLAUDE.md, MCP servers (agentmemory, claude-mem), and Anthropic’s Memory tool plus Dreaming. Benchmarks and a decision matrix.

May 29, 2026
•12 min read
Read Article →
Gemini 3.5 Flash for Agentic Coding: A Claude Coder’s Guide

Gemini 3.5 Flash beats Gemini 3.1 Pro on agent benchmarks at $1.50/$9 per 1M tokens. When to route tasks from Claude Code, the thinking_level trap, and a 40-line MCP agent.

May 27, 2026
•12 min read
Read Article →
Gemini CLI to Antigravity CLI: Migration Guide & Alternatives

Gemini CLI stops on June 18, 2026. Step-by-step migration to the new agy binary, free-tier rate-limit math, and when to switch to Claude Code or Codex CLI instead.

May 21, 2026
•11 min read
Read Article →
Running claude ultrareview in CI/CD: GitHub Actions Guide

Claude Code 2.1.120 added claude ultrareview as a non-interactive CLI subcommand. The OAuth token gotcha, a copy-pasteable GitHub Actions workflow, --json parsing with jq, and a cost control playbook.

May 3, 2026
•12 min read
Read Article →
MCP Code Execution Pattern: A Hands-On Claude Code Guide

Three MCP servers can eat 72% of a 200K context window. The code execution pattern compares against dynamic toolsets and Tool Search, with a working Python build and Claude Code v2.1.121 alwaysLoad config.

May 3, 2026
•12 min read
Read Article →
Regression-Proof Claude Code Workflows: Pin, Lock, Test

After Anthropic’s April 2026 postmortem revealed three Claude Code regressions, here is the practitioner playbook: pin the CLI, lock effort, allowlist models, add a regression-detecting stop hook, keep fixtures.

Apr 28, 2026
•12 min read
Read Article →
Harden Claude Code GitHub Actions: Prompt Injection Defense

Defend Claude Code workflows against the April 2026 Comment and Control CVE. Tool allowlists, OIDC via Bedrock, script caps, egress blocks, and a before/after hardened workflow.

Apr 25, 2026
•12 min read
Read Article →
Claude Code Security Review GitHub Action: 2026 Setup Guide

Workflow YAML, false positive tuning, token cost math, and a layered pipeline with Semgrep and Snyk for Anthropic’s official security review action.

Apr 22, 2026
•11 min read
Read Article →
Claude Code Cost Tracking: Monitor and Cut Your Spending

Track what you spend in Claude Code with built-in commands, hidden JSONL logs, and tools like ccusage. Plus 7 tips to cut token costs by 50%.

Apr 16, 2026
•12 min read
Read Article →
How I Write CLAUDE.md Files That Actually Work

Real production CLAUDE.md examples from my Next.js site. Learn the anatomy of an effective file, 7 common mistakes, and when to use hooks vs CLAUDE.md vs custom commands.

Apr 5, 2026
•12 min read
Read Article →

Looking for everything at once?

The full archive lists every article in publication order, across all seven topics.