5-phase-workflow 1.9.3 → 1.9.4

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/bin/install.js CHANGED
@@ -423,8 +423,8 @@ This skill was authored for Claude Code. Map these tool references:
423
423
  | Claude Code | Codex Equivalent |
424
424
  |-------------|------------------|
425
425
  | \`AskUserQuestion\` | Ask the user directly in conversation |
426
- | \`Task(subagent_type="Explore")\` | Research the codebase yourself using available tools |
427
- | \`Task(prompt="...")\` | \`spawn_agent(message="...")\` |
426
+ | \`Agent(subagent_type="Explore")\` | Research the codebase yourself using available tools |
427
+ | \`Agent(prompt="...")\` | \`spawn_agent(message="...")\` |
428
428
  | \`Read\` | \`read_file\` |
429
429
  | \`Write\` | \`write_file\` |
430
430
  | \`Edit\` | \`patch\` |
@@ -81,8 +81,8 @@ This skill was authored for Claude Code. Map these tool references:
81
81
  | Claude Code | Codex Equivalent |
82
82
  |-------------|------------------|
83
83
  | \`AskUserQuestion\` | Ask the user directly in conversation |
84
- | \`Task(subagent_type="Explore")\` | Research the codebase yourself using available tools |
85
- | \`Task(prompt="...")\` | \`spawn_agent(message="...")\` |
84
+ | \`Agent(subagent_type="Explore")\` | Research the codebase yourself using available tools |
85
+ | \`Agent(prompt="...")\` | \`spawn_agent(message="...")\` |
86
86
  | \`Read\` | \`read_file\` |
87
87
  | \`Write\` | \`write_file\` |
88
88
  | \`Edit\` | \`patch\` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "5-phase-workflow",
3
- "version": "1.9.3",
3
+ "version": "1.9.4",
4
4
  "description": "A 5-phase feature development workflow for Claude Code",
5
5
  "bin": {
6
6
  "5-phase-workflow": "bin/install.js"
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: 5:address-review-findings
3
3
  description: Applies annotated review findings and/or addresses GitHub PR review comments. Use --github to process PR comments only.
4
- allowed-tools: Bash, Read, Edit, Write, Glob, Grep, AskUserQuestion, Task, Skill, mcp__jetbrains__*
4
+ allowed-tools: Bash, Read, Edit, Write, Glob, Grep, AskUserQuestion, Agent, Skill, mcp__jetbrains__*
5
5
  user-invocable: true
6
6
  model: sonnet
7
7
  context: fork
@@ -138,7 +138,7 @@ gh repo view --json owner,name
138
138
  Spawn a sonnet agent to analyze PR comments:
139
139
 
140
140
  ```
141
- Task tool call:
141
+ Agent tool call:
142
142
  subagent_type: general-purpose
143
143
  model: sonnet
144
144
  description: "Analyze PR review comments"
@@ -272,7 +272,7 @@ Apply from highest line number to lowest within each file to avoid line offset s
272
272
  #### Agent Application (4+ fixes per file)
273
273
 
