quadwork 0.1.2 → 1.0.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.
Files changed (104) hide show
  1. package/README.md +58 -83
  2. package/bin/quadwork.js +512 -97
  3. package/out/404.html +1 -1
  4. package/out/__next.__PAGE__.txt +1 -1
  5. package/out/__next._full.txt +2 -2
  6. package/out/__next._head.txt +1 -1
  7. package/out/__next._index.txt +2 -2
  8. package/out/__next._tree.txt +2 -2
  9. package/out/_next/static/chunks/0ahp74n0wkel0.js +1 -0
  10. package/out/_next/static/chunks/{0jsosmtclw5n5.js → 0dmi9pk2bd712.js} +3 -3
  11. package/out/_next/static/chunks/0ezniz80psxr6.js +1 -0
  12. package/out/_next/static/chunks/0g-nq4.uckan-.js +1 -0
  13. package/out/_next/static/chunks/0io_y3d0p5v~b.js +2 -0
  14. package/out/_next/static/chunks/0jt42fqe6jaw6.js +1 -0
  15. package/out/_next/static/chunks/{03hi.hdp6l230.js → 0q5hwcek8vu2q.js} +12 -12
  16. package/out/_next/static/chunks/0r_tb4lmfa_yb.js +1 -0
  17. package/out/_next/static/chunks/0s8jbc4nxw6y6.css +2 -0
  18. package/out/_next/static/chunks/0z~0.4hivi.f2.js +31 -0
  19. package/out/_next/static/chunks/135rms05ismy4.js +13 -0
  20. package/out/_next/static/chunks/14kr4rvjq-2md.js +1 -0
  21. package/out/_next/static/chunks/turbopack-0sammtvunroor.js +1 -0
  22. package/out/_not-found/__next._full.txt +2 -2
  23. package/out/_not-found/__next._head.txt +1 -1
  24. package/out/_not-found/__next._index.txt +2 -2
  25. package/out/_not-found/__next._not-found.__PAGE__.txt +1 -1
  26. package/out/_not-found/__next._not-found.txt +1 -1
  27. package/out/_not-found/__next._tree.txt +2 -2
  28. package/out/_not-found.html +1 -1
  29. package/out/_not-found.txt +2 -2
  30. package/out/app-shell/__next._full.txt +18 -0
  31. package/out/app-shell/__next._head.txt +6 -0
  32. package/out/app-shell/__next._index.txt +6 -0
  33. package/out/app-shell/__next._tree.txt +3 -0
  34. package/out/app-shell/__next.app-shell.__PAGE__.txt +5 -0
  35. package/out/app-shell/__next.app-shell.txt +5 -0
  36. package/out/app-shell.html +1 -0
  37. package/out/app-shell.txt +18 -0
  38. package/out/index.html +1 -1
  39. package/out/index.txt +2 -2
  40. package/out/project/_/__next._full.txt +3 -4
  41. package/out/project/_/__next._head.txt +1 -1
  42. package/out/project/_/__next._index.txt +2 -2
  43. package/out/project/_/__next._tree.txt +2 -3
  44. package/out/project/_/__next.project.$d$id.__PAGE__.txt +2 -3
  45. package/out/project/_/__next.project.$d$id.txt +1 -1
  46. package/out/project/_/__next.project.txt +1 -1
  47. package/out/project/_/memory/__next._full.txt +3 -3
  48. package/out/project/_/memory/__next._head.txt +1 -1
  49. package/out/project/_/memory/__next._index.txt +2 -2
  50. package/out/project/_/memory/__next._tree.txt +2 -2
  51. package/out/project/_/memory/__next.project.$d$id.memory.__PAGE__.txt +2 -2
  52. package/out/project/_/memory/__next.project.$d$id.memory.txt +1 -1
  53. package/out/project/_/memory/__next.project.$d$id.txt +1 -1
  54. package/out/project/_/memory/__next.project.txt +1 -1
  55. package/out/project/_/memory.html +1 -1
  56. package/out/project/_/memory.txt +3 -3
  57. package/out/project/_/queue/__next._full.txt +3 -3
  58. package/out/project/_/queue/__next._head.txt +1 -1
  59. package/out/project/_/queue/__next._index.txt +2 -2
  60. package/out/project/_/queue/__next._tree.txt +2 -2
  61. package/out/project/_/queue/__next.project.$d$id.queue.__PAGE__.txt +2 -2
  62. package/out/project/_/queue/__next.project.$d$id.queue.txt +1 -1
  63. package/out/project/_/queue/__next.project.$d$id.txt +1 -1
  64. package/out/project/_/queue/__next.project.txt +1 -1
  65. package/out/project/_/queue.html +1 -1
  66. package/out/project/_/queue.txt +3 -3
  67. package/out/project/_.html +1 -1
  68. package/out/project/_.txt +3 -4
  69. package/out/settings/__next._full.txt +3 -3
  70. package/out/settings/__next._head.txt +1 -1
  71. package/out/settings/__next._index.txt +2 -2
  72. package/out/settings/__next._tree.txt +2 -2
  73. package/out/settings/__next.settings.__PAGE__.txt +2 -2
  74. package/out/settings/__next.settings.txt +1 -1
  75. package/out/settings.html +1 -1
  76. package/out/settings.txt +3 -3
  77. package/out/setup/__next._full.txt +3 -3
  78. package/out/setup/__next._head.txt +1 -1
  79. package/out/setup/__next._index.txt +2 -2
  80. package/out/setup/__next._tree.txt +2 -2
  81. package/out/setup/__next.setup.__PAGE__.txt +2 -2
  82. package/out/setup/__next.setup.txt +1 -1
  83. package/out/setup.html +1 -1
  84. package/out/setup.txt +3 -3
  85. package/package.json +1 -1
  86. package/server/config.js +66 -2
  87. package/server/index.js +344 -63
  88. package/server/routes.js +195 -68
  89. package/templates/CLAUDE.md +16 -17
  90. package/templates/config.toml +12 -12
  91. package/templates/seeds/{t3.AGENTS.md → dev.AGENTS.md} +19 -19
  92. package/templates/seeds/{t1.AGENTS.md → head.AGENTS.md} +18 -18
  93. package/templates/seeds/{t2a.AGENTS.md → reviewer1.AGENTS.md} +16 -16
  94. package/templates/seeds/{t2b.AGENTS.md → reviewer2.AGENTS.md} +16 -16
  95. package/out/_next/static/chunks/0.dzh0qf9zq1l.js +0 -2
  96. package/out/_next/static/chunks/03yov._jigv17.js +0 -1
  97. package/out/_next/static/chunks/0iqqouh_3i5y5.js +0 -13
  98. package/out/_next/static/chunks/13uu.sohs74zg.js +0 -31
  99. package/out/_next/static/chunks/15kwal..m9r49.css +0 -2
  100. package/out/_next/static/chunks/17sk4qv6_d0co.js +0 -1
  101. package/out/_next/static/chunks/turbopack-06pqx~0d8czn_.js +0 -1
  102. /package/out/_next/static/{vELqtMegFMn5_6zFOkhtG → 4vrILyy2mh_Ox4JMTaqx8}/_buildManifest.js +0 -0
  103. /package/out/_next/static/{vELqtMegFMn5_6zFOkhtG → 4vrILyy2mh_Ox4JMTaqx8}/_clientMiddlewareManifest.js +0 -0
  104. /package/out/_next/static/{vELqtMegFMn5_6zFOkhtG → 4vrILyy2mh_Ox4JMTaqx8}/_ssgManifest.js +0 -0
