kiro-agents 1.10.0 → 1.11.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.
Files changed (29) hide show
  1. package/README.md +179 -58
  2. package/build/npm/bin/cli.js +13 -11
  3. package/build/npm/dist/agents.md +3 -180
  4. package/build/npm/dist/aliases.md +58 -40
  5. package/build/npm/dist/modes/kiro-as-spec-mode.md +284 -0
  6. package/build/npm/dist/modes/kiro-as-vibe-mode.md +312 -0
  7. package/build/npm/dist/modes/kiro-spec-mode.md +1 -6
  8. package/build/npm/dist/modes/kiro-vibe-mode.md +1 -6
  9. package/build/npm/dist/modes.md +68 -40
  10. package/build/npm/power/POWER.md +8 -0
  11. package/build/npm/power/steering/agent-activation.md +30 -3
  12. package/build/npm/power/steering/agent-creation.md +358 -11
  13. package/build/npm/power/steering/agent-management.md +12 -9
  14. package/build/npm/power/steering/chit-chat.md +217 -0
  15. package/build/npm/power/steering/kiro-as-spec-mode.md +284 -0
  16. package/build/npm/power/steering/kiro-as-vibe-mode.md +312 -0
  17. package/build/npm/power/steering/kiro-spec-mode.md +263 -0
  18. package/build/npm/power/steering/kiro-vibe-mode.md +293 -0
  19. package/build/npm/power/steering/mode-management.md +66 -40
  20. package/build/npm/power/steering/mode-switching.md +9 -5
  21. package/build/npm/{dist → power/steering}/strict-mode.md +95 -14
  22. package/package.json +7 -3
  23. package/build/npm/dist/interactions/chit-chat.md +0 -212
  24. package/build/npm/dist/interactions/interaction-styles.md +0 -162
  25. package/build/npm/dist/protocols/agent-activation.md +0 -50
  26. package/build/npm/dist/protocols/agent-creation.md +0 -629
  27. package/build/npm/dist/protocols/agent-management.md +0 -183
  28. package/build/npm/dist/protocols/mode-management.md +0 -139
  29. package/build/npm/dist/protocols/mode-switching.md +0 -84
