Build Order#
Recommended order for overnight agents:
- Pick a stack and document why.
- Search for trusted open-source projects with at least 1,000 stars that solve any major part of the work.
- Reuse trusted open-source work when license, security, maintenance, and fit are acceptable.
- Pick WorkOS AuthKit or Clerk and document why.
- Create the database schema.
- Implement auth and developer identity.
- Implement server API.
- Implement MCP developer token mapping.
- Implement MCP tools.
- Implement duplicate check and confirmation gate.
- Implement agent feedback responses.
- Implement usage/session event writes.
- Implement Workstreams.
- Implement Activity.
- Implement Coordination.
- Implement Weekly Summary.
- Add tests.
- Run browser QA.
- Run security checks.
- Check file sizes and docs.
- 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.