lucky9805

AI Task Dispatch — AI skill for Claude Code

AI community

A lightweight multi-agent task orchestrator.

How to install AI Task Dispatch

This entry records only its repository, not the path inside it, so there is no exact command to give. Open lucky9805/ai-task-dispatch and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What AI Task Dispatch does

A lightweight multi-agent task orchestrator. Submit a task, the dispatcher analyzes it and dispatches it to the most suitable specialized AI agent — such as Codex (coding), Claude Code (CC, engineering/complex reasoning), WorkBuddy (docs, reports, data analysis) — then aggregates and returns the final output.

Alternatives in AI

  • Orkas — Open-source multi-agent AI desktop client — build and command your AI agent team through conversation 1.5k ★
  • Agency Orchestrator — 🚀 One sentence → multi-AI-role collaboration → complete plan in minutes 453 ★
  • LLM Task Orchestrator — Top AI Router 2026: Split Codex for Quick Code & Claude for Complex Refactoring 115 ★

README

task-dispatch · 任务下发与 Agent 调度中心

服务端指派任务 → Agent 端配对领取 → 独立执行 → 回传结果。零第三方依赖(Python 标准库),已按 RSI 方法论重构成分层架构。

**仓库简介**:A lightweight multi-agent task orchestrator. Submit a task, the dispatcher analyzes it and dispatches it to the most suitable specialized AI agent — such as Codex (coding), Claude Code (CC, engineering/complex reasoning), WorkBuddy (docs, reports, data analysis) — then aggregates and returns the final output.

**第一次接触本项目?请先看 [《项目说明文档(初学者版)》](项目说明文档.md)** —— 从"这是什么"讲到"每一步怎么操作",含网页/CLI 使用、功能自检、API 参考、排错 FAQ。本 README 只作速查卡。

快速开始

python3 server.py --port 8765        # 启动中心,页面 http://127.0.0.1:8765/
python3 ctl.py pair agent-1          # 登记 Agent,拿一次性配对码
python3 agent.py pair --name agent-1 --code <配对码>   # Agent 端换凭证
python3 agent.py start               # Agent 端启动,只领指派给自己的任务
python3 ctl.py assign agent-1 "生成日报" "echo hello"  # 下发任务

页面六大区块(完整可操作,不必碰命令行)

  1. Agent 管理中心 — 登记 / 生成配对码 / 查看在线与配对状态 / 撤销
  2. 如何配对 — 三步向导,配对码与命令可一键复制
  3. 下发任务 — 指定 Agent、标题、命令
  4. Agent 工作台 — 在页面里用配对码接入 → 领取指派任务 → 填结果回传,完整闭环可视化(凭证只存内存,刷新即失效)
  5. 任务看板 — 每 2 秒自动刷新,看所有并发状态
  6. 功能自检 — 点一个按钮,自动逐项真实验证全部功能,逐条显示 PASS/FAIL

CLI(`ctl.py` / `agent.py` / `submit.py`)作为等价入口完整保留;页面工作台与 CLI Agent 走的是同一套 HTTP 协议,可混用。

**服务器地址只在 `agent.py pair --server` 时填一次**,会存进凭证文件,`start`/领任务/回传都自动复用,所以 `start` 不用带地址。跨机器部署三要素:中心用 `--host 0.0.0.0` 启动 + pair 填中心真实 IP(不是 127.0.0.1)+ 放行端口。详见文档 12.5.0。

**接入真实 AI 工具**有两种姿势:

  • 无人值守:python3 agent.py start --executor claude(或 codex / workbuddy / chatgpt),Agent 常驻循环、自动领任务并调对应 CLI 执行。需装好对应 CLI 并登录。四条完整命令见《项目说明文档》12.5.1。
  • 提示词驱动(WorkBuddy 桌面端等智能体,无需装 CLI):智能体自己读提示词、自己干活,只用 agent.py fetch / report / fail 原子命令通信。可直接投喂的提示词见 AGENT_PROMPT.md。

两种姿势共用同一套配对/领取/回传协议,可混用。

分层架构

文件 职责
config.py 集中配置 + 启动校验(环境变量,快速失败)
errors.py 类型化错误 + error code + HTTP 状态映射
logging_util.py 结构化 JSON 日志 + request_id + 敏感字段脱敏
db.py SCHEMA + 幂等迁移 + 连接辅助