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.
@@ -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
- agent: 'orchestrator',
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-claude-workspace",
3
- "version": "1.1.137",
3
+ "version": "1.1.138",
4
4
  "author": "",
5
5
  "repository": {
6
6
  "type": "git",