ContextHere's some tips I've picked up over time on context management:"spawn a subagent to do deep research on this topic" Spawn subagents for parallel work. They do not pollute the main agent's context. They can individually do work and add just the valuable context from their work to the main agent's context. /compact - Others are iffy about compacting, but often the tradeoff to stay in the same chat and eat the compacting is worth it. Their system for compacting is smart./transfer-context That said, after compacting enough times or doing any task not directly related, quality will degrade. Don't be afraid to create new chats. If you need to transfer context, just tell the model to give you a prompt to put into another model with the related context for the task with the files (for anything advanced create md files, although I find managing these md files to be annoying). Here's a gist of my /transfer-context command./contextShows you how much context you have left. You'll get a report like this: Claude will also tell you when you're running low on context. This is in the bottom right of the terminal. Make the decision to compact or to switch chats at this point. Don't wait until it hits 0% as it will degrade your outputs, and if it compacts in the middle of a task it will forget potentially relevant context that you've given it even in the last chat.Maintain focus: one chat = roughly one task. If a chat is focused on a single task it will have more relevant context. The definition of a 'task' is miles broader than what it used to be. Test the limits and see what works for you.Generating things in a chat that already has context will always perform best, whether it's docs, tests, or related code. Sometimes for one off changes (like a bug fix), I'll do them within the chat context, commit changes, and then rewind the conversation back to save context.Use /resume to continue from a previous chat.Note on context limits: Claude Code has a 200k context limit. You hit ...
First seen: 2026-01-19 22:32
Last seen: 2026-01-20 08:33