Skip to main content

AI Collaboration System - Multi-AI orchestration and workflow management

Project description

AI Collaboration System

面向 Codex / Claude / Gemini 的终端多 Agent 协作编排框架。

CI PyPI Python License

本框架将真实开发流程中的规划、实现、审查与交付环节拆分至不同模型,并提供可观测、可回放、可降级的协作机制。

English Documentation

核心特性

  1. 主控优先:先规划再执行,避免单 Agent 盲目推进
  2. 配置驱动:模型与角色通过配置文件管理,无硬编码依赖
  3. 过程可见:基于 tmux 的协作模式支持实时交互、日志记录与会话回放
  4. 故障可控:针对命令不可用、权限受限、子 Agent 失败等场景提供显式降级策略

统一命令接口

项目采用单一命令入口:ai-collab

  • 执行任务ai-collab "<task>"
  • 管理操作ai-collab <subcommand>(如 initstatusconfig
  • 兼容说明:不再提供旧命令 auto-collab 别名

查看完整执行参数:

ai-collab run --help

安装方式

从源码安装

git clone https://github.com/skyhua/ai-collab.git
cd ai-collab
python3 -m pip install -e .

从 PyPI 安装

pip install ai-collab

快速开始

1. 初始化配置

ai-collab init
ai-collab status

2. 执行协作任务

ai-collab "设计并实现一个带鉴权的 REST API,并给出测试与发布建议"

3. 启用 tmux 可视化协作

ai-collab \
  --provider codex \
  --execution-mode tmux \
  --tmux-target inline \
  --tmux-prewarm-subagents \
  "实现一个包含前端与后端的最小业务功能,并完成审查"

常用子命令

命令 功能说明
ai-collab init 初始化配置文件模板
ai-collab status 查看当前配置与 Agent 可用性状态
ai-collab detect 检测协作需求并生成编排建议
ai-collab monitor 手动启动 tmux 协作工作区
ai-collab config 管理配置项
ai-collab select 根据任务复杂度选择模型策略

可观测性与故障排查

日志目录结构

.ai-collab/logs/<session>/

常用排查命令

# 实时查看日志
tail -f .ai-collab/logs/<session>/*.log

# 检测任务编排建议(JSON 格式)
ai-collab detect "<task>" --output json

# 模拟执行(不实际运行)
ai-collab --dry-run --output json "<task>"

文档导航

开发与验证

# 运行测试
pytest -q

# 构建分发包
python3 -m build

# 验证分发包
python3 -m twine check dist/*

开源协议

MIT License

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

ai_collab-0.1.0.tar.gz (81.9 kB view details)

Uploaded Source

Built Distribution

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

ai_collab-0.1.0-py3-none-any.whl (66.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ai_collab-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4fd900f7e943847f6b18d5964625de169ca0308a1257f4256d940fce733e5a90
MD5 5b436e969847a8d8ae0a7c23ea235258
BLAKE2b-256 c0410d900beb4bbaf1b5c07a0ee8997c8a0aa89b5b56e5ba7c345b24f9d1d073

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ai_collab-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 50cdbd88b6feef11bcbbedd820cc25486f3cc64ea55b1d380eccd5c390f2897c
MD5 c37a8fe280781631f3a7b44b2585644f
BLAKE2b-256 f9b2dd6302df373ad644528191905d035360271a1d56d3c411485dab21e92194

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