create-claude-workspace 1.1.137 → 1.1.138
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/dist/scripts/autonomous.mjs +10 -5
- package/package.json +1 -1
|
@@ -420,16 +420,21 @@ async function main() {
|
|
|
420
420
|
claudeMd = readFileSync(claudeMdPath, 'utf-8');
|
|
421
421
|
else if (existsSync(dotClaudeMdPath))
|
|
422
422
|
claudeMd = readFileSync(dotClaudeMdPath, 'utf-8');
|
|
423
|
+
// Build system prompt: orchestrator instructions + project CLAUDE.md
|
|
424
|
+
// Do NOT use preset: 'claude_code' — it adds built-in agents (general-purpose, Explore, Plan)
|
|
425
|
+
const orchestratorPrompt = agents['orchestrator']?.prompt || '';
|
|
426
|
+
const systemParts = [orchestratorPrompt, claudeMd].filter(Boolean);
|
|
427
|
+
const systemPrompt = systemParts.join('\n\n---\n\n');
|
|
428
|
+
// Only include our agents, not the orchestrator itself (it's the top-level)
|
|
429
|
+
const subAgents = { ...agents };
|
|
430
|
+
delete subAgents['orchestrator'];
|
|
423
431
|
const queryOptions = {
|
|
424
|
-
agents,
|
|
425
|
-
|
|
432
|
+
agents: subAgents,
|
|
433
|
+
systemPrompt: systemPrompt || undefined,
|
|
426
434
|
model: 'claude-opus-4-6',
|
|
427
435
|
maxTurns: opts.maxTurns,
|
|
428
436
|
cwd: opts.projectDir,
|
|
429
437
|
};
|
|
430
|
-
if (claudeMd) {
|
|
431
|
-
queryOptions.systemPrompt = { type: 'preset', preset: 'claude_code', append: claudeMd };
|
|
432
|
-
}
|
|
433
438
|
if (opts.skipPermissions) {
|
|
434
439
|
queryOptions.permissionMode = 'bypassPermissions';
|
|
435
440
|
queryOptions.allowDangerouslySkipPermissions = true;
|