Claude Code Agents Ship Faster — Workflow Guide That Wins
Autocomplete suggests lines; Claude Code ships features.
20+ years shipping production infrastructure and CI/CD at scale. Written from production experience, not tutorials.
- ✓A code repo you can experiment in
- ✓Terminal comfort with git basics
- ✓An Anthropic API plan or Claude subscription
- Claude Code is an agentic coding CLI that reads repos, plans multi-step work, edits files, runs tests, and iterates inside permission boundaries
- Subagents isolate side work: Explore (read-only search), Plan (plan-mode research), general-purpose (multi-step tasks), plus custom Markdown specialists in .claude/agents/
- Performance insight: plan-mode plus subagent delegation keeps exploration out of main context — migrations that sprawled across 40 unguided files land in the intended 6 with one approval checkpoint
- Production rule: plan mode beyond three files, conventions in CLAUDE.md (not repeated prompts), permissions scoped per directory, destructive tools approval-gated
- Dynamic workflows scale to dozens of agents for audits and migrations — powerful, token-hungry, and reserved for jobs needing cross-checked scale
- Biggest mistake: vague prompts plus permission bypasses in shared repos — green tests with violated architecture, discovered at review
Think of the difference between a GPS that suggests the next turn (autocomplete) and a driver who takes you to the destination (Claude Code). The GPS helps moment to moment; the driver handles the whole trip — reading the map (exploring your repo), proposing the route (plan mode), driving (editing files), and checking the engine light (running tests). Subagents are specialist passengers: one reads road signs while you drive, one navigates, one handles the radio — each focused, none grabbing the wheel. Project memory (CLAUDE.md) is the driver's notebook remembering your preferences: avoid tolls, check mirrors, never touch the red button. The safety rules match driving too: agree on the route before highway speeds (plan mode), keep hands near the wheel on destructive moves (approval gates), and don't hand the keys to a stranger with no boundaries (permission discipline).
| Chrome | Firefox | Safari | Edge |
|---|---|---|---|
| ✓ | ✓ | ✓ | ✓ |
Engineers drown in toil: exploring unfamiliar code, writing boilerplate, running the same checks. Autocomplete helps with lines, but features and migrations span dozens of files. That gap eats sprints.
Claude Code closes it. It's an agentic CLI that reads your repo, plans the work, edits files, runs tests, and iterates — supervised by you. You'll feel the shift the first time a migration finishes before lunch.
Subagents, plan mode, and project memory turn one-off prompts into repeatable workflow. The agent remembers conventions, researches safely, and delegates side quests.
But agents with file access need discipline. Skipped planning, mega-sessions, and blanket permissions cause real damage. This guide builds the workflow that ships.
Why Agents Beat Autocomplete for Real Tasks
Autocomplete predicts the next lines from nearby code. It cannot explore a repo, run tests, or hold a multi-step plan — every architectural decision stays yours, every file navigation manual. Fine for boilerplate, useless for migrations.
Claude Code inverts the relationship: you state the outcome, it handles the steps. It searches codebases, drafts plans, edits files, executes commands, reads failures, and retries. Supervision moves up a level — from keystrokes to intent and review.
The economics follow: an engineer's leverage shifts from typing speed to judgment quality. Teams that adapt spend review time where it matters (architecture, edge cases) and let agents absorb the mechanical middle.
Custom Subagents — Specialists You Commit
Custom subagents are Markdown files with YAML frontmatter: name, description (the trigger Claude matches), tools (scoped access), and a prompt body (the specialist's instructions). The example above is a read-only security reviewer — powerful because it cannot edit, only advise.
Descriptions are the API: crisp trigger phrases ('use when touching login, session, OAuth') get matched; vague ones ('helps with code') never fire. Scope tools ruthlessly — a reviewer needs Read and Grep, never Write.
Commit project subagents (.claude/agents/) to version control; keep personal ones in ~/.claude/agents/. Team-reviewed specialists improve like code; hallway-prompted ones evaporate.
Plan Mode — Research First, Edits After Approval
Plan mode separates research from action: Claude explores via the Plan subagent, presents the approach, and waits. The main session stays read-only; exploration output never floods your context. Approve, and execution starts from understanding instead of guessing.
Use it for anything beyond three files, any unfamiliar module, and every migration. The five minutes of review prevent the half-day revert in the incident above.
Explicit invocation guarantees routing: 'Use the code-reviewer agent to check the auth module.' Automatic matching handles the rest once descriptions are sharp. Both beat hoping.
CLAUDE.md — Conventions Once, Inherited Everywhere
CLAUDE.md is project memory loaded automatically into every session: commands, boundaries, style. The hierarchy (user, project, directory, local) layers conventions without repetition. Subagents inherit it (except built-in Explore/Plan), so rules propagate to delegated work.
Write boundaries as hard rules ('ask before touching outside src/auth/'), not suggestions. Agents obey explicit scope; they improvise around vibes.
Maintain it like a README: update when conventions change, prune when rules rot. A stale CLAUDE.md teaches every session the wrong lesson simultaneously.
Workflows and Teams — Scale Past One Conversation
Dynamic workflows tackle jobs too big for one conversation: repo-wide audits, 500-file migrations, cross-checked research. Claude writes an orchestration script; the runtime fans out dozens of agents in the background while your session stays responsive.
The trade is tokens and interaction: single runs cost meaningfully more than conversations, with intermediate state in script variables instead of chat. Monitor /workflows totals and reserve workflows for scale that justifies the spend.
Agent teams and background sessions cover the middle: supervised worker groups for collaborative jobs, agent view (claude agents) for independent tasks you check between other work. Match the coordination tool to the job size.
The Production Workflow — Compose It All
The production workflow composes everything: CLAUDE.md briefs, plan mode approves, subagents specialize, permissions bound, workflows scale. Review agent diffs like human PRs — architecture judgment stays human, mechanical execution delegates.
Cost control is explicit: route review passes to cheaper models, track workflow tokens, and prefer single sessions with subagents over workflows for routine work. Token budgets are engineering budgets.
Start small: one custom reviewer, one CLAUDE.md, plan mode always. Add workflows when a job outgrows conversation — not before. Discipline compounds faster than autonomy.
The Coffee-Break Refactor — 40 Files Changed for a 6-File Task
- Plan mode is the seatbelt: research-first, approve-second turns misunderstood requirements into a five-minute correction instead of a half-day revert.
- Permission bypasses trade review time for recovery time at a terrible exchange rate. Scope tools per directory and keep destructive actions gated.
| File | Command / Code | Purpose |
|---|---|---|
| code-reviewer.md | name: code-reviewer | Custom Subagents |
| CLAUDE.md | - Test: `pytest tests/ -x -q` | CLAUDE.md |
| migrate-review.md | description: Migrate review — plan, delegate review, test, report | Workflows and Teams |
Key takeaways
Common mistakes to avoid
4 patternsRepeating the same instructions in every prompt
Skipping plan mode on large changes
Running with blanket permission bypasses everywhere
Doing everything in one mega-session instead of subagents
Interview Questions on This Topic
What is Claude Code and how does it differ from autocomplete?
Frequently Asked Questions
20+ years shipping production infrastructure and CI/CD at scale. Written from production experience, not tutorials.
That's Productivity. Mark it forged?
3 min read · try the examples if you haven't