kiro-agents 1.1.0 → 1.3.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 CHANGED
@@ -186,7 +186,7 @@ AI: Agent created! Activate now? [Yes/No]
186
186
  ### Switching Modes
187
187
 
188
188
  ```
189
- User: /mode spec
189
+ User: /modes spec
190
190
  AI: [Loads spec mode protocols]
191
191
  AI: What feature do you want to work on?
192
192
  User: User authentication system
@@ -205,9 +205,9 @@ AI: [Asks clarifying questions about cache strategy, TTL, invalidation, etc.]
205
205
  ### Agent Coordination
206
206
 
207
207
  ```
208
- User: /mode spec
208
+ User: /modes spec
209
209
  [Work on feature planning]
210
- User: /agent kiro-master
210
+ User: /agents kiro-master
211
211
  [Use kiro-master capabilities while in spec mode]
212
212
  ```
213
213
 
@@ -7,43 +7,12 @@ description: Generic agent activation system with instruction commands for seaml
7
7
 
8
8
  Generic agent activation and management system for Kiro using instruction commands with parameter support.
9
9
 
10
- ## Instruction Alias with Parameters
11
-
12
- ### Parameter Substitution Protocol
13
-
14
- When processing instructions, if you encounter an XML structure `<alias>` with variables in `{curly_braces}`:
15
-
16
- ```xml
17
- <alias>
18
- <trigger>COMMAND {param1} {param2}</trigger>
19
- <definition>
20
- Instructions with {param1} and {param2} placeholders
21
- </definition>
22
- </alias>
23
- ```
24
-
25
- **Processing steps:**
26
- 1. **Extract parameter names** from `<trigger>` (e.g., `{param1}`, `{param2}`)
27
- 2. **Match user command** - When user types matching command pattern
28
- 3. **Extract parameter values** - Capture actual values from user input
29
- 4. **Replace placeholders** - Substitute all `{param}` in `<definition>` with actual values
30
- 5. **Execute instructions** - Run resulting instructions immediately
31
-
32
- ### Example
33
-
34
- **Alias definition:**
35
- ```xml
36
- <alias>
37
- <trigger>/greet {name}</trigger>
38
- <definition>Say hello to {name} enthusiastically!</definition>
39
- </alias>
40
- ```
41
-
42
- **User types:** `/greet Alice`
43
- **System executes:** "Say hello to Alice enthusiastically!"
10
+ **For complete documentation, examples, and troubleshooting, see `docs/agent-system-guide.md`**
44
11
 
45
12
  ## Agent Commands
46
13
 
14
+ **Note:** This system uses the Instruction Alias pattern defined in `aliases.md`.
15
+
47
16
  ### Command 1: Activate Specific Agent
48
17
 
49
18
  <alias>
@@ -53,48 +22,11 @@ When processing instructions, if you encounter an XML structure `<alias>` with v
53
22
 
54
23
  You are now activating the **{agent_name}** agent.
55
24
 
56
- ### Step 1: Load Agent Definition and Strict Mode
57
-
58
- Read `.kiro/agents/{agent_name}.md` into context.
59
-
60
- This file contains:
61
- - Agent capabilities and responsibilities
62
- - Interaction protocols and workflows
63
- - Mandatory protocols and rules
64
- - Examples and best practices
65
- - Integration requirements
66
-
67
- **Also load `strict-mode.md` steering document** to enable `/strict {state}` command for this agent session. STRICT_MODE defaults to OFF but user can activate it anytime with `/strict on`.
68
-
69
- ### Step 2: Assume Agent Role
70
-
71
- For this session, you are **{agent_name}**.
72
-
73
- You will:
74
- - Follow ALL protocols and instructions from `.kiro/agents/{agent_name}.md`
75
- - Apply agent-specific interaction patterns
76
- - Use capabilities defined in the agent definition
77
- - Maintain this role until user switches agents or ends session
78
- - Override any conflicting instructions with agent protocols
79
-
80
- ### Step 3: Begin Interaction
81
-
82
- Start interaction according to **{agent_name}**'s protocols defined in the `.md` file.
83
-
84
- If the agent uses **chit-chat mode**:
85
- - Begin with diff block showing current state
86
- - Provide numbered choice list (4-6 options, up to 16 if needed)
87
- - Maintain single focus per message
88
- - Use visual formatting (bold, code blocks)
89
-
90
- Otherwise:
91
- - Begin according to the agent's defined interaction protocol
92
- - Follow agent-specific response structure
93
- - Apply agent-specific formatting rules
94
-
95
- ---
96
-
97
- **You are now {agent_name}. Begin interaction.**
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
98
30
  </definition>
99
31
  </alias>
100
32
 
@@ -111,271 +43,69 @@ This provides a visual interface for:
111
43
  - Interactive: `/agents` (no parameters, loads `agents.md` steering file)
112
44
  - Direct: `/agents {name}` (with agent name, uses alias above)
113
45
 
114
- ## Agent Activation Protocol
46
+ ## Quick Reference
115
47
 
116
- When `/agent {name}` is executed:
48
+ ### Activation Protocol Summary
117
49
 
118
- 1. **Discover agent file**
119
- - Check `.kiro/agents/{name}.md` exists
120
- - If file missing, show error and suggest `/agents` command
50
+ When `/agents {name}` is executed:
121
51
 
122
- 2. **Load agent definition**
123
- - Read `.kiro/agents/{name}.md` into context
124
- - **Load `strict-mode.md`** steering document (enables `/strict` commands)
125
- - Parse frontmatter metadata
126
- - Understand agent capabilities and workflows
127
- - Identify mandatory protocols
128
- - Note interaction patterns
129
- - Check integration requirements
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
130
57
 
131
- 3. **Apply protocols**
132
- - Follow all mandatory protocols from definition
133
- - Load required steering documents
134
- - Apply agent-specific overrides
135
- - Set up agent context
58
+ ### Management Protocol Summary
136
59
 
137
- 4. **Assume role**
138
- - Become the agent completely
139
- - Maintain role until user switches agents
140
- - Apply agent personality and style
141
- - Use agent-specific tools and workflows
142
-
143
- 5. **Begin interaction**
144
- - Start according to agent's interaction protocol
145
- - Use agent's response structure
146
- - Apply agent's formatting rules
147
- - Maintain agent's focus and priorities
60
+ When `/agents` is executed:
148
61
 
149
- ## Agent Management Protocol
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
150
67
 
151
- When `/agents` is executed:
68
+ ## Agent Definition Requirements
152
69
 
153
- 1. **Activate chit-chat mode**
154
- - Load chit-chat.md steering
155
- - Use diff blocks for progress
156
- - Provide numbered choices
157
- - Maintain single focus
158
-
159
- 2. **Scan agents directory**
160
- - List all `.md` files in `.kiro/agents/`
161
- - Exclude `.instructions.md` files
162
- - Extract agent metadata
163
- - Categorize agents by type
164
-
165
- 3. **Present choices**
166
- - Show available agents with descriptions
167
- - Offer management operations
168
- - Provide help and documentation
169
- - Allow exit to normal mode
170
-
171
- 4. **Handle operations**
172
- - Agent activation → Execute `/agent {name}`
173
- - Agent creation → Start creation wizard
174
- - Agent management → Modify agent files
175
- - Agent viewing → Display agent details
176
- - Help → Explain agent system
177
- - Exit → Return to normal mode
178
-
179
- 5. **Maintain context**
180
- - Use diff blocks to show progress
181
- - Preserve user decisions
182
- - Allow going back
183
- - Enable canceling operations
184
-
185
- ## Agent Directory Structure
186
-
187
- ```
188
- .kiro/agents/
189
- └── {agent-name}.md # Complete agent definition
190
- ├── Frontmatter metadata
191
- ├── Core responsibilities
192
- ├── Capabilities and workflows
193
- ├── Interaction protocols
194
- ├── Mandatory protocols
195
- ├── Examples and best practices
196
- ├── Integration rules
197
- └── Conflict priorities
198
- ```
199
-
200
- ### Agent Definition File (.md)
70
+ **File location:** `.kiro/agents/{agent-name}.md`
201
71
 
202
72
  **Required sections:**
203
- - Frontmatter with name, type, metadata
73
+ - Frontmatter (name, type, description, version)
204
74
  - Core Responsibilities
205
- - Capabilities (detailed list)
206
- - Interaction Protocol (how agent responds)
207
- - Mandatory Protocols (rules agent must follow)
208
- - Workflows (step-by-step processes)
209
- - Examples (interaction patterns)
75
+ - Capabilities
76
+ - Interaction Protocol
77
+ - Mandatory Protocols
78
+ - Workflows
79
+ - Examples
210
80
 
211
81
  **Recommended sections:**
82
+ - Integration Points
83
+ - Conflict Priorities
212
84
  - Best Practices
213
- - Integration Points (with other agents/steering)
214
- - Conflict Priorities (ordered list)
215
85
  - Advanced Features
216
86
  - Error Handling
217
87
  - Success Metrics
218
88
 
219
89
  ## Initial Agent
220
90
 
221
- When auto-setup detects no agents exist, it creates the initial agent:
91
+ When auto-setup detects no agents exist, it creates:
222
92
 
223
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
224
94
 
225
- This description is used when creating `.kiro/agents/kiro-master.md` during auto-setup.
226
-
227
- ## Usage Examples
228
-
229
- ### Activate Specific Agent
230
-
231
- ```
232
- /agent refactor-architect
233
- ```
234
-
235
- **Result:** AI immediately assumes refactor-architect role, loads agent files, applies protocols, and begins interaction according to agent's style.
236
-
237
- ### Interactive Agent Management
95
+ ## Integration Notes
238
96
 
239
- ```
240
- /agents
241
- ```
242
-
243
- **Result:** Chit-chat mode activates, shows available agents, offers management options with numbered choices.
244
-
245
- ### Switch Between Agents
246
-
247
- ```
248
- /agent kiro-master
249
- ```
250
-
251
- **Result:** Switch from current agent (e.g., refactor-architect) to kiro-master. Previous agent context is suspended, new agent context is loaded.
252
-
253
- ### Create New Agent
254
-
255
- ```
256
- /agents
257
- [Choose option 2: Create new agent]
258
- [Follow wizard prompts]
259
- ```
260
-
261
- **Result:** Interactive agent creation wizard guides through agent setup, generates files, offers activation.
262
-
263
- ## Integration with Existing System
264
-
265
- ### Compatibility
266
-
267
- - **Works alongside steering documents** - Agents can load additional steering
268
- - **Compatible with chit-chat mode** - Agents can use chit-chat protocols
269
- - **Preserves ADHD-C optimizations** - Single focus, visual formatting maintained
270
- - **Maintains language rules** - Spanish chat, English files
271
- - **Respects user preferences** - Confirmation before changes, choice-based interaction
97
+ - Works alongside steering documents
98
+ - Compatible with chit-chat mode
99
+ - Preserves ADHD-C optimizations
272
100
  - **Mode system** - Works seamlessly with modes (see `modes-system.md`)
273
101
  - **Context preservation** - File changes and conversation history persist across agent switches
274
102
 
275
- ### Steering Document Loading
276
-
277
- Agents can specify required steering documents in their `.md` definition file:
278
-
279
- ```markdown
280
- ## Integration Points
281
-
282
- ### Required Steering Documents
283
- - `[steering-name].md` - Always loaded when agent is active
284
- - `[another-steering].md` - Core rules for agent behavior
285
-
286
- ### Optional Steering Documents
287
- - `[conditional-steering].md` - Loaded based on file context
288
- - `[manual-steering].md` - Loaded when explicitly needed
289
- ```
290
-
291
- ### Agent Coordination
292
-
293
- **Multiple agents can coordinate through:**
294
- - **Handoff procedures** - Agent A passes control to Agent B
295
- - **Context sharing** - Agents share relevant information
296
- - **Conflict resolution** - Priority rules determine behavior
297
- - **Collaborative workflows** - Agents work together on complex tasks
298
-
299
- ## Best Practices
300
-
301
- ### For Agent Users
302
-
303
- 1. **Use `/agents` for discovery** - See what agents are available
304
- 2. **Use `/agent {name}` for direct activation** - When you know which agent you need
305
- 3. **Let agents maintain focus** - Don't switch agents mid-task unless necessary
306
- 4. **Provide clear context** - Help agents understand your needs
307
- 5. **Use agent capabilities** - Leverage agent-specific tools and workflows
308
-
309
- ### For Agent Creators
310
-
311
- 1. **Clear agent definition** - Comprehensive `.md` with all capabilities and protocols
312
- 2. **Focused protocols** - Clear mandatory protocols section within `.md` file
313
- 3. **Consistent interaction** - Follow established patterns (chit-chat mode, etc.)
314
- 4. **Good examples** - Show how agent works in practice
315
- 5. **Integration rules** - Specify required steering documents
316
-
317
- ### For Agent Development
318
-
319
- 1. **Start with template** - Use existing agents as reference
320
- 2. **Test thoroughly** - Verify agent activates and functions correctly
321
- 3. **Document well** - Clear descriptions and examples
322
- 4. **Keep it simple** - Don't overcomplicate agent protocols
323
- 5. **Iterate based on use** - Improve agent based on actual usage
324
-
325
- ## Troubleshooting
326
-
327
- ### Agent Not Activating
328
-
329
- **Problem:** `/agent {name}` doesn't work
330
- **Solutions:**
331
- - Check agent files exist in `.kiro/agents/`
332
- - Verify filename matches command (case-sensitive)
333
- - Ensure `.md` file contains all required sections
334
- - Try `/agents` to see available agents
335
-
336
- ### Agent Behaving Incorrectly
337
-
338
- **Problem:** Agent doesn't follow expected protocols
339
- **Solutions:**
340
- - Review agent `.md` file for clarity in Mandatory Protocols section
341
- - Check for conflicting steering documents
342
- - Verify mandatory protocols are clear and comprehensive
343
- - Test agent in isolation
344
-
345
- ### Agent Management Not Working
346
-
347
- **Problem:** `/agents` command doesn't activate
348
- **Solutions:**
349
- - Verify `agent-system.md` is in `.kiro/steering/`
350
- - Check `inclusion: always` in frontmatter
351
- - Ensure `chit-chat.md` exists
352
- - Try reloading steering documents
353
-
354
- ## Future Enhancements
355
-
356
- Potential improvements to agent system:
357
-
358
- **Agent enhancements:**
359
- - **Agent parameters** - `/agent refactor-architect --mode=strict`
360
- - **Agent chaining** - `/agent kiro-master then refactor-architect`
361
- - **Agent templates** - Quick agent creation from templates
362
- - **Agent marketplace** - Share agents with community
363
- - **Agent versioning** - Track agent changes over time
364
- - **Agent testing** - Automated agent validation
365
-
366
- **Integration enhancements:**
367
- - **Task sessions** - Agents create sub-tasks with own context
368
- - **Session continuation** - Resume interrupted work with full context
369
- - **Enhanced mode integration** - Better coordination with modes system
370
-
371
- ## Notes
103
+ ## System Notes
372
104
 
373
- - This system is a **prototype** - Kiro doesn't natively support agents
374
- - Commands are implemented via **Instruction Alias pattern**
375
- - System relies on **AI understanding and following instructions**
376
- - May need **iteration based on actual usage**
377
- - Consider **proposing as Kiro feature request** if successful
105
+ - Prototype system using Instruction Alias pattern
106
+ - Relies on AI understanding and following instructions
107
+ - May need iteration based on actual usage
378
108
 
379
109
  ---
380
110
 
381
- **Agent system ready. Use `/agents` to begin or `/agent {name}` to activate specific agent.**
111
+ **Agent system ready. Use `/agents` to begin or `/agents {name}` to activate specific agent.**
@@ -8,139 +8,172 @@ keywords: ["agents", "management", "create", "activate", "interactive"]
8
8
 
9
9
  You are now in **agent management mode** using chit-chat interaction protocol.
10
10
 
11
- ## Step 1: Load Chit-Chat Mode
11
+ ## Agent Management Steps
12
+
13
+ When entering agent management mode:
14
+
15
+ ### Step 1: Activate Chit-Chat Mode
16
+
17
+ Load and apply protocols from `chit-chat.md` steering document:
18
+
19
+ - **Use diff blocks** to show progress and current state
20
+ - **Provide numbered choice lists** (4-8 options, up to 16 if needed)
21
+ - **Maintain single focus** per message
22
+ - **Use visual formatting** (bold, code blocks, lists)
23
+ - **Optimize for ADHD-C** (minimal cognitive load)
24
+
25
+ Begin with a diff block showing:
26
+ ```diff
27
+ 👉 Agent management mode
28
+ ⏳ [Current operation]
29
+ ```
30
+
31
+ ### Step 2: Scan Agents Directory
32
+
33
+ **CRITICAL: You MUST execute `listDirectory` tool on `.kiro/agents/` to get the actual list of agents.**
34
+
35
+ **DO NOT rely on open editor files or context - always scan the directory explicitly.**
36
+
37
+ Execute `listDirectory` on `.kiro/agents/`:
38
+
39
+ **If directory doesn't exist OR directory is empty:**
40
+ 1. **Read `{{{PROTOCOLS_PATH}}}/agent-creation.mdx` into context** - Load agent creation protocol
41
+ 2. Create `.kiro/agents/kiro-master.md` agent automatically using the description from "Initial Agent" section
42
+ 3. Follow the agent definition structure from agent-creation.mdx protocol
43
+ 4. Show diff block indicating setup completion
44
+ 5. Continue to Step 3 with kiro-master as available agent
45
+
46
+ **If directory exists with agents:**
47
+ 1. **Execute `listDirectory` tool** to get complete list of `.md` files
48
+ 2. Extract agent names from filenames (remove `.md` extension)
49
+ 3. Read frontmatter metadata for descriptions
50
+ 4. Categorize by agent type if metadata available
51
+ 5. **List ALL agents found** - do not filter or assume based on context
52
+
53
+ ### Step 3: Present Agent Selection
54
+
55
+ Use this response structure:
56
+
57
+ ```diff
58
+ 👉 Agent management mode
59
+ ⏳ Agent selection or management
60
+ ```
61
+
62
+ **Current Focus**: Agent selection and management
63
+
64
+ **Available agents in `.kiro/agents/`:**
65
+
66
+ [List each agent with format:]
67
+ - **{agent-name}** - {description from frontmatter or .md}
68
+
69
+ **What would you like to do?**
70
+
71
+ 1. **Activate agent** - Choose agent to activate immediately
72
+ 2. **Create new agent** - Start agent creation wizard
73
+ 3. **Manage existing agent** - Modify agent configuration
74
+ 4. **View agent details** - Show full agent definition
75
+ 5. **List all commands** - Show available slash commands
76
+ 6. **Agent system help** - Explain how agents work
77
+ 7. **Exit** - Return to normal mode
78
+
79
+ ### Step 4: Handle User Choice
80
+
81
+ Based on user selection:
82
+
83
+ #### Option 1 - Activate Agent
84
+
85
+ - Show numbered list of available agents
86
+ - User selects agent by number
87
+ - Execute `/agents {selected_agent_name}` command
88
+ - Agent activates immediately
89
+
90
+ #### Option 2 - Create New Agent
91
+
92
+ - **Read `{{{PROTOCOLS_PATH}}}/agent-creation.mdx` into context** - Load agent creation protocol
93
+ - Follow all steps from the "Agent Creation Steps" section in agent-creation.mdx
94
+ - Start agent creation workflow with interactive wizard
95
+ - Ask for agent type (code-focused, documentation, testing, etc.)
96
+ - Collect agent name, description, capabilities
97
+ - Generate `.md` file with all agent definition following protocol structure
98
+ - Validate agent definition per protocol
99
+ - Offer to activate new agent
100
+
101
+ #### Option 3 - Manage Existing Agent
102
+
103
+ - **Read `{{{PROTOCOLS_PATH}}}/agent-creation.mdx` into context** - Load agent structure reference
104
+ - Show numbered list of available agents
105
+ - User selects agent to manage
106
+ - Offer management options:
107
+ - Modify capabilities
108
+ - Update instructions
109
+ - Change interaction protocol
110
+ - Add/remove integrations
111
+ - Delete agent
112
+ - Use agent definition structure from protocol as reference for modifications
113
+ - Apply changes to agent `.md` file
114
+ - Validate changes against protocol requirements
115
+ - Reload agent if currently active
116
+
117
+ #### Option 4 - View Agent Details
118
+
119
+ - Show numbered list of available agents
120
+ - User selects agent to view
121
+ - Display full `.md` content with formatting
122
+ - Show agent protocols and capabilities summary
123
+ - Offer to activate or manage agent
124
+
125
+ #### Option 5 - List All Commands
126
+
127
+ Show all available slash commands in the system:
128
+
129
+ ```
130
+ Available Commands:
131
+
132
+ AGENT COMMANDS
133
+ /agents {name} Activate specific agent
134
+ /agents Interactive agent management
135
+
136
+ {{{MODE_COMMANDS}}}
137
+
138
+ Note: Commands are defined in steering documents.
139
+ New commands can be added via Instruction Alias pattern.
140
+ ```
141
+
142
+ #### Option 6 - Agent System Help
143
+
144
+ Explain agent system:
145
+ - Agent system architecture
146
+ - Command usage examples
147
+ - Agent file structure
148
+ - How to create custom agents
149
+ - Best practices for agent usage
150
+
151
+ #### Option 7 - Exit
152
+
153
+ - Confirm exit from agent management mode
154
+ - Return to normal Kiro interaction
155
+ - Preserve any changes made
156
+
157
+ ### Step 5: Maintain Chit-Chat Mode
158
+
159
+ Continue using diff blocks and numbered choices throughout agent management session.
160
+
161
+ After each action:
162
+ - Update diff block with progress
163
+ - Show current focus
164
+ - Provide next action choices
165
+ - Allow going back or canceling
166
+
167
+ **Context Preservation:**
168
+ - Use diff blocks to show progress
169
+ - Preserve user decisions
170
+ - Allow going back to previous step
171
+ - Enable canceling operations
172
+
173
+ ---
174
+
175
+ **Agent management mode active. Present choices to user.**
12
176
 
13
- Apply protocols from `chit-chat.md` steering document:
14
- - Use diff blocks to show progress
15
- - Provide numbered choice lists (4-6 options, up to 16 if needed)
16
- - Maintain single focus per message
17
- - Use visual formatting (bold, code blocks, lists)
18
- - Optimize for ADHD-C (minimal cognitive load)
19
-
20
- ## Step 2: Auto-Setup and Scan Agents Directory
21
-
22
- **CRITICAL: You MUST execute `listDirectory` tool on `.kiro/agents/` to get the actual list of agents.**
23
-
24
- **DO NOT rely on open editor files or context - always scan the directory explicitly.**
25
-
26
- **First, execute `listDirectory` on `.kiro/agents/`:**
27
-
28
- If directory doesn't exist OR directory is empty:
29
- 1. Create `.kiro/agents/kiro-master.md` agent automatically using the description from "Initial Agent" section
30
- 2. Show diff block indicating setup completion
31
- 3. Continue to Step 3 with kiro-master as available agent
32
-
33
- If directory exists with agents:
34
- 1. **Execute `listDirectory` tool** to get complete list of `.md` files
35
- 2. Extract agent names from filenames (remove `.md` extension)
36
- 3. Read frontmatter metadata for descriptions
37
- 4. Categorize by agent type if metadata available
38
- 5. **List ALL agents found** - do not filter or assume based on context
39
-
40
- ## Step 3: Present Agent Selection
41
-
42
- Use this response structure:
43
-
44
- ```diff
45
- 👉 Agent management mode
46
- ⏳ Agent selection or management
47
- ```
48
-
49
- **Current Focus**: Agent selection and management
50
-
51
- **Available agents in `.kiro/agents/`:**
52
-
53
- [List each agent with format:]
54
- - **{agent-name}** - {description from frontmatter or .md}
55
-
56
- **What would you like to do?**
57
-
58
- 1. **Activate agent** - Choose agent to activate immediately
59
- 2. **Create new agent** - Start agent creation wizard
60
- 3. **Manage existing agent** - Modify agent configuration
61
- 4. **View agent details** - Show full agent definition
62
- 5. **List all commands** - Show available slash commands
63
- 6. **Agent system help** - Explain how agents work
64
- 7. **Exit** - Return to normal mode
65
-
66
- ## Step 4: Handle User Choice
67
-
68
- Based on user selection:
69
-
70
- **Option 1 - Activate agent:**
71
- - Show numbered list of available agents
72
- - User selects agent by number
73
- - Execute `/agents {selected_agent_name}` command
74
- - Agent activates immediately
75
-
76
- **Option 2 - Create new agent:**
77
- - Start agent creation workflow
78
- - Ask for agent type (code-focused, documentation, testing, etc.)
79
- - Collect agent name, description, capabilities
80
- - Generate `.md` file with all agent definition
81
- - Offer to activate new agent
82
-
83
- **Option 3 - Manage existing agent:**
84
- - Show numbered list of available agents
85
- - User selects agent to manage
86
- - Offer management options:
87
- - Modify capabilities
88
- - Update instructions
89
- - Change interaction protocol
90
- - Add/remove integrations
91
- - Delete agent
92
-
93
- **Option 4 - View agent details:**
94
- - Show numbered list of available agents
95
- - User selects agent to view
96
- - Display full `.md` content with formatting
97
- - Show agent protocols and capabilities summary
98
- - Offer to activate or manage agent
99
-
100
- **Option 5 - List all commands:**
101
- - Show all available slash commands in the system
102
- - Display command syntax and brief description
103
- - Group by category (agents, modes, utilities)
104
- - Format as table for quick reference:
105
-
106
- ```
107
- Available Commands:
108
-
109
- AGENT COMMANDS
110
- /agents {name} Activate specific agent
111
- /agents Interactive agent management
112
-
113
- MODE COMMANDS (see modes-system.md)
114
- /modes {name} Switch Kiro mode (vibe/spec)
115
- /modes Interactive mode management
116
- /strict {state} Control strict mode (on/off)
117
- /strict Interactive strict mode control
118
-
119
- Note: Commands are defined in steering documents.
120
- New commands can be added via Instruction Alias pattern.
121
- ```
122
-
123
- **Option 6 - Agent system help:**
124
- - Explain agent system architecture
125
- - Show command usage examples
126
- - Describe agent file structure
127
- - Explain how to create custom agents
128
- - Document best practices
129
-
130
- **Option 7 - Exit:**
131
- - Confirm exit from agent management mode
132
- - Return to normal Kiro interaction
133
- - Preserve any changes made
134
-
135
- ## Step 5: Maintain Chit-Chat Mode
136
-
137
- Continue using diff blocks and numbered choices throughout agent management session.
138
-
139
- After each action:
140
- - Update diff block with progress
141
- - Show current focus
142
- - Provide next action choices
143
- - Allow going back or canceling
144
177
 
145
178
  ## Initial Agent
146
179
 
@@ -0,0 +1,77 @@
1
+ ---
2
+ inclusion: always
3
+ description: Instruction alias system for creating custom commands with parameter substitution and literal responses
4
+ ---
5
+
6
+ # Instruction Alias System
7
+
8
+ System for creating custom commands using XML-based alias definitions with parameter support and literal response patterns.
9
+
10
+ **For complete documentation, examples, and troubleshooting, see `docs/aliases-guide.md`**
11
+
12
+ ## Parameter Substitution
13
+
14
+ When processing instructions, if you encounter an XML structure `<alias>` with variables in `{curly_braces}`:
15
+
16
+ ```xml
17
+ <alias>
18
+ <trigger>COMMAND {param1} {param2}</trigger>
19
+ <definition>
20
+ Instructions with {param1} and {param2} placeholders
21
+ </definition>
22
+ </alias>
23
+ ```
24
+
25
+ **Processing steps:**
26
+ 1. **Extract parameter names** from `<trigger>` (e.g., `{param1}`, `{param2}`)
27
+ 2. **Match user command** - When user types matching command pattern
28
+ 3. **Extract parameter values** - Capture actual values from user input
29
+ 4. **Replace placeholders** - Substitute all `{param}` in `<definition>` with actual values
30
+ 5. **Execute instructions** - Run resulting instructions immediately
31
+
32
+ ### Example
33
+
34
+ **Alias definition:**
35
+ ```xml
36
+ <alias>
37
+ <trigger>/greet {name}</trigger>
38
+ <definition>Say hello to {name} enthusiastically!</definition>
39
+ </alias>
40
+ ```
41
+
42
+ User types: `/greet Alice` → Executes: "Say hello to Alice enthusiastically!"
43
+
44
+ ## Literal Response Pattern
45
+
46
+ For outputting exact text without AI interpretation (e.g., triggering native IDE modes):
47
+
48
+ ````xml
49
+ <alias>
50
+ <trigger>command</trigger>
51
+ <definition>
52
+ Respond directly to the user with exactly and only the content of the following code block, AS-IS:
53
+ ```
54
+ literal_text
55
+ ```
56
+ </definition>
57
+ </alias>
58
+ ````
59
+
60
+ **CRITICAL:** When you see this pattern, output ONLY the code block content. No explanations, no context, no other text.
61
+
62
+ ### Example
63
+
64
+ **Alias definition:**
65
+ ````xml
66
+ <alias>
67
+ <trigger>/spec</trigger>
68
+ <definition>
69
+ Respond directly to the user with exactly and only the content of the following code block, AS-IS:
70
+ ```
71
+ spec
72
+ ```
73
+ </definition>
74
+ </alias>
75
+ ````
76
+
77
+ User types: `/spec` → AI responds: `spec`
@@ -216,7 +216,7 @@ When user requests task execution:
216
216
  ## Integration with Agent System
217
217
 
218
218
  Spec mode can be activated via:
219
- - `/mode spec` command (when mode-switching is enabled)
219
+ - `/modes spec` command (when mode-switching is enabled)
220
220
  - Starting new conversation in Spec mode
221
221
  - Explicit instruction to assume Spec mode role
222
222
 
@@ -217,7 +217,7 @@ User: "Tests are failing"
217
217
  ## Integration with Agent System
218
218
 
219
219
  Vibe mode can be activated via:
220
- - `/mode vibe` command (when mode-switching enabled)
220
+ - `/modes vibe` command (when mode-switching enabled)
221
221
  - Starting new conversation in Vibe mode
222
222
  - Explicit instruction to assume Vibe mode role
223
223
 
@@ -238,13 +238,13 @@ Vibe mode works alongside:
238
238
  ## Switching Between Modes
239
239
 
240
240
  **From Vibe to Spec:**
241
- - Use `/mode spec` when structure needed
241
+ - Use `/modes spec` when structure needed
242
242
  - Transition to formal planning
243
243
  - Create requirements/design/tasks
244
244
  - Follow spec workflow
245
245
 
246
246
  **From Spec to Vibe:**
247
- - Use `/mode vibe` for flexibility
247
+ - Use `/modes vibe` for flexibility
248
248
  - Continue working on same code
249
249
  - Drop formal structure
250
250
  - Iterate freely
@@ -7,6 +7,8 @@ description: Kiro mode switching system for flexible interaction styles (vibe/sp
7
7
 
8
8
  Mode switching system for Kiro that enables different interaction styles and workflows.
9
9
 
10
+ **For complete documentation, examples, and troubleshooting, see `docs/modes-system-guide.md`**
11
+
10
12
  ## Available Modes
11
13
 
12
14
  - **vibe** - Flexible, conversational development assistance
@@ -23,84 +25,11 @@ Mode switching system for Kiro that enables different interaction styles and wor
23
25
 
24
26
  You are now switching to **{mode_name} mode**.
25
27
 
26
- ### Step 1: Load Mode Definition
27
-
28
- Read `kiro-{mode_name}-mode.md` from agent-system directory into context.
29
-
30
- This file contains:
31
- - Mode identity and purpose
32
- - Interaction protocols
33
- - Workflow patterns (if any)
34
- - Response style guidelines
35
- - Testing approaches
36
- - File organization rules
37
- - Integration points
38
-
39
- **Also load `strict-mode.md` steering document** to enable `/strict {state}` command for this mode. STRICT_MODE defaults to OFF but user can activate it anytime with `/strict on`.
40
-
41
- ### Step 2: Assume Mode Role
42
-
43
- For this session, you are in **{mode_name} mode**.
44
-
45
- You will:
46
- - Follow ALL protocols and instructions from `kiro-{mode_name}-mode.md`
47
- - Apply mode-specific interaction patterns
48
- - Use capabilities defined in the mode definition
49
- - Maintain this mode until user switches modes or ends session
50
- - Override any conflicting instructions with mode protocols
51
-
52
- ### Step 3: Preserve Context and Check State
53
-
54
- **IMPORTANT:** Mode switching preserves:
55
- - All file changes made in previous mode
56
- - Conversation history and context
57
- - Current working state
58
- - User preferences and settings
59
-
60
- **WARNING:** Mode switching does NOT preserve:
61
- - Workflow state (e.g., which phase you're in)
62
- - Approval gate status
63
- - Phase-specific context
64
-
65
- **If switching FROM spec mode:**
66
- Before switching, display warning:
67
- ```
68
- ⚠️ Switching from Spec mode will reset workflow state.
69
-
70
- Current Spec state:
71
- - Phase: [current phase]
72
- - Requirements: [approved/not approved]
73
- - Design: [approved/not approved]
74
- - Tasks: [approved/not approved]
75
-
76
- If you return to Spec mode later, you'll need to re-approve documents.
77
-
78
- Continue switching to {mode_name} mode? [Yes] [No, stay in Spec mode]
79
- ```
80
-
81
- Wait for user confirmation before proceeding.
82
-
83
- You are simply changing HOW you interact, not WHAT you're working on.
84
-
85
- ### Step 4: Begin Interaction
86
-
87
- Start interaction according to **{mode_name} mode**'s protocols.
88
-
89
- **If switching to spec mode:**
90
- - Ask user what they want to work on
91
- - Offer to create new spec or update existing
92
- - Follow structured workflow (requirements → design → tasks)
93
- - Use approval gates between phases
94
-
95
- **If switching to vibe mode:**
96
- - Continue with flexible, conversational interaction
97
- - No formal workflow required
98
- - Make changes directly when clear
99
- - Iterate quickly on feedback
100
-
101
- ---
102
-
103
- **You are now in {mode_name} mode. Begin interaction.**
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
104
33
  </definition>
105
34
  </alias>
106
35
 
@@ -117,59 +46,25 @@ This provides a visual interface for:
117
46
  - Interactive: `/modes` (no parameters, loads `modes.md` steering file)
118
47
  - Direct: `/modes {name}` (with mode name, uses alias above)
119
48
 
120
- ## Mode Activation Protocol
121
-
122
- When `/mode {name}` is executed:
123
-
124
- 1. **Load mode definition**
125
- - Read `kiro-{name}-mode.md` from agent-system directory
126
- - Load `strict-mode.md` steering document
127
- - Parse mode configuration
128
- - Understand mode workflows
49
+ ## Quick Reference
129
50
 
130
- 2. **Check current state**
131
- - If switching FROM spec mode, show warning
132
- - Wait for user confirmation if needed
133
- - Preserve file changes and context
51
+ ### Activation Protocol Summary
134
52
 
135
- 3. **Apply mode protocols**
136
- - Follow mode-specific interaction patterns
137
- - Use mode-defined workflows
138
- - Apply mode response style
139
- - Set up mode context
53
+ When `/modes {name}` is executed:
140
54
 
141
- 4. **Begin interaction**
142
- - Start according to mode protocols
143
- - Use mode-specific formatting
144
- - Apply mode workflows
145
- - Maintain mode focus
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
146
59
 
147
- ## Mode Management Protocol
60
+ ### Management Protocol Summary
148
61
 
149
62
  When `/modes` is executed:
150
63
 
151
- 1. **Activate chit-chat mode**
152
- - Load chit-chat.md steering
153
- - Use diff blocks for progress
154
- - Provide numbered choices
155
- - Maintain single focus
156
-
157
- 2. **Detect available modes**
158
- - Scan for `kiro-*-mode.md` files
159
- - Extract mode metadata
160
- - Identify current mode
161
-
162
- 3. **Present choices**
163
- - Show available modes
164
- - Offer mode operations
165
- - Provide help and comparison
166
- - Allow staying in current mode
167
-
168
- 4. **Handle operations**
169
- - Mode switching → Execute `/mode {name}`
170
- - View details → Show mode definition
171
- - Comparison → Explain differences
172
- - Help → Explain mode system
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
173
68
 
174
69
  ## Mode and Agent Coordination
175
70
 
@@ -182,90 +77,15 @@ When `/modes` is executed:
182
77
  - Custom agents: Domain-specific expertise
183
78
 
184
79
  **They work together:**
185
- - Modes can activate agents: `/mode spec` then `/agent kiro-master`
80
+ - Modes can activate agents: `/modes spec` then `/agents kiro-master`
186
81
  - Agents inherit mode protocols: Agent in spec mode follows spec workflow
187
82
  - Context preserved: Switch modes/agents without losing work
188
83
  - Layered capabilities: Mode + Agent + Strict mode all active simultaneously
189
84
 
190
- **Coordination patterns:**
191
- - **Mode transitions** - Switch from exploration (vibe) to planning (spec)
192
- - **Context sharing** - Modes and agents share relevant information
193
- - **Conflict resolution** - Priority rules determine behavior
194
- - **Workflow integration** - Agents work within mode workflows
195
-
196
- ## Usage Examples
197
-
198
- ### Switch Kiro Modes
199
-
200
- ```
201
- /mode vibe
202
- ```
203
-
204
- **Result:** AI switches to Vibe mode - flexible, conversational development. No formal workflows, quick iterations, direct changes.
205
-
206
- ```
207
- /mode spec
208
- ```
209
-
210
- **Result:** AI switches to Spec mode - structured feature development with requirements, design, and task planning.
211
-
212
- ### Interactive Mode Management
213
-
214
- ```
215
- /modes
216
- ```
217
-
218
- **Result:** Chit-chat mode activates, shows available modes, offers comparison and switching options.
219
-
220
- ### Combined with Agents
221
-
222
- ```
223
- /mode spec
224
- [Work on structured feature planning]
225
- /agent kiro-master
226
- [Use kiro-master agent while in spec mode]
227
- ```
228
-
229
- **Result:** Spec mode workflow + kiro-master agent capabilities working together.
230
-
231
- ## Best Practices
232
-
233
- ### For Mode Users
234
-
235
- 1. **Choose appropriate mode** - Vibe for exploration, Spec for planning
236
- 2. **Understand mode workflows** - Each mode has different interaction patterns
237
- 3. **Use mode transitions** - Switch modes as your needs change
238
- 4. **Combine with agents** - Modes and agents work together
239
- 5. **Preserve context** - File changes persist across mode switches
240
-
241
- ### For Mode Development
242
-
243
- 1. **Clear mode definition** - Comprehensive `.md` with all protocols
244
- 2. **Consistent interaction** - Follow established patterns
245
- 3. **Good examples** - Show how mode works in practice
246
- 4. **Integration rules** - Specify how mode works with agents
247
- 5. **Test thoroughly** - Verify mode activates and functions correctly
248
-
249
- ## Future Enhancements
250
-
251
- **Mode enhancements:**
252
- - **Custom modes** - User-defined modes beyond vibe/spec
253
- - **Mode parameters** - `/mode spec --strict --minimal-tests`
254
- - **Mode presets** - Save mode configurations
255
- - **Mode history** - Track mode usage patterns
256
- - **Automated transitions** - Suggest mode switch when appropriate
257
-
258
- **Integration enhancements:**
259
- - **Cross-mode workflows** - Explore in vibe, formalize in spec
260
- - **Mode-specific agents** - Agents optimized for specific modes
261
- - **Context preservation** - Enhanced state management across switches
262
-
263
- ## Notes
85
+ ## System Notes
264
86
 
265
- - This system is a **prototype** - Kiro doesn't natively support modes
266
- - Commands are implemented via **Instruction Alias pattern**
267
- - System relies on **AI understanding and following instructions**
268
- - May need **iteration based on actual usage**
87
+ - Prototype system using Instruction Alias pattern
88
+ - Relies on AI understanding and following instructions
269
89
  - Works seamlessly with agent system
270
90
 
271
91
  ---
@@ -273,6 +93,6 @@ When `/modes` is executed:
273
93
  **Modes system ready.**
274
94
 
275
95
  **Quick start:**
276
- - `/mode vibe` - Flexible development
277
- - `/mode spec` - Structured planning
96
+ - `/modes vibe` - Flexible development
97
+ - `/modes spec` - Structured planning
278
98
  - `/modes` - Interactive mode management
@@ -0,0 +1,50 @@
1
+ # Agent Activation Protocol
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`.
4
+
5
+ ## Agent Activation Steps
6
+
7
+ When activating agent `{agent_name}`:
8
+
9
+ ### Step 1: Load Agent Definition and Strict Mode
10
+
11
+ Read `.kiro/agents/{agent_name}.md` into context.
12
+
13
+ This file contains:
14
+ - Agent capabilities and responsibilities
15
+ - Interaction protocols and workflows
16
+ - Mandatory protocols and rules
17
+ - Examples and best practices
18
+ - Integration requirements
19
+
20
+ **Also load `strict-mode.md` steering document** to enable `/strict {state}` command for this agent session. STRICT_MODE defaults to OFF but user can activate it anytime with `/strict on`.
21
+
22
+ ### Step 2: Assume Agent Role
23
+
24
+ For this session, you are **{agent_name}**.
25
+
26
+ You will:
27
+ - Follow ALL protocols and instructions from `.kiro/agents/{agent_name}.md`
28
+ - Apply agent-specific interaction patterns
29
+ - Use capabilities defined in the agent definition
30
+ - Maintain this role until user switches agents or ends session
31
+ - Override any conflicting instructions with agent protocols
32
+
33
+ ### Step 3: Begin Interaction
34
+
35
+ Start interaction according to **{agent_name}**'s protocols defined in the `.md` file.
36
+
37
+ If the agent uses **chit-chat mode**:
38
+ - Begin with diff block showing current state
39
+ - Provide numbered choice list (4-6 options, up to 16 if needed)
40
+ - Maintain single focus per message
41
+ - Use visual formatting (bold, code blocks)
42
+
43
+ Otherwise:
44
+ - Begin according to the agent's defined interaction protocol
45
+ - Follow agent-specific response structure
46
+ - Apply agent-specific formatting rules
47
+
48
+ ---
49
+
50
+ **You are now {agent_name}. Begin interaction.**
@@ -0,0 +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.**
@@ -62,13 +62,14 @@ State changed. Response Protocol now applies.
62
62
  ### Command 2: Interactive Control
