Origin
Why we started building this
A single agent asked to build the feature acts as product manager, architect, developer and reviewer at once — and grades its own work.
AI coding agents are fast, and speed is not the problem. The problem is that one agent handed a feature request becomes the product manager, the architect, the developer and the reviewer, then approves its own work and — if nothing stops it — pushes to main.
Human teams solved this long ago with separate roles and approval points. Divan is that organisational shape applied to agents, and named after the Persian administration of specialised departments answering to one decision-maker.
It was built by using it: the first adaptation was to Taghvim, a live product with a 135-line decision log, a push-to-deploy pipeline and a public no-tracking promise. Every conflict between the generic kit and that repository was written down, resolved, and fed back into the kit.
