Optimize Claude Code sessions by clearing previous context and pre-defining model settings and effort levels to control token consumption. Using @-mentions to explicitly reference specific files reduces context window bloat and improves task accuracy during CLI-based coding workflows.