CLAUDE.md/AGENTS.md systems, Skills, hooks, subagents and cost control for AI coding agents.
Claude Code works out of the box and still wastes your money out of the box. The gap between a default install and a tuned one is not model quality — it is setup: what your CLAUDE.md loads into every request, which hooks guard your workflow, how subagents split the work, and which settings stop small sessions turning into long expensive ones. The guides in this category close that gap in the order it pays off.
Read it in this order
Start with your first CLAUDE.md, then the version that actually works once a project grows, then the team variant if anyone else touches the repo. Next, hooks: read the by-event map before the deep dive, so you know which hook fires when before you write one. Then subagents versus a single long session, the briefs that make subagents useful, and finally cost: the settings that cut spend, the habits that keep it cut, and the cost ladder for deciding whether a paid plan is even your problem.
Where people go wrong
The expensive mistakes repeat. A CLAUDE.md that tries to document the whole project charges you for that documentation on every single request. Hooks written before you know the event order fire at the wrong moment and get deleted in frustration. Subagents spawned without a tight brief return summaries you cannot act on, so you pay twice — once for the subagent, once for redoing the work in the main session. And the most common one: upgrading a plan to fix a cost problem that was actually a context problem.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Cut Claude Code costs through habits, not settings: prompt shape, file scoping, session timing and model discipline — a daily checklist for cheaper finished work.
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.
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.
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.
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.
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.
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.
Codex, Claude Code and Cursor compared on surface, delegation, customisation, context and pricing — plus a repeatable test protocol for deciding on your own codebase.
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.
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.
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.
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.
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.
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.
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.
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.
Control Claude Code spend at the settings level: route models by task, keep context lean, and build the /clear habit — practical levers, honestly framed.
Subagents fail on vague briefs, not weak models. Use this brief template — context, constraints, done-definition — to get delegated work you can actually merge.
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.
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.
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).
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.
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.
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.
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.
How Claude Code permission modes, allowlists and sandboxing actually work together — plus a permission policy template by project type so autonomy stays safe.
12 min read
FAQ
Do I need a paid Claude plan to use these guides?
No. Most of the gains here are free: instruction-file hygiene, session habits, hook setup and settings changes work on any plan. The cost ladder article exists precisely to show which problems a plan upgrade solves and which it does not.
CLAUDE.md or AGENTS.md — which should I keep?
Both files exist in this category because the answer depends on your tool mix. If you only run Claude Code, CLAUDE.md is enough. If other agents read the same repo, the field guide and the head-to-head comparison show how to split shared rules from Claude-specific ones without duplicating them.
Are hooks safe to copy into a real project?
The hook guides state what each hook can block, what it receives as input, and where people get hurt — a PreToolUse hook that always exits non-zero will freeze your workflow. Test a new hook on a throwaway repo first; the deep dive shows the order to do that in.
How do I know if my setup is actually wasting tokens?
Run the context budget audit. It walks through everything that loads automatically in your sessions and prices it, so you can see the waste as a number instead of a feeling.
Get the free Agent-Ready Astro — Free Mini Kit
Get the free mini kit (CLAUDE.md + AGENTS.md templates and 3 production Skills) plus one practical email a week — a template or checklist in every issue. No spam, unsubscribe anytime.