@onsager/awb 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/README.md +36 -2
- package/bin/awb.mjs +93 -0
- package/package.json +16 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 agent-workbench contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,37 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<picture>
|
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/brand/agent-workbench-lockup-dark.svg">
|
|
4
|
+
<img src="docs/brand/agent-workbench-lockup-light.svg" alt="Agent Workbench" width="360">
|
|
5
|
+
</picture>
|
|
6
|
+
</p>
|
|
2
7
|
|
|
3
|
-
|
|
8
|
+
# Agent Workbench Skills
|
|
9
|
+
|
|
10
|
+
Agent Workbench is a set of portable skills for Codex and Claude Code that helps a Manager plan and delegate engineering work to Workers, then track handoffs across sessions and machines.
|
|
11
|
+
|
|
12
|
+
## Quick start
|
|
13
|
+
|
|
14
|
+
1. Set up Agent Workbench:
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
npx @onsager/awb setup
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
This installs the skills and applies the shared global instructions and setup tools.
|
|
21
|
+
|
|
22
|
+
2. Start a new Manager session. Use the native subagent tools in your harness to delegate work; setup details and configuration are in the [reference](docs/reference.md).
|
|
23
|
+
|
|
24
|
+
For manual skill installation, updates, project-local installs, and detailed configuration, see the [reference](docs/reference.md). Setup does not install agent tools or authenticate harnesses.
|
|
25
|
+
|
|
26
|
+
## Skills
|
|
27
|
+
|
|
28
|
+
- **manage-lane** — maintain task intent, authorization, and handovers.
|
|
29
|
+
- **orchestrate-harnesses** — coordinate native Workers and T3 Code Managers.
|
|
30
|
+
- **prompt-for-decisions** — surface unresolved choices with evidence and trade-offs.
|
|
31
|
+
- **thermal-guard** — gate CPU-heavy work using a supported package temperature sensor.
|
|
32
|
+
- **workbench-setup** — apply shared global instructions while preserving personal text.
|
|
33
|
+
- **disk-cleanup** and **review-storybook** are optional skills.
|
|
34
|
+
|
|
35
|
+
## License
|
|
36
|
+
|
|
37
|
+
MIT. See [LICENSE](LICENSE).
|
package/bin/awb.mjs
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { spawnSync } from "node:child_process";
|
|
3
|
+
import fs from "node:fs";
|
|
4
|
+
import os from "node:os";
|
|
5
|
+
import path from "node:path";
|
|
6
|
+
|
|
7
|
+
const commands = ["install", "update", "status", "trust", "uninstall", "workers"];
|
|
8
|
+
const usage = `Usage: awb <command> [options]
|
|
9
|
+
|
|
10
|
+
Commands:
|
|
11
|
+
setup Install Agent Workbench skills and apply global setup
|
|
12
|
+
install Apply or refresh global setup
|
|
13
|
+
update Update installed skills and setup
|
|
14
|
+
status Show setup status
|
|
15
|
+
trust Review and trust Codex hooks
|
|
16
|
+
uninstall Remove managed setup
|
|
17
|
+
workers Show effective Worker configuration
|
|
18
|
+
help Show this help`;
|
|
19
|
+
|
|
20
|
+
const argv = process.argv.slice(2);
|
|
21
|
+
let home = os.homedir();
|
|
22
|
+
let skillsCmd;
|
|
23
|
+
const args = [];
|
|
24
|
+
for (let i = 0; i < argv.length; i += 1) {
|
|
25
|
+
if (argv[i] === "--home") {
|
|
26
|
+
if (!argv[i + 1]) {
|
|
27
|
+
console.error("awb: --home requires a path");
|
|
28
|
+
process.exit(2);
|
|
29
|
+
}
|
|
30
|
+
home = path.resolve(argv[++i]);
|
|
31
|
+
} else if (argv[i] === "--skills-cmd") {
|
|
32
|
+
if (!argv[i + 1]) {
|
|
33
|
+
console.error("awb: --skills-cmd requires a command");
|
|
34
|
+
process.exit(2);
|
|
35
|
+
}
|
|
36
|
+
skillsCmd = argv[++i];
|
|
37
|
+
} else {
|
|
38
|
+
args.push(argv[i]);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const command = args[0] ?? "help";
|
|
43
|
+
if (command === "help" || command === "--help" || command === "-h") {
|
|
44
|
+
console.log(usage);
|
|
45
|
+
process.exit(0);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const script = path.join(home, ".agents", "skills", "workbench-setup", "scripts", "workbench.mjs");
|
|
49
|
+
const run = (executable, parameters) => {
|
|
50
|
+
const result = spawnSync(executable, parameters, { stdio: "inherit" });
|
|
51
|
+
if (result.error) {
|
|
52
|
+
console.error(`awb: ${result.error.message}`);
|
|
53
|
+
return 1;
|
|
54
|
+
}
|
|
55
|
+
return result.status ?? 1;
|
|
56
|
+
};
|
|
57
|
+
const runWorkbench = (parameters) => run(process.execPath, [script, "--home", home, ...parameters]);
|
|
58
|
+
|
|
59
|
+
if (command === "setup") {
|
|
60
|
+
const skillArgs = skillsCmd
|
|
61
|
+
? skillsCmd.split(/\s+/).filter(Boolean)
|
|
62
|
+
: ["npx", "--yes", "skills@1.7.4"];
|
|
63
|
+
if (!skillArgs.length) {
|
|
64
|
+
console.error("awb: --skills-cmd must name a command");
|
|
65
|
+
process.exit(2);
|
|
66
|
+
}
|
|
67
|
+
const result = run(skillArgs[0], [
|
|
68
|
+
...skillArgs.slice(1), "add", "onsager-ai/agent-workbench", "-g", "-a", "codex",
|
|
69
|
+
"-a", "claude-code", "--skill", "*", "-y",
|
|
70
|
+
]);
|
|
71
|
+
if (result !== 0) process.exit(result);
|
|
72
|
+
const installResult = runWorkbench(["install"]);
|
|
73
|
+
if (installResult !== 0) process.exit(installResult);
|
|
74
|
+
process.exit(runWorkbench(["status"]));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (!commands.includes(command)) {
|
|
78
|
+
console.error(`awb: unknown command '${command}'\n\n${usage}`);
|
|
79
|
+
process.exit(2);
|
|
80
|
+
}
|
|
81
|
+
if (!args.includes("--help") && !args.includes("-h") && !pathExists(script)) {
|
|
82
|
+
console.error("Agent Workbench isn't installed; run: npx @onsager/awb setup");
|
|
83
|
+
process.exit(1);
|
|
84
|
+
}
|
|
85
|
+
process.exit(runWorkbench(args));
|
|
86
|
+
|
|
87
|
+
function pathExists(file) {
|
|
88
|
+
try {
|
|
89
|
+
return fs.existsSync(file);
|
|
90
|
+
} catch {
|
|
91
|
+
return false;
|
|
92
|
+
}
|
|
93
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onsager/awb",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"awb": "bin/awb.mjs"
|
|
8
|
+
},
|
|
9
|
+
"engines": {
|
|
10
|
+
"node": ">=22.20"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"bin/awb.mjs"
|
|
14
|
+
],
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public"
|
|
17
|
+
}
|
|
18
|
+
}
|