package/README.md CHANGED
@@ -1,73 +1,70 @@
1
1
  # QuadWork
2
2
 
3
- A unified dashboard for multi-agent coding teams. Four AI agents (T1 owner, T2a/T2b reviewers, T3 builder) collaborate through terminals, chat, GitHub integration, and shared memory all served from a single local web view.
3
+ Your AI dev team in a box. Four agents one Head, one Dev, two Reviewers that code, review, and ship while you sleep.
4
4
 
5
- ## Dashboard
5
+ ## Getting Started
6
6
 
7
- ```
8
- +--------+----------------------------+----------------------------+
9
- | | T1 Terminal | T2a Terminal |
10
- | Side- | (Owner) | (Reviewer) |
11
- | bar +----------------------------+----------------------------+
12
- | | T3 Terminal | T2b Terminal |
13
- | [Home] | (Builder) | (Reviewer) |
14
- | [Proj] +----------------------------+----------------------------+
15
- | [+] | Agent Chat (AgentChattr) | GitHub (Issues + PRs) |
16
- | [Set] | | |
17
- +--------+----------------------------+----------------------------+
7
+ 1. Install [Node.js 20+](https://nodejs.org) if you don't have it
8
+ 2. Open your terminal and run:
9
+
10
+ ```bash
11
+ npx quadwork init
18
12
  ```
19
13
 
20
- ## Features
14
+ 3. The wizard installs everything else and opens your dashboard.
21
15
 
22
- - **Terminal panels** Live xterm.js terminals for each agent with PTY sessions
23
- - **Agent chat** — AgentChattr integration for real-time agent coordination
24
- - **GitHub board** — Issues, PRs, and review status at a glance
25
- - **Task queue** — Build and dispatch work queues to T1 with one click
26
- - **Shared memory** — Memory cards, butler scripts, and cross-agent context
27
- - **Telegram bridge** — Optional Telegram bot integration for mobile notifications
28
- - **Single-port server** — Everything on `http://127.0.0.1:8400` (API + WebSocket + UI)
29
- - **Backend indicator** — Clear offline/online status in the sidebar
16
+ That's it. The wizard handles Python, GitHub CLI, AI tools, and authentication — you just follow the prompts.
30
17
 
