⟩ Refactor these components into standalone modules that communicate across well-defined APIs. Write the API specifications to docs/API.md. Add a note to AGENTS.md instructing agents to preserve the modular seams and focus work on one module at a time.