Arun's Tech Blogs

Practical tutorials and deep-dives on cloud, DevOps, web development, and blockchain by Solution Architect - Arun Munaganti

View on GitHub
26 August 2025

Claude Code, Dialed In: Practical Playbooks for Agentic Coding at Scale

by Arun Munaganti

Why Claude Code (and why now)

Claude Code turns your terminal into a disciplined pair-engineer: it reads your repo, proposes patches, runs commands with your permission, and learns your house rules. Used well, it’s not “autocomplete”—it’s an agentic teammate that plans, edits, verifies, and documents.

Goal of this post: a field guide to using Claude effectively on real projects, especially complex/monorepo setups—covering .md memory files, safe permissions, multi-agent parallel work, and routines that keep agents fast and reliable.


A minimal, reliable setup

1) Install + login (once)

2) Give Claude a brain: CLAUDE.md

Create a file that Claude automatically pulls into context:

Where it lives (priority top→down):

What to put inside (short, atomic rules):

Tip: Use the # hotkey inside Claude to append new rules directly into the relevant CLAUDE.md while you’re working. Keep it terse.

3) Keep decisions visible

Add two tiny docs in the repo root:

File Contents (short!)
PLAN.md Today’s objectives, constraints, DOD
DECISIONS.md Reversible vs. irreversible decisions

Claude will respect these if you reference them (“follow PLAN.md”).

4) Tighten permissions

Claude asks before edits/commands. Make it safer & smoother:

Example (put in .claude/settings.json):

{
  "allowedTools": ["Edit", "Bash(git add:*)", "Bash(git commit:*)", "Bash(pnpm:*)"],
  "statusLine": { "showModel": true, "showLatency": true }
}

Agent routines that scale

The P-B-R loop: Planner → Builder → Reviewer

Run three Claude sessions (tabs) on medium+ tasks:

Branch hygiene

The “Bounded Context” pattern for monorepos

Split work by stable boundaries (e.g., apps/web, packages/api, packages/ui). Run one Claude per boundary with its own CLAUDE.md. Scope instructions and allowlists to that folder only. Result: faster context builds, fewer accidental cross-edits.

The “Checklist First” habit

Before implementation, ask Planner to generate:


Working in parallel with multiple Claude agents

Model for parallelism

What to parallelize

Coordination checklist


Patterns for complex projects

1) Guard the blast radius

2) Progressive disclosure of context

3) Contract-first development

4) Test pyramids Claude can follow


Claude command playbook (daily use)

Task Ask Claude to…
Understand repo “Explain the architecture and entrypoints.”
Create plan “Draft PLAN.md for feature X with milestones + DOD.”
Enforce rules “Read CLAUDE.md and follow the style + commit etiquette.”
Scoped refactor “In packages/ui, migrate Button props; update stories.”
Safe bulk edit “Propose patches, then apply in Auto-edit once reviewed.”
Tests first “Write failing tests in api for the new validation.”
PR drafting “Summarize changes + risks; propose PR title & body.”
Post-merge chores “Update DECISIONS.md & CHANGELOG.md for this feature.”

Use Suggest mode by default. Switch to Auto-edit for repetitive local edits after you’ve skimmed the diffs. Keep Full-auto for sandboxes/devcontainers.


File conventions that make Claude sharp

File Purpose Notes
CLAUDE.md Rules, commands, style, gotchas One per boundary (root/packages)
PLAN.md Today’s goals + DOD Reset daily; keep it short
DECISIONS.md Decision log (link PRs) “R-2025-08-26: Switched to Zod”
checklists/ *.md Implementation steps Claude can tick 5–10 items max
SUMMARY.md Per-agent outcome in each folder What changed + how to verify
.claude/settings.json Allowed tools, status line, model Commit to share on team
docs/ ** Deep details (@ import from CLAUDE.md) Don’t flood CLAUDE.md

Speed, cost, and quality tips


Example: parallel feature push (90-minute window)

  1. Planner (root): reads PLAN.md → splits work into ui, api, worker.
  2. Builder-UI (packages/ui): implements component API change + stories.
  3. Builder-API (packages/api): adds DTO + validation + route tests.
  4. Reviewer (root): runs typecheck/tests, collects summaries, drafts PR.
  5. Merge: Reviewer composes one PR with SUMMARY.md across packages.

Each Builder has its own pane, branch, CLAUDE.md, and narrow permissions.


Common pitfalls (and fixes)


tags: Claude Code - Agentic coding - AI engineering - Terminal tools - Developer productivity