31
- ## Prerequisites
18
+ ## How It Works
32
19
 
33
- - **Node.js 20+** (with C++ toolchain for native modules)
34
- - **Python 3.10+** (for AgentChattr)
35
- - **GitHub CLI** (`gh`) — [install](https://cli.github.com)
36
- - **Claude Code** or **Codex CLI** — at least one AI agent CLI
20
+ QuadWork runs a team of 4 AI agents on your local machine:
37
21
 
38
- ## Quick Start
22
+ | Agent | Role | What it does |
23
+ |-------|------|-------------|
24
+ | **Head** | Coordinator | Creates issues, assigns tasks, merges approved PRs |
25
+ | **Dev** | Builder | Writes code, opens PRs, addresses review feedback |
26
+ | **Reviewer1** | Reviewer | Independent code review with veto authority |
27
+ | **Reviewer2** | Reviewer | Independent code review with veto authority |
39
28
 
40
- ```bash
41
- npx quadwork init # Interactive setup: repo, worktrees, agents, config
42
- npx quadwork start # Launches dashboard at http://127.0.0.1:8400
43
- npx quadwork stop # Stops all processes
44
- ```
29
+ Every task follows a GitHub workflow: Issue → Branch → PR → 2 Reviews → Merge. Branch protection ensures no agent can skip the process.
45
30
 
46
- ## Install from Source
31
+ ## Dashboard
47
32
 
48
- ```bash
49
- git clone https://github.com/realproject7/quadwork.git
50
- cd quadwork
51
- npm install
52
- npm run build # Static frontend export to out/
53
- node server/ # Start server at http://127.0.0.1:8400
33
+ ```
34
+ +--------+----------------------------+----------------------------+
35
+ | | Head Terminal | GitHub (Issues + PRs) |
36
+ | Side- | (Coordinator) | |
37
+ | bar +----------------------------+----------------------------+
38
+ | | Agent Chat | Reviewer1 | Reviewer2 |
39
+ | [Home] | (AgentChattr) | | |
40
+ | [Proj] | +-------------+--------------+
41
+ | [+] | | Dev Terminal |
42
+ | [Set] | | (Builder) |
43
+ +--------+----------------------------+----------------------------+
44
+ | Keep Alive | Server: Stop Restart Reset | System: Keep Awake |
45
+ +--------+----------------------------+----------------------------+
54
46
  ```
55
47
 
56
- For development (hot reload):
48
+ ## Features
57
49
 
58
- ```bash
59
- npm run dev # Next.js dev server on :3000
60
- npm run server # Express backend on :8400 (run in separate terminal)
61
- ```
50
+ - **Terminal panels** — Live terminals for each agent with PTY sessions
51
+ - **Agent chat** Real-time agent coordination via AgentChattr
52
+ - **GitHub board** Issues, PRs, and review status at a glance
53
+ - **Task queue** — Build and dispatch work queues with one click
54
+ - **Keep Alive** — Scheduled check-in messages to keep agents active (with auto-stop duration)
55
+ - **Keep Awake** — Prevent your Mac from sleeping during overnight runs
56
+ - **Multi-project** — Each project gets its own AgentChattr instance and ports
57
+ - **Telegram bridge** — Optional mobile notifications via [agentchattr-telegram](https://github.com/realproject7/agentchattr-telegram)
62
58
 
63
59
  ## Commands
64
60
 
65
61
  | Command | Description |
66
62
  |---------|-------------|
67
- | `quadwork init` | Interactive setup wizard repo, worktrees, agent config |
68
- | `quadwork start` | Start the server (frontend must be pre-built) |
69
- | `quadwork stop` | Stop server, AgentChattr, and Telegram bridge |
70
- | `quadwork add-project` | Add another project to an existing setup |
63
+ | `npx quadwork init` | One-time setup — installs prerequisites and opens the dashboard |
64
+ | `npx quadwork start` | Start the dashboard server |
65
+ | `npx quadwork stop` | Stop all processes |
66
+
67
+ After init, create projects from the web UI at `http://127.0.0.1:8400/setup`.
71
68
 
72
69
  ## Configuration
73
70
 
@@ -76,59 +73,37 @@ Config is stored at `~/.quadwork/config.json`:
76
73
  ```json
77
74
  {
78
75
  "port": 8400,
79
- "agentchattr_url": "http://127.0.0.1:8300",
80
76
  "projects": [
81
77
  {
82
78
  "id": "my-project",
83
79
  "name": "My Project",
84
80
  "repo": "owner/repo",
85
81
  "working_dir": "/path/to/project",
82
+ "agentchattr_url": "http://127.0.0.1:8300",
83
+ "mcp_http_port": 8200,
84
+ "mcp_sse_port": 8201,
86
85
  "agents": {
87
- "t1": { "cwd": "/path/to/project-t1", "command": "claude" },
88
- "t2a": { "cwd": "/path/to/project-t2a", "command": "claude" },
89
- "t2b": { "cwd": "/path/to/project-t2b", "command": "claude" },
90
- "t3": { "cwd": "/path/to/project-t3", "command": "claude" }
86
+ "head": { "cwd": "/path/to/project-head", "command": "codex" },
87
+ "dev": { "cwd": "/path/to/project-dev", "command": "claude" },
88
+ "reviewer1": { "cwd": "/path/to/project-reviewer1", "command": "codex" },
89
+ "reviewer2": { "cwd": "/path/to/project-reviewer2", "command": "claude" }
91
90
  }
92
91
  }
93
92
  ]
94
93
  }
95
94
  ```
96
95
 
97
- Each agent runs in its own git worktree (sibling directories).
98
-
99
- ## Optional Add-ons
100
-
101
- ### AgentChattr
102
-
103
- Shared chat server for agent coordination. Install separately:
104
-
105
- ```bash
106
- pip install agentchattr
107
- ```
108
-
109
- The setup wizard configures AgentChattr automatically. See [agentchattr](https://github.com/realproject7/agentchattr) for details.
110
-
111
- ### Telegram Bridge
112
-
113
- Forward agent chat to a Telegram group. Configure in Settings or during `quadwork init`. Requires a Telegram bot token and chat ID.
114
-
115
- ### Shared Memory
116
-
117
- Cross-agent memory system with memory cards and butler scripts. Set up during `quadwork init` or configure paths in Settings.
96
+ Each project gets its own AgentChattr instance, ports, and git worktrees.
118
97
 
119
98
  ## Architecture
120
99
 
121
100
  QuadWork runs a single Express server that serves:
122
101
 
123
- - **Static frontend** — Pre-built Next.js export (`out/`)
124
- - **REST API** — Agent lifecycle, config, GitHub, chat proxy, memory, triggers
125
- - **WebSocket** — Terminal PTY sessions at `/ws/terminal`
126
-
127
- All on one port (`127.0.0.1:8400`), no CORS needed.
128
-
129
- ## Design
102
+ - **Static frontend** — Pre-built Next.js export
103
+ - **REST API** — Agent lifecycle, config, GitHub, chat proxy, triggers
104
+ - **WebSocket** — Terminal PTY sessions
130
105
 
131
- See [docs/PROPOSAL.md](docs/PROPOSAL.md) for the full design specification.
106
+ All on one port (`127.0.0.1:8400`).
132
107
 
133
108
  ## License
134
109