@@ -1,183 +0,0 @@
1
- # Agent Management Protocol
2
-
3
- This file contains the detailed instructions for interactive agent management. It is referenced when `/agents` is executed without parameters.
4
-
5
- ## Agent Management Steps
6
-
7
- When entering agent management mode:
8
-
9
- ### Step 1: Activate Chit-Chat Mode
10
-
11
- Load and apply protocols from `chit-chat.md` steering document:
12
-
13
- - **Use diff blocks** to show progress and current state
14
- - **Provide numbered choice lists** (4-8 options, up to 16 if needed)
15
- - **Maintain single focus** per message
16
- - **Use visual formatting** (bold, code blocks, lists)
17
- - **Optimize for ADHD-C** (minimal cognitive load)
18
-
19
- Begin with a diff block showing:
20
- ```diff
21
- 👉 Agent management mode
22
- ⏳ [Current operation]
23
- ```
24
-
25
- ### Step 2: Scan Agents Directory
26
-
27
- **CRITICAL: You MUST execute `listDirectory` tool on `.kiro/agents/` to get the actual list of agents.**
28
-
29
- **DO NOT rely on open editor files or context - always scan the directory explicitly.**
30
-
31
- Execute `listDirectory` on `.kiro/agents/`:
32
-
33
- **If directory doesn't exist OR directory is empty:**
34
- 1. **Load agent creation protocol**:
35
- - Call `kiroPowers` with action="activate", powerName="kiro-protocols"
36
- - Call `kiroPowers` with action="readSteering", powerName="kiro-protocols", steeringFile="agent-creation.md"
37
- 2. Create `.kiro/agents/kiro-master.md` agent automatically using the description from "Initial Agent" section
38
- 3. Follow the agent definition structure from agent-creation.md protocol
39
- 4. Show diff block indicating setup completion
40
- 5. Continue to Step 3 with kiro-master as available agent
41
-
42
- **If directory exists with agents:**
43
- 1. **Execute `listDirectory` tool** to get complete list of `.md` files
44
- 2. Extract agent names from filenames (remove `.md` extension)
45
- 3. Read frontmatter metadata for descriptions
46
- 4. Categorize by agent type if metadata available
47
- 5. **List ALL agents found** - do not filter or assume based on context
48
-
49
- ### Step 3: Present Agent Selection
50
-
51
- Use this response structure:
52
-
53
- ```diff
54
- 👉 Agent management mode
55
- ⏳ Agent selection or management
56
- ```
57
-
58
- **Current Focus**: Agent selection and management
59
-
60
- **Available agents in `.kiro/agents/`:**
61
-
62
- [List each agent with format:]
63
- - **{agent-name}** - {description from frontmatter or .md}
64
-
65
- **What would you like to do?**
66
-
67
- 1. **Activate agent** - Choose agent to activate immediately
68
- 2. **Create new agent** - Start agent creation wizard
69
- 3. **Manage existing agent** - Modify agent configuration
70
- 4. **View agent details** - Show full agent definition
71
- 5. **List all commands** - Show available slash commands
72
- 6. **Agent system help** - Explain how agents work
73
- 7. **Exit** - Return to normal mode
74
-
75
- ### Step 4: Handle User Choice
76
-
77
- Based on user selection:
78
-
79
- #### Option 1 - Activate Agent
80
-
81
- - Show numbered list of available agents
82
- - User selects agent by number
83
- - Execute `/agents {selected_agent_name}` command
84
- - Agent activates immediately
85
-
86
- #### Option 2 - Create New Agent
87
-
88
- - **Load agent creation protocol**:
89
- - Call `kiroPowers` with action="activate", powerName="kiro-protocols"
90
- - Call `kiroPowers` with action="readSteering", powerName="kiro-protocols", steeringFile="agent-creation.md"
91
- - Follow all steps from the "Method Selection" section in agent-creation.md
92
- - Present 5 creation methods to user:
93
- 1. Quick Start (predefined templates)
94
- 2. Project-Specific (AI analysis)
95
- 3. Explore Roles (domain browser)
96
- 4. Guided Wizard (step-by-step)
97
- 5. Natural Language (describe in plain English)
98
- - Execute selected method following protocol
99
- - Generate `.md` file with complete agent definition
100
- - Validate agent definition per protocol
101
- - Offer to activate new agent
102
-
103
- #### Option 3 - Manage Existing Agent
104
-
105
- - **Load agent structure reference**:
106
- - Call `kiroPowers` with action="activate", powerName="kiro-protocols"
107
- - Call `kiroPowers` with action="readSteering", powerName="kiro-protocols", steeringFile="agent-creation.md"
108
- - Show numbered list of available agents
109
- - User selects agent to manage
110
- - Offer management options:
111
- - Modify capabilities
112
- - Update instructions
113
- - Change interaction protocol
114
- - Add/remove integrations
115
- - Delete agent
116
- - Use agent definition structure from protocol as reference for modifications
117
- - Apply changes to agent `.md` file
118
- - Validate changes against protocol requirements
119
- - Reload agent if currently active
120
-
121
- #### Option 4 - View Agent Details
122
-
123
- - Show numbered list of available agents
124
- - User selects agent to view
125
- - Display full `.md` content with formatting
126
- - Show agent protocols and capabilities summary
127
- - Offer to activate or manage agent
128
-
129
- #### Option 5 - List All Commands
130
-
131
- Show all available slash commands in the system:
132
-
133
- ```
134
- Available Commands:
135
-
136
- AGENT COMMANDS
137
- /agents {name} Activate specific agent
138
- /agents Interactive agent management
139
-
140
- MODE COMMANDS (see modes-system.md)
141
- /modes {name} Switch Kiro mode (vibe/spec)
142
- /modes Interactive mode management
143
- /strict {state} Control strict mode (on/off)
144
- /strict Interactive strict mode control
145
-
146
- Note: Commands are defined in steering documents.
147
- New commands can be added via Instruction Alias pattern.
148
- ```
149
-
150
- #### Option 6 - Agent System Help
151
-
152
- Explain agent system:
153
- - Agent system architecture
154
- - Command usage examples
155
- - Agent file structure
156
- - How to create custom agents
157
- - Best practices for agent usage
158
-
159
- #### Option 7 - Exit
160
-
161
- - Confirm exit from agent management mode
162
- - Return to normal interaction
163
- - Preserve any changes made
164
-
165
- ### Step 5: Maintain Chit-Chat Mode
166
-
167
- Continue using diff blocks and numbered choices throughout agent management session.
168
-
169
- After each action:
170
- - Update diff block with progress
171
- - Show current focus
172
- - Provide next action choices
173
- - Allow going back or canceling
174
-
175
- **Context Preservation:**
176
- - Use diff blocks to show progress
177
- - Preserve user decisions
178
- - Allow going back to previous step
179
- - Enable canceling operations
180
-
181
- ---
182
-
183
- **Agent management mode active. Present choices to user.**
@@ -1,139 +0,0 @@
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 +0,0 @@
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.**