AI Court: Multi-Agent Collaboration with Ming Dynasty Six Ministries

One command to start your dynasty, all AI ministers at the ready. Built on OpenClaw, this is a 24/7 AI management team modeled after the Ming court.

Stars
★ 2.7k
Last updated
4mo ago
License
MIT
Primary language
TypeScript

At a glance

How it runs
CLISelf-hosted serviceChat bot
Works with
Portable with changesOpenAI API · Claude API
Cost
Free software; you pay for model usage
Setup effort
Medium · a few setup steps
You'll need
OpenClawNode.jsDockerShell / CLINetwork accessLocal filesystem
Typical use
Solo developers quickly set up a multi-agent environment for project management and code review via Discord.
Not a fit if
  • Users unwilling to first set up the OpenClaw framework and a cloud server
  • Teams that need English-only documentation and UI

What does this agent do, and when should you use it?

AI Court is a multi-agent collaboration system built on the OpenClaw framework, mirroring the Ming Dynasty's cabinet system. It organizes 18+ AI agents into roles like Grand Secretariat, Six Ministries, and Investigation Bureau. Three governance templates are available: Ming Cabinet, Tang Three Departments, and Modern Enterprise. Interaction is via Discord, Feishu, etc., with agents collaborating through workflows (e.g., Grand Secretariat receives orders, Inner Cabinet optimizes, Six Ministries execute, Investigation Bureau reviews). The system includes 60+ built-in skills (GitHub, Notion, browser automation), a one-click installation script, a web dashboard, memory backups, cron jobs, and sandbox isolation. It is MIT licensed and an original architecture.

The system runs multiple agents on OpenClaw, each representing a department or role (e.g., Grand Secretariat, Inner Cabinet, Ministry of War). Users @mention an agent on Discord or Feishu to trigger workflows: the Grand Secretariat receives orders, passes them to the Inner Cabinet for prompt optimization, dispatches to the Six Ministries for execution, and the Review Board automatically checks code when pushed to GitHub. Each agent has independent memory (SQLite database) and can invoke 60+ skills (GitHub, Notion, browser automation, cron jobs). It provides one-click install scripts (full-install.sh), regime-switching scripts (switch-regime.sh), memory backup (memory-backup.sh), and diagnostics (doctor.sh).

  1. Solo developers quickly set up a multi-agent environment for project management and code review via Discord.
  2. Teams simulate task distribution, approval, and execution using the Ming Cabinet system for better collaboration.
  3. Users who want automated code review, leveraging the Review Board triggered on GitHub push.
  4. Notion workflow automation with agents writing daily summaries to Notion.
  5. Enthusiasts of historical governance exploring AI simulations of the Three Departments or Modern Enterprise systems.
  6. Ops scenarios needing 24/7 monitoring and scheduled tasks (health checks, backups).

How do you install or deploy this agent?

Before installation, prepare a cloud server (recommended), an LLM API key (Anthropic/OpenAI, etc.), and a Discord Bot token. Steps: 1) Local install: git clone https://github.com/wanikua/danghuangshang.git && cd danghuangshang && bash scripts/full-install.sh; remote install: bash <(curl -fsSL https://raw.githubusercontent.com/wanikua/danghuangshang/main/scripts/full-install.sh). 2) Follow the prompts to enter your LLM API key and Discord Bot token. 3) Mention your bot on Discord to start.

How do you use this agent?

After installation, the Ming Cabinet system is enabled by default. On Discord, @mention the Grand Secretariat with a task (e.g., "write a login API"). It will delegate to the Inner Cabinet for optimization, then to relevant ministries (e.g., War), and the Review Board will review after code push. Switch regimes with bash scripts/switch-regime.sh tang-sansheng or bash scripts/switch-regime.sh modern-ceo. Use memory backup with bash scripts/memory-backup.sh. Access the web GUI by starting node index.js.

What are this agent's strengths and limitations?

Pros
  • Zero-code multi-agent orchestration via configuration, lowering the entry barrier.
  • Original architecture inspired by historical Ming governance structures.
  • Multi-platform support (Discord, Feishu, Slack, Telegram) with rich integrations.
  • 60+ built-in skills covering development, documentation, and automation.
  • One-click install with 5-minute deployment and diagnostic tools for low ops cost.
  • Memory backup and cron scheduling for long-running operations.
Limitations
  • Depends on the OpenClaw framework, requiring prior setup and a learning curve.
  • Multiple bots require precise allowBots configuration to avoid message loops.
  • Operational cost depends on LLM API usage, ~$10-30/month.
  • Complex architecture with many agents and skills may overwhelm novices.
  • Documentation is primarily in Chinese, posing a language barrier for non-Chinese users.

How does this agent compare with similar options?

Compared to ChatGPT, AutoGPT, or CrewAI, AI Court emphasizes "out-of-the-box" readiness: configuration without coding for multi-agent setups, whereas AutoGPT/CrewAI require Python programming. AI Court offers independent memory and 60+ skills, while ChatGPT is a single model and AutoGPT needs vector DBs. AI Court natively supports chat interfaces like Discord, making deployment easy, though it sacrifices flexibility compared to coding frameworks.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
AI Court: Multi-Agent Collaboration with Ming Dynasty Six Ministries This agent 43 · Major gaps CLIFree + model costs ★ 2.7k 4mo ago TypeScript OpenAI API · Claude API
Auto Company 70 · Some gaps CLIFree + model costs ★ 3.1k 1d ago Python Codex · Claude Code
Manifold 60 · Some gaps Self-hosted serviceFree ★ 502 2mo ago Go OpenAI API · Claude API
EpicStaff Agent Workflow Platform 57 · Major gaps Self-hosted service ★ 359 10d ago Python —

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
43/ 100 5-point scale 2.2 / 5
Trust 8/29
Reliability 6/14
Adaptability 10/18
Convention 9/18
Effectiveness 7/13
Verifiability 3/8
Why each dimension lost points
Trust8 / 29 · 1.4/5

