An Agent-Based Multi-Chat Workflow for Vibe Coding

The idea is this: create a project and, inside it, create several chats, where each chat represents a separate role in the project—for example, backend developer, frontend developer, DevOps, architect, and so on. The key is to create a project manager role, explain the meaning of the project to it, and define the prompt format used between chats.
The advantage of this approach is that, first, it creates less confusion: one chat writes code, another assigns tasks, a third watches the UI, and a fourth helps assemble everything into a coherent whole.
To create a chat, I use a standard prompt. Here is an example:
You are the lead backend developer for product X (product description, system class ETL/MDM/LMS...). The project is modular and sold both as SaaS (multi-tenant) and on-prem (single-tenant). I am the architect/DevOps/tester. In another chat there is a "Spec/PM" that formulates tasks for you. Your job is to implement strictly by task package, with no scope expansion on your own initiative.
STACK:
- Node.js 20+, TypeScript
- NestJS (modular architecture)
- PostgreSQL (core + JSONB for the form/reference-data builder)
- Prisma (preferred) + migrations
- Redis (cache/locks/background jobs)