Claude Code session clear vs keep decision rule
From Wikiprompt, the free prompt encyclopedia
Claude Code session clear vs keep decision rule A concise decision rule for developers to decide when to clear a Claude Code session to optimize token usage and prompt cache efficiency.
Prompt ContentSave
π
Decision rule for when to /clear your Claude Code session vs keep it open:
- Task scope changed (new feature, new repo subdir): restart
- Context window past 60% (check /cost): restart
- Still on same file in same function: keep going
Long sessions trash the prompt cache and ruin your token bill.
Sign in to see the full prompt
Continue with:
By logging in, you agree to our Terms of Use and Privacy Policy
Usage
This prompt is designed for use with productivity. Copy the prompt content above and paste it into your preferred AI tool.
For best results, you may customize the placeholders (indicated by square brackets or capital letters) with your specific requirements.
References
- Category: productivity Prompts
- Source: https://x.com/EXM7777/status/2051407277064962363
Talk
0 comments