| Efficient LLM interaction is context management. The golden rule: Nothing irrelevant in context. Non-exhaustive consequences of following that rule: * Each session handles one task, or at most, a few tightly coupled tasks. * Emotions stay out of context; no showing frustration, no saying thanks (or at least wait until you're about to end the session) * When possible, provide relevant files (or sections of files) instead of making the model search and read many irrelevant files. * Keep CLAUDE.md short. * Disable irrelevant tools. * Revert history when the model makes mistakes. Don't make it read its mistake and fix it; fork the chat before the mistake and exclusively mention the correct action. Attention is more limited than the context limits imply; stuff at the beginning of context stays high-attention for a while, stuff right at the end is always high-attention. If you're about to ask for something the model frequently forgets (eg, style), remind it that those instructions exist ("Following the style guidelines, implement feature X.") |