63
63
 
64
64
  For interactive strict mode control, use the `/strict` slash command (without parameters).
65
- This provides a visual interface with buttons to:
65
+ This provides a numbered choice interface to:
66
66
  - Enable strict mode
67
67
  - Disable strict mode
68
68
  - Learn more about strict mode
69
+ - Check current state
69
70
 
70
71
  **Usage:**
71
- - Interactive: `/strict` (no parameters, loads `strict.md` steering file with userInput buttons)
72
+ - Interactive: `/strict` (no parameters, loads `strict.md` steering file with numbered options)
72
73
  - Direct: `/strict on` or `/strict off` (with state)
73
74
 
74
75
  ## Use Case Guidelines
@@ -1,12 +1,12 @@
1
1
  ---
2
2
  inclusion: manual
3
- description: "Interactive strict mode control with visual buttons for enabling/disabling precision mode"
3
+ description: "Interactive strict mode control with numbered options for enabling/disabling precision mode"
4
4
  keywords: ["strict", "precision", "mode", "control"]
5
5
  ---
6
6
 
7
7
  # Strict Mode Control
8
8
 
9
- Interactive control for STRICT_MODE using userInput tool.
9
+ Interactive control for STRICT_MODE using numbered choice pattern.
10
10
 
11
11
  ## Current State Check
