Field Guide 31: a decision tree for managing Claude Code's context window, from resetting between tasks to compacting with a focus, delegating reading to subagents or forks, keeping state in files and moving repeated knowledge into CLAUDE.md, rules, skills or hooks. 24 decisions, each with its evidence and source. The kit ships the tree as JSON with a JSON Schema (14 questions, 18 actions), a zero-dependency CLI that walks and checks it, a Mermaid diagram generated from the data, and NOTES.md and task-brief templates.
When long sessions start forgetting instructions or repeating mistakes, when you are unsure whether to compact or start over, or when a team needs a shared habit for long-running agent work.