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
6mo ago v3.0
FARS reviewed
Nov 07, 2026
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
Website
danghuangshang.com ↗ set on GitHub
Maintenance
No commits for 6+ monthslast commit 2026-05-22latest release v3.0 (2026-03-12)

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.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

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 45 · Major gaps CLIFree + model costs ★ 2.7k 6mo ago TypeScript OpenAI API · Claude API
EpicStaff Agent Workflow Platform 78 · Good Self-hosted service ★ 514 6d ago Python —
Agent Swarm 62 · Some gaps Agent plugin / skillFree + model costs ★ 1.2k today TypeScript Codex · Claude Code
Auto Company 59 · Major gaps CLIFree + model costs ★ 3.2k 2d ago Python Codex · Claude Code

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
45/ 100 5-point scale 2.3 / 5
Trust 11/29
Reliability 5/14
Adaptability 8/18
Convention 10/18
Effectiveness 7/13
Verifiability 4/8
Why each dimension lost points
Trust11 / 29 · 1.9/5

The files state that agents have full read/write access to their workspace and can execute commands, and some role configurations disable sandboxing. The GUI server also invokes OpenClaw commands and reads session logs, so least privilege and control of external effects are limited. The browser-use instructions require confirmation for irreversible actions and restrict domains, and Discord guidance addresses message loops, but these controls cover only some skills. Memory and logs are described as unencrypted, and the security reports list unresolved items. The privacy policy describes third-party data flows, while dependency security rests mainly on an npm-audit assertion and the security contact details remain placeholders. Backup and recovery instructions help, but side-effect and rollback protections are incomplete.

Reliability5 / 14 · 1.8/5

Installation paths, runtimes, and versions are inconsistent: the README presents several entry points, the skill's copy commands depend on a clawd/skills path, and version references differ among the README, package.json, and SECURITY.md. CI lists some static checks, but security documents conflict about backup coverage and webhook verification status. Error handling appears in test examples, with little evidence of product-wide failure guidance, so these receive only thin scores.

Adaptability8 / 18 · 2.2/5

The documentation names personal and enterprise scenarios, multiple governance modes, and platforms such as Discord and Feishu, with environment advice. However, agent access and execution depend on configurations whose boundaries are described inconsistently, and skill activation conditions are broad. The packet does not establish detailed compatibility boundaries across platforms and runtime environments.

Convention10 / 18 · 2.8/5

The README provides an index, linked documentation, installation steps, FAQ, security guidance, and stated limitations. The LICENSE explicitly grants MIT terms, earning full marks. Version references and security-document dates do not align; security contact channels are placeholders, and although a maintainer is named, the reporting and maintenance path is not sufficiently concrete, lowering those scores.

Effectiveness7 / 13 · 2.7/5

Multi-agent roles, task routing, code review, and backup features have concrete examples, and the Discord/Feishu output is easy to understand. The marginal value over a single agent is supported by described capabilities. However, 18+ agents, 60+ skills, multiple model choices, and continuous operation imply API, server, and maintenance costs; the cost estimate is an unsupported statement in the supplied material.

Verifiability4 / 8 · 2.5/5

README claims about architecture and installation have some traceable support in the linked guides, configuration descriptions, and security documents. Many security scores, no-vulnerability statements, and production-readiness claims are self-reported, and the audit documents conflict with each other and the webhook guide on remediation status. The files distinguish recommendations, risks, and product descriptions, but the conflicts weaken corroboration.

Risks and how to mitigate them
  • The packet omits the actual installation scripts and complete configurations, so installation, permission, and runtime-security claims cannot be verified; treat the documented audit scores as unverified self-reports.
  • Security materials conflict on webhook signature validation, backup coverage, and what has been fixed; check the actual configuration for the reviewed revision before deployment.
  • Agents are described as having full workspace read/write and command execution access. Use a dedicated server, restrict the workspace, and review skills that can take external actions.
Evidence confidence: Low Reviewed Nov 07, 2026 Reviewed revision acea185a9a1a
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/danghuangshang.svg)](https://followagents.com/en/agents/danghuangshang)
<a href="https://followagents.com/en/agents/danghuangshang"><img src="https://followagents.com/badge/danghuangshang.svg" alt="FARS review"></a>

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.
Was this page helpful?
View on GitHub ↗ Install ↓

Related concepts