kiro-agents 1.4.0 → 1.6.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.
- package/README.md +10 -0
- package/build/npm/bin/cli.js +0 -2
- package/build/npm/dist/agents.md +22 -6
- package/build/npm/dist/aliases.md +42 -0
- package/build/npm/dist/interactions/interaction-styles.md +2 -2
- package/build/npm/dist/modes.md +135 -86
- package/build/npm/dist/protocols/agent-activation.mdx +1 -1
- package/build/npm/dist/protocols/mode-management.mdx +139 -0
- package/build/npm/dist/protocols/mode-switching.mdx +84 -84
- package/package.json +2 -2
- package/build/npm/dist/agent-system.md +0 -111
- package/build/npm/dist/modes-system.md +0 -98
package/README.md
CHANGED
|
@@ -93,3 +93,13 @@ Traditional AI assistants overwhelm you with context and options. kiro-agents:
|
|
|
93
93
|
## License
|
|
94
94
|
|
|
95
95
|
MIT
|
|
96
|
+
|
|
97
|
+
## Contributing
|
|
98
|
+
|
|
99
|
+
We welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
|
|
100
|
+
|
|
101
|
+
**Important**: Do not modify files in `power/` directory. This is auto-generated during release. See contributing guide for details.
|
|
102
|
+
|
|
103
|
+
## License
|
|
104
|
+
|
|
105
|
+
MIT
|
package/build/npm/bin/cli.js
CHANGED
|
@@ -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",
|
package/build/npm/dist/agents.md
CHANGED
|
@@ -37,7 +37,7 @@ Begin with a diff block showing:
|
|
|
37
37
|
Execute `listDirectory` on `.kiro/agents/`:
|
|
38
38
|
|
|
39
39
|
**If directory doesn't exist OR directory is empty:**
|
|
40
|
-
1. **Read
|
|
40
|
+
1. **Read `~/.kiro/steering/kiro-agents/protocols/agent-creation.mdx` into context** - Load agent creation protocol
|
|
41
41
|
2. Create `.kiro/agents/kiro-master.md` agent automatically using the description from "Initial Agent" section
|
|
42
42
|
3. Follow the agent definition structure from agent-creation.mdx protocol
|
|
43
43
|
4. Show diff block indicating setup completion
|
|
@@ -89,7 +89,7 @@ Based on user selection:
|
|
|
89
89
|
|
|
90
90
|
#### Option 2 - Create New Agent
|
|
91
91
|
|
|
92
|
-
- **Read
|
|
92
|
+
- **Read `~/.kiro/steering/kiro-agents/protocols/agent-creation.mdx` into context** - Load agent creation protocol
|
|
93
93
|
- Follow all steps from the "Agent Creation Steps" section in agent-creation.mdx
|
|
94
94
|
- Start agent creation workflow with interactive wizard
|
|
95
95
|
- Ask for agent type (code-focused, documentation, testing, etc.)
|
|
@@ -100,7 +100,7 @@ Based on user selection:
|
|
|
100
100
|
|
|
101
101
|
#### Option 3 - Manage Existing Agent
|
|
102
102
|
|
|
103
|
-
- **Read
|
|
103
|
+
- **Read `~/.kiro/steering/kiro-agents/protocols/agent-creation.mdx` into context** - Load agent structure reference
|
|
104
104
|
- Show numbered list of available agents
|
|
105
105
|
- User selects agent to manage
|
|
106
106
|
- Offer management options:
|
|
@@ -133,7 +133,11 @@ AGENT COMMANDS
|
|
|
133
133
|
/agents {name} Activate specific agent
|
|
134
134
|
/agents Interactive agent management
|
|
135
135
|
|
|
136
|
-
|
|
136
|
+
MODE COMMANDS (see modes-system.md)
|
|
137
|
+
/modes {name} Switch Kiro mode (vibe/spec)
|
|
138
|
+
/modes Interactive mode management
|
|
139
|
+
/strict {state} Control strict mode (on/off)
|
|
140
|
+
/strict Interactive strict mode control
|
|
137
141
|
|
|
138
142
|
Note: Commands are defined in steering documents.
|
|
139
143
|
New commands can be added via Instruction Alias pattern.
|
|
@@ -151,7 +155,7 @@ Explain agent system:
|
|
|
151
155
|
#### Option 7 - Exit
|
|
152
156
|
|
|
153
157
|
- Confirm exit from agent management mode
|
|
154
|
-
- Return to normal
|
|
158
|
+
- Return to normal interaction
|
|
155
159
|
- Preserve any changes made
|
|
156
160
|
|
|
157
161
|
### Step 5: Maintain Chit-Chat Mode
|
|
@@ -185,4 +189,16 @@ This description is used when creating `.kiro/agents/kiro-master.md` during auto
|
|
|
185
189
|
|
|
186
190
|
---
|
|
187
191
|
|
|
188
|
-
**
|
|
192
|
+
**Quick Commands:**
|
|
193
|
+
|
|
194
|
+
```
|
|
195
|
+
/agents Interactive agent management
|
|
196
|
+
|
|
197
|
+
MODE COMMANDS (see modes-system.md)
|
|
198
|
+
/modes {name} Switch Kiro mode (vibe/spec)
|
|
199
|
+
/modes Interactive mode management
|
|
200
|
+
/strict {state} Control strict mode (on/off)
|
|
201
|
+
/strict Interactive strict mode control
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
Note: Commands are defined in steering documents.
|
|
@@ -75,3 +75,45 @@ 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
|
+
## Mode System Alias
|
|
101
|
+
|
|
102
|
+
The mode switching command uses parameter substitution to load mode definitions dynamically:
|
|
103
|
+
|
|
104
|
+
<alias>
|
|
105
|
+
<trigger>/modes {mode_name}</trigger>
|
|
106
|
+
<definition>
|
|
107
|
+
## Mode Switch: {mode_name}
|
|
108
|
+
|
|
109
|
+
You are now switching to **{mode_name} mode**.
|
|
110
|
+
|
|
111
|
+
**Load and execute mode switching protocol:**
|
|
112
|
+
1. Read `kiro-{mode_name}-mode.md` from agent-system directory into context
|
|
113
|
+
2. Read `~/.kiro/steering/kiro-agents/protocols/mode-switching.mdx` into context
|
|
114
|
+
3. Follow all steps from the "Mode Switch Steps" section in mode-switching.mdx
|
|
115
|
+
4. Use `{mode_name}` as the mode identifier throughout the protocol
|
|
116
|
+
</definition>
|
|
117
|
+
</alias>
|
|
118
|
+
|
|
119
|
+
This alias enables users to switch modes with `/modes {name}` syntax.
|
|
@@ -16,7 +16,7 @@ inclusion: manual
|
|
|
16
16
|
- Visual formatting (bold, code blocks)
|
|
17
17
|
- Context recovery system
|
|
18
18
|
|
|
19
|
-
**Example agents**:
|
|
19
|
+
**Example agents**: project-manager
|
|
20
20
|
|
|
21
21
|
**When to use**:
|
|
22
22
|
|
|
@@ -103,7 +103,7 @@ inclusion: manual
|
|
|
103
103
|
- Simple tasks → Direct execution
|
|
104
104
|
- Complex tasks → Chit-chat or consultative
|
|
105
105
|
|
|
106
|
-
**Example agents**:
|
|
106
|
+
**Example agents**: project-manager-hybrid
|
|
107
107
|
|
|
108
108
|
**When to use**:
|
|
109
109
|
|
package/build/npm/dist/modes.md
CHANGED
|
@@ -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
|
-
##
|
|
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 `
|
|
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.
|
|
3
|
+
"version": "1.6.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": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"author": "R. Beltran",
|
|
53
53
|
"license": "MIT",
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@changesets/cli": "
|
|
55
|
+
"@changesets/cli": "2.27.9",
|
|
56
56
|
"@types/bun": "latest"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
inclusion: always
|
|
3
|
-
description: Generic agent activation system with instruction commands for seamless agent management
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Agent System
|
|
7
|
-
|
|
8
|
-
Generic agent activation and management system for Kiro using instruction commands with parameter support.
|
|
9
|
-
|
|
10
|
-
**For complete documentation, examples, and troubleshooting, see `docs/agent-system-guide.md`**
|
|
11
|
-
|
|
12
|
-
## Agent Commands
|
|
13
|
-
|
|
14
|
-
**Note:** This system uses the Instruction Alias pattern defined in `aliases.md`.
|
|
15
|
-
|
|
16
|
-
### Command 1: Activate Specific Agent
|
|
17
|
-
|
|
18
|
-
<alias>
|
|
19
|
-
<trigger>/agents {agent_name}</trigger>
|
|
20
|
-
<definition>
|
|
21
|
-
## Agent Activation: {agent_name}
|
|
22
|
-
|
|
23
|
-
You are now activating the **{agent_name}** agent.
|
|
24
|
-
|
|
25
|
-
**Load and execute activation protocol:**
|
|
26
|
-
1. Read `.kiro/agents/{agent_name}.md` into context
|
|
27
|
-
2. Read `~/.kiro/steering/kiro-agents/protocols/agent-activation.mdx` into context
|
|
28
|
-
3. Follow all steps from the "Agent Activation Steps" section in agent-activation.mdx
|
|
29
|
-
4. Use `{agent_name}` as the agent identifier throughout the protocol
|
|
30
|
-
</definition>
|
|
31
|
-
</alias>
|
|
32
|
-
|
|
33
|
-
### Command 2: Interactive Agent Management
|
|
34
|
-
|
|
35
|
-
For interactive agent management, use the `/agents` slash command (without parameters).
|
|
36
|
-
This provides a visual interface for:
|
|
37
|
-
- Viewing all available agents
|
|
38
|
-
- Creating new agents
|
|
39
|
-
- Managing existing agents
|
|
40
|
-
- Viewing agent details
|
|
41
|
-
|
|
42
|
-
**Usage:**
|
|
43
|
-
- Interactive: `/agents` (no parameters, loads `agents.md` steering file)
|
|
44
|
-
- Direct: `/agents {name}` (with agent name, uses alias above)
|
|
45
|
-
|
|
46
|
-
## Quick Reference
|
|
47
|
-
|
|
48
|
-
### Activation Protocol Summary
|
|
49
|
-
|
|
50
|
-
When `/agents {name}` is executed:
|
|
51
|
-
|
|
52
|
-
1. **Discover** - Check `.kiro/agents/{name}.md` exists
|
|
53
|
-
2. **Load** - Read agent definition and `strict-mode.md`
|
|
54
|
-
3. **Apply** - Follow mandatory protocols, load required steering
|
|
55
|
-
4. **Assume** - Become agent completely, maintain role
|
|
56
|
-
5. **Begin** - Start interaction per agent's protocol
|
|
57
|
-
|
|
58
|
-
### Management Protocol Summary
|
|
59
|
-
|
|
60
|
-
When `/agents` is executed:
|
|
61
|
-
|
|
62
|
-
1. **Activate chit-chat** - Load chit-chat.md, use diff blocks
|
|
63
|
-
2. **Scan directory** - List `.md` files in `.kiro/agents/`
|
|
64
|
-
3. **Present choices** - Show agents, offer operations
|
|
65
|
-
4. **Handle operations** - Activation, creation, management, viewing
|
|
66
|
-
5. **Maintain context** - Track progress, preserve decisions
|
|
67
|
-
|
|
68
|
-
## Agent Definition Requirements
|
|
69
|
-
|
|
70
|
-
**File location:** `.kiro/agents/{agent-name}.md`
|
|
71
|
-
|
|
72
|
-
**Required sections:**
|
|
73
|
-
- Frontmatter (name, type, description, version)
|
|
74
|
-
- Core Responsibilities
|
|
75
|
-
- Capabilities
|
|
76
|
-
- Interaction Protocol
|
|
77
|
-
- Mandatory Protocols
|
|
78
|
-
- Workflows
|
|
79
|
-
- Examples
|
|
80
|
-
|
|
81
|
-
**Recommended sections:**
|
|
82
|
-
- Integration Points
|
|
83
|
-
- Conflict Priorities
|
|
84
|
-
- Best Practices
|
|
85
|
-
- Advanced Features
|
|
86
|
-
- Error Handling
|
|
87
|
-
- Success Metrics
|
|
88
|
-
|
|
89
|
-
## Initial Agent
|
|
90
|
-
|
|
91
|
-
When auto-setup detects no agents exist, it creates:
|
|
92
|
-
|
|
93
|
-
**kiro-master** - Interactive Kiro feature management with CRUD operations for MCP servers, hooks, agents, specs, powers, and steering documents. Includes .kiro/ directory maintenance, steering optimization, refactoring, and comprehensive analysis capabilities
|
|
94
|
-
|
|
95
|
-
## Integration Notes
|
|
96
|
-
|
|
97
|
-
- Works alongside steering documents
|
|
98
|
-
- Compatible with chit-chat mode
|
|
99
|
-
- Preserves ADHD-C optimizations
|
|
100
|
-
- **Mode system** - Works seamlessly with modes (see `modes-system.md`)
|
|
101
|
-
- **Context preservation** - File changes and conversation history persist across agent switches
|
|
102
|
-
|
|
103
|
-
## System Notes
|
|
104
|
-
|
|
105
|
-
- Prototype system using Instruction Alias pattern
|
|
106
|
-
- Relies on AI understanding and following instructions
|
|
107
|
-
- May need iteration based on actual usage
|
|
108
|
-
|
|
109
|
-
---
|
|
110
|
-
|
|
111
|
-
**Agent system ready. Use `/agents` to begin or `/agents {name}` to activate specific agent.**
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
inclusion: always
|
|
3
|
-
description: Kiro mode switching system for flexible interaction styles (vibe/spec modes)
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Modes System
|
|
7
|
-
|
|
8
|
-
Mode switching system for Kiro that enables different interaction styles and workflows.
|
|
9
|
-
|
|
10
|
-
**For complete documentation, examples, and troubleshooting, see `docs/modes-system-guide.md`**
|
|
11
|
-
|
|
12
|
-
## Available Modes
|
|
13
|
-
|
|
14
|
-
- **vibe** - Flexible, conversational development assistance
|
|
15
|
-
- **spec** - Structured feature development with requirements, design, and tasks
|
|
16
|
-
|
|
17
|
-
## Mode Commands
|
|
18
|
-
|
|
19
|
-
### Command 1: Switch Kiro Mode
|
|
20
|
-
|
|
21
|
-
<alias>
|
|
22
|
-
<trigger>/modes {mode_name}</trigger>
|
|
23
|
-
<definition>
|
|
24
|
-
## Mode Switch: {mode_name}
|
|
25
|
-
|
|
26
|
-
You are now switching to **{mode_name} mode**.
|
|
27
|
-
|
|
28
|
-
**Load and execute mode switching protocol:**
|
|
29
|
-
1. Read `kiro-{mode_name}-mode.md` from agent-system directory into context
|
|
30
|
-
2. Read `~/.kiro/steering/kiro-agents/protocols/mode-switching.mdx` into context
|
|
31
|
-
3. Follow all steps from the "Mode Switch Steps" section in mode-switching.mdx
|
|
32
|
-
4. Use `{mode_name}` as the mode identifier throughout the protocol
|
|
33
|
-
</definition>
|
|
34
|
-
</alias>
|
|
35
|
-
|
|
36
|
-
### Command 2: Interactive Mode Management
|
|
37
|
-
|
|
38
|
-
For interactive mode management, use the `/modes` slash command (without parameters).
|
|
39
|
-
This provides a visual interface for:
|
|
40
|
-
- Viewing available modes
|
|
41
|
-
- Comparing modes
|
|
42
|
-
- Switching modes
|
|
43
|
-
- Getting help
|
|
44
|
-
|
|
45
|
-
**Usage:**
|
|
46
|
-
- Interactive: `/modes` (no parameters, loads `modes.md` steering file)
|
|
47
|
-
- Direct: `/modes {name}` (with mode name, uses alias above)
|
|
48
|
-
|
|
49
|
-
## Quick Reference
|
|
50
|
-
|
|
51
|
-
### Activation Protocol Summary
|
|
52
|
-
|
|
53
|
-
When `/modes {name}` is executed:
|
|
54
|
-
|
|
55
|
-
1. **Load** - Read mode definition and parse configuration
|
|
56
|
-
2. **Check** - If from spec mode, show warning and confirm
|
|
57
|
-
3. **Apply** - Follow mode protocols, set up context
|
|
58
|
-
4. **Begin** - Start interaction per mode's protocol
|
|
59
|
-
|
|
60
|
-
### Management Protocol Summary
|
|
61
|
-
|
|
62
|
-
When `/modes` is executed:
|
|
63
|
-
|
|
64
|
-
1. **Activate chit-chat** - Load chit-chat.md, use diff blocks
|
|
65
|
-
2. **Detect modes** - Scan for `kiro-*-mode.md` files
|
|
66
|
-
3. **Present choices** - Show modes, offer operations
|
|
67
|
-
4. **Handle operations** - Switching, viewing, comparison, help
|
|
68
|
-
|
|
69
|
-
## Mode and Agent Coordination
|
|
70
|
-
|
|
71
|
-
**Modes provide the framework:**
|
|
72
|
-
- Vibe mode: Flexible, conversational interaction
|
|
73
|
-
- Spec mode: Structured workflow with approval gates
|
|
74
|
-
|
|
75
|
-
**Agents provide specialized capabilities:**
|
|
76
|
-
- kiro-master: Feature management and .kiro/ operations
|
|
77
|
-
- Custom agents: Domain-specific expertise
|
|
78
|
-
|
|
79
|
-
**They work together:**
|
|
80
|
-
- Modes can activate agents: `/modes spec` then `/agents kiro-master`
|
|
81
|
-
- Agents inherit mode protocols: Agent in spec mode follows spec workflow
|
|
82
|
-
- Context preserved: Switch modes/agents without losing work
|
|
83
|
-
- Layered capabilities: Mode + Agent + Strict mode all active simultaneously
|
|
84
|
-
|
|
85
|
-
## System Notes
|
|
86
|
-
|
|
87
|
-
- Prototype system using Instruction Alias pattern
|
|
88
|
-
- Relies on AI understanding and following instructions
|
|
89
|
-
- Works seamlessly with agent system
|
|
90
|
-
|
|
91
|
-
---
|
|
92
|
-
|
|
93
|
-
**Modes system ready.**
|
|
94
|
-
|
|
95
|
-
**Quick start:**
|
|
96
|
-
- `/modes vibe` - Flexible development
|
|
97
|
-
- `/modes spec` - Structured planning
|
|
98
|
-
- `/modes` - Interactive mode management
|