Context Management
- Provide only the exact files and lines of code necessary for the current task to the AI to prevent distraction and token bloat.
- Ask targeted, specific questions rather than open-ended "look at my codebase" prompts.
Context Management
- Aggressively manage context windows: only include files directly related to the active task. Remove old files from context when switching tasks.
- Keep agent prompts targeted and isolated. Break complex refactoring tasks into smaller, independent sub-tasks to avoid context dilution.
- Supply high-level architecture documents to the agent initially, but remove them from active workspace context once execution begins.