Use Claude Code Como a Anthropic Recomenda
Cláudio on Context Management
Utilize new contexts or clear existing ones when starting unrelated tasks within Cloud Code's interactive shell. This prevents pollution of the AI's working memory with irrelevant information, ensuring focused and accurate task execution. The 'clear' command or sub-agents are recommended for this purpose.
Strategic Model Selection
Employ more powerful models like Claude 3 Opus or Sonnet for planning and complex architecture tasks, while using simpler models for routine coding or digitizing tasks. This 'leverage' principle optimizes resource usage and ensures the right AI capability is applied to the right problem, creating efficient workflows.
Cláudio on Code Review Configuration
Configure a dedicated `review.md` file within Cloud Code to specify guidelines for code reviews. This file should contain only review-specific instructions, distinct from general project information in `cloud.md`. This ensures focused and consistent code review processes, especially when using complex review requests.
Commit Project-Specific Cloud Configurations
Commit project-specific `.cloud` configuration files to version control. While personal user configurations should remain private, project configurations ensure the entire team uses the same Cloud Code settings, fostering consistency and allowing collective improvement of the AI's behavior within the project context.
Sandbox Environments for Uninterrupted Workflows
For uninterrupted workflows, such as long-running tasks or batch processing, run Cloud Code within a sandbox environment like a VM or container. This recommendation from Anthropic ensures a stable and isolated execution environment, preventing interference and maintaining process integrity.
Managing Local Session Data
Cloud Code retains local session data for 30 days in the `.cloud/projects` directory. Users can view, manage, or delete these sessions, offering a fallback for reviewing past interactions or recovering context. This local cache provides a safety net for development history.



