In order to have an efficient use of tokens, I created proper documentation from the start of the project:
- What component is where, what it does and how it does it
- Kept a history of all the architectural decisions
- How a new component (of a known type) should be added to the system
- Instructed the agent to keep this information valid and up to date as part of the PR prerequisites.