AI Engineer18 min
Rethinking Claude Code Best Practices — Lydia Hallie, Anthropic
Conference Presentation, Tutorial
- Models are expected to increasingly run for hours with dozens of simultaneous sessions orchestrated without human intervention, relying on "auto mode" set as the default permission mode since August to eliminate manual command approval.
- Auto mode will permit commands identified as safe while blocking uncertain ones, though a study indicates one in ten commands previously blocked by humans were allowed, implying that a full guarantee requires enforcing rules within the harness.
- Developers are expected to define deny rules by assessing reversibility via the criterion of whether an error can be undone if "clot gets his wrong once," while avoiding
Claude.mdinstructions like "important" or exclamation marks that may cause the model to go off track. - New
Claude.mdfiles should be optimized to contain only information inaccessible to the cloud from code, with theDr. Prompt Auditcommand automatically identifying and removing redundant items for current models. - Security is addressed through disposable cloud sessions that prevent local secrets or machine states, operating system-enforced sandbox limits on file, folder, and host access, and network restrictions limited to package registries and GitHub unless explicitly added.
- Verification workflows require developers to set checkpoints such as tests and builds, with scripts exiting with code two to trigger retries, while CI systems run identical checks on every pull request regardless of session setup.
- Future workflows may feature a main orchestrator session splitting tasks and initiating sub-sessions without human input, potentially utilizing "Fable" for decision-making and "Opus 5.5" for execution, with "merge when ready" in CI automating merges after checks pass.
- Teams can utilize Cloud Code Projects to automatically manage context, and are encouraged to test the new workflow with tasks significantly larger than typical assignments.