## Lesson — Applying a "lean root" pattern to instruction files

**Tags:** prompts, context-management, architecture

Applying a "lean root" pattern to instruction files prevents "Lost in the Middle" attention bias where agents forget rules buried in long documents. Moving details to linked sub-documents preserves reasoning capacity by loading specific context only when it becomes relevant to the task.
