·
We publish letscodeit.dev blog posts from a separate GitHub repository. The Next.js app fetches markdown at runtime with a one-hour cache,…
GEO (generative engine optimization) is how you structure and publish content so AI chatbots and answer engines quote your pages when…
When you send a message to an LLM, you are not paying for characters or words. You pay for tokens . A token is the unit the model splits…
The blog post discusses practical strategies for optimizing Claude Code sessions to maximize token efficiency.
Key tips include using the /clear command between tasks to avoid unnecessary context, setting the model and effort level at the start to prevent prompt cache issues, and @-mentioning files for direct attachment. Additionally, running /context in new sessions helps identify unnecessary loaded items, and using /compact before breaks can save costs by summarizing conversations while they're still cached. Efficient token use focuses on directing tokens towards relevant tasks rather than merely reducing their quantity.
Source: claude.com
Using /clear between tasks is a simple yet effective way to keep your Claude Code sessions efficient.
Comments