BB
Knowledge Base · Claude Code

Claude Code
Best Practices

A curated knowledge base of tips, patterns, and workflows from Boris Cherny and the Claude Code community. 164+ entries, fully searchable, with attribution to every original author.

164+
Tips
8
Concepts
6
Authors
15
Categories

Featured Tips

View all →
Workflow 🚫👶 no-babysit

Use /clear between unrelated tasks

Clearing context between unrelated tasks prevents cross-contamination and keeps Claude focused on the current problem.

B Boris Cherny #workflow
Security

Prefer allowlisting over blocklisting for tools

Explicitly allow only the tools Claude needs for a task rather than trying to block all dangerous ones. Safer and more predictable.

T Thariq Shihipar #security
Context 🚫👶 no-babysit

CLAUDE.md is loaded automatically — use it for persistent context

Put project conventions, architecture notes, and team preferences in CLAUDE.md. Claude reads it at session start without prompting.

B Boris Cherny #context
Automation

Use headless mode (--print) for CI pipelines

Run Claude Code non-interactively in scripts with cc --print "task". Pipe output, set exit codes, integrate with any CI system.

B Boris Cherny #automation

Browse by Category

Contributing Authors