Skip to main content

Dong AI Company — 多智能体 AI 公司框架

Project description

Dong AI Company

您的私人AI公司 — 一个命令拉起一家AI企业

Python License CI Tests Providers Context

pip install dong-ai
dong setup

为什么是 AI 公司?

现有 AI Agent 是"工具"——你问它答,最多帮你写代码。
Dong AI 是一家公司——有红蓝辩论决策、有工人池执行、有董事会评分质量门。

你: "开发配置系统"          工人池              董事会
  │                          │                  │
  ├─ 红队: 方案A(安全但慢)    ├─ 代码匠 → 写文件  ├─ 评分8.5
  ├─ 蓝队: 方案B(快有风险)    ├─ 测试判官 → 测试  ├─ 覆盖检查
  └─ CEO: 采纳方案A          └─ 审查 → 通过      └─ 放行下一阶段

特性

能力 说明
🏛️ 治理流水线 红蓝辩论 → 依赖拆解 → 工人池(自愈+互审) → 董事会评分 → 需求锁
🧠 图记忆 精确符号索引 + 依赖关系,新任务自动注入相关上下文
🔌 开放生态 Hermes 125+ 技能 / MCP 协议 / OpenAI API 兼容
🌐 20+ Provider DeepSeek / OpenAI / Claude / Groq / Together / 本地 / Ollama
⚙️ 双模式 API 模式(256K 窗口) / 本地模式(64K 窗口) / 用户自由设置
🕐 定时任务 dong cron add --cmd "dong run 审计" --every 1h
📡 Webhook POST /webhook 触发自动审计
🔗 MCP 客户端 发现并调用任何 MCP 服务器工具

快速开始

pip install dong-ai
pip install 'dong-ai[all]'    # 全部依赖(含 API 服务)

dong setup                     # 交互式配置向导
dong chat                      # 启动对话
dong run "配置系统"            # 一键项目执行
dong serve                     # 启动 API 服务 → http://localhost:8648

命令一览

dong chat          交互式 TUI         dong config     配置管理
dong run "需求"    一键项目执行        dong skill      技能管理
dong serve         API 服务           dong session    会话管理
dong setup         配置向导           dong mcp        MCP 工具发现
dong detect        模型检测           dong cron       定时任务
dong version       版本信息           dong webhook    Webhook 管理

架构

dong chat / dong run / dong serve
        │
   ┌────┴────┐
   │  CEO    │  ← DesignEngine(红蓝辩论) + WorkerPool(自愈+互审)
   └────┬────┘
        │
   ┌────┴────┐
   │ ModelPool│  ← 20+ Provider 自动 failover
   └────┬────┘
        │
   ┌────┴────┐
   │ LLMClient│  ← 统一 HTTP + SSE
   └─────────┘

存储层:
  Datastore (SQLite)
  ├── MemoryRepository     事实 KV
  ├── SessionRepository    会话历史
  ├── ProjectRepository    决策/模块
  ├── LoreRepository       世界观
  └── GraphRepository      代码符号/依赖/需求追溯

双模式配置

模式        CEO 上下文    工人上下文    适用场景
─────────────────────────────────────────────────
API        256K          128K         云端模型(DeepSeek/GPT/Claude)
Local      64K           64K          本地模型(Qwen/Llama/Ollama)
自定义     任意           任意         dong config set ceo_context=999999

测试

pip install pytest
pytest tests/
# 121 passed in 1.6s

许可证

MIT — 随意使用、修改、商用。


不是聊天工具——是你的 AI 员工团队

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dong_ai-0.1.0.tar.gz (69.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dong_ai-0.1.0-py3-none-any.whl (66.7 kB view details)

Uploaded Python 3

File details

Details for the file dong_ai-0.1.0.tar.gz.

File metadata

  • Download URL: dong_ai-0.1.0.tar.gz
  • Upload date:
  • Size: 69.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for dong_ai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dbf2eeefd9293f4be180a272534d43d6ca153de5c4b093b068b644c81d3c2a1f
MD5 94e6b550193ebc2dd6be891f3a74f967
BLAKE2b-256 c7260b954f00930ad467296f008f0a727ce399825eed1bd80a629b1f2586e983

See more details on using hashes here.

File details

Details for the file dong_ai-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: dong_ai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 66.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for dong_ai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aa534c1e99a070059bd2a5024a7d6d67c578ab3755dd35c002b6108dfd227ae1
MD5 9efa5bc5405c2f47369b1776fa588117
BLAKE2b-256 04b3d927087fbd4ef68cb63fbb6ff639e73d2ab2bdc2c645a4980fe55b1c5571

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page