MacforAI

Which Mac runs your local LLM: memory, speed and Apple price

← All articles

5 Claude Code Habits from Anthropic's Own Team

Published · Updated · 2 min read

Watch the video on YouTube

Which Claude Code habits does Anthropic's own team recommend today? Five of them stood out to me in the talk "Rethinking Claude Code best practices" by Lydia Hallie (AI Engineer): stop shouting in your memory file, stop approving every command by hand, keep deny rules, use a sandbox, and verify results instead of watching the agent work.

Key takeaways

  • Write your memory file (CLAUDE.md) in plain, calm language instead of capital letters and warnings.
  • Approving each command manually does not make a session safer; set up permissions on purpose.
  • Keep deny rules for the commands that must never run.
  • Run the agent in a sandbox so that a mistake stays contained.
  • Check the outcome with tests and diffs rather than staring at the terminal.

The five habits

1. Drop the shouting in your memory file

Many memory files are full of capital letters, "NEVER" and "IMPORTANT". Newer models follow instructions well, so plain rules work. A shorter, calmer file is also easier for you to maintain.

2. Stop approving every command by hand

Clicking "yes" dozens of times trains you to approve without reading. A better setup is a clear list of what is allowed, so that you only get asked about things that really matter.

3. Keep deny rules

Allow rules save time, deny rules protect you. Keep a short list of commands the agent must never run, and it stays in force even when you allow a lot.

4. Use a sandbox

A sandbox limits what a session can touch. If the agent makes a mistake or follows a bad instruction, the damage stays inside the boundary.

5. Verify instead of watching

Reading every step as it scrolls past is tiring and catches little. Ask the agent to run the tests, then review the result and the diff.

Source and caveats

The video is based on Lydia Hallie's talk "Rethinking Claude Code best practices" (AI Engineer). Short muted clips of the talk are shown with credit. The figures and advice come from the talk, and settings change between versions, so check Anthropic's documentation for the current options.

FAQ

What is the memory file in Claude Code?

It is a file, usually CLAUDE.md, with standing instructions that Claude Code reads at the start of a session: project rules, commands, preferences.

Is it safe to stop approving commands manually?

It is safe only if you replace manual approval with explicit rules: an allow list for routine commands, deny rules for dangerous ones, and ideally a sandbox. Blind clicking is not a safety measure.

Do these habits need a powerful Mac?

No. Claude Code runs against Anthropic's models in the cloud. A Mac matters when you want to run models locally, and you can check what fits with the local LLM Mac calculator.