cc-dev-template 0.1.28 → 0.1.29

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-dev-template",
3
- "version": "0.1.28",
3
+ "version": "0.1.29",
4
4
  "description": "Structured AI-assisted development framework for Claude Code",
5
5
  "bin": {
6
6
  "cc-dev-template": "./bin/install.js"
@@ -13,18 +13,21 @@ You are an ORCHESTRATOR, not an implementer. Your main thread is for coordinatio
13
13
 
14
14
  Never make code changes without a plan. Follow this sequence:
15
15
 
16
- 1. **EXPLORE** - Use Task (haiku) to understand current state: file search, code patterns, dependencies
16
+ 1. **EXPLORE** - Use Task sub-agents to understand current state: file search, code patterns, dependencies
17
17
  2. **PLAN** - Use Task with subagent_type: "Plan" to design the change based on current state
18
- 3. **EXECUTE** - Use Task (opus) to implement the approved plan
18
+ 3. **EXECUTE** - Use Task sub-agents to implement the approved plan
19
19
 
20
20
  ## DELEGATE AGGRESSIVELY
21
21
 
22
- - Use Task with model: haiku for read-only exploration
23
- - Use Task with model: opus for ALL reasoning and implementation
22
+ - Use Task sub-agents for ALL exploration and implementation work
24
23
  - Use Task with subagent_type: "Plan" before any non-trivial changes
25
24
  - Launch multiple agents in parallel when tasks are independent
26
25
  - The only tools you use directly: Task, TodoWrite, AskUserQuestion
27
26
 
27
+ ## SPECIALIZED AGENTS
28
+
29
+ **execution-agent is ONLY for the /prime orchestration skill workflow.** It expects plan.yaml context and specific execution semantics. For general task delegation, use generic Task sub-agents without subagent_type.
30
+
28
31
  ## DISPATCH WITH CLARITY
29
32
 
30
33
  Every sub-agent prompt must include:
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * plan-agent-context.js - PreToolUse hook for Plan sub-agent
3
+ * plan-agent-context.js - PreToolUse hook for Task sub-agents
4
4
  *
5
- * Intercepts Task calls with subagent_type: "Plan" and injects:
6
- * 1. All project ADRs (since sub-agents can't spawn other sub-agents)
7
- * 2. Planning guidance (web search for libraries, remove ambiguities)
5
+ * Intercepts ALL Task calls and:
6
+ * 1. Forces model: "opus" on every Task call
7
+ * 2. For Plan agents (subagent_type: "Plan"), also injects ADRs and planning guidance
8
8
  */
9
9
 
10
10
  const fs = require('fs');
@@ -29,27 +29,23 @@ process.stdin.on('end', () => {
29
29
  function processHook(hookInput) {
30
30
  const toolInput = hookInput.tool_input || {};
31
31
 
32
- // Only intercept Plan agent calls
33
- if (toolInput.subagent_type !== 'Plan') {
34
- return { decision: "allow" };
35
- }
36
-
37
- // Collect ADRs
38
- const adrs = collectADRs();
39
-
40
- // Build the planning guidance
41
- const planningGuidance = buildPlanningGuidance(adrs);
32
+ // Base override: force opus model on ALL Task calls
33
+ const updatedInput = {
34
+ ...toolInput,
35
+ model: "opus"
36
+ };
42
37
 
43
- // Inject into the prompt
44
- const originalPrompt = toolInput.prompt || '';
45
- const augmentedPrompt = `${planningGuidance}\n\n---\n\nORIGINAL TASK:\n${originalPrompt}`;
38
+ // For Plan agent calls, also inject ADRs and planning guidance
39
+ if (toolInput.subagent_type === 'Plan') {
40
+ const adrs = collectADRs();
41
+ const planningGuidance = buildPlanningGuidance(adrs);
42
+ const originalPrompt = toolInput.prompt || '';
43
+ updatedInput.prompt = `${planningGuidance}\n\n---\n\nORIGINAL TASK:\n${originalPrompt}`;
44
+ }
46
45
 
47
46
  return {
48
47
  decision: "allow",
49
- updatedInput: {
50
- ...toolInput,
51
- prompt: augmentedPrompt
52
- }
48
+ updatedInput
53
49
  };
54
50
  }
55
51