newsfilter
← Interviews
AI Engineer18 min

Rethinking Claude Code Best Practices — Lydia Hallie, Anthropic

Lydia Hallie

Conference Presentation, Tutorial
  • Anthropic has transitioned from manual, step-by-step human oversight to an autonomous workflow where developers act as managers for dozens of simultaneous, long-running sessions.
  • Anthropic's internal developer velocity increased from approximately 2,500 code changes per day in May to over 30,000 changes per day in September.
  • Session workflows have evolved from short, single-session interactions with models like Opus 4.5 to parallel sessions running for hours that verify their own outputs and orchestrate one another.
  • The presentation advocates for shifting from explicit human steering to automated model steering by updating model configurations to Opus 5.5.
  • Auto-mode is now the default permission setting, automatically approving safe actions like test runs while blocking uncertain commands; this replaced the previous manual approval requirement.
  • CloudMD files should be streamlined to contain only information the model cannot infer from the codebase, as explicit constraints like "never do this" prompts can now degrade model performance by increasing unnecessary tool calls.
  • The Dr. Prompt Audit command automatically optimizes CloudMD files and skills by identifying and removing instructions the model no longer requires based on its current context awareness.
  • Auto-mode utilizes a separate classifier to evaluate permissions, but it only trusts specific folders and repos by default, requiring manual configuration of trusted domains and repositories in settings if broader access is needed.
  • A study published in August found that auto-mode blocked 89% of dangerous commands, significantly outperforming human reviewers who caught only 14%.
  • Deny rules remain the highest-guarantee safety mechanism, as they prevent tool calls before the auto-mode classifier ever evaluates them; they should be reserved for irreversible actions like deleting uncommitted changes or reading sensitive files (e.g., .env).
  • Sandbox environments are recommended for local development to restrict command side effects at the operating system level, preventing scripts from accessing unauthorized files or hosts even if the command itself is permitted.
  • Cloud sessions are preferred for long-running tasks to isolate execution in disposable environments, eliminating risks from local secrets, SSH keys, and network access to unapproved hosts.
  • Network access in cloud sessions is restricted by default to package registries and GitHub; external domains must be explicitly added to the environment configuration.
  • Verification points (tests, builds, screenshots) are essential for ensuring code quality in unsupervised sessions, allowing the model to self-correct if a check fails before proceeding.
  • Task hooks should be configured to run checks like linters and specific unit tests after file edits, utilizing exit code 2 to signal failure and trigger model rework, whereas exit code 1 is currently treated as a completed task.
  • Continuous Integration (CI) systems now serve as the primary gatekeeper for code quality, capable of running checks on every PR and triggering "auto-fix" capabilities if the model has permission to modify the code.
  • Anthropic's current practice involves an initial review by a dedicated "review agent" (Fable) for every PR before human review, with human involvement scaled based on risk (e.g., no humans for docs, one for product changes, multiple for risky changes).
  • The future workflow involves an "orchestrator" session that manages sub-threads; users interact with a single main session (preferably Fable for reasoning) while sub-tasks are handled by worker sessions (preferably Opus 5.5 for execution).
  • Cloud Code Projects in beta automate context management, removing the need for humans to manually compact or clear session history.
  • The speaker concludes that best practices have shifted: models now steer, auto-mode approves, environments restrict, and tests verify, leaving humans only to initiate the first session and review final outputs.