关于 multica-autopilots
用于检查和管理 Multica autopilot 的 Agent 技能。Autopilot 是将任务分派给 Agent 或小队负责人的持久规则,技能涵盖触发类型、执行模式、命令行操作和运行排查。
主要功能
- 01查看 autopilot 状态和运行记录
- 02配置计划任务与 webhook 触发器
- 03创建议题或仅运行任务
- 04通过命令行管理 autopilot 状态
- 05追踪失败或待处理的分派
适用场景
- 01排查 autopilot 未运行的原因
- 02检查 webhook 投递状态
- 03设置定时 Agent 任务
- 04选择创建议题或直接执行任务
安装
复制下面的命令,在终端中运行。
npx skills add https:/ / github.com/ multica-ai/ multica --skill multica-autopilots安装后在 Claude Code 中输入/multica-autopilots确认已加载。
附带文件references/autopilots-source-map.md
详细介绍
Multica Autopilots
快速开始
Autopilot 是持久化的自动化。在修改之前请先阅读:
multica autopilot list --output json
multica autopilot get <autopilot-id> --output json
multica autopilot runs <autopilot-id> --output json
不要为了测试而运行 trigger、delete、trigger-delete 或 trigger-rotate-url。这些都会产生真实的副作用。
核心模型
Autopilot 不是 Agent。它是一条规则,将工作分派给一个 Agent,或一个 squad 的 leader Agent。
链路为:触发器触发(schedule、webhook 或 manual)-> autopilot_run 行 -> execution_mode 决定输出 -> 被分派人就绪检查 -> issue/task 执行 -> run 状态同步。Webhook 前面有一个持久化的准入步骤:HTTP 入口存储一个排队的 webhook_delivery,同步创建或复用它幂等的 run,并返回 200,附带 status=accepted|skipped 以及 run_id;随后一个由数据库租约的 worker 恢复已接受的 run,并负责可恢复的 issue/task 分派。
执行模式:
create_issue创建一个 Multica issue,使该 run 作为 issue 状态可见。run_only直接创建一个 Agent 任务。不会创建 issue;任何持久化的 报告位置都必须来自其他任务上下文或指令。
issue-title-template 只支持 {{date}}。不要臆造 {{trigger_id}}、{{branch}} 或其他变量。
CLI
multica autopilot list --output json
multica autopilot get <autopilot-id> --output json
multica autopilot create --title "<title>" --description "<task prompt>" --agent <agent-name-or-id> --mode create_issue|run_only --output json
multica autopilot update <autopilot-id> --status active|paused --output json
multica autopilot runs <autopilot-id> --output json
multica autopilot trigger-add <autopilot-id> --kind schedule --cron "0 9 * * *" --timezone Asia/Shanghai --output json
multica autopilot trigger-add <autopilot-id> --kind webhook --label "ci" --output json
multica autopilot trigger <autopilot-id> --output json
multica autopilot trigger-rotate-url <autopilot-id> <trigger-id> --yes --output json
仅当用户明确要求手动运行时才使用 trigger。仅在轮换 webhook URL 时使用 trigger-rotate-url;旧 URL 将不再有效。
autopilot get 默认会隐去 webhook、webhook_path 和 webhook_url,同时报告令牌是否存在及其非敏感提示。仅当用户明确要求获取实时的 webhook 凭据时才添加 --show-secrets;该命令会在 stderr 上发出警告。不要将 webhook 令牌或签名材料粘贴到评论、日志、文档或 PR 中。
调试
对于“为什么没有运行”:
multica autopilot get <id> --output json— 状态、模式、被分派人、触发器。multica autopilot runs <id> --output json— run 状态和失败原因。- 如果分派给了一个 squad,检查该 squad:
multica squad get <squad-id> --output json;执行会交给 leader。 - 检查目标 Agent/runtime:
multica agent get <agent-id> --output json和multica runtime list --output json。 - 对于 webhook,检查投递状态:
queued表示 worker 尚未完成分派;failed携带 worker 错误。提供方使用相同的X-GitHub-Delivery/Idempotency-Key重试会复用原始投递。 - 对于
create_issue,如果 run 记录了创建的 issue,检查该 issue。
副作用
以下操作会修改持久化状态或启动工作:create、update、delete、触发器 add/update/delete/rotate、trigger,以及对 /api/webhooks/autopilots/{token} 的 webhook 调用。
更多有来源支撑的细节:references/autopilots-source-map.md。