274
274
  ```
275
- Task tool call:
275
+ Agent tool call:
276
276
  subagent_type: general-purpose
277
277
  model: {haiku for simple | sonnet for complex}
278
278
  description: "Apply fixes to {file-path}"
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: 5:analyze-feature
3
3
  description: Analyze any feature, dataflow, or domain concept in the codebase and generate comprehensive documentation with mermaid diagrams. Use when you need to understand how a feature works end-to-end, trace a dataflow, or document a domain area.
4
- allowed-tools: Read, Write, Glob, Grep, Task, AskUserQuestion
4
+ allowed-tools: Read, Write, Glob, Grep, Agent, AskUserQuestion
5
5
  user-invocable: true
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: 5:discuss-feature
3
3
  description: Discusses and refines an existing feature specification through iterative Q&A. Use after /plan-feature when requirements need clarification or changes. Updates the feature spec based on discussion.
4
- allowed-tools: Read, Write, Glob, Grep, Task, AskUserQuestion
4
+ allowed-tools: Read, Write, Glob, Grep, Agent, AskUserQuestion
5
5
  user-invocable: true
6
6
  model: opus
7
7
  context: inherit
@@ -129,7 +129,7 @@ Based on the user's focus area, explore the codebase if needed:
129
129
  - Check dependencies
130
130
  - Identify ripple effects
131
131
 
132
- Use Task tool with subagent_type=Explore for complex exploration.
132
+ Use Agent tool with subagent_type=Explore for complex exploration.
133
133
 
134
134
  ### Step 5: Interactive Q&A
135
135
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: 5:implement-feature
3
3
  description: Executes an implementation plan by delegating to agents. Phase 3 of the 5-phase workflow.
4
- allowed-tools: Task, Read, Write, Glob, Grep, Bash, TaskCreate, TaskUpdate, TaskList
4
+ allowed-tools: Agent, Read, Write, Glob, Grep, Bash, TaskCreate, TaskUpdate, TaskList
5
5
  user-invocable: true
6
6
  model: opus
7
7
  context: fork
@@ -189,7 +189,7 @@ For steps with multiple independent components, spawn one agent per component in
189
189
  Agent prompt template (adapt per component):
190
190
 
191
191
  ```
192
- Task tool call:
192
+ Agent tool call:
193
193
  subagent_type: general-purpose
194
194
  model: {based on complexity}
195
195
  description: "{Action} {component-name} for {feature-name}"
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: 5:plan-feature
3
3
  description: Plans feature implementation by analyzing requirements, identifying affected modules, and creating a structured feature specification. Use at the start of any new feature to ensure systematic implementation. This is Phase 1 of the 5-phase workflow.
4
- allowed-tools: Read, Write, Task, AskUserQuestion
4
+ allowed-tools: Read, Write, Agent, AskUserQuestion
5
5
  user-invocable: true
6
6
  model: opus
7
7
  ---
@@ -18,7 +18,7 @@ HARD CONSTRAINTS:
18
18
  - Do NOT write code or pseudo-code — describe behavior and data shapes in natural language or tables
19
19
  - Do NOT create implementation plans, file lists, or step-by-step build guides — that is Phase 2's job
20
20
  - Do NOT offer to proceed to the next phase — the user will invoke `/5:plan-implementation` themselves
21
- - Do NOT spawn Task agents with subagent_type other than Explore
21
+ - Do NOT use the Agent tool with subagent_type other than Explore
22
22
  - Do NOT write to any file except .5/.planning-active, .5/features/{name}/codebase-scan.md, and .5/features/{name}/feature.md
23
23
  - Do NOT call EnterPlanMode — the workflow has its own planning process
24
24
  - Do NOT use Bash to create, write, or modify files — this bypasses the plan-guard
@@ -122,7 +122,7 @@ Ask the developer for the feature description using AskUserQuestion:
122
122
 
123
123
  > **ROLE CHECK:** You are a Feature Planner. Your ONLY output is feature.md. If you are tempted to write code or create files, STOP and return to the next question in Step 3.
124
124
 
125
- Spawn a Task with `subagent_type=Explore`:
125
+ Spawn an Agent with `subagent_type=Explore`:
126
126
 
127
127
  ```
128
128
  Analyze the codebase for a feature specification session.
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: 5:plan-implementation
3
3
  description: Creates an implementation plan from a feature spec. Phase 2 of the 5-phase workflow.
4
- allowed-tools: Read, Write, Task, AskUserQuestion
4
+ allowed-tools: Read, Write, Agent, AskUserQuestion
5
5
  user-invocable: true
6
6
  model: opus
7
7
  ---
@@ -144,7 +144,7 @@ Read `.5/features/{feature-name}/codebase-scan.md`. If it exists and is non-empt
144
144
 
145
145
  **If `codebase-scan.md` does NOT exist** (e.g., user skipped Phase 1 or ran an older version), spawn a fresh Explore agent:
146
146
 
147
- Spawn a Task with `subagent_type=Explore`:
147
+ Spawn an Agent with `subagent_type=Explore`:
148
148
 
149
149
  ```
