# Build Order

Recommended order for overnight agents:

1. Pick a stack and document why.
2. Search for trusted open-source projects with at least 1,000 stars that solve any major part of the work.
3. Reuse trusted open-source work when license, security, maintenance, and fit are acceptable.
4. Pick WorkOS AuthKit or Clerk and document why.
5. Create the database schema.
6. Implement auth and developer identity.
7. Implement server API.
8. Implement MCP developer token mapping.
9. Implement MCP tools.
10. Implement duplicate check and confirmation gate.
11. Implement agent feedback responses.
12. Implement usage/session event writes.
13. Implement Workstreams.
14. Implement Activity.
15. Implement Coordination.
16. Implement Weekly Summary.
17. Add tests.
18. Run browser QA.
19. Run security checks.
20. Check file sizes and docs.
21. Write morning report.

## Reuse Rule

Do not reinvent trusted work.

Before building an unfamiliar subsystem, search for open-source projects or packages that:

- have at least 1,000 stars, when a comparable project exists
- are actively maintained
- have a compatible license
- pass basic security review
- fit the product without pulling in a giant unwanted platform

Reuse can mean:

- direct dependency
- copied pattern with attribution
- adapted design
- test fixture inspiration

Do not copy code blindly.

If the license is unclear, do not copy.
