Claude Code & Context Engineering
Claude Code rewards setup more than prompting talent: the instruction files it loads, the hooks that guard it, and the session habits that keep context lean decide what a month of agent work costs and how much of it you redo. This category gathers the field guides, the workflow pack, and the free templates that turn a default install into a tuned one.
45 pieces across 3 collections
Read the article-only category hub →
Articles
- 5 Claude Code Hooks That Catch the Mistakes Agents Actually Make
Five Claude Code hooks that catch real agent mistakes — formatting drift, .env edits, unbuilt 'done' claims — with a copy-ready settings.json config. - Agent Memory Patterns: What Coding Agents Should Persist, Where, and What to Forget
Memory patterns for coding agents that actually work: the file-based patterns for facts, decisions and handoffs, what to persist, and why forgetting is a feature. - AGENTS.md vs CLAUDE.md: What Goes Where When You Use More Than One AI Coding Tool
AGENTS.md or CLAUDE.md? A practical split for multi-tool builders — what belongs in each file, what to share, and a minimal pair you can copy today. - Aider: Terminal Pair Programming Where Every Edit Is a Git Commit
An Aider setup and workflow guide built from the official docs: installation, the repo map, architect mode's two-model split, the slash commands that matter, real costs, and who this open-source tool still suits. - Before You Launch Your Vibe-Coded App: The Security Checklist (RLS, Exposed Keys, Subscription Bypasses)
Audits of AI-built apps keep finding the same holes: row level security off, secret keys in client code, payment webhooks that trust the success page. A plain-language pre-launch checklist with a verification step for every item. - Claude Code Cost Control: A Practical Ladder From Free Habits to Paid Plans
Control Claude Code costs without guesswork: a ladder of habits, model choices, and session hygiene ordered by impact — with current plan and API prices, checked November 2026. - Claude Code Cost Optimisation: 9 Usage Habits That Cut Spend Without Changing Your Plan
Cut Claude Code costs through habits, not settings: prompt shape, file scoping, session timing and model discipline — a daily checklist for cheaper finished work. - Claude Code Hooks by Event: The Complete Map and 3 Recipes Worth Automating
Every Claude Code hook event explained — all 34 events with what fires when, which ones can block, and what each returns — plus a working settings.json config and three recipes to copy. - Claude Code Hooks Deep Dive: Matchers, Exit Codes, JSON I/O and Debugging
Go beyond starter hooks: how matchers really evaluate, the if field, exit-code semantics, the JSON payloads hooks receive and return, the five handler types, and a calm method for debugging hooks that silently do nothing. - Claude Code in CI: Headless Mode, Automated Code Review and Guardrails That Hold
Run Claude Code in CI properly, per Anthropic's official docs: headless mode flags, the official GitHub Action for automated review, cost caps, and a copyable workflow with a guardrail checklist. - Claude Code Isn't Just for Coding: Running Writing, Research and Ops from the Terminal
Non-coders are running writing businesses, research and daily operations in Claude Code. What transfers from coding workflows, what does not, and a starter folder setup with a sample CLAUDE.md. - Claude Code Permissions and Sandboxing: Permission Modes, Allowlists and Safe Autonomy
How Claude Code permission modes, allowlists and sandboxing actually work together — plus a permission policy template by project type so autonomy stays safe. - Claude Code Settings That Cut Cost: Model Routing, /clear Discipline and Context Hygiene
Control Claude Code spend at the settings level: route models by task, keep context lean, and build the /clear habit — practical levers, honestly framed. - Claude Code Skills, Explained for People Who Already Use CLAUDE.md
Claude Code Skills explained without the hype: when a rule should leave CLAUDE.md, how SKILL.md works, and a full Astro example you can adapt. - Claude Code vs Codex: Pricing, Features and Workflow Compared
A sourced comparison of Claude Code and Codex — current plan pricing checked November 2026, how each tool's workflow is shaped, customisation depth, CI support, and a blank scorecard to run your own evaluation. - Claude Code with MCP Workflows: Three End-to-End Recipes for Browser QA, Databases and Docs
Stop demoing MCP servers one at a time. Three end-to-end Claude Code workflows — browser QA, database changes, documentation sync — with the guardrails each one needs. - CLAUDE.md for Teams: Shared Rules, Personal Rules and a Git Workflow That Avoids Conflicts
Run CLAUDE.md with a small team without the merge conflicts and rule wars: what belongs in the shared file, what stays personal, and a review workflow that keeps it trustworthy. - Cline vs Aider: Editor Agent With Approvals, or Git-Native Terminal Tool?
Cline vs Aider compared on surface, approval model, checkpoints vs git commits, model choice, cost control and project health — with a winner per criterion and a chooser checklist. - Codex vs Claude Code vs Cursor: A Fair Test Protocol You Can Run Yourself
Codex, Claude Code and Cursor compared on surface, delegation, customisation, context and pricing — plus a repeatable test protocol for deciding on your own codebase. - Context Budgets for Long Projects: What to Persist, What to Hand Off, What to Let Go
For projects that run for weeks: a context-budget system covering what to persist in memory files, how to write a session handoff, and what to deliberately let compaction take. - Cursor vs Claude Code: Editor Agent or Terminal Agent?
Cursor vs Claude Code compared on working surface, Tab completions, context handling, long tasks, automation and pricing — with a winner per criterion and a decision worksheet. - Cursor, Set Up Properly: Rules, Codebase Indexing, and Agent Mode
A practical Cursor setup guide: rules files that actually constrain the agent, how codebase indexing works, agent mode habits, and the new X Subscription pricing explained plainly (checked November 2026). - Custom Slash Commands: Turn Your Repeated Claude Code Workflows into One-Word Apps
Stop retyping the same Claude Code prompts. Build custom slash commands with arguments, live shell output and file references — five worked examples based on Anthropic's official docs. - Debugging Agent Loops: How to Recognise and Break Repeated Edits, Tool Thrash and Runaway Retries
Your agent is not stuck, it is looping — and loops have signatures. Learn the four loop patterns, what causes each one, and the intervention that actually breaks it. - Gemini CLI vs Claude Code: An Honest Comparison and a Test Protocol to Run Yourself
Gemini CLI vs Claude Code compared on published facts, not invented benchmarks: free-tier quotas, pricing, context windows, licensing and extensibility — checked November 2026 — plus a protocol for your own verdict. - GitHub Copilot Agent Mode: A Workflow Guide Beyond Autocomplete
How Copilot's agent mode and cloud agent actually work — VS Code agent mode, issue-to-PR delegation, custom instructions, model choice, and AI Credits pricing explained. - How the Claude Code Team Actually Uses Claude Code (and What to Steal)
Boris Cherny published his Claude Code setup: five parallel Claudes, plan mode first, one shared CLAUDE.md. Here is each practice, what it does, and what a solo builder should copy. - How to Point Claude Code at a Free Gemini API Key (and What You Lose)
Claude Code has no official Gemini mode — but a local router can translate its requests to a free Gemini API key. The exact setup from Anthropic's env-var docs and the router's repo, what breaks in translation, and when the trade is worth it. - Local LLMs for Coding: Ollama and LM Studio Set Up Honestly
Run coding models on your own hardware with Ollama or LM Studio: real memory requirements from published model data, the context-length trap and its fix, which agents connect, and what local models still cannot do. - Lovable vs Bolt vs v0: Three AI App Builders, Three Different Meters
Lovable, Bolt and v0 compared on what each actually builds, how each one bills you (credits, tokens, dollars), code ownership, and which builder fits which kind of project. Pricing checked November 2026. - OpenCode vs Claude Code: Open and Configurable vs Bundled and Tuned
OpenCode vs Claude Code compared on criteria that matter — cost model, model choice, configuration, MCP, and control — plus a test protocol to run on your own codebase. - OpenCode: The Open-Source Terminal Coding Agent, Set Up Properly
What OpenCode is, how to install and configure it, how its provider model works, what its own Go and Console plans cost, and where it honestly differs from subscription coding agents. - Subagent Briefs That Get Used: A Template for Delegation That Actually Lands
Subagents fail on vague briefs, not weak models. Use this brief template — context, constraints, done-definition — to get delegated work you can actually merge. - Subagents vs One Long Session: How to Split Real Build Work Without Losing the Plot
Subagents or one long Claude Code session? A field guide to splitting real build work — when delegation helps, when it hurts, plus a copyable brief. - The AGENTS.md Field Guide: Portable Rules Every AI Coding Tool Respects
Write an AGENTS.md that Codex, Cursor and other agents actually follow: what ports from CLAUDE.md, what does not, and an annotated template to start from. - The CLAUDE.md That Actually Works: A Field-Tested Structure for Astro and Next.js Projects
A field-tested CLAUDE.md structure for Astro and Next.js that agents actually follow — copy the annotated template and stop repeating yourself. - The Conductor Setup: Let an Expensive Model Plan While Cheaper Models Do the Work
One model conducts, cheaper models play: the model-routing pattern from Reddit and X, how to build it with Claude Code subagents, and the honest quota cost of running it. - The Context Budget Audit: Stop Paying Token Rent for Rules Your Agent Never Uses
Run a context budget audit on your Claude Code setup: list what loads every request, price it, and keep, move, or delete each rule with confidence. - Why Your Claude Max Plan Runs Out So Fast: How to Audit Your Own Usage Logs
Your Max plan is not one limit, it is three stacked limits plus a cache timer. Here is how the meters actually work, and a step-by-step audit that shows where your allowance goes. - Windsurf (Devin Desktop): Cascade, Memories, and the Quota Model Explained
A practical guide to Windsurf — now Devin Desktop: how Cascade gathers context, what Memories and rules do, how the quota pricing works, and who should choose it over Cursor. - Writing Claude Skills, Advanced: Supporting Files, Scripts and Trigger Testing
Advanced Claude Code skill authoring: supporting files, bundled scripts, progressive disclosure done properly, and a repeatable way to test whether your skill triggers when it should. - Your First CLAUDE.md in 20 Minutes: The Minimal File That Actually Helps
Skip the 200-line template. Write a minimal CLAUDE.md in 20 minutes that stops Claude Code guessing — then grow it only when you catch a repeat mistake.
Products
- Claude Code Power-User Workflow Pack
The workflow layer for daily Claude Code users: a hooks library, subagent brief templates, the context-budget audit system and a cost-control ladder. $39 launch, $79 with the team templates.
Resources
- CLAUDE.md Template for Astro & Next.js Projects
An annotated CLAUDE.md template that encodes stack, commands, hard rules and a definition of done — the structure field-tested across Astro and Next.js repos. - Context Budget Worksheet
A one-page worksheet for auditing what your AI coding agent loads on every request — CLAUDE.md, AGENTS.md, MCP schemas, Skill descriptions — and what each costs you.