My Weird Prompts

← My Weird PromptsNeu · 26 Min.

When Should Claude Code Start a New Session?

When Should Claude Code Start a New Session?Neu26 Min.

Claude Code's own docs tell you to clear between tasks — so why does the tool make you do it by hand? This episode digs into the research showing that model performance degrades early and sharply as input grows, why your previous task is the most convincing distractor you could hand a model, and why every handoff tool on the market triggers on size instead of meaning. We walk through what a task-boundary hook would actually need to do, what already exists in sub-agents and handoff utilities, and what you give up when the interface makes the call for you.

Key sources:

• Claude Code Hooks reference — https://docs.claude.com/en/docs/claude-code/hooks

• Create custom subagents — https://docs.claude.com/en/docs/claude-code/sub-agents

• Manage costs effectively / context management — https://docs.claude.com/en/docs/claude-code/costs

Episode 6025 — myweirdprompts.com/n/6025 (permanent short link: myweirdprompts.com/194035)