CopybookSearch

Claude Code best practices, with rules to copy

Anthropic’s best practices page comes down to five habits:

  • Write down only what Claude can’t learn by reading the code, and keep CLAUDE.md short.
  • Give it a check it can run that comes back pass or fail, and ask for the command it ran and its output.
  • Prompts, CLAUDE.md and skills are read by the model, which may not follow them. A rule that has to hold every time goes in a hook, a deny rule or a managed setting.
  • Run /clear between unrelated tasks. After two failed corrections, /clear and write a better prompt.
  • Effort is the main control for how long Claude thinks. Subagents cost tokens; they pay off for parallel work, for keeping long output out of the main session, and for an independent review.

11 tips16K+ saves on X, as of

Give it what it can't see

Prompt Claude Code, Codex

429 saves

HANDOFF.md for the next agent

A task longer than one session: progress, decisions, files, checks and next steps kept current for the next agent.

Long runs + Writing

Connector Claude Code, Codex

Vox’s pick

8.4K saves

codebase-memory MCP: an index of your repo

Dozens of grep and read turns per question: the repo as one graph of functions, files and dependencies; dead code found too.

Codebase

Checks and hard limits

Subagents Claude Code

740 saves

Builder on low effort, verifier on high

High effort mostly buys verification: a builder on low, a verifier on high, one CLAUDE.md rule runs each feature through both.

Launch + Review

Command Claude Code

387 saves

Nightly routine reviewing the day’s pushes

Today’s pushes to main, reviewed while you sleep: a draft PR per bug with a test that fails first, in the cloud, laptop closed.

Review

Config Claude Code

662 saves

Claude Code permissions: deny, ask and allow commands

Claude deleted a config that ‘looked unused’: risky commands blocked, pushes ask first, routine ones run, deny always wins.

Codebase

Context and usage

Config Claude Code

2.5K saves

Cache countdown in the status line

The cache expires without warning: the status line shows minutes left, then what the next message re-caches.

Models and cost

Rules Claude Code, Codex

722 saves

3 habits burning your Claude Code usage

Keep hitting the usage limit: 7 days of session logs scanned, the 3 costliest habits and their share, rules to plug them.

Models and cost

Model, effort and subagents

Subagents Claude Code

968 saves

/advisor: Sonnet 5.5 works, Opus on call

$20 plan on Opus 5.5 by default: Haiku reads code, looks up docs; Opus advises before plans, on repeat errors, before ‘done’.

Models and cost + Review

Let it run without you

Subagents Claude Code

887 saves

Progress dashboard subagent for long tasks

Where a long task stands while you wait: an HTML dashboard of progress, blockers and open questions, built by a side subagent.

Long runs

Prompt Claude Code

670 saves

The job worth a dynamic workflow in Claude Code

Which job is worth many agents: repo-wide checks, migrations or fix loops, planned on one directory with at most 10 agents.

Long runs + Codebase

Prompt Claude Code

380 saves

Scheduled-agents review by Anthropic’s guide

‘The last 24 hours’ in a scheduled task skips or repeats work: fixed windows, silent read failures and risky posting flagged.

Long runs + Review