multi-agent-workbench 0.1.2 → 0.1.4
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 +28 -0
- package/bin/maw.mjs +16 -1
- package/multi-agent-workbench/SKILL.md +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,6 +20,7 @@ Install and run:
|
|
|
20
20
|
npm install -g multi-agent-workbench
|
|
21
21
|
multi-agent-workbench init
|
|
22
22
|
# edit tasks.json for your project
|
|
23
|
+
multi-agent-workbench doctor
|
|
23
24
|
multi-agent-workbench
|
|
24
25
|
# or without installing
|
|
25
26
|
npx multi-agent-workbench init
|
|
@@ -27,3 +28,30 @@ npx multi-agent-workbench
|
|
|
27
28
|
```
|
|
28
29
|
|
|
29
30
|
The supervisor reads `tasks.json` from the current project and writes `.agent-workbench/status.json` and `.agent-workbench/supervisor.log`. Review each commit before merging or deploying.
|
|
31
|
+
|
|
32
|
+
## Use as a Codex skill
|
|
33
|
+
|
|
34
|
+
Clone the repository into your Codex skills directory:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
git clone https://github.com/ruhul0/multi-agent-workbench.git \
|
|
38
|
+
~/.codex/skills/multi-agent-workbench
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Then invoke it in a Codex task with:
|
|
42
|
+
|
|
43
|
+
```text
|
|
44
|
+
Use $multi-agent-workbench to split this project into micro-tasks, assign frontend work to Codex, backend work to Claude, QA to Antigravity, and report live progress.
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
The skill instructions are in `multi-agent-workbench/SKILL.md`. The Node.js CLI and the skill are independent: use the skill for planning/orchestration guidance, and use `maw` to launch workers.
|
|
48
|
+
|
|
49
|
+
## Agent login check
|
|
50
|
+
|
|
51
|
+
Before assigning work, run:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
maw doctor
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
It checks whether `claude`, `codex`, and `agy` are available without printing credentials.
|
package/bin/maw.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { spawn } from "node:child_process";
|
|
3
|
+
import { spawnSync } from "node:child_process";
|
|
3
4
|
import process from "node:process";
|
|
4
5
|
import { fileURLToPath } from "node:url";
|
|
5
6
|
import { dirname, resolve } from "node:path";
|
|
@@ -10,7 +11,21 @@ const supervisor = resolve(packageRoot, "multi-agent-workbench/scripts/superviso
|
|
|
10
11
|
const command = process.argv[2];
|
|
11
12
|
if (command === "--help" || command === "-h") {
|
|
12
13
|
console.log("multi-agent-workbench — run Claude and Codex tasks in parallel");
|
|
13
|
-
console.log("\nCommands:\n maw init Create a starter tasks.json\n maw Run the task queue in the current project");
|
|
14
|
+
console.log("\nCommands:\n maw init Create a starter tasks.json\n maw doctor Check agent CLIs and authentication\n maw Run the task queue in the current project");
|
|
15
|
+
process.exit(0);
|
|
16
|
+
}
|
|
17
|
+
if (command === "doctor") {
|
|
18
|
+
const checks = [
|
|
19
|
+
["claude", ["auth", "status"]],
|
|
20
|
+
["codex", ["login", "status"]],
|
|
21
|
+
["agy", ["--help"]],
|
|
22
|
+
];
|
|
23
|
+
for (const [name, args] of checks) {
|
|
24
|
+
const result = spawnSync(name, args, { encoding: "utf8", timeout: 10000 });
|
|
25
|
+
const installed = !result.error;
|
|
26
|
+
const output = `${result.stdout || ""}${result.stderr || ""}`.replace(/token[^\n]*/gi, "token [redacted]").trim();
|
|
27
|
+
console.log(`${installed ? "✓" : "✗"} ${name}${installed ? ` — ${output.split("\n")[0] || "available"}` : " — not installed"}`);
|
|
28
|
+
}
|
|
14
29
|
process.exit(0);
|
|
15
30
|
}
|
|
16
31
|
if (command === "init") {
|
|
@@ -16,3 +16,7 @@ Use this skill when a software task benefits from multiple coding-agent CLIs wor
|
|
|
16
16
|
- Expose current state, task, commit, output, and completed history in a live status file/dashboard.
|
|
17
17
|
|
|
18
18
|
See `references/task-schema.md` for handoff records and `scripts/supervisor.mjs` for the Node.js supervisor.
|
|
19
|
+
|
|
20
|
+
## Invocation
|
|
21
|
+
|
|
22
|
+
Install the skill by cloning this repository to `~/.codex/skills/multi-agent-workbench`, then invoke it explicitly with `$multi-agent-workbench`. Before assigning tasks, run `maw doctor` and stop for any missing or unauthenticated worker. Typical ownership is Codex for frontend, Claude for backend logic, and Antigravity for QA/review, but preserve the user's requested assignment.
|
package/package.json
CHANGED