@the-vibe-company/armada 0.1.6 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -5
- package/dist/armada.js +3409 -2763
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Armada runs a fleet of coding agents on one project and keeps every piece of wor
|
|
|
4
4
|
|
|
5
5
|
It imposes one method: grill the decisions, write a spec, cut it into tickets, let one worker agent ship each ticket as a green pull request, and let a coordinator agent merge. The tracker is the source of truth for progress; Armada adds live telemetry, contention rules and a fleet dashboard on top.
|
|
6
6
|
|
|
7
|
-
**Status:** early. `armada status`, `armada auth`, `armada doctor`, `armada init`, `armada brief`, `armada claim`, `armada report` and `armada
|
|
7
|
+
**Status:** early. `armada status`, `armada auth`, `armada doctor`, `armada init`, `armada brief`, `armada claim`, `armada report`, `armada release`, `armada ask`, `armada inbox`, `armada answer` and `armada merge` work; the other commands are being built.
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
@@ -66,12 +66,13 @@ Armada prepares a launch; it never starts a runtime itself. The `armada-runtime-
|
|
|
66
66
|
```sh
|
|
67
67
|
armada brief ABC-12 # launch settings, then the worker's prompt
|
|
68
68
|
armada brief ABC-12 --prompt # only the prompt, to pipe into the runtime (--message-file -)
|
|
69
|
-
armada brief ABC-12 --profile codex --json
|
|
69
|
+
armada brief ABC-12 --profile codex --reason "a back-end bug behind a web label" --json
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
- The prompt names the ticket and its Linear branch, starts by installing the coordinator's Armada version (`npm install -g`, with an `npm exec` fallback) and running `armada claim` with the handle `$CONDUCTOR_WORKSPACE_ID/$CONDUCTOR_SESSION_ID`, and carries the blockers with their hand-back notes, the comments already on the ticket and the workers in flight.
|
|
73
73
|
- The settings give the profile's agent, model and effort from `[conductor]` in `armada.toml`, and the environment variables to pass: `LINEAR_API_KEY` (required), `ARMADA_TURSO_URL` and `ARMADA_TURSO_TOKEN` (optional), `ARMADA_TICKET=<ticket>`. Each shows whether this shell has it. No value is ever printed.
|
|
74
|
-
-
|
|
74
|
+
- The profile follows the ticket's Linear labels: the first `[[conductor.routing]]` rule with a label the ticket carries (case, spaces and punctuation ignored), else `conductor.default_profile`, else the only profile. The settings say which rule chose it.
|
|
75
|
+
- `--profile` overrides that choice. When `armada.toml` has routing rules and the profile differs from the routed one, `--reason` is required. The reason travels into the claim command, so the claim comment records the profile and why. An unknown profile exits 2.
|
|
75
76
|
|
|
76
77
|
## Work on a ticket (workers)
|
|
77
78
|
|
|
@@ -94,6 +95,20 @@ armada release --reason "wrong ticket"
|
|
|
94
95
|
- `report` and `release` find the ticket from `--ticket`, then `ARMADA_TICKET`, then the current git branch (`feature/abc-12-…`).
|
|
95
96
|
- Turso is optional. When it is not configured or not reachable, the commands still write Linear and print a warning.
|
|
96
97
|
|
|
98
|
+
## Questions and answers
|
|
99
|
+
|
|
100
|
+
```sh
|
|
101
|
+
armada ask "Which store keeps the sessions? I recommend SQLite." --options "SQLite | Redis" # worker
|
|
102
|
+
armada inbox # coordinator: what waits, oldest first
|
|
103
|
+
armada inbox --wait # returns when a new item arrives, or after --timeout (default 300 s)
|
|
104
|
+
armada answer 12 "SQLite, for the first slice." # after delivering it in the worker's session
|
|
105
|
+
armada answer --note ABC-12 "main moved: rebase before you ship" # an unsolicited message, same path
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
- `ask` reports the `blocked` phase with `Agent status: blocked — question: <first line>` (the rest and the numbered options below it) and adds a `question` item to the coordinator's inbox in Turso. The worker then stops and waits for the answer in its session, and reports the phase it resumes. It finds the ticket like `report`.
|
|
109
|
+
- `inbox` lists the coordinator's open items (questions, requests, hand-backs) and silent workers, oldest first. A worker is silent when it holds a ticket, its newest Turso event is older than `policy.silence_minutes`, and its phase does not wait on someone else. It reads Turso only (no Linear key) and records that the coordinator is at work, for the dashboard. `--wait` polls every 5 s and marks the items that were not there before with `*`; loop on it.
|
|
110
|
+
- `answer` never calls a runtime: deliver the answer first with the runtime guide's message section. It posts `Agent status: <current phase> — answer: …` on the ticket and resolves the item. An item id needs Turso; a ticket id answers that ticket's open questions and also works without Turso. `--note` records a message the worker did not ask for as `Agent status: <phase> — note: …`. These two are the coordinator's records: Armada never reads them as the worker's phase, hand-back or sign of life. Only questions and requests can be answered; `merge` resolves hand-backs, and `release` and `merge` resolve the ticket's open questions. A worker that does not report within `policy.silence_minutes` of an answer shows as silent.
|
|
111
|
+
|
|
97
112
|
## Merge a finished pull request (coordinator)
|
|
98
113
|
|
|
99
114
|
```sh
|
|
@@ -144,7 +159,7 @@ Armada needs a few keys. Set them up once per machine with `armada auth login`,
|
|
|
144
159
|
| Variable | What | Needed by |
|
|
145
160
|
| --- | --- | --- |
|
|
146
161
|
| `LINEAR_API_KEY` | Linear personal API key (Linear > Settings > Security & access > Personal API keys) | `armada status` |
|
|
147
|
-
| `ARMADA_TURSO_URL` | Turso database URL, `libsql://...` (`file:/path/armada.db` for a local database) | `armada init` and `armada status --all` (project registry)
|
|
162
|
+
| `ARMADA_TURSO_URL` | Turso database URL, `libsql://...` (`file:/path/armada.db` for a local database) | `armada init` and `armada status --all` (project registry), `armada inbox`; live activity: events, runtime handles, inbox (optional) |
|
|
148
163
|
| `ARMADA_TURSO_TOKEN` | Turso database token | the same (optional for a `file:` database) |
|
|
149
164
|
| `GITHUB_TOKEN` or `GH_TOKEN` | GitHub token; otherwise `gh auth token` is used | pull requests and CI |
|
|
150
165
|
|
|
@@ -196,7 +211,7 @@ local_commands = ["npm ci", "npm test"] # run by `armada merge` on a test merge
|
|
|
196
211
|
silence_minutes = 15 # a worker with no report for longer is flagged silent (default 15)
|
|
197
212
|
|
|
198
213
|
[conductor]
|
|
199
|
-
default_profile = "opus" #
|
|
214
|
+
default_profile = "opus" # for tickets no routing rule matches (required with routing)
|
|
200
215
|
|
|
201
216
|
[conductor.profiles.opus] # one table per profile; `conductor model` lists the ids
|
|
202
217
|
agent = "claude"
|
|
@@ -208,6 +223,23 @@ effort = "high"
|
|
|
208
223
|
agent = "codex"
|
|
209
224
|
model = "gpt-6.1-sol"
|
|
210
225
|
effort = "high"
|
|
226
|
+
|
|
227
|
+
[conductor.profiles.debug]
|
|
228
|
+
agent = "codex"
|
|
229
|
+
model = "gpt-6.1-sol"
|
|
230
|
+
effort = "xhigh"
|
|
231
|
+
|
|
232
|
+
[[conductor.routing]] # first rule with a label the ticket carries wins, in file order
|
|
233
|
+
labels = ["web"] # any of these labels
|
|
234
|
+
profile = "opus"
|
|
235
|
+
|
|
236
|
+
[[conductor.routing]]
|
|
237
|
+
labels = ["api"]
|
|
238
|
+
profile = "codex"
|
|
239
|
+
|
|
240
|
+
[[conductor.routing]]
|
|
241
|
+
labels = ["Bug"]
|
|
242
|
+
profile = "debug"
|
|
211
243
|
```
|
|
212
244
|
|
|
213
245
|
A missing or invalid key stops the command with a message naming it, for example `missing required key "tracker.program_root"`. This repository's own configuration is in [`armada.toml`](https://github.com/The-Vibe-Company/armada/blob/main/armada.toml).
|