Describe Design Research a codebase and produce an architectural document describing how features or systems work. The output is a markdown file organized for both human readers and future AI agents. Workflow Stage 1: Scope Definition Understand what to document before exploring: 1. Ask what feature, system, or component to document. 2. Clarify the target audience (developers, AI agents, or both). 3. Confirm the codebase location if not obvious from context. Stage 2: Initial Exploration Explore the codebase broadly to build a mental model. Use lightweight, fast exploration methods when availa…