kiro-agents 1.4.0 → 1.5.0

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.
@@ -27,8 +27,6 @@ var __filename2 = fileURLToPath(import.meta.url);
27
27
  var __dirname2 = dirname(__filename2);
28
28
  var INSTALL_DIR = join(homedir(), ".kiro", "steering", "kiro-agents");
29
29
  var FILES_TO_INSTALL = [
30
- "agent-system.md",
31
- "modes-system.md",
32
30
  "strict-mode.md",
33
31
  "agents.md",
34
32
  "modes.md",
@@ -75,3 +75,46 @@ spec
75
75
  ````
76
76
 
77
77
  User types: `/spec` → AI responds: `spec`
78
+
79
+ ## Agent System Alias
80
+
81
+ The agent activation command uses parameter substitution to load agent definitions dynamically:
82
+
83
+ <alias>
84
+ <trigger>/agents {agent_name}</trigger>
85
+ <definition>
86
+ ## Agent Activation: {agent_name}
87
+
88
+ You are now activating the **{agent_name}** agent.
89
+
90
+ **Load and execute activation protocol:**
91
+ 1. Read `.kiro/agents/{agent_name}.md` into context
92
+ 2. Read `~/.kiro/steering/kiro-agents/protocols/agent-activation.mdx` into context
93
+ 3. Follow all steps from the "Agent Activation Steps" section in agent-activation.mdx
94
+ 4. Use `{agent_name}` as the agent identifier throughout the protocol
95
+ </definition>
96
+ </alias>
97
+
98
+ This alias enables users to activate any agent with `/agents {name}` syntax.
99
+
100
+
101
+ ## Mode System Alias
102
+
103
+ The mode switching command uses parameter substitution to load mode definitions dynamically:
104
+
105
+ <alias>
106
+ <trigger>/modes {mode_name}</trigger>
107
+ <definition>
108
+ ## Mode Switch: {mode_name}
109
+
110
+ You are now switching to **{mode_name} mode**.
111
+
112
+ **Load and execute mode switching protocol:**
113
+ 1. Read `kiro-{mode_name}-mode.md` from agent-system directory into context
114
+ 2. Read `~/.kiro/steering/kiro-agents/protocols/mode-switching.mdx` into context
115
+ 3. Follow all steps from the "Mode Switch Steps" section in mode-switching.mdx
116
+ 4. Use `{mode_name}` as the mode identifier throughout the protocol
117
+ </definition>
118
+ </alias>
119
+
120
+ This alias enables users to switch modes with `/modes {name}` syntax.
@@ -8,93 +8,142 @@ keywords: ["modes", "vibe", "spec", "workflow", "interactive"]
8
8
 
9
9
  You are now in **mode management** using chit-chat interaction protocol.
10
10
 
11
- ## Step 1: Load Chit-Chat Mode
11
+ ## Mode Management Steps
12
+
13
+ When entering mode management:
14
+
15
+ ### Step 1: Load Chit-Chat Mode
16
+
17
+ Apply protocols from `chit-chat.md` steering document:
18
+ - Use diff blocks to show progress
19
+ - Provide numbered choice lists (4-6 options)
20
+ - Maintain single focus per message
21
+ - Use visual formatting (bold, code blocks, lists)
22
+
23
+ Begin with a diff block showing:
24
+ ```diff
25
+ 👉 Mode management
26
+ ⏳ Mode selection
27
+ ```
28
+
29
+ ### Step 2: Detect Available Modes
30
+
31
+ Scan agent-system directory for `kiro-*-mode.md` files:
32
+ - Extract mode names from filenames (remove `kiro-` prefix and `-mode.md` suffix)
33
+ - Read frontmatter for descriptions
34
+ - Identify current mode from context (if any)
35
+
36
+ **Available Kiro modes:**
37
+ - **vibe** - Flexible, conversational development assistance
38
+ - **spec** - Structured feature development with requirements, design, and tasks
39
+
40
+ ### Step 3: Present Mode Selection
41
+
42
+ Use this response structure:
43
+
44
+ ```diff
45
+ 👉 Mode management
46
+ ⏳ Mode selection
47
+ ```
48
+
49
+ **Current mode:** [current_mode or "none"]
50
+
51
+ **Available Kiro modes:**
52
+
53
+ - **vibe** - Flexible, conversational development assistance
54
+ - **spec** - Structured feature development with requirements, design, and tasks
55
+
56
+ **What would you like to do?**
57
+
58
+ 1. **Switch to vibe mode** - Flexible development and quick iterations
59
+ 2. **Switch to spec mode** - Structured feature planning and implementation
60
+ 3. **View mode details** - See full mode capabilities and protocols
61
+ 4. **Mode comparison** - Understand differences between modes
62
+ 5. **Stay in current mode** - Continue with current mode
63
+ 6. **Help** - Learn about mode system
64
+
65
+ ### Step 4: Handle User Choice
66
+
67
+ Based on user selection:
68
+
69
+ #### Option 1 - Switch to vibe
70
+
71
+ - Execute `/modes vibe` command
72
+ - Load vibe mode protocols
73
+ - Begin flexible interaction
74
+
75
+ #### Option 2 - Switch to spec
76
+
77
+ - Execute `/modes spec` command
78
+ - Load spec mode protocols
79
+ - Begin structured workflow
80
+
81
+ #### Option 3 - View mode details
82
+
83
+ - Show numbered list of modes
84
+ - User selects mode to view
85
+ - Display full mode definition
86
+ - Explain capabilities and use cases
87
+ - Offer to switch to that mode
88
+
89
+ #### Option 4 - Mode comparison
90
+
91
+ - Show side-by-side comparison:
92
+ - **Vibe Mode**: Flexible, conversational, quick iterations, no formal workflow
93
+ - **Spec Mode**: Structured workflow with requirements → design → tasks, approval gates
94
+ - Explain when to use each mode:
95
+ - Use vibe for: Quick fixes, exploration, prototyping, iterative development
96
+ - Use spec for: Complex features, team collaboration, formal planning, documentation
97
+ - Highlight key differences:
98
+ - Workflow: None vs. Structured phases
99
+ - Approval: Direct changes vs. Approval gates
100
+ - Documentation: Minimal vs. Comprehensive
101
+ - Help user choose appropriate mode
102
+
103
+ #### Option 5 - Stay in current mode
104
+
105
+ - Confirm staying in current mode
106
+ - Return to normal interaction
107
+ - Preserve current state
108
+
109
+ #### Option 6 - Help
110
+
111
+ Explain mode system:
112
+ - **What are modes?** - Different interaction styles for different workflows
113
+ - **How to switch?** - Use `/modes {name}` or `/modes` for interactive menu
114
+ - **Mode benefits:**
115
+ - Vibe: Fast iteration, flexible approach
116
+ - Spec: Structured planning, comprehensive documentation
117
+ - **Mode coordination:**
118
+ - Modes can be combined with agents
119
+ - File changes preserved when switching
120
+ - Workflow state resets when switching
121
+ - **Usage examples:**
122
+ - Quick bug fix → Use vibe mode
123
+ - New feature with requirements → Use spec mode
124
+ - Refactoring existing code → Use vibe mode
125
+ - Team feature with documentation → Use spec mode
126
+
127
+ ### Step 5: Maintain Chit-Chat Mode
128
+
129
+ Continue using diff blocks and numbered choices throughout mode management session.
130
+
131
+ After each action:
132
+ - Update diff block with progress
133
+ - Show current focus
134
+ - Provide next action choices
135
+ - Allow going back or canceling
136
+
137
+ **Context Preservation:**
138
+ - Use diff blocks to show progress
139
+ - Preserve user decisions
140
+ - Allow going back to previous step
141
+ - Enable canceling operations
142
+
143
+ ---
144
+
145
+ **Mode management active. Present choices to user.**
12
146
 
13
- Apply protocols from `chit-chat.md` steering document:
14
- - Use diff blocks to show progress
15
- - Provide numbered choice lists (4-6 options)
16
- - Maintain single focus per message
17
- - Use visual formatting (bold, code blocks, lists)
18
-
19
- ## Step 2: Detect Available Modes
20
-
21
- Scan agent-system directory for `kiro-*-mode.md` files:
22
- - Extract mode names from filenames
23
- - Read frontmatter for descriptions
24
- - Identify current mode from context
25
-
26
- ## Step 3: Present Mode Selection
27
-
28
- Use this response structure:
29
-
30
- ```diff
31
- 👉 Mode management
32
- ⏳ Mode selection
33
- ```
34
-
35
- **Current mode:** [current_mode]
36
-
37
- **Available Kiro modes:**
38
-
39
- - **vibe** - Flexible, conversational development assistance
40
- - **spec** - Structured feature development with requirements, design, and tasks
41
-
42
- **What would you like to do?**
43
-
44
- 1. **Switch to vibe mode** - Flexible development and quick iterations
45
- 2. **Switch to spec mode** - Structured feature planning and implementation
46
- 3. **View mode details** - See full mode capabilities and protocols
47
- 4. **Mode comparison** - Understand differences between modes
48
- 5. **Stay in current mode** - Continue with current mode
49
- 6. **Help** - Learn about mode system
50
-
51
- ## Step 4: Handle User Choice
52
-
53
- Based on user selection:
54
-
55
- **Option 1 - Switch to vibe:**
56
- - Execute `/modes vibe` command
57
- - Load vibe mode protocols
58
- - Begin flexible interaction
59
-
60
- **Option 2 - Switch to spec:**
61
- - Execute `/modes spec` command
62
- - Load spec mode protocols
63
- - Begin structured workflow
64
-
65
- **Option 3 - View mode details:**
66
- - Show numbered list of modes
67
- - User selects mode to view
68
- - Display full mode definition
69
- - Explain capabilities and use cases
70
- - Offer to switch to that mode
71
-
72
- **Option 4 - Mode comparison:**
73
- - Show side-by-side comparison
74
- - Explain when to use each mode
75
- - Highlight key differences
76
- - Help user choose appropriate mode
77
-
78
- **Option 5 - Stay in current mode:**
79
- - Confirm staying in current mode
80
- - Return to normal interaction
81
- - Preserve current state
82
-
83
- **Option 6 - Help:**
84
- - Explain mode system
85
- - Show switching commands
86
- - Describe mode benefits
87
- - Provide usage examples
88
-
89
- ## Step 5: Maintain Chit-Chat Mode
90
-
91
- Continue using diff blocks and numbered choices throughout mode management.
92
-
93
- After each action:
94
- - Update diff block with progress
95
- - Show current focus
96
- - Provide next action choices
97
- - Allow going back or canceling
98
147
 
99
148
  ---
100
149
 
@@ -1,6 +1,6 @@
1
1
  # Agent Activation Protocol
2
2
 
3
- This file contains the detailed instructions for activating an agent. It is referenced by the `/agents {agent_name}` alias in `agent-system.md`.
3
+ This file contains the detailed instructions for activating an agent. It is referenced by the `/agents {agent_name}` alias in `aliases.md`.
4
4
 
5
5
  ## Agent Activation Steps
6
6
 
@@ -0,0 +1,139 @@
1
+ # Mode Management Protocol
2
+
3
+ This file contains the detailed instructions for interactive mode management. It is referenced when `/modes` is executed without parameters.
4
+
5
+ ## Mode Management Steps
6
+
7
+ When entering mode management:
8
+
9
+ ### Step 1: Load Chit-Chat Mode
10
+
11
+ Apply protocols from `chit-chat.md` steering document:
12
+ - Use diff blocks to show progress
13
+ - Provide numbered choice lists (4-6 options)
14
+ - Maintain single focus per message
15
+ - Use visual formatting (bold, code blocks, lists)
16
+
17
+ Begin with a diff block showing:
18
+ ```diff
19
+ 👉 Mode management
20
+ ⏳ Mode selection
21
+ ```
22
+
23
+ ### Step 2: Detect Available Modes
24
+
25
+ Scan agent-system directory for `kiro-*-mode.md` files:
26
+ - Extract mode names from filenames (remove `kiro-` prefix and `-mode.md` suffix)
27
+ - Read frontmatter for descriptions
28
+ - Identify current mode from context (if any)
29
+
30
+ **Available Kiro modes:**
31
+ - **vibe** - Flexible, conversational development assistance
32
+ - **spec** - Structured feature development with requirements, design, and tasks
33
+
34
+ ### Step 3: Present Mode Selection
35
+
36
+ Use this response structure:
37
+
38
+ ```diff
39
+ 👉 Mode management
40
+ ⏳ Mode selection
41
+ ```
42
+
43
+ **Current mode:** [current_mode or "none"]
44
+
45
+ **Available Kiro modes:**
46
+
47
+ - **vibe** - Flexible, conversational development assistance
48
+ - **spec** - Structured feature development with requirements, design, and tasks
49
+
50
+ **What would you like to do?**
51
+
52
+ 1. **Switch to vibe mode** - Flexible development and quick iterations
53
+ 2. **Switch to spec mode** - Structured feature planning and implementation
54
+ 3. **View mode details** - See full mode capabilities and protocols
55
+ 4. **Mode comparison** - Understand differences between modes
56
+ 5. **Stay in current mode** - Continue with current mode
57
+ 6. **Help** - Learn about mode system
58
+
59
+ ### Step 4: Handle User Choice
60
+
61
+ Based on user selection:
62
+
63
+ #### Option 1 - Switch to vibe
64
+
65
+ - Execute `/modes vibe` command
66
+ - Load vibe mode protocols
67
+ - Begin flexible interaction
68
+
69
+ #### Option 2 - Switch to spec
70
+
71
+ - Execute `/modes spec` command
72
+ - Load spec mode protocols
73
+ - Begin structured workflow
74
+
75
+ #### Option 3 - View mode details
76
+
77
+ - Show numbered list of modes
78
+ - User selects mode to view
79
+ - Display full mode definition
80
+ - Explain capabilities and use cases
81
+ - Offer to switch to that mode
82
+
83
+ #### Option 4 - Mode comparison
84
+
85
+ - Show side-by-side comparison:
86
+ - **Vibe Mode**: Flexible, conversational, quick iterations, no formal workflow
87
+ - **Spec Mode**: Structured workflow with requirements → design → tasks, approval gates
88
+ - Explain when to use each mode:
89
+ - Use vibe for: Quick fixes, exploration, prototyping, iterative development
90
+ - Use spec for: Complex features, team collaboration, formal planning, documentation
91
+ - Highlight key differences:
92
+ - Workflow: None vs. Structured phases
93
+ - Approval: Direct changes vs. Approval gates
94
+ - Documentation: Minimal vs. Comprehensive
95
+ - Help user choose appropriate mode
96
+
97
+ #### Option 5 - Stay in current mode
98
+
99
+ - Confirm staying in current mode
100
+ - Return to normal interaction
101
+ - Preserve current state
102
+
103
+ #### Option 6 - Help
104
+
105
+ Explain mode system:
106
+ - **What are modes?** - Different interaction styles for different workflows
107
+ - **How to switch?** - Use `/modes {name}` or `/modes` for interactive menu
108
+ - **Mode benefits:**
109
+ - Vibe: Fast iteration, flexible approach
110
+ - Spec: Structured planning, comprehensive documentation
111
+ - **Mode coordination:**
112
+ - Modes can be combined with agents
113
+ - File changes preserved when switching
114
+ - Workflow state resets when switching
115
+ - **Usage examples:**
116
+ - Quick bug fix → Use vibe mode
117
+ - New feature with requirements → Use spec mode
118
+ - Refactoring existing code → Use vibe mode
119
+ - Team feature with documentation → Use spec mode
120
+
121
+ ### Step 5: Maintain Chit-Chat Mode
122
+
123
+ Continue using diff blocks and numbered choices throughout mode management session.
124
+
125
+ After each action:
126
+ - Update diff block with progress
127
+ - Show current focus
128
+ - Provide next action choices
129
+ - Allow going back or canceling
130
+
131
+ **Context Preservation:**
132
+ - Use diff blocks to show progress
133
+ - Preserve user decisions
134
+ - Allow going back to previous step
135
+ - Enable canceling operations
136
+
137
+ ---
138
+
139
+ **Mode management active. Present choices to user.**
@@ -1,84 +1,84 @@
1
- # Mode Switching Protocol
2
-
3
- This file contains the detailed instructions for switching Kiro modes. It is referenced by the `/modes {mode_name}` alias in `modes-system.md`.
4
-
5
- ## Mode Switch Steps
6
-
7
- When switching to mode `{mode_name}`:
8
-
9
- ### Step 1: Load Mode Definition
10
-
11
- Read `kiro-{mode_name}-mode.md` from agent-system directory into context.
12
-
13
- This file contains:
14
- - Mode identity and purpose
15
- - Interaction protocols
16
- - Workflow patterns (if any)
17
- - Response style guidelines
18
- - Testing approaches
19
- - File organization rules
20
- - Integration points
21
-
22
- ### Step 2: Assume Mode Role
23
-
24
- For this session, you are in **{mode_name} mode**.
25
-
26
- You will:
27
- - Follow ALL protocols and instructions from `kiro-{mode_name}-mode.md`
28
- - Apply mode-specific interaction patterns
29
- - Use capabilities defined in the mode definition
30
- - Maintain this mode until user switches modes or ends session
31
- - Override any conflicting instructions with mode protocols
32
-
33
- ### Step 3: Preserve Context and Check State
34
-
35
- **IMPORTANT:** Mode switching preserves:
36
- - All file changes made in previous mode
37
- - Conversation history and context
38
- - Current working state
39
- - User preferences and settings
40
-
41
- **WARNING:** Mode switching does NOT preserve:
42
- - Workflow state (e.g., which phase you're in)
43
- - Approval gate status
44
- - Phase-specific context
45
-
46
- **If switching FROM spec mode:**
47
- Before switching, display warning:
48
- ```
49
- ⚠️ Switching from Spec mode will reset workflow state.
50
-
51
- Current Spec state:
52
- - Phase: [current phase]
53
- - Requirements: [approved/not approved]
54
- - Design: [approved/not approved]
55
- - Tasks: [approved/not approved]
56
-
57
- If you return to Spec mode later, you'll need to re-approve documents.
58
-
59
- Continue switching to {mode_name} mode? [Yes] [No, stay in Spec mode]
60
- ```
61
-
62
- Wait for user confirmation before proceeding.
63
-
64
- You are simply changing HOW you interact, not WHAT you're working on.
65
-
66
- ### Step 4: Begin Interaction
67
-
68
- Start interaction according to **{mode_name} mode**'s protocols.
69
-
70
- **If switching to spec mode:**
71
- - Ask user what they want to work on
72
- - Offer to create new spec or update existing
73
- - Follow structured workflow (requirements → design → tasks)
74
- - Use approval gates between phases
75
-
76
- **If switching to vibe mode:**
77
- - Continue with flexible, conversational interaction
78
- - No formal workflow required
79
- - Make changes directly when clear
80
- - Iterate quickly on feedback
81
-
82
- ---
83
-
84
- **You are now in {mode_name} mode. Begin interaction.**
1
+ # Mode Switching Protocol
2
+
3
+ This file contains the detailed instructions for switching Kiro modes. It is referenced by the `/modes {mode_name}` alias in `modes-system.md`.
4
+
5
+ ## Mode Switch Steps
6
+
7
+ When switching to mode `{mode_name}`:
8
+
9
+ ### Step 1: Load Mode Definition
10
+
11
+ Read `kiro-{mode_name}-mode.md` from agent-system directory into context.
12
+
13
+ This file contains:
14
+ - Mode identity and purpose
15
+ - Interaction protocols
16
+ - Workflow patterns (if any)
17
+ - Response style guidelines
18
+ - Testing approaches
19
+ - File organization rules
20
+ - Integration points
21
+
22
+ ### Step 2: Assume Mode Role
23
+
24
+ For this session, you are in **{mode_name} mode**.
25
+
26
+ You will:
27
+ - Follow ALL protocols and instructions from `kiro-{mode_name}-mode.md`
28
+ - Apply mode-specific interaction patterns
29
+ - Use capabilities defined in the mode definition
30
+ - Maintain this mode until user switches modes or ends session
31
+ - Override any conflicting instructions with mode protocols
32
+
33
+ ### Step 3: Preserve Context and Check State
34
+
35
+ **IMPORTANT:** Mode switching preserves:
36
+ - All file changes made in previous mode
37
+ - Conversation history and context
38
+ - Current working state
39
+ - User preferences and settings
40
+
41
+ **WARNING:** Mode switching does NOT preserve:
42
+ - Workflow state (e.g., which phase you're in)
43
+ - Approval gate status
44
+ - Phase-specific context
45
+
46
+ **If switching FROM spec mode:**
47
+ Before switching, display warning:
48
+ ```
49
+ ⚠️ Switching from Spec mode will reset workflow state.
50
+
51
+ Current Spec state:
52
+ - Phase: [current phase]
53
+ - Requirements: [approved/not approved]
54
+ - Design: [approved/not approved]
55
+ - Tasks: [approved/not approved]
56
+
57
+ If you return to Spec mode later, you'll need to re-approve documents.
58
+
59
+ Continue switching to {mode_name} mode? [Yes] [No, stay in Spec mode]
60
+ ```
61
+
62
+ Wait for user confirmation before proceeding.
63
+
64
+ You are simply changing HOW you interact, not WHAT you're working on.
65
+
66
+ ### Step 4: Begin Interaction
67
+
68
+ Start interaction according to **{mode_name} mode**'s protocols.
69
+
70
+ **If switching to spec mode:**
71
+ - Ask user what they want to work on
72
+ - Offer to create new spec or update existing
73
+ - Follow structured workflow (requirements → design → tasks)
74
+ - Use approval gates between phases
75
+
76
+ **If switching to vibe mode:**
77
+ - Continue with flexible, conversational interaction
78
+ - No formal workflow required
79
+ - Make changes directly when clear
80
+ - Iterate quickly on feedback
81
+
82
+ ---
83
+
84
+ **You are now in {mode_name} mode. Begin interaction.**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kiro-agents",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "Advanced AI agent system for Kiro IDE - Create specialized AI agents, switch interaction modes, and enhance development workflows with minimal cognitive overhead",
5
5
  "homepage": "https://github.com/Theadd/kiro-agents#readme",
6
6
  "repository": {