█

AI/TLDR

Buy me a coffee
Buy me a coffee

Edict

Multi-agent orchestration with a dedicated review stage that can reject a plan before work starts

Multi-Agent SystemsOpen source
Language
Python
License
MIT
$docker run -p 7891:7891 cft0808/sansheng-demo
IN SHORT

What is Edict?

Edict (三省六部) organises twelve agents — eleven role agents plus one compatibility role — into the Tang dynasty's three-departments-six-ministries structure. It sits in the Multi-Agent Systems category of the Agents & Automation tools and is open-source, written in Python and licensed MIT. To get started: try the dashboard in Docker.

Overview

Edict (三省六部) organises twelve agents — eleven role agents plus one compatibility role — into the Tang dynasty's three-departments-six-ministries structure. A request enters through a triage agent that answers chat directly or opens a task; a planning department decomposes it; a review department approves or rejects the plan outright; a dispatch department hands the approved subtasks out; and the six ministries plus a personnel role execute them in parallel and report back. The point of the metaphor is the review stage: a plan can be sent back before any work happens, which is a separation of powers rather than a naming theme.

That structure is what the project contrasts itself against in its own comparison table: where the frameworks it lists offer no dedicated review step, optional review, or human-in-the-loop approval, Edict makes review a standing role that can reject. It pairs that with observability — a real-time kanban board and timeline, agent heartbeat and activity monitoring, and a complete archive of every report that passed through the pipeline — and with intervention: a running task can be halted, cancelled or resumed from the board.

It runs on top of OpenClaw and needs Python 3.10 or newer on macOS or Linux. The dashboard is React 18 in front of a standard-library-only Python backend, and the install script provisions each agent's workspace, writes the role definitions, registers the agents and their permission matrix into `openclaw.json`, symlinks shared data, and synchronises API keys across agents. Models can be hot-swapped per agent from the dashboard, skills can be viewed and added there, and a news-briefing job can push digests to Feishu.

What it does

  • A standing review role that can reject a plan before execution, rather than optional or human-only approval
  • Twelve specialised agents across triage, planning, review, dispatch and parallel execution
  • Real-time kanban board and timeline, with halt, cancel and resume on a running task
  • Full archive of every report that moved through the pipeline, so a run can be replayed and audited
  • Agent heartbeat and activity monitoring, plus per-agent model hot-swapping from the dashboard
  • Skills can be inspected and added from the board; a briefing job can push news digests to Feishu
  • React 18 dashboard over a standard-library-only Python backend, with Docker and systemd deployment paths

Getting started

There are two routes: a Docker image that boots the dashboard with pre-seeded demo data so you can look around, and a full install that wires the agents into an existing OpenClaw setup.

Try the dashboard in Docker

The demo image ships the prebuilt React frontend and mock data — no OpenClaw needed. Open http://localhost:7891 once it starts. On x86/amd64 hosts, add --platform linux/amd64 if you hit an exec format error.

bashbash
docker run -p 7891:7891 cft0808/sansheng-demo

Check the prerequisites for a real install

Edict drives OpenClaw agents, so OpenClaw must already be installed. Python 3.10 or newer is required, on macOS or Linux.

Clone and install

The install script creates each agent's workspace, writes the role definitions, registers the agents and their permission matrix into openclaw.json, symlinks shared data and scripts, sets inter-agent session visibility, syncs API keys to every agent, builds the React frontend if Node 18+ is present, and restarts the gateway.

bashbash
git clone https://github.com/cft0808/edict.git
cd edict
chmod +x install.sh && ./install.sh

Configure a key on first install

A first install needs one agent configured with an API key; rerunning the installer then propagates it to the rest.

bashbash
openclaw agents add taizi
./install.sh

Start it

The launcher starts both the data-refresh loop and the dashboard server. You can also run the two separately.

bashbash
chmod +x start.sh && ./start.sh

# or separately:
bash scripts/run_loop.sh &
python3 dashboard/server.py
# then open http://127.0.0.1:7891

Run it as a service

A systemd unit is included for always-on deployments, alongside a management script.

bashbash
sudo cp edict.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable edict
sudo systemctl start edict

# or: bash edict.sh start|status|restart|stop

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Put a mandatory plan-review step in front of a multi-agent run so bad plans are rejected before they consume tokens
  • Watch a multi-agent task move between roles on a board, and halt or cancel it while it is still running
  • Keep an auditable record of what each agent was asked and what it returned, for work that has to be explainable
  • Swap the model behind an individual role from the dashboard to trade cost against capability per step

How Edict compares

Edict alongside other open-source multi-agent systems tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
Paperclip★ 118kA self-hosted control plane that runs a team of AI agents like a company, with an org chart, tasks, budgets and approvals.
Ruflo★ 82.7kAgent meta-harness that wraps Claude Code and Codex with 100+ specialized agents, swarm coordination, vector memory, background workers and cross-machine agent federation.
MetaGPT★ 71.5kA multi-agent framework that models a software company, assigning roles like product manager, architect, and engineer to generate code from a single prompt.
AutoGen★ 62kMicrosoft Research's framework for building applications where multiple agents converse with each other and with tools to solve tasks.
CrewAI★ 61.4kA framework for assembling teams ('crews') of role-playing agents that divide tasks and collaborate to complete a goal.
AgentScope★ 36.9kA framework for building multi-agent applications with message passing, visual debugging tools, and distributed execution.
OpenAI Agents SDK★ 30.9kOpenAI's lightweight Python SDK for building multi-agent workflows using explicit handoffs, tools, and guardrails.
Edict★ 17.1kMulti-agent orchestration with a dedicated review stage that can reject a plan before work starts