150
150
  Quick codebase scan for implementation planning.
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: 5:quick-implement
3
3
  description: Execute small, focused implementations quickly with state tracking and atomic commits. Skips extensive planning phases and verification agents - use for tasks where you know exactly what to do.
4
- allowed-tools: Read, Write, Edit, Glob, Grep, Bash, Task, AskUserQuestion, Skill, TaskCreate, TaskUpdate, TaskList, mcp__jetbrains__*
4
+ allowed-tools: Read, Write, Edit, Glob, Grep, Bash, Agent, AskUserQuestion, Skill, TaskCreate, TaskUpdate, TaskList, mcp__jetbrains__*
5
5
  user-invocable: true
6
6
  ---
7
7
 
@@ -244,7 +244,7 @@ Determine the model based on the highest complexity in the plan's components:
244
244
  Spawn an agent with inline instructions:
245
245
 
246
246
  ```
247
- Task tool call:
247
+ Agent tool call:
248
248
  subagent_type: general-purpose
249
249
  model: {haiku or sonnet based on complexity above}
250
250
  description: "Execute quick implementation for ${feature_name}"
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: 5:reconfigure
3
3
  description: Lightweight refresh of project documentation, codebase index, and skills without full Q&A. Re-detects codebase changes, regenerates .5/*.md docs, rebuilds .5/index/, updates AGENTS.md, and refreshes all skills.
4
- allowed-tools: Read, Write, Bash, Glob, Grep, Task, AskUserQuestion
4
+ allowed-tools: Read, Write, Bash, Glob, Grep, Agent, AskUserQuestion
5
5
  user-invocable: true
6
6
  context: fork
7
7
  ---
@@ -134,7 +134,7 @@ New skills will be created and stale skills removed based on the user's choices.
134
134
 
135
135
  ### Step 5: Regenerate
136
136
 
137
- Invoke the refresh skills in **refresh mode** via the Task tool:
137
+ Invoke the refresh skills in **refresh mode** via the Agent tool:
138
138
 
139
139
  ```
140
140
  Task prompt 1: "Run configure-docs-index skill in REFRESH MODE.
@@ -163,7 +163,7 @@ Re-analyze the codebase and:
163
163
  6. Remove rule files the user chose to drop"
164
164
  ```
165
165
 
166
- Use `subagent_type: "general-purpose"` for the Task.
166
+ Use `subagent_type: "general-purpose"` for the Agent.
167
167
 
168
168
  ### Step 6: Track
169
169
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: 5:review-code
3
3
  description: Reviews code changes using native agent review or CodeRabbit CLI. Categorizes findings and saves them for /5:address-review-findings.
4
- allowed-tools: Bash, Read, Glob, Grep, AskUserQuestion, Task, mcp__jetbrains__*
4
+ allowed-tools: Bash, Read, Glob, Grep, AskUserQuestion, Agent, mcp__jetbrains__*
5
5
  user-invocable: true
6
6
  model: sonnet
7
7
  context: fork
@@ -62,7 +62,7 @@ Spawn a single agent to execute the review. Do NOT run the review yourself.
62
62
  #### 3A: CodeRabbit Review Agent
63
63
 
64
64
  ```
65
- Task tool call:
65
+ Agent tool call:
66
66
  subagent_type: general-purpose
67
67
  model: sonnet
68
68
  description: "Run CodeRabbit review"
@@ -105,7 +105,7 @@ Task tool call:
105
105
  #### 3B: Native Review Agent
106
106
 