12
12
 
@@ -14,11 +14,10 @@ First, determine the current STRICT_MODE state from context.
14
14
 
15
15
  ## Present Interactive Options
16
16
 
17
- Use userInput tool to show interactive buttons:
17
+ Display the question with numbered options:
18
18
 
19
- ```typescript
20
- userInput({
21
- question: `# Strict Mode Control
19
+ ```markdown
20
+ # Strict Mode Control
22
21
 
23
22
  **Current State**: STRICT_MODE = ${current_state}
24
23
 
@@ -29,31 +28,16 @@ Strict mode blocks execution on ambiguous input and requires explicit clarificat
29
28
  - New component creation establishing patterns
30
29
  - Debugging propagated errors from incorrect assumptions
31
30
 
32
- **What would you like to do?**`,
33
- options: [
34
- {
35
- title: "🟢 Enable Strict Mode",
36
- description: "Activate precision mode - blocks execution on ambiguous input, requires explicit clarification",
37
- recommended: current_state === "OFF"
38
- },
39
- {
40
- title: "🔴 Disable Strict Mode",
41
- description: "Return to normal mode - allows reasonable assumptions, faster iteration",
42
- recommended: current_state === "ON"
43
- },
44
- {
45
- title: "ℹ️ Learn More",
46
- description: "Understand when and how to use strict mode effectively"
47
- },
48
- {
49
- title: "📊 Check Current State",
50
- description: "Show current strict mode configuration and status"
51
- }
52
- ],
53
- reason: "strict-mode-control"
54
- })
31
+ **What would you like to do?**
32
+
33
+ 1. **🟢 Enable Strict Mode** - Activate precision mode - blocks execution on ambiguous input, requires explicit clarification
34
+ 2. **🔴 Disable Strict Mode** - Return to normal mode - allows reasonable assumptions, faster iteration
35
+ 3. **ℹ️ Learn More** - Understand when and how to use strict mode effectively
36
+ 4. **📊 Check Current State** - Show current strict mode configuration and status
55
37
  ```
56
38
 
39
+ **Note**: Recommend option 1 when current_state is "OFF", recommend option 2 when current_state is "ON".
40
+
57
41
  ## Handle User Selection
58
42
 
59
43
  Based on user's choice:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kiro-agents",
3
- "version": "1.1.0",
3
+ "version": "1.3.0",
4
4
  "description": "AI agent system for Kiro IDE",
5
5
  "type": "module",
6
6
  "bin": {
@@ -17,7 +17,9 @@
17
17
  "test": "bun run scripts/test.ts",
18
18
  "clean": "bun run scripts/clean.ts",
19
19
  "snapshot": "bun run scripts/snapshot.ts",
20
- "finalize": "bun run scripts/finalize.ts",
20
+ "finalize": "bun run scripts/finalize.ts analyze",
21
+ "finalize:analyze": "bun run scripts/finalize.ts analyze",
22
+ "finalize:commit": "bun run scripts/finalize.ts commit",
21
23
  "release": "bun run scripts/release.ts"
22
24
  },
23
25
  "keywords": [