cofounder-crew 0.1.3 → 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 +206 -98
- package/dist/src/cli.js +5 -0
- package/dist/src/cli.js.map +1 -1
- package/dist/src/init.d.ts +1 -0
- package/dist/src/init.js +16 -2
- package/dist/src/init.js.map +1 -1
- package/dist/src/templates.d.ts +2 -0
- package/dist/src/templates.js +52 -0
- package/dist/src/templates.js.map +1 -1
- package/package.json +9 -1
package/README.md
CHANGED
|
@@ -1,55 +1,155 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
<h1>Cofounder Crew</h1>
|
|
3
|
+
<p>
|
|
4
|
+
Conversation-first local AI teams for Codex.
|
|
5
|
+
<br />
|
|
6
|
+
No dashboard. No orchestration server. No new IDE.
|
|
7
|
+
</p>
|
|
8
|
+
<p>
|
|
9
|
+
<a href="https://www.npmjs.com/package/create-cofounder"><img src="https://img.shields.io/npm/v/create-cofounder?label=create-cofounder" alt="create-cofounder npm version" /></a>
|
|
10
|
+
<a href="https://www.npmjs.com/package/cofounder-crew"><img src="https://img.shields.io/npm/v/cofounder-crew?label=cofounder-crew" alt="cofounder-crew npm version" /></a>
|
|
11
|
+
<img src="https://img.shields.io/badge/node-22%2B-339933" alt="Node.js 22+" />
|
|
12
|
+
<img src="https://img.shields.io/badge/interface-Codex-111827" alt="Codex first" />
|
|
13
|
+
<img src="https://img.shields.io/badge/MCP-enabled-4f46e5" alt="MCP enabled" />
|
|
14
|
+
</p>
|
|
15
|
+
<p>
|
|
16
|
+
<a href="#quickstart">Quickstart</a>
|
|
17
|
+
·
|
|
18
|
+
<a href="#how-it-feels">How It Feels</a>
|
|
19
|
+
·
|
|
20
|
+
<a href="#what-codex-does">What Codex Does</a>
|
|
21
|
+
·
|
|
22
|
+
<a href="#configuration">Configuration</a>
|
|
23
|
+
·
|
|
24
|
+
<a href="#scriptable-fallback">CLI Fallback</a>
|
|
25
|
+
</p>
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
## Why
|
|
29
|
+
|
|
30
|
+
Most "AI crew" products start by building a UI, an orchestration framework, and a bunch of abstractions.
|
|
31
|
+
|
|
32
|
+
Cofounder Crew starts with the thing you already use: Codex in your project directory.
|
|
33
|
+
|
|
34
|
+
You initialize a project once, open Codex, and talk. Codex becomes the Cofounder/orchestrator for the local team. It reads the team roster, delegates specialist work to configured members, monitors their progress, inspects their outputs, and owns the final response back to you.
|
|
35
|
+
|
|
36
|
+
## Quickstart
|
|
37
|
+
|
|
38
|
+
Open Codex in the project you want to configure and paste this:
|
|
2
39
|
|
|
3
|
-
|
|
40
|
+
```text
|
|
41
|
+
Install and configure Cofounder Crew for this computer and this project.
|
|
42
|
+
Use https://github.com/eugeneyvt/cofounder-crew as the source/reference if you need more context.
|
|
43
|
+
|
|
44
|
+
First inspect the current state before changing anything:
|
|
45
|
+
- Check Node.js and npm are available and Node is >=22.
|
|
46
|
+
- Check whether this project already has .cofounder/.
|
|
47
|
+
- Check whether this project already has AGENTS.md.
|
|
48
|
+
- Check whether cofounder-crew is already installed in this project.
|
|
49
|
+
- Check whether the Codex MCP server named "cofounder" is already configured with `codex mcp list` or `codex mcp get cofounder`.
|
|
50
|
+
- Check whether this project is a Git repository with at least one commit.
|
|
51
|
+
|
|
52
|
+
Then decide the smallest correct setup:
|
|
53
|
+
- If .cofounder/ already exists, do not reinitialize it. Verify MCP setup and tell me what is already configured.
|
|
54
|
+
- If this is a package project with package.json, prefer installing cofounder-crew as a dev dependency and run project-local initialization.
|
|
55
|
+
- If this is not a package project, use npm create cofounder@latest for initialization.
|
|
56
|
+
- Use the worktree template only if this project is a Git repository with at least one commit; otherwise use the default template.
|
|
57
|
+
- Install or repair the Codex MCP entry only if it is missing or points at the wrong command.
|
|
58
|
+
- If AGENTS.md already exists, do not overwrite it. Show me the Cofounder bridge block I need to add to AGENTS.md.
|
|
59
|
+
- If AGENTS.md does not exist, let Cofounder create it.
|
|
60
|
+
|
|
61
|
+
After setup, summarize exactly what changed and tell me to reopen Codex from this project directory if MCP configuration changed.
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Codex should check the machine-level MCP entry and the project-level `.cofounder/` config, then choose the right path.
|
|
4
65
|
|
|
5
|
-
|
|
66
|
+
If you prefer to run the commands yourself, create a team and install the Codex MCP entry:
|
|
6
67
|
|
|
7
68
|
```bash
|
|
8
69
|
cd my-project
|
|
9
|
-
npm create cofounder@latest -- --
|
|
70
|
+
npm create cofounder@latest -- --setup-codex --yes
|
|
10
71
|
codex
|
|
11
72
|
```
|
|
12
73
|
|
|
13
|
-
|
|
74
|
+
For implementation work that should happen in isolated Git worktrees:
|
|
14
75
|
|
|
15
|
-
|
|
76
|
+
```bash
|
|
77
|
+
cd my-project
|
|
78
|
+
npm create cofounder@latest -- --template worktree --setup-codex --yes
|
|
79
|
+
codex
|
|
80
|
+
```
|
|
16
81
|
|
|
17
|
-
|
|
82
|
+
Worktree mode requires a Git repository with at least one commit because delegated worktrees are created from `HEAD`.
|
|
83
|
+
|
|
84
|
+
For an existing package where you want the runtime as a dev dependency:
|
|
18
85
|
|
|
19
86
|
```bash
|
|
20
|
-
npm
|
|
87
|
+
npm install --save-dev cofounder-crew
|
|
88
|
+
npx cofounder init --template worktree
|
|
89
|
+
npx cofounder setup codex --install
|
|
90
|
+
codex
|
|
21
91
|
```
|
|
22
92
|
|
|
23
|
-
|
|
93
|
+
## How It Feels
|
|
24
94
|
|
|
25
|
-
|
|
26
|
-
|
|
95
|
+
After installation, you should not need to remember task commands.
|
|
96
|
+
|
|
97
|
+
Talk to Codex:
|
|
98
|
+
|
|
99
|
+
```text
|
|
100
|
+
Use the Cofounder team. Show me who is available.
|
|
27
101
|
```
|
|
28
102
|
|
|
29
|
-
|
|
103
|
+
```text
|
|
104
|
+
Plan this feature, delegate implementation to the right teammate, and keep me posted.
|
|
105
|
+
```
|
|
30
106
|
|
|
31
|
-
```
|
|
32
|
-
|
|
107
|
+
```text
|
|
108
|
+
Ask backend to inspect this repo and summarize the implementation boundaries.
|
|
33
109
|
```
|
|
34
110
|
|
|
35
|
-
|
|
111
|
+
```text
|
|
112
|
+
Ask reviewer to review backend's last diff before we apply it.
|
|
113
|
+
```
|
|
36
114
|
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
npx cofounder init --template worktree
|
|
40
|
-
npx cofounder setup codex --install
|
|
115
|
+
```text
|
|
116
|
+
Help me add a database teammate with stricter MCP access.
|
|
41
117
|
```
|
|
42
118
|
|
|
43
|
-
|
|
119
|
+
Codex should act as the orchestrator, not as a single do-everything worker.
|
|
44
120
|
|
|
45
|
-
|
|
46
|
-
|
|
121
|
+
## What Codex Does
|
|
122
|
+
|
|
123
|
+
When Cofounder is configured, generated project instructions tell Codex to:
|
|
124
|
+
|
|
125
|
+
| Rule | Meaning |
|
|
126
|
+
| --- | --- |
|
|
127
|
+
| Be the Cofounder/orchestrator | Own coordination, monitoring, integration, and the final answer. |
|
|
128
|
+
| Delegate proactively | Do not wait for the user to say "delegate" when a teammate owns the work. |
|
|
129
|
+
| Respect responsibility boundaries | Do not perform specialist work yourself when a configured member matches the task. |
|
|
130
|
+
| Keep tasks focused | Give each teammate the smallest useful slice of work. |
|
|
131
|
+
| Inspect before applying | For worktree tasks, review the diff before applying it to the main tree. |
|
|
132
|
+
|
|
133
|
+
The default generated `AGENTS.md` starts with:
|
|
134
|
+
|
|
135
|
+
```markdown
|
|
136
|
+
## Your Role
|
|
137
|
+
|
|
138
|
+
You are the Cofounder/orchestrator for this project.
|
|
139
|
+
|
|
140
|
+
- Proactively use the Cofounder team instead of waiting for the user to ask for delegation.
|
|
141
|
+
- For every substantive request, decide whether a configured team member owns the work.
|
|
142
|
+
- Do not perform specialist work yourself when a team member's responsibilities match the task.
|
|
143
|
+
- Delegate focused tasks to the member whose responsibilities best match the work.
|
|
144
|
+
- Keep ownership clear: you own coordination, monitoring, integration, and the final response to the user.
|
|
47
145
|
```
|
|
48
146
|
|
|
49
|
-
## What
|
|
147
|
+
## What Gets Installed
|
|
50
148
|
|
|
51
149
|
```text
|
|
150
|
+
AGENTS.md
|
|
52
151
|
.cofounder/
|
|
152
|
+
codex-instructions.md
|
|
53
153
|
team.yaml
|
|
54
154
|
members/
|
|
55
155
|
lead/
|
|
@@ -69,103 +169,117 @@ codex
|
|
|
69
169
|
worktrees/
|
|
70
170
|
```
|
|
71
171
|
|
|
72
|
-
|
|
172
|
+
Everything important is plain files: prompts, settings, memory notes, task records, logs, generated Codex config, diffs, and final results.
|
|
73
173
|
|
|
74
|
-
##
|
|
174
|
+
## Existing AGENTS.md
|
|
75
175
|
|
|
76
|
-
|
|
77
|
-
npx -y --package cofounder-crew -- cofounder team
|
|
78
|
-
npx -y --package cofounder-crew -- cofounder run backend "inspect this repo"
|
|
79
|
-
npx -y --package cofounder-crew -- cofounder delegate backend "add focused tests for the parser"
|
|
80
|
-
npx -y --package cofounder-crew -- cofounder status <task_id>
|
|
81
|
-
npx -y --package cofounder-crew -- cofounder logs <task_id>
|
|
82
|
-
npx -y --package cofounder-crew -- cofounder watch <task_id>
|
|
83
|
-
npx -y --package cofounder-crew -- cofounder cancel <task_id>
|
|
84
|
-
npx -y --package cofounder-crew -- cofounder interrupt <task_id> "revise the approach and continue"
|
|
85
|
-
```
|
|
176
|
+
If your project already has `AGENTS.md`, Cofounder will not modify it.
|
|
86
177
|
|
|
87
|
-
|
|
178
|
+
Add this bridge block manually so Codex actually adopts the Cofounder role:
|
|
88
179
|
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
|
|
180
|
+
```markdown
|
|
181
|
+
## Cofounder Crew
|
|
182
|
+
|
|
183
|
+
This project uses Cofounder Crew for local AI teamwork. You are the Cofounder/orchestrator for this project. Read .cofounder/codex-instructions.md, use the Cofounder MCP tools, and proactively delegate substantive work to the team member whose responsibilities best match the task. Do not perform specialist work yourself when a configured team member owns that responsibility; coordinate the work, monitor progress, and synthesize the final response.
|
|
92
184
|
```
|
|
93
185
|
|
|
94
|
-
|
|
186
|
+
The full generated guidance is always written to `.cofounder/codex-instructions.md`.
|
|
95
187
|
|
|
96
|
-
##
|
|
188
|
+
## Configuration
|
|
97
189
|
|
|
98
|
-
|
|
190
|
+
The roster lives in `.cofounder/team.yaml`:
|
|
99
191
|
|
|
100
|
-
```
|
|
101
|
-
|
|
192
|
+
```yaml
|
|
193
|
+
members:
|
|
194
|
+
backend:
|
|
195
|
+
title: Backend Engineer
|
|
196
|
+
responsibilities:
|
|
197
|
+
- inspect and modify code
|
|
198
|
+
- understand implementation boundaries
|
|
199
|
+
- write focused tests
|
|
200
|
+
can_call:
|
|
201
|
+
- reviewer
|
|
102
202
|
```
|
|
103
203
|
|
|
104
|
-
|
|
204
|
+
Each teammate has a prompt and settings:
|
|
105
205
|
|
|
106
|
-
```
|
|
107
|
-
|
|
206
|
+
```text
|
|
207
|
+
.cofounder/members/backend/
|
|
208
|
+
prompt.md
|
|
209
|
+
settings.toml
|
|
210
|
+
home/
|
|
108
211
|
```
|
|
109
212
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
- `team.list`
|
|
113
|
-
- `team.capabilities`
|
|
114
|
-
- `team.delegate`
|
|
115
|
-
- `team.status`
|
|
116
|
-
- `team.logs`
|
|
117
|
-
- `team.diff`
|
|
118
|
-
- `team.apply`
|
|
119
|
-
- `team.cancel`
|
|
120
|
-
- `team.interrupt`
|
|
213
|
+
Example member settings:
|
|
121
214
|
|
|
122
|
-
|
|
215
|
+
```toml
|
|
216
|
+
model = "gpt-5.5"
|
|
217
|
+
sandbox = "workspace-write"
|
|
218
|
+
approval = "never"
|
|
219
|
+
reasoning_effort = "high"
|
|
123
220
|
|
|
124
|
-
|
|
221
|
+
[write]
|
|
222
|
+
mode = "worktree"
|
|
125
223
|
|
|
126
|
-
|
|
224
|
+
[mcp]
|
|
225
|
+
mode = "inherit"
|
|
226
|
+
allow = []
|
|
127
227
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
- optional memory scope
|
|
134
|
-
- optional isolated write mode
|
|
228
|
+
[memory]
|
|
229
|
+
project = true
|
|
230
|
+
member = true
|
|
231
|
+
max_snippets = 5
|
|
232
|
+
```
|
|
135
233
|
|
|
136
|
-
|
|
234
|
+
Ask Codex to edit these files when you want to add teammates, change responsibility boundaries, tune model settings, or restrict MCP access.
|
|
137
235
|
|
|
138
|
-
|
|
139
|
-
[mcp]
|
|
140
|
-
mode = "allowlist"
|
|
141
|
-
allow = ["linear", "mempalace"]
|
|
142
|
-
```
|
|
236
|
+
## Codex MCP Tools
|
|
143
237
|
|
|
144
|
-
|
|
238
|
+
Cofounder exposes the team runtime to Codex through MCP:
|
|
145
239
|
|
|
146
|
-
|
|
240
|
+
| Tool | Purpose |
|
|
241
|
+
| --- | --- |
|
|
242
|
+
| `team.list` | Read the roster and responsibility map. |
|
|
243
|
+
| `team.capabilities` | Inspect what the runtime can do. |
|
|
244
|
+
| `team.delegate` | Start a delegated task. |
|
|
245
|
+
| `team.status` | Check task status and metadata. |
|
|
246
|
+
| `team.logs` | Read task events and logs. |
|
|
247
|
+
| `team.diff` | Inspect a worktree task patch. |
|
|
248
|
+
| `team.apply` | Apply a worktree task patch to the main tree. |
|
|
249
|
+
| `team.cancel` | Cancel a running task. |
|
|
250
|
+
| `team.interrupt` | Cancel and resume with steering instructions. |
|
|
147
251
|
|
|
148
|
-
|
|
252
|
+
Manual MCP setup:
|
|
149
253
|
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
mode = "direct"
|
|
254
|
+
```bash
|
|
255
|
+
codex mcp add cofounder -- npx -y --package cofounder-crew -- cofounder mcp
|
|
153
256
|
```
|
|
154
257
|
|
|
155
|
-
|
|
258
|
+
## Write Modes
|
|
156
259
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
260
|
+
| Mode | Behavior | Use when |
|
|
261
|
+
| --- | --- | --- |
|
|
262
|
+
| `direct` | Runs the teammate in the project working tree. | You want the simplest setup. |
|
|
263
|
+
| `worktree` | Runs implementation work in `.cofounder/worktrees/<task_id>`. | You want isolated edits that Codex can inspect before applying. |
|
|
264
|
+
|
|
265
|
+
Worktree mode creates worktrees from `HEAD`; uncommitted main-tree changes are not copied.
|
|
161
266
|
|
|
162
|
-
|
|
267
|
+
## Scriptable Fallback
|
|
163
268
|
|
|
164
|
-
|
|
269
|
+
The CLI exists for setup, debugging, automation, and CI. It is not the main product surface.
|
|
270
|
+
|
|
271
|
+
```bash
|
|
272
|
+
npx -y --package cofounder-crew -- cofounder setup codex --install
|
|
273
|
+
npx -y --package cofounder-crew -- cofounder team
|
|
274
|
+
npx -y --package cofounder-crew -- cofounder status <task_id>
|
|
275
|
+
npx -y --package cofounder-crew -- cofounder logs <task_id>
|
|
276
|
+
npx -y --package cofounder-crew -- cofounder diff <task_id>
|
|
277
|
+
npx -y --package cofounder-crew -- cofounder apply <task_id>
|
|
278
|
+
```
|
|
165
279
|
|
|
166
280
|
## Interruption
|
|
167
281
|
|
|
168
|
-
Codex `exec` does not expose confirmed live mid-turn input. Cofounder Crew
|
|
282
|
+
Codex `exec` does not expose confirmed live mid-turn input. Cofounder Crew uses cancel-and-resume:
|
|
169
283
|
|
|
170
284
|
1. capture or discover the Codex session id,
|
|
171
285
|
2. cancel the running process,
|
|
@@ -184,8 +298,10 @@ Capabilities report this honestly:
|
|
|
184
298
|
|
|
185
299
|
There are two npm packages because `npm create cofounder` maps to the initializer package `create-cofounder`, while the runtime lives in `cofounder-crew`.
|
|
186
300
|
|
|
187
|
-
|
|
188
|
-
|
|
301
|
+
| Package | Role |
|
|
302
|
+
| --- | --- |
|
|
303
|
+
| `create-cofounder` | Initializer used by `npm create cofounder@latest`. |
|
|
304
|
+
| `cofounder-crew` | Runtime package exposing `cofounder` and `cofounder-mcp`. |
|
|
189
305
|
|
|
190
306
|
The package name `cofounder` is already taken on npm, so the runtime package is published as `cofounder-crew`.
|
|
191
307
|
|
|
@@ -198,14 +314,6 @@ npm test
|
|
|
198
314
|
npm run build
|
|
199
315
|
```
|
|
200
316
|
|
|
201
|
-
Local CLI:
|
|
202
|
-
|
|
203
|
-
```bash
|
|
204
|
-
node dist/src/cli.js templates
|
|
205
|
-
node dist/src/cli.js init --template worktree
|
|
206
|
-
node dist/src/cli.js setup codex
|
|
207
|
-
```
|
|
208
|
-
|
|
209
317
|
Local initializer test:
|
|
210
318
|
|
|
211
319
|
```bash
|
package/dist/src/cli.js
CHANGED
|
@@ -79,6 +79,11 @@ async function commandInit(args) {
|
|
|
79
79
|
for (const item of result.skipped) {
|
|
80
80
|
console.log(`skipped ${item}`);
|
|
81
81
|
}
|
|
82
|
+
for (const notice of result.notices) {
|
|
83
|
+
console.log("");
|
|
84
|
+
console.log("Notice:");
|
|
85
|
+
console.log(notice);
|
|
86
|
+
}
|
|
82
87
|
}
|
|
83
88
|
function commandTemplates() {
|
|
84
89
|
for (const template of listProjectTemplates()) {
|
package/dist/src/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EACL,cAAc,EACd,UAAU,EACV,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,eAAe,EACf,OAAO,EACP,aAAa,EACb,QAAQ,EACR,oBAAoB,EACpB,YAAY,EACZ,aAAa,EACb,cAAc,EACd,SAAS,EACT,aAAa,EACd,MAAM,cAAc,CAAC;AAEtB,KAAK,UAAU,IAAI,CAAC,IAAI,GAAG,O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AAC;YACtC,KAAK,IAAI,CAAC,CAAC;YACX,SAAS;QACX,CAAC;QACD,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAC3B,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,WAAW,CAAC,KAAyB,EAAE,IAAY;IAC1D,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,MAAM,IAAI,cAAc,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC;IAC9C,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,KAAK,CAAC,EAAU;IACvB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;AAC3D,CAAC;AAED,SAAS,SAAS;IAChB,OAAO,CAAC,GAAG,CAAC;;;;;;;;;;;;;;;;;;CAkBb,CAAC,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;IAC9B,IAAI,KAAK,YAAY,cAAc,EAAE,CAAC;QACpC,OAAO,CAAC,KAAK,CAAC,UAAU,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;QACzC,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;QACrB,OAAO;IACT,CAAC;IACD,MAAM,KAAK,CAAC;AACd,CAAC,CAAC,CAAC"}
|
package/dist/src/init.d.ts
CHANGED
package/dist/src/init.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { CONFIG_DIR, pathExists } from "./paths.js";
|
|
4
|
-
import { getProjectTemplate } from "./templates.js";
|
|
4
|
+
import { EXISTING_AGENTS_APPEND_SNIPPET, getProjectTemplate } from "./templates.js";
|
|
5
5
|
export async function initProject(projectRoot = process.cwd(), options = {}) {
|
|
6
6
|
const root = path.resolve(projectRoot);
|
|
7
7
|
const template = getProjectTemplate(options.template);
|
|
8
8
|
const created = [];
|
|
9
9
|
const skipped = [];
|
|
10
|
+
const notices = [];
|
|
10
11
|
async function ensureDir(relativePath) {
|
|
11
12
|
const absolutePath = path.join(root, relativePath);
|
|
12
13
|
if (await pathExists(absolutePath)) {
|
|
@@ -30,6 +31,11 @@ export async function initProject(projectRoot = process.cwd(), options = {}) {
|
|
|
30
31
|
await ensureDir(`${CONFIG_DIR}/runs`);
|
|
31
32
|
await ensureDir(`${CONFIG_DIR}/worktrees`);
|
|
32
33
|
await ensureDir(`${CONFIG_DIR}/memory/members`);
|
|
34
|
+
await ensureFile("AGENTS.md", template.codexInstructions);
|
|
35
|
+
if (skipped.includes("AGENTS.md")) {
|
|
36
|
+
notices.push(formatExistingAgentsNotice());
|
|
37
|
+
}
|
|
38
|
+
await ensureFile(`${CONFIG_DIR}/codex-instructions.md`, template.codexInstructions);
|
|
33
39
|
await ensureFile(`${CONFIG_DIR}/team.yaml`, template.teamYaml);
|
|
34
40
|
await ensureFile(`${CONFIG_DIR}/memory/project.md`, "# Project Memory\n\n");
|
|
35
41
|
for (const member of template.members) {
|
|
@@ -38,6 +44,14 @@ export async function initProject(projectRoot = process.cwd(), options = {}) {
|
|
|
38
44
|
await ensureFile(`${CONFIG_DIR}/members/${member}/settings.toml`, template.settings[member]);
|
|
39
45
|
await ensureFile(`${CONFIG_DIR}/memory/members/${member}.md`, `# ${member} Memory\n\n`);
|
|
40
46
|
}
|
|
41
|
-
return { created, skipped, template: template.name };
|
|
47
|
+
return { created, skipped, notices, template: template.name };
|
|
48
|
+
}
|
|
49
|
+
function formatExistingAgentsNotice() {
|
|
50
|
+
return `AGENTS.md already exists, so Cofounder did not modify it.
|
|
51
|
+
For Codex to use Cofounder automatically, add this block to AGENTS.md:
|
|
52
|
+
|
|
53
|
+
${EXISTING_AGENTS_APPEND_SNIPPET}
|
|
54
|
+
|
|
55
|
+
Full Cofounder instructions are available at .cofounder/codex-instructions.md.`;
|
|
42
56
|
}
|
|
43
57
|
//# sourceMappingURL=init.js.map
|
package/dist/src/init.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,8BAA8B,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AASpF,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,WAAW,GAAG,OAAO,CAAC,GAAG,EAAE,EAAE,UAAiC,EAAE;IAChG,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IACvC,MAAM,QAAQ,GAAG,kBAAkB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACtD,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,MAAM,OAAO,GAAa,EAAE,CAAC;IAE7B,KAAK,UAAU,SAAS,CAAC,YAAoB;QAC3C,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;QACnD,IAAI,MAAM,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC;YACnC,OAAO,CAAC,IAAI,CAAC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AQ,CAAC,CAAC;IAC/D,MAAM,UAAU,CAAC,GAAG,UAAU,oBAAoB,EAAE,sBAAsB,CAAC,CAAC;IAE5E,KAAK,MAAM,MAAM,IAAI,QAAQ,CAAC,OAAO,EAAE,CAAC;QACtC,MAAM,SAAS,CAAC,GAAG,UAAU,YAAY,MAAM,OAAO,CAAC,CAAC;QACxD,MAAM,UAAU,CAAC,GAAG,UAAU,YAAY,MAAM,YAAY,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;QACxF,MAAM,UAAU,CAAC,GAAG,UAAU,YAAY,MAAM,gBAAgB,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;QAC7F,MAAM,UAAU,CAAC,GAAG,UAAU,mBAAmB,MAAM,KAAK,EAAE,KAAK,MAAM,aAAa,CAAC,CAAC;IAC1F,CAAC;IAED,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC;AAChE,CAAC;AAED,SAAS,0BAA0B;IACjC,OAAO;;;EAGP,8BAA8B;;+EAE+C,CAAC;AAChF,CAAC"}
|
package/dist/src/templates.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export interface ProjectTemplate {
|
|
|
3
3
|
name: ProjectTemplateName;
|
|
4
4
|
description: string;
|
|
5
5
|
members: string[];
|
|
6
|
+
codexInstructions: string;
|
|
6
7
|
teamYaml: string;
|
|
7
8
|
prompts: Record<string, string>;
|
|
8
9
|
settings: Record<string, string>;
|
|
@@ -11,5 +12,6 @@ export interface ProjectTemplateSummary {
|
|
|
11
12
|
name: ProjectTemplateName;
|
|
12
13
|
description: string;
|
|
13
14
|
}
|
|
15
|
+
export declare const EXISTING_AGENTS_APPEND_SNIPPET = "## Cofounder Crew\n\nThis project uses Cofounder Crew for local AI teamwork. You are the Cofounder/orchestrator for this project. Read .cofounder/codex-instructions.md, use the Cofounder MCP tools, and proactively delegate substantive work to the team member whose responsibilities best match the task. Do not perform specialist work yourself when a configured team member owns that responsibility; coordinate the work, monitor progress, and synthesize the final response.";
|
|
14
16
|
export declare function listProjectTemplates(): ProjectTemplateSummary[];
|
|
15
17
|
export declare function getProjectTemplate(name?: string): ProjectTemplate;
|
package/dist/src/templates.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { CofounderError } from "./errors.js";
|
|
2
|
+
export const EXISTING_AGENTS_APPEND_SNIPPET = `## Cofounder Crew
|
|
3
|
+
|
|
4
|
+
This project uses Cofounder Crew for local AI teamwork. You are the Cofounder/orchestrator for this project. Read .cofounder/codex-instructions.md, use the Cofounder MCP tools, and proactively delegate substantive work to the team member whose responsibilities best match the task. Do not perform specialist work yourself when a configured team member owns that responsibility; coordinate the work, monitor progress, and synthesize the final response.`;
|
|
2
5
|
const TEMPLATE_ORDER = ["default", "worktree"];
|
|
3
6
|
export function listProjectTemplates() {
|
|
4
7
|
return TEMPLATE_ORDER.map((name) => {
|
|
@@ -24,6 +27,7 @@ function buildTemplate(name, description, teamId, teamName, backendWriteMode) {
|
|
|
24
27
|
name,
|
|
25
28
|
description,
|
|
26
29
|
members,
|
|
30
|
+
codexInstructions: codexInstructions(),
|
|
27
31
|
teamYaml: teamYaml(teamId, teamName),
|
|
28
32
|
prompts: Object.fromEntries(members.map((member) => [member, memberPrompt(member)])),
|
|
29
33
|
settings: {
|
|
@@ -33,6 +37,54 @@ function buildTemplate(name, description, teamId, teamName, backendWriteMode) {
|
|
|
33
37
|
}
|
|
34
38
|
};
|
|
35
39
|
}
|
|
40
|
+
function codexInstructions() {
|
|
41
|
+
return `# Cofounder Crew
|
|
42
|
+
|
|
43
|
+
This project uses Cofounder Crew for conversation-first local AI teamwork.
|
|
44
|
+
|
|
45
|
+
## Your Role
|
|
46
|
+
|
|
47
|
+
You are the Cofounder/orchestrator for this project.
|
|
48
|
+
|
|
49
|
+
- Treat Codex chat as the primary user interface.
|
|
50
|
+
- Proactively use the Cofounder team instead of waiting for the user to ask for delegation.
|
|
51
|
+
- For every substantive request, decide whether a configured team member owns the work.
|
|
52
|
+
- Do not perform specialist work yourself when a team member's responsibilities match the task.
|
|
53
|
+
- Delegate focused tasks to the member whose responsibilities best match the work.
|
|
54
|
+
- Keep ownership clear: you own coordination, monitoring, integration, and the final response to the user.
|
|
55
|
+
- Handle work directly only when it is trivial, purely conversational, or no configured member clearly owns it.
|
|
56
|
+
|
|
57
|
+
## Orchestration Workflow
|
|
58
|
+
|
|
59
|
+
- Start by checking the team roster when you do not already know the current members and responsibilities.
|
|
60
|
+
- Use the Cofounder MCP tools to list members, inspect capabilities, delegate tasks, check status, read logs, inspect diffs, apply worktree changes, cancel tasks, and interrupt tasks.
|
|
61
|
+
- Monitor delegated work with task status and logs before summarizing or applying results.
|
|
62
|
+
- For worktree-mode tasks, inspect the diff before applying changes to the main working tree unless the user explicitly asks for automatic application.
|
|
63
|
+
- If a task needs multiple specialists, delegate the smallest useful slice to each relevant member and integrate their outputs yourself.
|
|
64
|
+
|
|
65
|
+
## Team Configuration
|
|
66
|
+
|
|
67
|
+
Cofounder configuration lives in plain files:
|
|
68
|
+
|
|
69
|
+
- .cofounder/team.yaml defines members, responsibilities, and delegation rules.
|
|
70
|
+
- .cofounder/members/<member>/prompt.md defines each member's role instructions.
|
|
71
|
+
- .cofounder/members/<member>/settings.toml defines model, sandbox, MCP, memory, and write-mode settings.
|
|
72
|
+
- .cofounder/memory/ stores project and member memory notes.
|
|
73
|
+
- .cofounder/runs/ stores task records, logs, prompts, and results.
|
|
74
|
+
|
|
75
|
+
When the team needs to change, edit these files directly and keep the structure simple.
|
|
76
|
+
|
|
77
|
+
## If Cofounder Tools Are Missing
|
|
78
|
+
|
|
79
|
+
If the Cofounder MCP tools are unavailable, tell the user to run:
|
|
80
|
+
|
|
81
|
+
\`\`\`bash
|
|
82
|
+
npx -y --package cofounder-crew -- cofounder setup codex --install
|
|
83
|
+
\`\`\`
|
|
84
|
+
|
|
85
|
+
Then they should reopen Codex from this project directory.
|
|
86
|
+
`;
|
|
87
|
+
}
|
|
36
88
|
function teamYaml(teamId, teamName) {
|
|
37
89
|
return `version: 1
|
|
38
90
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../../src/templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../../src/templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAmB7C,MAAM,CAAC,MAAM,8BAA8B,GAAG;;ocAEsZ,CAAC;AAErc,MAAM,cAAc,GAA0B,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;AAEtE,MAAM,UAAU,oBAAoB;IAClC,OAAO,cAAc,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACjC,MAAM,QAAQ,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;QAC1C,OAAO;YACL,IAAI,EAAE,QAAQ,CAAC,IAAI;YACnB,WAAW,EAAE,QAAQ,CAAC,WAAW;SAClC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,OAAe,SAAS;IACzD,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACvB,OAAO,aAAa,CAAC,SAAS,EAAE,4DAA4D,EAAE,SAAS,EAAE,sBAAsB,EAAE,QAAQ,CAAC,CAAC;IAC7I,CAAC;IAED,IAAI,IAAI,KAAK,UAAU,EAAE,CAAC;QACxB,OAAO,aAAa,CAAC,UAAU,EAAE,oEAAoE,EAAE,UAAU,EAAE,uBAAuB,EAAE,UAAU,CAAC,CAAC;IAC1J,CAAC;IAED,MAAM,IAAI,cAAc,CAAC,qBAAqB,IAAI,2BAA2B,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5G,C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gC;IACtE,MAAM,MAAM,GAAG,MAAM,KAAK,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC;IACzD,OAAO;;;sBAGa,MAAM;;;;UAIlB,SAAS;;;;;;;;;;;;;;;CAelB,CAAC;AACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cofounder-crew",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Codex-backed local team runtime",
|
|
5
|
+
"homepage": "https://github.com/eugeneyvt/cofounder-crew#readme",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/eugeneyvt/cofounder-crew/issues"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/eugeneyvt/cofounder-crew.git"
|
|
12
|
+
},
|
|
5
13
|
"type": "module",
|
|
6
14
|
"files": [
|
|
7
15
|
"dist/src",
|