@patrickdappollonio/dux 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 +41 -0
- package/assets/dux-logo.png +0 -0
- package/bin/dux.js +58 -0
- package/package.json +32 -0
- package/vendor/darwin-arm64/dux +0 -0
- package/vendor/darwin-x64/dux +0 -0
- package/vendor/linux-arm64/dux +0 -0
- package/vendor/linux-x64/dux +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Patrick D'appollonio
|
|
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
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# dux
|
|
2
|
+
|
|
3
|
+
<img src="assets/dux-logo.png" width="200" align="right" />
|
|
4
|
+
|
|
5
|
+
Your AI agents deserve a proper office. **dux** (pronounced "dooks") is a terminal UI that lets you run multiple AI coding agents side by side, each in its own git worktree, with full companion terminals, macros, commit generation, and a command palette that knows more tricks than you do.
|
|
6
|
+
|
|
7
|
+
No protocol layers. No adapters. No JSON-RPC. Just real CLIs running in real terminals.
|
|
8
|
+
|
|
9
|
+
dux is fast and keeps resource usage low, leaving more RAM for Claude, Codex, Gemini, OpenCode, or any other agent CLI you bring.
|
|
10
|
+
|
|
11
|
+
## Why dux?
|
|
12
|
+
|
|
13
|
+
Most AI coding tools give you one agent in one directory. dux gives you multiple agents across multiple worktrees, all visible at once. Spawn agents on separate branches, let them work in parallel, fork a session to try a different approach, and open companion terminals next to your agents for builds, tests, or manual inspection.
|
|
14
|
+
|
|
15
|
+
Every agent runs through a PTY, the same pseudo-terminal your shell uses. Your MCP servers, hooks, skills, slash commands, and permission dialogs keep working because dux runs the real CLI tools you already use.
|
|
16
|
+
|
|
17
|
+
## Install with npm
|
|
18
|
+
|
|
19
|
+
Run dux directly with npx:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npx -y @patrickdappollonio/dux
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Or install it globally:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
npm install -g @patrickdappollonio/dux
|
|
29
|
+
dux
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Prerequisites
|
|
33
|
+
|
|
34
|
+
- **`git`** is required because dux is built around git worktrees.
|
|
35
|
+
- **`gh` CLI** is optional. If authenticated, dux can pull PR statuses and check details inside the interface.
|
|
36
|
+
|
|
37
|
+
## Documentation
|
|
38
|
+
|
|
39
|
+
The full README, release downloads, Homebrew install instructions, shell installer, screenshots, and configuration documentation live in the GitHub repository:
|
|
40
|
+
|
|
41
|
+
https://github.com/patrickdappollonio/dux
|
|
Binary file
|
package/bin/dux.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { spawn } from "node:child_process";
|
|
4
|
+
import { existsSync } from "node:fs";
|
|
5
|
+
import path from "node:path";
|
|
6
|
+
import { fileURLToPath } from "node:url";
|
|
7
|
+
|
|
8
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
9
|
+
const __dirname = path.dirname(__filename);
|
|
10
|
+
|
|
11
|
+
const PLATFORM_TARGETS = [
|
|
12
|
+
{ platform: "darwin", arch: "x64", key: "darwin-x64" },
|
|
13
|
+
{ platform: "darwin", arch: "arm64", key: "darwin-arm64" },
|
|
14
|
+
{ platform: "linux", arch: "x64", key: "linux-x64" },
|
|
15
|
+
{ platform: "linux", arch: "arm64", key: "linux-arm64" }
|
|
16
|
+
];
|
|
17
|
+
|
|
18
|
+
const current = PLATFORM_TARGETS.find(
|
|
19
|
+
(target) => target.platform === process.platform && target.arch === process.arch
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
if (!current) {
|
|
23
|
+
throw new Error(
|
|
24
|
+
`Unsupported platform combination: ${process.platform}/${process.arch}. ` +
|
|
25
|
+
"Please open an issue to request support: " +
|
|
26
|
+
"https://github.com/patrickdappollonio/dux/issues/new"
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const binaryName = "dux";
|
|
31
|
+
const vendorRoot = path.join(__dirname, "..", "vendor", current.key);
|
|
32
|
+
const binaryPath = path.join(vendorRoot, binaryName);
|
|
33
|
+
|
|
34
|
+
if (!existsSync(binaryPath)) {
|
|
35
|
+
throw new Error(
|
|
36
|
+
`dux binary not found for ${current.key}. ` +
|
|
37
|
+
"Please reinstall the package or open an issue: " +
|
|
38
|
+
"https://github.com/patrickdappollonio/dux/issues/new"
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const child = spawn(binaryPath, process.argv.slice(2), {
|
|
43
|
+
stdio: "inherit",
|
|
44
|
+
env: process.env
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
child.on("error", (err) => {
|
|
48
|
+
console.error(`Failed to start dux: ${err.message}`);
|
|
49
|
+
process.exit(1);
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
child.on("exit", (code, signal) => {
|
|
53
|
+
if (signal) {
|
|
54
|
+
process.kill(process.pid, signal);
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
process.exit(code ?? 1);
|
|
58
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@patrickdappollonio/dux",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "A terminal UI for running multiple AI coding agents side by side in isolated git worktrees.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"dux": "bin/dux.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"bin",
|
|
12
|
+
"vendor",
|
|
13
|
+
"README.md",
|
|
14
|
+
"LICENSE",
|
|
15
|
+
"assets"
|
|
16
|
+
],
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/patrickdappollonio/dux"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"ai",
|
|
23
|
+
"agents",
|
|
24
|
+
"cli",
|
|
25
|
+
"terminal",
|
|
26
|
+
"tui",
|
|
27
|
+
"worktrees"
|
|
28
|
+
],
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=18"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|