Evidence shows: README emphasizes security configurations (e.g., allowBots: 'mentions'), SECURITY.md provides security best practices including API key protection, Docker non-privileged running, webhook signature verification. However, lacks user confirmation mechanism (e.g., sensitive operations require manual confirmation), data flow transparency is limited (no detailed explanation of data flow), sensitive data handling only mentions API key protection, dependency security only mentions npm audit and Docker scout, external effects (e.g., Discord message loops) are warned but not fully controlled, rollback has backup scripts but no clear recovery process, source attribution has originality claim but not verified. Deductions: missing user confirmation, opaque data flow, incomplete sensitive data handling, no specific vulnerability info for dependencies, incomplete external effects control, imperfect rollback mechanism, unverified source attribution.

Reliability6 / 14 · 2.1/5

Evidence shows: README and documentation are consistent, test files exist (e.g., test-context-compressor.js), but no test results provided. Dependency availability: few dependencies (@notionhq/client, winston), but no version locking or integrity checks. Failure messages: error handling module (scripts/error.js) and tests exist, but no user-friendly error prompts. Deductions: tests not executed, dependencies not locked, failure messages not fully demonstrated.

Adaptability10 / 18 · 2.8/5

Evidence shows: README clearly defines target users (beginners, developers), provides multiple deployment methods (local, remote, Docker), supports multiple platforms (Discord, Feishu, etc.), provides three regimes (Ming, Tang, Modern Enterprise) to suit different scenarios. Capability boundaries: core capabilities and skill list clearly listed, but limitations not detailed. Trigger precision: @mention mechanism exists, but trigger rules not detailed. Environment fit: supports multiple platforms and architectures, but detailed environment requirements not provided. Deductions: insufficient trigger precision, unclear environment requirements.

Convention9 / 18 · 2.5/5

Evidence shows: README has clear structure with TOC, quick start, architecture, FAQ, good information architecture. Installation notes detailed with multiple methods. Naming stability: version numbers exist (v3.5.3, 3.7.1), but no naming conventions. Examples and FAQ abundant. Known limitations: not explicitly listed. License: MIT license file present. Versioning changelog: no CHANGELOG provided. Maintenance responsibility: maintainer (工部) mentioned, but responsibilities not clear. Deductions: insufficient naming stability, missing known limitations, missing changelog, unclear maintenance responsibility.

Effectiveness7 / 13 · 2.7/5

Evidence shows: Output usability: GUI, Discord interaction, diverse output forms. Marginal value: advantages over ChatGPT etc. (multi-agent, memory, tools), but no actual performance data. Cost-benefit: cost estimates provided ($10-30/month), but no detailed cost analysis. Deductions: marginal value lacks data support, cost-benefit analysis not in-depth.

Verifiability3 / 8 · 1.9/5

Evidence shows: Claims in README (e.g., 18+ Agents, 60+ Skills) lack specific evidence, test files exist but no test results, architecture diagrams exist but not verified. Deductions: claims lack traceability, insufficient cross-validation, facts and inferences not clearly separated.

Risks and how to mitigate them
  • Not found in source: confirmation before actingTurn on (or add) a confirmation step before it acts, and try it in a sandbox or test environment before real data.
  • Publisher identity is unverified; treat provenance claims with caution.
  • Install scripts execute remote code; review them before running.
  • Sensitive information like API keys and Discord bot tokens must be handled carefully.
  • Multi-agent systems may cause message loops; follow security configuration guidelines strictly.
Evidence confidence: Low Reviewed Aug 09, 2026 Reviewed revision acea185a9a1a
See the full review method →

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v3.0 v3.0 — 文档重构 + Docker 镜像 + 全平台覆盖
    Release notes excerpt
    🏛️ AI 朝廷 v3.0 ⭐ 核心升级 📖 README 大瘦身(1299行 → 267行) - README 变纯引导页,决策树 3 步登基 - 全部教程拆到 docs/ 目录(20+ 文档),每篇独立可读 - 新增 [文档索引](./docs/README.md),一览全局 🐳 Docker 镜像发布 - Docker Hub: docker pull boluobobo/ai-court:latest(国内可配镜像加速) - GitHub: ghcr.io/wanikua/boluobobo-ai-court-tutorial:latest - 干净镜像,零隐私数据,内含 Node.js 22 + OpenClaw + Chromium + gh CLI + Python 🔧 一键诊断工具 - doctor.sh 置顶首页,安装遇到问题一行命令排查 - 自动检查配置、API Key、Bot Token、权限、路由匹配 🆕 新功能 - 飞书单 Bot 入口 — 一个飞书机器人 + sessions_spawn 后台调度全部门 - WebUI 纯浏览器路径 — 不需要 Bot,只要 API Key - Windows WSL2 指南 — Windows 用户不再被劝退 …
    View on GitHub ↗

FAQ

What is the monthly cost?
Light use costs about $10-15, moderate $20-30. Using strong models for heavy tasks and fast models for light ones can save about 5x.
Which LLM models are supported?
Anthropic, OpenAI, Gemini, DeepSeek, etc. Different departments can use different models.
How do I prevent bot message loops?
You must set allowBots: "mentions"; avoid true or false.
Can I customize the governance structure?
Three presets are available (Ming, Tang, Modern), and you can modify configuration files for custom agents and roles.
Does it support Feishu?
Yes, the Feishu plugin is built-in; you need to create a Feishu app and configure WebSocket long connection.
View on GitHub ↗ Install ↓

Related agents