Armadra

使用

协调者

用 ama 拆分任务、组织团队,在分派抽屉里跟进,并让它按规则接单。


一个目标要拆给几个 Agent 做时,可以交给协调者 ama 来分工。这一页讲怎么用它、怎么在分派抽屉里跟进,以及怎么让它按规则接单。

协调者 ama

ama 是 Armadra 自带的协调 Agent,不需要另装。给它一个目标,它把子任务落成画布上的 Agent 节点、分派下去、等待并收齐结果。

  1. 在画布上新建一个 ama 节点(新建菜单「AI 助手」分组里的「新建 Armadra Agent」,它就是 ama)。ama 要用到模型的 API Key;在「设置 → Agent CLI → Armadra Agent」页的「Armadra Agent 的模型密钥」一组里选供应商、填 API Key、保存,见Agent 与 CLI。
  2. 在这个节点里说出目标,例如「把登录模块的测试补全,再让另一个 Agent 审查」。
  3. ama 按需新建成员节点、连线、分派任务,并把汇总写进一张便签。

协调者本身只读代码、不动手改:要真正改文件,它只能交给画布上的成员。节点的「Agent 设置」里有「协调者」开关,只对能当协调者的 CLI 显示;节点运行中这个开关是灰的。

成员遇到权限请求时,ama 只报告「受阻」,不替你回答,见权限请求与审批。

分派抽屉

ama 节点头部的「N 成员」打开右侧的「分派」抽屉。

  • 「成员」页:每个成员任务的状态(运行中、需要你、已完成、本轮失败、已停止、空闲)与所处阶段(排队中、待回答、待验收、受阻、投递失败、失败)。点「打开」跳到成员节点;投递失败或失败的任务可以点「重试」。
  • 汇总写进便签后,抽屉里有一行「汇总 → 便签「…」」,点开查看。任务对应的 PR 会出现「打开 PR #…」。
  • 有新回复时显示「有新回复」;断线时显示「已断开,正在重连」。

团队编排

编排由 Agent 在画布上发起:对 ama 或别的 Agent 说出分工,它会新建成员节点并连线。常见的几种形状:

  • 并行:多个成员同时做不同部分;
  • 流水线:上一个完成后下一个开始;
  • 汇总:多个成员的结果交给一个节点合并。

每个成员可以带一条自己的 Git worktree,互不干扰。

让 ama 按规则接单

ama 除了接你的话,还可以盯着一个仓库里没人认领的 Issue 或 PR,按你写好的规则接单。需要先在「设置 → 代码托管」连好该仓库所在平台的账号。

  1. 在分派抽屉的「来源」页点「添加」,填「仓库」(形如 github.com/owner/name),选 Issue 或 PR,「协调者」选负责的 ama。
  2. 新来源的「模式」是「观察」:只收集「候选」并由 ama 给出判定,不会起任何工作。
  3. 在「候选」页逐条看:「判定」是 ama 的意见(接、跳过),你用「复核」点「同意」或「不同意」,用来评估它靠不靠谱。「统计」按「判定 · 同意 · 不同意」累计。
  4. 看够之后,在来源里填「允许名单」(可以提需求的登录名,逗号分隔),点「规则」旁的「确认」确认仓库里的规则,再把「模式」改成「自动」。规则状态有「已确认」「已变更」「未确认」「缺失」。
  5. 自动模式下,ama 只接名单内的人提的、规则没变过的候选,起成员后候选标为「已派发」。

规则文件一旦被改动,状态变成「已变更」,自动接单立刻停止,要你重新「确认」。「自动」需要允许名单和已确认的规则,否则设置不会生效。远端工作区读不到规则文件,只能用「观察」。ama 的判定只是意见,是否真的接单由 Armadra 按名单、规则和限流再核对一遍。来自外部的标题与正文一律当作资料,不当作指令。

下一步

Guides

Coordinator

Split work with ama, follow it in the dispatch drawer, and let it pick up issues by rule.


When one goal has to be divided among several agents, hand it to the coordinator ama. This page covers how to use it, how to follow it in the dispatch drawer, and how to let it pick up issues by rule.

The coordinator ama

ama is Armadra’s own coordinator agent; there is nothing to install. Give it a goal and it turns subtasks into agent nodes on the canvas, dispatches them, waits and collects the results.

  1. Create an ama node on the canvas (“New Armadra Agent” in the “AI assistants” group of the new menu; that is ama). ama needs a model API key; in “Settings → Agent CLI → Armadra Agent”, under “Armadra Agent model keys”, choose the “Provider”, enter the “API key” and “Save”; see Agents and CLIs.
  2. State the goal in that node, for example “finish the tests for the login module, then have another agent review them”.
  3. ama creates member nodes, links them and assigns tasks as needed, then writes a summary to a sticky.

The coordinator itself only reads code and does not edit; to actually change files it can only hand work to members on the canvas. The node’s “Agent settings” has a “Coordinator” switch, shown only for CLIs that can act as one; it is greyed out while the node is running.

When a member hits a permission request, ama only reports it as blocked and does not answer for you; see Permission requests and approvals.

The dispatch drawer

“N members” in the ama node header opens the “Dispatch” drawer on the right.

  • “Members” page: each member task’s status (Running, Needs you, Done, Turn failed, Stopped, Idle) and stage (Queued, Needs answer, Ready for review, Blocked, Delivery failed, Failed). Choose “Open” to jump to the member node; a task with a failed delivery or that failed can be sent again with “Retry”.
  • Once the summary is written to a sticky, the drawer shows a “Summary → sticky” line; open it to read. A task’s pull request appears as “Open PR #…”.
  • “New reply” marks fresh replies, and “Disconnected, reconnecting” shows when the connection drops.

Team shapes

Orchestration is started by an agent on the canvas: tell ama or another agent how to divide the work and it creates member nodes and links them. The common shapes:

  • Parallel: several members work on different parts at once;
  • Pipeline: the next member starts when the previous one finishes;
  • Collect: the results of several members go to one node to merge.

Each member can have its own Git worktree so they do not step on each other.

Letting ama pick up issues by rule

Besides taking your instructions, ama can watch a repository for unclaimed issues or pull requests and take them on by rules you wrote. First connect the account for that repository’s platform under Settings → Code hosting.

  1. On the drawer’s “Sources” page choose “Add”, fill in “Repository” (like github.com/owner/name), pick Issue or PR, and choose the “Coordinator” in charge.
  2. A new source starts in “Observe” mode: it only collects “Candidates” and lets ama give a verdict; no work is started.
  3. On the “Candidates” page go through them one by one. “Verdict” is ama’s opinion (Accept, Skip); you “Review” it with “Agree” or “Disagree” to judge how reliable it is. “Stats” totals “Decided · Agreed · Disagreed”.
  4. When you have seen enough, fill in the “Allow list” (logins that may raise requests, comma separated), choose “Confirm” beside “Rules” to confirm the rules in the repository, then switch “Mode” to “Auto”. Rule states are Confirmed, Changed, Unconfirmed and Missing.
  5. In auto mode ama only takes candidates raised by people on the list while the rules are unchanged; once members are started the candidate is marked “Dispatched”.

If the rules file is edited, its state turns to “Changed” and automatic pickup stops until you “Confirm” again. “Auto needs an allow list and confirmed rules”, or the setting does not take effect. A remote workspace cannot read the rules file and can only use “Observe”. ama’s verdict is only an opinion; Armadra checks the list, the rules and rate limits again before anything starts. Titles and text from outside are always treated as material, never as instructions.

Next

在 GitHub 上编辑本页 Edit this page on GitHub