107
107
  ```
108
- Task tool call:
108
+ Agent tool call:
109
109
  subagent_type: general-purpose
110
110
  model: sonnet
111
111
  description: "Run native code review"
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: 5:verify-implementation
3
3
  description: Verifies a feature implementation is complete and working with multi-layer checks. Phase 4 of the 5-phase workflow.
4
- allowed-tools: Read, Glob, Grep, Bash, Write, Task, AskUserQuestion
4
+ allowed-tools: Read, Glob, Grep, Bash, Write, Agent, AskUserQuestion
5
5
  user-invocable: true
6
6
  model: sonnet
7
7
  context: fork
@@ -105,7 +105,7 @@ Record: SUCCESS / FAILED with details (which tests failed, error messages).
105
105
  Spawn a sonnet agent to cross-reference the implementation against the feature spec:
106
106
 
107
107
  ```
108
- Task tool call:
108
+ Agent tool call:
109
109
  subagent_type: general-purpose
110
110
  model: sonnet
111
111
  description: "Verify feature completeness for {feature-name}"
@@ -2,7 +2,7 @@
2
2
 
3
3
  // Plan Guard - PreToolUse Hook
4
4
  // Prevents LLM breakout from planning phases by blocking:
5
- // - Task agents other than Explore (when not in implementation mode)
5
+ // - Agent/Task agents other than Explore (when not in implementation mode)
6
6
  // - Write/Edit operations outside .5/ (when not in implementation mode)
7
7
  //
8
8
  // Planning mode is detected per-feature by checking if that specific feature's
@@ -20,8 +20,8 @@ process.stdin.on('end', () => {
20
20
  const data = JSON.parse(input);
21
21
  const toolName = data.tool_name || '';
22
22
 
23
- // Short-circuit: only check Task, Write, Edit, EnterPlanMode, and Bash tools
24
- if (toolName !== 'Task' && toolName !== 'Write' && toolName !== 'Edit' && toolName !== 'EnterPlanMode' && toolName !== 'Bash') {
23
+ // Short-circuit: only check Agent, Task, Write, Edit, EnterPlanMode, and Bash tools
24
+ if (toolName !== 'Agent' && toolName !== 'Task' && toolName !== 'Write' && toolName !== 'Edit' && toolName !== 'EnterPlanMode' && toolName !== 'Bash') {
25
25
  process.exit(0);
26
26
  }
27
27
 
@@ -57,7 +57,7 @@ process.stdin.on('end', () => {
57
57
  process.exit(2);
58
58
  }
59
59
 
60
- if (toolName === 'Task') {
60
+ if (toolName === 'Agent' || toolName === 'Task') {
61
61
  const agentType = toolInput.subagent_type || '';
62
62
  if (agentType && agentType !== 'Explore') {
63
63
  const blockCount = incrementBlockCount(workspaceDir);
@@ -189,7 +189,7 @@ function getTargetFeature(toolName, toolInput, workspaceDir) {
189
189
  }
190
190
  }
191
191
 
192
- if (toolName === 'Task') {
192
+ if (toolName === 'Agent' || toolName === 'Task') {
193
193
  // Check the task prompt for feature name references
194
194
  const prompt = toolInput.prompt || '';
195
195
  const desc = toolInput.description || '';
package/src/settings.json CHANGED
@@ -28,7 +28,7 @@
28
28
  ],
29
29
  "PreToolUse": [
30
30
  {
31
- "matcher": "Task",
31
+ "matcher": "Task|Agent",
32
32
  "hooks": [
33
33
  {
34
34
  "type": "command",
@@ -38,7 +38,7 @@
38
38
  ]
39
39
  },
40
40
  {
41
- "matcher": "Task|Write|Edit|EnterPlanMode|Bash",
41
+ "matcher": "Task|Agent|Write|Edit|EnterPlanMode|Bash",
42
42
  "hooks": [
43
43
  {
44
44
  "type": "command",