# Repository Briefing: cft0808/edict
> Source: https://repoforai.com/repo/cft0808/edict (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/cft0808/edict
- **Official Docs / Website**: https://openclaw.ai
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: B+ (68/100 · Maintenance 20/35 · Adoption 22/25 · Releases 6/20 · License 20/20)
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: Docker, Self-Hosted
- **Momentum**: 17,151 ★ total (+3 24h / +32 7d) · 1,773 forks
- **Topics**: `ai-agents`, `ai-orchestration`, `autonomous-agents`, `claude`, `dashboard`, `kanban`, `llm`, `multi-agent`, `openai`, `openclaw`, `orchestration`, `python`
- **When to Use**: Best for: Teams already using OpenClaw for internal engineering, reporting, or documentation tasks that benefit from pre-dispatch review, visible handoffs, and operator intervention. Skip if: You need a freely programmable agent topology, a turnkey offline inference stack, or hard multi-tenant isolation without building it separately.

## Overview
```text
### Architecture & Core Mechanics
Edict is an application layer on top of OpenClaw. Taizi separates chat from actionable requests, Zhongshu decomposes the work, Menxia approves or returns the plan, and Shangshu dispatches approved subtasks to specialist agents and consolidates their results. The topology is defined by a role-to-role messaging matrix and lifecycle checks in `scripts/kanban_update.py`. Per-agent `SOUL.md` files define behavioral rules; workspaces, models, and skills are configured per role.

The dashboard uses React 18, TypeScript, Vite, and Zustand, with a single-file HTML option. `dashboard/server.py` serves static assets and APIs using Python’s standard-library `http.server`; the root requirements file lists NumPy for the optional LinUCB model recommender, not for dashboard serving. Separately, `edict/backend/` contains a SQLAlchemy/Redis asynchronous stack: Redis Streams for service communication, a transactional outbox relay with at-least-once delivery, DAG orchestration, and dispatch workers with resource locks and exponential backoff.

### Key Capabilities & Differentiators
The dashboard makes handoffs inspectable: operators can filter and search Kanban tasks, follow task histories and agent heartbeats, and stop, cancel, or resume work. Completed tasks are archived in a five-stage timeline that can be copied as Markdown. The app includes nine parameterized task templates, per-agent token and session statistics, and views of tool calls and results. Its data-refresh loop runs every 15 seconds, which is useful for tracking progress but is not a sub-second update guarantee.

Feishu, Telegram, and Signal are entry channels for live requests. Operators can select an LLM per agent; applying a model change restarts the Gateway, so this is not a restart-free swap. Provider and model choice should be evaluated in the configured OpenClaw environment. Role behavior is editable in `SOUL.md`, while remote skills can be installed or updated through the dashboard, CLI, or API from supported Git hosting or HTTPS sources.

### Trade-offs & Limitations
Compared with building a workflow in CrewAI or AutoGen, Edict gives operators a ready-made approval and rework loop, a fixed handoff topology, and a dashboard for tracking and intervention. The cost is less freedom to rearrange roles and extra model calls on the critical path, particularly when a plan is rejected and revised. Menxia’s review is an LLM judgment, not human sign-off or proof that the eventual result is correct. Operator controls should not be assumed to undo effects already produced by a tool.

For the asynchronous path, at-least-once delivery is not duplicate-free execution: tasks with external side effects need idempotent handling, especially on retries. The simple dashboard and demo are easier to run, but neither establishes production behavior for the database, Redis, and workers. In live use, review the implications of copied credentials, broad session visibility, and remote skills. For teams that need strong tenancy boundaries, treat the messaging matrix as a workflow control, not a substitute for isolation and least-privilege credentials.

### Hardware & Deployment Guide
For a preview, `docker compose up` runs `cft0808/sansheng-demo:latest` with `DEMO_MODE=true`, publishes port 7891, and pins `linux/amd64`. Check image compatibility on ARM hosts. The container includes a prebuilt frontend and simulated data; it is not a deployment of live agent execution or of the separate SQLAlchemy/Redis worker stack.

For live use on macOS or Linux, install OpenClaw and Python 3.10+, configure model credentials, and run `install.sh` followed by `start.sh`. Node.js 18+ is needed to build React locally, not to serve the single-file dashboard. `edict.service` is available for systemd-managed operation. Review the installer’s changes to `openclaw.json`, cross-session visibility, and API-key copying before using a shared Gateway; verify dashboard authentication before exposing port 7891. The dashboard itself needs no GPU. Model inference and concurrency drive additional resource needs. No GitHub release is listed, so pin a reviewed commit for repeatable deployment.
```

## Key Capabilities
```text
- Plan gate: Menxia can reject a plan and return it to Zhongshu before Shangshu dispatches work.
- State integrity: kanban_update.py rejects and logs invalid transitions using _VALID_TRANSITIONS.
- Async execution: Redis Streams and a transactional outbox provide at-least-once delivery; workers handle DAG dependencies, backoff, and resource locks.
- Operator controls: Kanban combines heartbeat indicators, task history, and stop, cancel, and resume actions.
- Agent configuration: Each role has its own workspace, model, and skills; remote skills can be managed through the UI, CLI, or API.
- Demo boundary: The Compose service runs in DEMO_MODE on port 7891 with simulated data, separate from live OpenClaw execution.
```

## Quick Start / Clone
```bash
docker run -p 7891:7891 cft0808/sansheng-demo
```
