claude-code-templates 1.24.11 → 1.24.12

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.
@@ -232,14 +232,26 @@ Requirements:
232
232
  - Do NOT include any explanations, ONLY code blocks with filenames`
233
233
  : config.prompt;
234
234
 
235
+ // Load agent content if agents were installed
236
+ let agentSystemPrompt = '';
237
+ if (agents.length > 0) {
238
+ const agentPath = path.join(process.cwd(), '.claude', 'agents', `${agents[0].replace(/\//g, '-')}.md`);
239
+ if (fs.existsSync(agentPath)) {
240
+ agentSystemPrompt = fs.readFileSync(agentPath, 'utf-8');
241
+ log(`Loaded agent from: ${agentPath}`);
242
+ } else {
243
+ log(`Agent file not found: ${agentPath}`, 'warning');
244
+ }
245
+ }
246
+
235
247
  // Configure Claude Agent SDK options
236
248
  const options: ClaudeAgentOptions = {
237
249
  model: 'claude-sonnet-4-5',
238
250
  apiKey: config.anthropicApiKey,
239
- // Use Claude Code preset to get proper coding behavior
240
- systemPrompt: { type: 'preset', preset: 'claude_code' },
241
- // Load project settings to use agents and components
242
- settingSources: ['project'],
251
+ // Use custom system prompt with agent content if available
252
+ systemPrompt: agentSystemPrompt
253
+ ? { type: 'text', text: agentSystemPrompt }
254
+ : { type: 'preset', preset: 'claude_code' },
243
255
  };
244
256
 
245
257
  // Collect the full response
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-templates",
3
- "version": "1.24.11",
3
+ "version": "1.24.12",
4
4
  "description": "CLI tool to setup Claude Code configurations with framework-specific commands, automation hooks and MCP Servers for your projects",
5
5
  "main": "src/index.js",
6
6
  "bin": {