adaptive-director-skill 1.1.1 → 1.1.2
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 +338 -155
- package/package.json +2 -2
- package/scripts/cli.mjs +3 -1
- package/scripts/discover.mjs +21 -10
- package/scripts/install.mjs +97 -97
- package/scripts/run.mjs +427 -0
- package/scripts/setup.mjs +40 -2
- package/scripts/smoke-test.mjs +13 -0
- package/scripts/test-run-flow.mjs +119 -0
- package/scripts/verify-evidence.mjs +98 -0
- package/skills/adaptive-director/SKILL.md +76 -32
- package/skills/adaptive-director/data/registry.json +103 -103
- package/skills/adaptive-director/examples/clean-run-walkthrough.md +83 -83
- package/skills/adaptive-director/examples/critical-fix-cycle-walkthrough.md +70 -70
- package/skills/adaptive-director/scripts/delegate-relay.mjs +237 -237
- package/skills/adaptive-director/scripts/discover-models.mjs +198 -198
- package/skills/adaptive-director/scripts/run-state.mjs +130 -40
- package/skills/adaptive-director/templates/fix-brief.md +27 -27
- package/skills/adaptive-director/templates/implement-brief.md +28 -28
- package/skills/adaptive-director/templates/plan-brief.md +31 -31
- package/skills/adaptive-director/templates/review-brief.md +42 -42
- package/skills/adaptive-director/templates/verify-brief.md +28 -28
package/README.md
CHANGED
|
@@ -2,237 +2,424 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/adaptive-director-skill)
|
|
4
4
|
[](https://nodejs.org)
|
|
5
|
-
[](#requirements)
|
|
6
6
|
[](LICENSE)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
**One coding task. The right AI for every phase.**
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Adaptive Director is a local, skill-first workflow director for AI coding agents. Give it one task and it coordinates the rest: planning, implementation, independent review, targeted fixing, and verification.
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
It is built for developers who already use tools like Codex, Claude Code, AGY, and delegate-skills, but do not want to manually decide which agent should plan, code, review, and verify every change.
|
|
13
13
|
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
Adaptive Director
|
|
18
|
-
↓
|
|
19
|
-
Plan → Implement → Review → Verify
|
|
20
|
-
↓ ↓ ↓
|
|
21
|
-
Best Best Independent
|
|
22
|
-
Agent Coder Reviewer
|
|
14
|
+
```bash
|
|
15
|
+
npx adaptive-director-skill setup
|
|
16
|
+
adaptive-director run "Add refresh-token authentication"
|
|
23
17
|
```
|
|
24
18
|
|
|
25
|
-
|
|
19
|
+
## Why This Exists
|
|
20
|
+
|
|
21
|
+
One AI agent doing everything is convenient, but it creates predictable failure modes:
|
|
22
|
+
|
|
23
|
+
| Problem | What happens |
|
|
24
|
+
| --- | --- |
|
|
25
|
+
| Weak planning | A cheap or fast model makes the wrong architectural call. |
|
|
26
|
+
| Self-review | The same context that wrote the bug often misses it. |
|
|
27
|
+
| Overpowered simple tasks | Expensive reasoning gets spent on small edits. |
|
|
28
|
+
| Manual model juggling | You keep switching tools instead of shipping. |
|
|
29
|
+
| No proof | A final answer says "done" without test/build evidence. |
|
|
26
30
|
|
|
27
|
-
|
|
31
|
+
Adaptive Director turns that into a disciplined local loop.
|
|
28
32
|
|
|
29
|
-
|
|
30
|
-
- **Weak models on critical planning:** Lightweight models make architectural mistakes.
|
|
31
|
-
- **Wasted reasoning tokens:** Using maximum reasoning for minor code changes burns quota needlessly.
|
|
32
|
-
- **Review blind spots:** Agents struggle to catch their own errors during self-review.
|
|
33
|
+
## Workflow
|
|
33
34
|
|
|
34
|
-
|
|
35
|
+
This chart is plain text so it stays readable on npm, GitHub, terminals, and package mirrors.
|
|
35
36
|
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
37
|
+
```text
|
|
38
|
+
User task
|
|
39
|
+
|
|
|
40
|
+
v
|
|
41
|
+
Classify size: small / medium / large
|
|
42
|
+
|
|
|
43
|
+
v
|
|
44
|
+
Route each phase to the best available host + model + effort
|
|
45
|
+
|
|
|
46
|
+
v
|
|
47
|
+
+---------+ +------------+ +--------------------+ +----------+
|
|
48
|
+
| Plan | ---> | Implement | ---> | Independent Review | ---> | Verify |
|
|
49
|
+
+---------+ +------------+ +--------------------+ +----------+
|
|
50
|
+
|
|
|
51
|
+
| critical findings only
|
|
52
|
+
v
|
|
53
|
+
+------------+
|
|
54
|
+
| Fix |
|
|
55
|
+
+------------+
|
|
56
|
+
|
|
|
57
|
+
v
|
|
58
|
+
Re-review once
|
|
46
59
|
```
|
|
47
60
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
|
51
|
-
|
|
|
52
|
-
|
|
|
53
|
-
|
|
|
54
|
-
|
|
|
61
|
+
Terminal statuses are explicit:
|
|
62
|
+
|
|
63
|
+
| Status | Meaning |
|
|
64
|
+
| --- | --- |
|
|
65
|
+
| `completed` | Workflow finished and verification passed, or no supported deterministic gates were detected. |
|
|
66
|
+
| `blocked` | Critical review findings remain after the allowed fix cycle, or verification evidence failed. |
|
|
67
|
+
| `needs_recovery` | Delegate execution mutated the workspace and failed, so automatic fallback was blocked. |
|
|
68
|
+
| `failed` | A configuration or execution error prevented safe progress. |
|
|
55
69
|
|
|
56
|
-
|
|
70
|
+
## Install And Setup
|
|
57
71
|
|
|
58
|
-
|
|
72
|
+
Recommended one-command onboarding:
|
|
59
73
|
|
|
60
|
-
|
|
74
|
+
```bash
|
|
75
|
+
npx adaptive-director-skill setup
|
|
76
|
+
```
|
|
61
77
|
|
|
62
|
-
|
|
78
|
+
That command:
|
|
79
|
+
|
|
80
|
+
1. Detects supported coding-agent hosts.
|
|
81
|
+
2. Installs the Adaptive Director skill into host skill directories.
|
|
82
|
+
3. Creates or updates `~/.adaptive-director/config.json`.
|
|
83
|
+
4. Detects optional delegate-skills.
|
|
84
|
+
5. Runs health checks.
|
|
85
|
+
6. Prints the first command to try.
|
|
86
|
+
|
|
87
|
+
Global install:
|
|
63
88
|
|
|
64
89
|
```bash
|
|
65
90
|
npm install -g adaptive-director-skill
|
|
91
|
+
adaptive-director setup
|
|
66
92
|
```
|
|
67
93
|
|
|
68
|
-
|
|
94
|
+
Native-only non-interactive setup:
|
|
69
95
|
|
|
70
|
-
|
|
96
|
+
```bash
|
|
97
|
+
npx adaptive-director-skill setup --yes --no-delegate
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Setup with delegate-skills integration:
|
|
71
101
|
|
|
72
102
|
```bash
|
|
73
|
-
adaptive-director setup
|
|
103
|
+
npx adaptive-director-skill setup --with-delegate
|
|
74
104
|
```
|
|
75
105
|
|
|
76
|
-
|
|
106
|
+
## Run A Task
|
|
77
107
|
|
|
78
108
|
```bash
|
|
79
|
-
|
|
109
|
+
adaptive-director run "Add input validation to the login flow"
|
|
80
110
|
```
|
|
81
111
|
|
|
82
|
-
|
|
112
|
+
What happens:
|
|
113
|
+
|
|
114
|
+
1. A run workspace is created under `.adaptive-director/runs/<run-id>/`.
|
|
115
|
+
2. The task is classified.
|
|
116
|
+
3. Phase routing decisions are persisted.
|
|
117
|
+
4. Each phase receives a focused handoff brief.
|
|
118
|
+
5. Critical review findings trigger one targeted fix/re-review cycle.
|
|
119
|
+
6. Verification evidence is collected from real project commands where detected.
|
|
120
|
+
7. Final run status is persisted.
|
|
121
|
+
|
|
122
|
+
Example output shape:
|
|
123
|
+
|
|
124
|
+
```text
|
|
125
|
+
Adaptive Director
|
|
126
|
+
Run: run-a1b2c3d4
|
|
127
|
+
|
|
128
|
+
Task size: medium
|
|
129
|
+
Budget: balanced
|
|
130
|
+
|
|
131
|
+
[1/4] Plan
|
|
132
|
+
Agent: agy
|
|
133
|
+
Model: claude-sonnet-4-6
|
|
134
|
+
Effort: high
|
|
135
|
+
completed
|
|
136
|
+
|
|
137
|
+
[2/4] Implement
|
|
138
|
+
Agent: codex
|
|
139
|
+
Model: gpt-6-astra
|
|
140
|
+
Effort: medium
|
|
141
|
+
completed
|
|
142
|
+
|
|
143
|
+
[3/4] Review
|
|
144
|
+
Agent: claude
|
|
145
|
+
Anti-affinity: Tier 4
|
|
146
|
+
0 critical
|
|
147
|
+
2 warnings
|
|
148
|
+
|
|
149
|
+
[4/4] Verify
|
|
150
|
+
npm test passed
|
|
151
|
+
|
|
152
|
+
Status: completed
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
## Command Reference
|
|
156
|
+
|
|
157
|
+
### Core commands
|
|
158
|
+
|
|
159
|
+
| Command | Purpose |
|
|
160
|
+
| --- | --- |
|
|
161
|
+
| `adaptive-director run "<task>"` | Run the complete workflow for one coding task. |
|
|
162
|
+
| `adaptive-director setup` | Discover hosts, install the skill, configure optional delegate integration. |
|
|
163
|
+
| `adaptive-director install` | Reinstall/update the skill into detected host skill directories. |
|
|
164
|
+
| `adaptive-director refresh` | Re-discover hosts and update config while preserving overrides. |
|
|
165
|
+
| `adaptive-director doctor` | Validate package, config, routing, hosts, and delegate integration. |
|
|
166
|
+
| `adaptive-director delegate install` | Install delegate-skills through its official installer. |
|
|
167
|
+
| `adaptive-director delegate status` | Show delegate detection, relays, and lanes. |
|
|
168
|
+
| `adaptive-director help` | Show CLI help. |
|
|
169
|
+
|
|
170
|
+
### `run` flags
|
|
171
|
+
|
|
172
|
+
| Flag | Values | Default | Meaning |
|
|
173
|
+
| --- | --- | --- | --- |
|
|
174
|
+
| `--budget <mode>` | `conservative`, `balanced`, `quality` | `balanced` | Chooses effort levels per phase. |
|
|
175
|
+
| `--delegate` | boolean | off | Allows delegate lanes when available. Native remains the fallback. |
|
|
176
|
+
| `--allow-max` | boolean | off | Allows `max` effort if routing selects it. Without this, `max` is downgraded. |
|
|
177
|
+
| `--dry-run` | boolean | off | Prints routing decisions without executing phases. |
|
|
178
|
+
| `--cwd <path>` | path | current directory | Runs the task against a specific project directory. |
|
|
179
|
+
|
|
180
|
+
Examples:
|
|
83
181
|
|
|
84
182
|
```bash
|
|
85
|
-
adaptive-director
|
|
183
|
+
adaptive-director run "Fix password reset validation"
|
|
184
|
+
adaptive-director run "Refactor payment architecture" --budget quality
|
|
185
|
+
adaptive-director run "Add tests for billing retries" --delegate
|
|
186
|
+
adaptive-director run "Plan the auth migration" --dry-run
|
|
187
|
+
adaptive-director run "Fix API pagination" --cwd ../my-api
|
|
188
|
+
adaptive-director run "High-risk security refactor" --budget quality --allow-max
|
|
86
189
|
```
|
|
87
190
|
|
|
88
|
-
|
|
191
|
+
### `setup` flags
|
|
192
|
+
|
|
193
|
+
| Flag | Meaning |
|
|
194
|
+
| --- | --- |
|
|
195
|
+
| `--with-delegate` | Install delegate-skills through the official installer if missing. |
|
|
196
|
+
| `--no-delegate` | Skip optional delegate installation and keep native execution active. |
|
|
197
|
+
| `--yes`, `-y` | Non-interactive setup. |
|
|
198
|
+
| `--delegate-only` | Internal helper used by `adaptive-director delegate install`. |
|
|
199
|
+
|
|
200
|
+
Examples:
|
|
201
|
+
|
|
202
|
+
```bash
|
|
203
|
+
adaptive-director setup
|
|
204
|
+
adaptive-director setup --yes --no-delegate
|
|
205
|
+
adaptive-director setup --with-delegate
|
|
206
|
+
adaptive-director delegate status
|
|
89
207
|
```
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
208
|
+
|
|
209
|
+
## Phase Policy
|
|
210
|
+
|
|
211
|
+
Static phase maps stay simple:
|
|
212
|
+
|
|
213
|
+
| Task size | Static phases |
|
|
214
|
+
| --- | --- |
|
|
215
|
+
| small | `implement -> review` |
|
|
216
|
+
| medium | `plan -> implement -> review -> verify` |
|
|
217
|
+
| large | `plan -> implement -> review -> verify` |
|
|
218
|
+
|
|
219
|
+
`fix` is not part of the static map. It is inserted dynamically only when review finds critical issues.
|
|
220
|
+
|
|
221
|
+
```text
|
|
222
|
+
Review has 0 critical findings
|
|
223
|
+
-> Verify
|
|
224
|
+
|
|
225
|
+
Review has critical findings
|
|
226
|
+
-> Fix
|
|
227
|
+
-> Re-review
|
|
228
|
+
-> Verify if clean
|
|
229
|
+
-> Blocked if critical findings remain
|
|
107
230
|
```
|
|
108
231
|
|
|
109
|
-
|
|
232
|
+
Warnings and suggestions are reported but do not trigger a fix cycle.
|
|
233
|
+
|
|
234
|
+
## Routing
|
|
110
235
|
|
|
111
|
-
|
|
236
|
+
Routing chooses:
|
|
237
|
+
|
|
238
|
+
- host/agent
|
|
239
|
+
- model
|
|
240
|
+
- reasoning effort
|
|
241
|
+
- native or delegate execution
|
|
242
|
+
- review anti-affinity
|
|
243
|
+
- verification capability
|
|
244
|
+
|
|
245
|
+
Routing priority:
|
|
112
246
|
|
|
113
247
|
```text
|
|
114
|
-
|
|
248
|
+
User overrides
|
|
249
|
+
-> delegate fleet lanes, only when --delegate is passed
|
|
250
|
+
-> dynamic host/model discovery
|
|
251
|
+
-> capability registry
|
|
252
|
+
-> safe fallback
|
|
115
253
|
```
|
|
116
254
|
|
|
117
|
-
|
|
255
|
+
Capability scores in `skills/adaptive-director/data/registry.json` are routing priors, not vendor benchmarks.
|
|
118
256
|
|
|
119
|
-
##
|
|
257
|
+
## Native And Delegate Execution
|
|
120
258
|
|
|
121
|
-
|
|
259
|
+
Adaptive Director is native-first. It must work without delegate-skills.
|
|
122
260
|
|
|
123
|
-
|
|
124
|
-
2. **Implement:** Codex (Medium Effort) writes the code without committing.
|
|
125
|
-
3. **Review:** An independent Claude session inspects the diff.
|
|
126
|
-
- *Finds 1 Critical issue:* PaymentIntent confirmed twice on retry.
|
|
127
|
-
4. **Fix:** Codex receives a targeted brief to fix only that critical bug.
|
|
128
|
-
5. **Re-Review:** Reviewer confirms the fix.
|
|
129
|
-
6. **Verify:** Runs `flutter analyze && flutter test`.
|
|
130
|
-
7. **Done:** Changes left uncommitted for final developer review.
|
|
261
|
+
When `--delegate` is passed, delegate lanes may be used for matching phases. Delegate execution reuses the hardened `delegate-relay.mjs` boundary:
|
|
131
262
|
|
|
132
|
-
|
|
263
|
+
- relay missing -> safe native fallback
|
|
264
|
+
- non-zero relay exit -> inspect workspace mutation
|
|
265
|
+
- missing/malformed result -> fail safely
|
|
266
|
+
- timeout -> terminate and inspect workspace
|
|
267
|
+
- mutated workspace after failure -> `needs_recovery`, no automatic retry
|
|
133
268
|
|
|
134
|
-
|
|
269
|
+
Native execution is explicit. Adaptive Director does not pretend a host completed work when it cannot be invoked. If no automatic native executor is configured, a phase fails with `native_invocation_required`.
|
|
135
270
|
|
|
136
|
-
|
|
271
|
+
### Native executor contract
|
|
137
272
|
|
|
138
|
-
|
|
139
|
-
- **`skills/adaptive-director/`:** The canonical, portable Agent Skill (procedural brain, runtime scripts, templates, references, and registry data).
|
|
273
|
+
Set `AD_NATIVE_EXECUTOR` to a command that reads JSON from stdin and returns JSON on stdout.
|
|
140
274
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
├── templates/ # Standardized phase brief templates
|
|
158
|
-
├── examples/ # Realistic execution walkthroughs
|
|
159
|
-
└── data/ # Capability registry
|
|
275
|
+
Input shape:
|
|
276
|
+
|
|
277
|
+
```json
|
|
278
|
+
{
|
|
279
|
+
"phase": "implement",
|
|
280
|
+
"runId": "run-a1b2c3d4",
|
|
281
|
+
"task": "Add input validation",
|
|
282
|
+
"brief": "...",
|
|
283
|
+
"briefPath": ".adaptive-director/runs/run-a1b2c3d4/brief-implement.md",
|
|
284
|
+
"cwd": "/path/to/project",
|
|
285
|
+
"agent": "codex",
|
|
286
|
+
"model": "gpt-6-astra",
|
|
287
|
+
"effort": "medium",
|
|
288
|
+
"execution": "native",
|
|
289
|
+
"route": {}
|
|
290
|
+
}
|
|
160
291
|
```
|
|
161
292
|
|
|
162
|
-
|
|
293
|
+
Output shape:
|
|
163
294
|
|
|
164
|
-
|
|
295
|
+
```json
|
|
296
|
+
{
|
|
297
|
+
"ok": true,
|
|
298
|
+
"status": "completed",
|
|
299
|
+
"summary": "Changed lib/auth.ts and added validation tests.",
|
|
300
|
+
"findings": [],
|
|
301
|
+
"artifacts": [],
|
|
302
|
+
"resultPath": ".adaptive-director/runs/run-a1b2c3d4/implement.json"
|
|
303
|
+
}
|
|
304
|
+
```
|
|
165
305
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
306
|
+
## Verification Evidence
|
|
307
|
+
|
|
308
|
+
Verification is not only an AI instruction. Adaptive Director detects common project types and runs conservative gates when available:
|
|
309
|
+
|
|
310
|
+
| Project | Detection | Commands |
|
|
311
|
+
| --- | --- | --- |
|
|
312
|
+
| Node.js | `package.json` | `npm test`, `npm run build` when scripts exist |
|
|
313
|
+
| Flutter | `pubspec.yaml` | `flutter analyze`, `flutter test` |
|
|
314
|
+
| Laravel/PHP | `artisan` + `composer.json` | `php artisan test` |
|
|
315
|
+
| Python | `pyproject.toml`, `pytest.ini`, `tox.ini`, or `setup.cfg` | `pytest` |
|
|
316
|
+
|
|
317
|
+
Evidence is stored in run metadata and `verification-evidence.json`:
|
|
318
|
+
|
|
319
|
+
```json
|
|
320
|
+
{
|
|
321
|
+
"commands": [
|
|
322
|
+
{
|
|
323
|
+
"command": "npm test",
|
|
324
|
+
"exitCode": 0,
|
|
325
|
+
"durationMs": 1200
|
|
326
|
+
}
|
|
327
|
+
],
|
|
328
|
+
"passed": true
|
|
329
|
+
}
|
|
176
330
|
```
|
|
177
331
|
|
|
178
|
-
|
|
332
|
+
## Supported Hosts
|
|
333
|
+
|
|
334
|
+
Adaptive Director can discover these host CLIs when installed:
|
|
179
335
|
|
|
180
|
-
|
|
336
|
+
| Host | Binary | Notes |
|
|
337
|
+
| --- | --- | --- |
|
|
338
|
+
| Claude Code | `claude` | Claude's coding CLI. |
|
|
339
|
+
| Codex | `codex` | OpenAI Codex CLI. |
|
|
340
|
+
| Antigravity / AGY | `agy` | Google Antigravity CLI. It may expose Gemini and other models through AGY. |
|
|
341
|
+
| Gemini CLI | `gemini` | Separate Gemini CLI, detected only if installed independently. |
|
|
342
|
+
| OpenCode | `opencode` | OpenCode CLI. |
|
|
343
|
+
| Aider | `aider` | Aider CLI. |
|
|
344
|
+
| Cursor Agent | `cursor-agent` | Cursor's headless agent CLI. |
|
|
345
|
+
| Cline | `cline` | Cline CLI. |
|
|
346
|
+
| GitHub Copilot CLI | `copilot` | GitHub Copilot CLI. |
|
|
181
347
|
|
|
182
|
-
|
|
183
|
-
- **Routing Priority:** User overrides → Delegate fleet lanes → Dynamic Host Discovery → Capability registry → Default fallback.
|
|
184
|
-
- **Independent Review:** The coder never reviews its own work.
|
|
185
|
-
- **Verification Dimension:** Independent verification requires dedicated verification capabilities (`min_verification: 3`).
|
|
186
|
-
- **Max Reasoning Opt-in:** `max` effort is locked by default; requires `--allow-max`.
|
|
187
|
-
- **Runaway Loop Protection:** Maximum 1 automated fix cycle before alerting the user.
|
|
188
|
-
- **Context Isolation:** Each agent receives only a self-contained brief on disk (`.adaptive-director/runs/`), preventing context window bloat.
|
|
189
|
-
- **Zero Dependencies:** Runs on vanilla Node.js 18+.
|
|
348
|
+
Delegate relays can add more implementers through `delegate-skills`.
|
|
190
349
|
|
|
191
|
-
|
|
350
|
+
## Skill Prompt Usage
|
|
192
351
|
|
|
193
|
-
|
|
352
|
+
The package also installs a normal agent skill. You can ask an agent directly:
|
|
194
353
|
|
|
195
|
-
|
|
354
|
+
```text
|
|
355
|
+
Use $adaptive-director to implement Stripe checkout in Flutter.
|
|
356
|
+
```
|
|
196
357
|
|
|
197
|
-
|
|
358
|
+
Useful prompt flags:
|
|
198
359
|
|
|
199
360
|
```text
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
Resolve Aliases (e.g. 'astra' → 'gpt-6-astra')
|
|
205
|
-
↓
|
|
206
|
-
Intersect with Registry Capabilities & Phase Requirements
|
|
207
|
-
↓
|
|
208
|
-
Score Compatible Candidates for Current Phase
|
|
209
|
-
↓
|
|
210
|
-
Route to Optimal Candidate (with Graceful Fallback)
|
|
361
|
+
Use $adaptive-director --budget quality to refactor the auth system.
|
|
362
|
+
Use $adaptive-director --delegate to implement the billing retry flow.
|
|
363
|
+
Use $adaptive-director --dry-run to show routing for this task.
|
|
364
|
+
Use $adaptive-director --allow-max for this high-risk migration.
|
|
211
365
|
```
|
|
212
366
|
|
|
213
|
-
|
|
214
|
-
> **Heuristic Calibration Disclaimer:** Capability scores (1–5) in `data/registry.json` represent internal routing heuristics and priors calibrated for phase allocation. They are **not** vendor laboratory benchmarks or absolute leaderboards.
|
|
367
|
+
## Configuration
|
|
215
368
|
|
|
216
|
-
|
|
369
|
+
User config lives at:
|
|
217
370
|
|
|
218
|
-
|
|
371
|
+
```text
|
|
372
|
+
~/.adaptive-director/config.json
|
|
373
|
+
```
|
|
374
|
+
|
|
375
|
+
Example:
|
|
219
376
|
|
|
220
377
|
```json
|
|
221
378
|
{
|
|
222
379
|
"version": 1,
|
|
380
|
+
"execution": "native",
|
|
223
381
|
"defaultBudget": "balanced",
|
|
382
|
+
"allowMax": false,
|
|
383
|
+
"delegateEnabled": false,
|
|
384
|
+
"hosts": {
|
|
385
|
+
"codex": {
|
|
386
|
+
"enabled": true,
|
|
387
|
+
"skillPath": "C:/Users/you/.codex/skills"
|
|
388
|
+
}
|
|
389
|
+
},
|
|
224
390
|
"overrides": {
|
|
225
391
|
"plan": "claude",
|
|
226
|
-
"implement": "codex"
|
|
392
|
+
"implement": "codex",
|
|
393
|
+
"review": "claude"
|
|
227
394
|
}
|
|
228
395
|
}
|
|
229
396
|
```
|
|
230
397
|
|
|
231
|
-
|
|
398
|
+
## Requirements
|
|
399
|
+
|
|
400
|
+
- Node.js 18+
|
|
401
|
+
- Git for workspace mutation detection and touched-file reporting
|
|
402
|
+
- At least one supported coding-agent CLI for real execution
|
|
403
|
+
- Authenticated host CLIs for real model calls
|
|
404
|
+
- No runtime npm dependencies in Adaptive Director itself
|
|
405
|
+
|
|
406
|
+
## Validation Status
|
|
232
407
|
|
|
233
|
-
|
|
408
|
+
Verified locally:
|
|
234
409
|
|
|
235
|
-
|
|
410
|
+
- `npm test`
|
|
411
|
+
- setup and doctor flows
|
|
412
|
+
- routing decisions and persistence
|
|
413
|
+
- `implement.md` review handoff regression
|
|
414
|
+
- mock end-to-end happy path
|
|
415
|
+
- mock critical fix path
|
|
416
|
+
- blocked path after one fix cycle
|
|
417
|
+
- delegate mutation failure -> `needs_recovery`
|
|
418
|
+
- `npm pack --dry-run`
|
|
419
|
+
|
|
420
|
+
Real host validation depends on your local CLI authentication and quotas. Adaptive Director reports those failures plainly instead of claiming success.
|
|
421
|
+
|
|
422
|
+
## Upgrade
|
|
236
423
|
|
|
237
424
|
```bash
|
|
238
425
|
npm install -g adaptive-director-skill@latest
|
|
@@ -240,17 +427,13 @@ adaptive-director install
|
|
|
240
427
|
adaptive-director doctor
|
|
241
428
|
```
|
|
242
429
|
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
## Uninstalling
|
|
430
|
+
## Uninstall
|
|
246
431
|
|
|
247
432
|
```bash
|
|
248
433
|
npm uninstall -g adaptive-director-skill
|
|
249
434
|
```
|
|
250
435
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
---
|
|
436
|
+
`npm uninstall` removes the package, but it does not remove copied skill folders from host skill directories. Delete those manually if needed.
|
|
254
437
|
|
|
255
438
|
## License
|
|
256
439
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adaptive-director-skill",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Adaptive Director Skill — Skill-first adaptive multi-agent orchestration for AI coding agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"skills/"
|
|
20
20
|
],
|
|
21
21
|
"scripts": {
|
|
22
|
-
"test": "node scripts/smoke-test.mjs && node scripts/test-setup-delegate.mjs",
|
|
22
|
+
"test": "node scripts/smoke-test.mjs && node scripts/test-setup-delegate.mjs && node scripts/test-run-flow.mjs",
|
|
23
23
|
"setup": "node scripts/setup.mjs",
|
|
24
24
|
"discover": "node scripts/discover.mjs",
|
|
25
25
|
"doctor": "node scripts/doctor.mjs"
|
package/scripts/cli.mjs
CHANGED
|
@@ -11,6 +11,7 @@ const args = process.argv.slice(2);
|
|
|
11
11
|
const command = args[0] || 'help';
|
|
12
12
|
|
|
13
13
|
const commands = {
|
|
14
|
+
run: 'run.mjs',
|
|
14
15
|
setup: 'setup.mjs',
|
|
15
16
|
install: 'install.mjs',
|
|
16
17
|
refresh: 'refresh.mjs',
|
|
@@ -19,12 +20,13 @@ const commands = {
|
|
|
19
20
|
};
|
|
20
21
|
|
|
21
22
|
if (command === 'help' || command === '--help' || command === '-h') {
|
|
22
|
-
console.log(`Adaptive Director Skill CLI v1.1.
|
|
23
|
+
console.log(`Adaptive Director Skill CLI v1.1.2
|
|
23
24
|
|
|
24
25
|
Usage:
|
|
25
26
|
adaptive-director <command> [options]
|
|
26
27
|
|
|
27
28
|
Commands:
|
|
29
|
+
run - Run a complete Adaptive Director workflow for one coding task
|
|
28
30
|
setup - Initial interactive setup and host/delegate configuration
|
|
29
31
|
Flags: --with-delegate, --no-delegate, --yes
|
|
30
32
|
install - Install/copy the Skill into supported host skill directories
|