三省六部 AI 架构
three-departments-six-ministries
以唐代三省六部制为原型的 12-Agent 协作架构:分权、强制审查、全程可观测。
获取代码
git clone https://github.com/weitzu-com/three-departments-six-ministries.gitA multi-agent orchestration architecture inspired by the 1,400-year-old Chinese imperial governance system. Designed from first principles: separation of powers, mandatory quality review, and full observability.
Overview
This repository contains a comprehensive architecture design for a 12-Agent collaborative system modeled after the Tang Dynasty's "Three Departments and Six Ministries" (三省六部制):
Emperor (User) → Crown Prince (Router) → Secretariat (Planner) → Chancellery (Reviewer) → Dept. of State Affairs (Dispatcher) → Six Ministries (Executors) → Memorial (Report)
Key Design Principles
- Separation of Powers: Planning, review, and execution handled by independent agents
- Mandatory Review (封驳): The Chancellery can reject plans — this is a hard architectural constraint, not optional
- Full Observability: Every state transition is logged and visible in real-time
- Real-time Intervention: Tasks can be paused, canceled, or modified at any stage
What Makes This Different
| Feature | CrewAI | AutoGen | MetaGPT | This Architecture |
|---|---|---|---|---|
| Mandatory Review | No | Optional | Optional | Yes — Chancellery veto power |
| Permission Matrix | No | No | No | Yes — hard-coded |
| Real-time Dashboard | No | No | No | Yes |
| State Machine Validation | No | No | No | Yes |
| Task Intervention | No | No | No | Yes — pause/cancel/resume |
Document
See 三省六部agents架构设计方案.md for the full architecture design document (in Chinese).
License
MIT
以上内容自动同步自 github.com/weitzu-com/three-departments-six-ministries的 README。