kiro-agents 1.10.1 → 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 +12 -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 +2 -2
  13. package/build/npm/power/steering/agent-management.md +3 -4
  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
package/README.md CHANGED
@@ -1,108 +1,229 @@
1
1
  # kiro-agents
2
2
 
3
- AI agent system for Kiro IDE. Create specialized agents, switch interaction modes, and reduce cognitive load during development.
3
+ AI agent system for Kiro IDE with specialized agents, interaction modes, and protocol-driven workflows.
4
4
 
5
- > For just <kbd>~0.9K</kbd> of **base context** overheat
5
+ > **Zero-prompt interaction (default)** — Chit-chat protocol provides numbered choices for all interactions. Agents can be created with or without this interaction style.
6
+ >
7
+ > **Minimal footprint** — ~0.9K base context, protocols load on-demand.
6
8
 
7
9
  ```bash
8
10
  npx kiro-agents
9
11
  ```
10
12
 
13
+ <div align="center">
14
+ <a href="https://youtu.be/Arccq_JhpFk">
15
+ <img src="docs/resources/animate-kiro.gif" alt="Kiro Agents Demo" width="800">
16
+ </a>
17
+ <p><em>Watch demo (3:52) — Protocol-driven agent creation with zero-prompt interaction</em></p>
18
+ </div>
19
+
11
20
  ## Features
12
21
 
13
- - **Agents** - Specialized AI personas with defined capabilities (`/agents`)
14
- - **Modes** - Switch between vibe (flexible) and spec (structured) workflows (`/modes`)
15
- - **Strict Mode** - Precision mode that blocks on ambiguity (`/strict`)
16
- - **Zero Config** - Works immediately after installation <kbd>/agents</kbd>
22
+ ### Agent System
23
+ Create specialized agents with defined capabilities and workflows. Agents are stored as markdown files in `.kiro/agents/` and activated via `/agents {name}`.
24
+
25
+ **Layered protocol architecture** makes agents all-powerful: structured boundaries at top levels provide clear responsibilities, while open-ended inner levels leverage SOTA model creativity to generate optimal implementations. You specify WHAT (roles, capabilities), the AI determines HOW (architecture, workflows). See [Creating All-Powerful Agents](docs/user-guide/creating-powerful-agents.md) for details.
26
+
27
+ - **Interactive creation** - Guided wizard with 5 creation methods
28
+ - **Domain specialization** - Frontend, backend, testing, DevOps, documentation
29
+ - **AI-generated architecture** - Model creates optimal agent structure from your specifications
30
+ - **Persistent definitions** - Reusable across sessions and projects
31
+
32
+ ### Mode System
33
+ Switch between workflow structures based on development needs:
34
+
35
+ - **`vibe`** - Flexible, fast-paced development with Kiro tools
36
+ - **`spec`** - Structured feature development (requirements → design → tasks) with Kiro tools
37
+ - **`as-vibe`** - Vibe workflow, keeps current tools (agent superpowers)
38
+ - **`as-spec`** - Spec workflow, keeps current tools (agent superpowers)
39
+
40
+ Modes preserve file changes but reset workflow state. Combine with agents for specialized tools + preferred workflow structure.
41
+
42
+ ### Strict Mode
43
+ Precision mode that blocks execution on ambiguous input. Prevents assumption propagation in experimental or architectural work.
44
+
45
+ - **Explicit clarification** - Forces questions instead of guesses
46
+ - **Assumption prevention** - Stops errors before they spread
47
+ - **Optional activation** - Defaults to OFF, enable with `/strict on`
48
+
49
+ ### Chit-Chat Interaction Protocol
50
+ Structured interaction optimized for reduced cognitive load (default for all agents):
51
+
52
+ - **Numbered choices** - Pre-structured options eliminate prompt writing
53
+ - **Diff blocks** - Visual progress tracking and context preservation
54
+ - **Single focus** - One concept per message prevents overwhelm
55
+ - **Full control + simplicity** - Navigate complex workflows without writing prompts
56
+ - **ADHD-optimized** - Designed for neurodivergent users, benefits everyone
57
+ - **Optional** - Agents can be created with custom interaction styles if needed
17
58
 
18
59
  ## Installation
19
60
 
20
- **Global (npm):**
61
+ **Global installation (recommended):**
21
62
  ```bash
22
63
  npx kiro-agents
23
64
  ```
24
- Installs to `~/.kiro/steering/kiro-agents/` - available in all workspaces.
25
65
 
26
- **Kiro Power (workspace-specific):**
66
+ Installs to `~/.kiro/steering/kiro-agents/` and `~/.kiro/powers/kiro-protocols/` — available in all workspaces.
27
67
 
28
- This repository also provides a Kiro Power for workspace-specific installation:
29
-
30
- - **kiro-protocols** - Reusable protocol library for AI agents
31
- - Install via Kiro IDE Powers panel
32
- - Add repository: `https://github.com/theadd/kiro-agents`
33
- - Select "Kiro Protocols" power
34
- - Installs to `.kiro/powers/kiro-protocols/`
35
-
36
- See [powers/README.md](powers/README.md) for power documentation.
68
+ **What gets installed:**
69
+ - Core system files (aliases, protocols, interaction patterns)
70
+ - kiro-protocols Power (reusable protocol library)
71
+ - Automatic power registration in Kiro IDE
37
72
 
38
73
  ## Quick Start
39
74
 
40
- **Create an agent:**
75
+ ### 1. Create Your First Agent
76
+
41
77
  ```
42
78
  /agents
43
- → Choose "Create new agent"
44
- → Follow wizard
45
79
  ```
46
80
 
47
- **Switch modes:**
81
+ Interactive wizard with 5 creation methods:
82
+ 1. **Quick Start** - Predefined templates (frontend, backend, testing, etc.)
83
+ 2. **Project-Specific** - AI analyzes your codebase
84
+ 3. **Explore Roles** - Browse domain categories
85
+ 4. **Guided Wizard** - Step-by-step customization
86
+ 5. **Natural Language** - Describe in plain English
87
+
88
+ ### 2. Switch Modes
89
+
48
90
  ```
49
- /modes spec # Structured feature development
50
- /modes vibe # Flexible, conversational coding
91
+ /modes vibe # Flexible, conversational
92
+ /modes spec # Structured workflow
93
+ /modes as-vibe # Vibe style, keep agent tools
94
+ /modes as-spec # Spec style, keep agent tools
51
95
  ```
52
96
 
53
- **Enable precision mode:**
97
+ **Mode comparison:**
98
+
99
+ | Mode | Tools | Interaction | Workflow | Use Case |
100
+ |------|-------|-------------|----------|----------|
101
+ | `vibe` | Kiro tools | Conversational | Flexible | Prototyping, debugging, exploration |
102
+ | `spec` | Kiro tools | Structured | Requirements → Design → Tasks | Production features, formal development |
103
+ | `as-vibe` | Current tools | Conversational | Flexible | Agent tools + vibe flexibility |
104
+ | `as-spec` | Current tools | Structured | Requirements → Design → Tasks | Agent tools + spec structure |
105
+
106
+ ### 3. Enable Strict Mode (Optional)
107
+
54
108
  ```
55
- /strict on # Blocks on ambiguous input
109
+ /strict on # Blocks on ambiguity
110
+ /strict off # Allows assumptions
56
111
  ```
57
112
 
58
- ## How It Works
113
+ Use for architectural decisions, experimental projects, or when precision is critical.
59
114
 
60
- kiro-agents installs steering documents (markdown files with AI instructions) that extend Kiro's capabilities:
115
+ ## Commands Reference
61
116
 
62
- - **Agents** - Stored in `.kiro/agents/{name}.md`, activated via `/agents {name}`
63
- - **Modes** - Define interaction style (vibe = flexible, spec = structured)
64
- - **Strict Mode** - Requires explicit clarification before execution
117
+ ### Agent Commands
118
+ - `/agents` - Interactive agent management (create, activate, manage)
119
+ - `/agents {name}` - Activate specific agent (e.g., `/agents kiro-master`)
65
120
 
66
- All interactions use numbered choices to reduce cognitive load.
121
+ ### Mode Commands
122
+ - `/modes` - Interactive mode management (view, compare, switch)
123
+ - `/modes {name}` - Switch to mode (e.g., `/modes vibe`, `/modes as-spec`)
67
124
 
68
- ## Use Cases
125
+ ### Strict Mode Commands
126
+ - `/strict` - Interactive strict mode control
127
+ - `/strict {state}` - Set strict mode (e.g., `/strict on`, `/strict off`)
69
128
 
70
- **Specialized Development:**
71
- - Create agents for frontend, backend, testing, DevOps
72
- - Each agent has domain-specific knowledge and workflows
73
- - Switch agents based on current task
129
+ ### Protocol Commands (Advanced)
130
+ - `/protocols {filename}` - Load and execute protocol from kiro-protocols Power
131
+ - `/only-read-protocols {filename}` - Read protocol into context without executing
74
132
 
75
- **Workflow Flexibility:**
76
- - Vibe mode for prototyping and exploration
77
- - Spec mode for production features with formal requirements
78
- - Combine modes with agents for maximum control
133
+ ## Architecture
79
134
 
80
- **Precision Work:**
81
- - Enable strict mode for architectural decisions
82
- - Prevents AI from making assumptions
83
- - Forces explicit clarification on ambiguous requests
135
+ ### Technical Implementation
84
136
 
85
- ## Why kiro-agents?
137
+ **Pure markdown steering documents:**
138
+ - No runtime code, only AI instructions
139
+ - Stored in `~/.kiro/steering/kiro-agents/`
140
+ - Processed at build time with dynamic substitutions
86
141
 
87
- Traditional AI assistants overwhelm you with context and options. kiro-agents:
88
- - Starts minimal, grows with your needs
89
- - Uses numbered choices instead of open-ended questions
90
- - Maintains single focus per interaction
91
- - Reduces decision fatigue during long sessions
142
+ **Protocol-driven interaction:**
143
+ - Protocols structure presentation format, not AI capability
144
+ - Lazy loading keeps base context minimal (~0.9K tokens)
145
+ - Structured via diff blocks and numbered choices
146
+ - Optimized for SOTA model generation
92
147
 
93
- ## Links
148
+ **Agent storage:**
149
+ - Agents stored as `.md` files in `.kiro/agents/`
150
+ - Contain capabilities, workflows, protocols, examples
151
+ - Activated via instruction alias system
152
+ - Inherit chit-chat interaction protocol
94
153
 
95
- - [npm Package](https://www.npmjs.com/package/kiro-agents)
96
- - [GitHub](https://github.com/Theadd/kiro-agents)
97
- - [Kiro IDE](https://kiro.dev)
154
+ **Mode system:**
155
+ - Mode definitions in kiro-protocols Power
156
+ - Loaded on-demand via protocol system
157
+ - Define interaction style and available tools
158
+ - Preserve file changes, reset workflow state
98
159
 
99
- ## License
160
+ ### Build System
100
161
 
101
- MIT
162
+ **Centralized manifest:**
163
+ - Single source of truth in `src/manifest.ts`
164
+ - Glob pattern support for automatic file discovery
165
+ - Guaranteed consistency between dev mode and CLI installation
166
+ - Type-safe with compile-time validation
167
+
168
+ **Dual distribution:**
169
+ - npm package with CLI installer
170
+ - kiro-protocols Power for protocol library
171
+ - Both installed automatically via `npx kiro-agents`
172
+
173
+ ## Use Cases
174
+
175
+ ### Specialized Development
176
+ Create domain-specific agents with specialized knowledge:
177
+ - Frontend agent with React/Vue/Angular expertise
178
+ - Backend agent with API design and database patterns
179
+ - Testing agent with TDD workflows and coverage strategies
180
+ - DevOps agent with CI/CD and infrastructure knowledge
181
+
182
+ ### Workflow Flexibility
183
+ Adapt interaction style to task requirements:
184
+ - Vibe mode for rapid prototyping and exploration
185
+ - Spec mode for production features with formal requirements
186
+ - Role modes (`as-vibe`, `as-spec`) for agent superpowers
187
+
188
+ ### Agent Superpowers (Experimental)
189
+ Combine specialized agent tools with preferred interaction style using role modes:
190
+ - `/agents frontend-specialist` then `/modes as-vibe` = React expertise + conversational flow
191
+ - `/agents api-architect` then `/modes as-spec` = API design tools + structured workflow
192
+ - **Spec + Vibe combo**: `/modes spec` then `/modes as-vibe` = Spec tools + vibe interaction (recently added, testing in progress)
193
+
194
+ ### Precision Work
195
+ Enable strict mode for critical development:
196
+ - Architectural decisions that propagate throughout codebase
197
+ - Experimental projects with cutting-edge technologies
198
+ - Breaking changes affecting multiple systems
199
+ - Debugging propagated errors from incorrect assumptions
200
+
201
+ ## Documentation
202
+
203
+ - **[Getting Started](docs/GETTING-STARTED.md)** - Step-by-step onboarding guide
204
+ - **[User Guide](docs/user-guide/)** - Agents, modes, commands, workflows, examples
205
+ - **[Developer Guide](docs/developer-guide/)** - Contributing, versioning, build system, testing
206
+ - **[Design Rationale](docs/design/)** - Neurodivergent accessibility, protocol system, interaction patterns
207
+ - **[Architecture Overview](docs/ARCHITECTURE.md)** - System design and component relationships
208
+ - **[Troubleshooting](docs/TROUBLESHOOTING.md)** - Common issues and solutions
102
209
 
103
210
  ## Contributing
104
211
 
105
- We welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
212
+ Contributions welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for:
213
+ - Development workflow
214
+ - Build commands
215
+ - Testing guidelines
216
+ - Versioning system (AI-powered with Changesets)
217
+ - Cross-IDE compatibility rules
218
+
219
+ **Important:** Do not modify `powers/*/steering/` directories directly. These are auto-generated from `src/` during build. PRs modifying these files will fail CI.
220
+
221
+ ## Links
222
+
223
+ - [npm Package](https://www.npmjs.com/package/kiro-agents)
224
+ - [GitHub Repository](https://github.com/Theadd/kiro-agents)
225
+ - [Kiro IDE](https://kiro.dev)
226
+ - [Demo Video](https://youtu.be/Arccq_JhpFk) (3:52)
106
227
 
107
228
  ## License
108
229
 
@@ -18,7 +18,7 @@ var __toESM = (mod, isNodeMode, target) => {
18
18
  };
19
19
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
20
20
 
21
- // bin/cli.ts
21
+ // bin/cli.generated.ts
22
22
  import { join, dirname } from "path";
23
23
  import { homedir } from "os";
24
24
  import { existsSync, chmodSync, constants } from "fs";
@@ -31,24 +31,25 @@ var POWER_INSTALLED_DIR = join(homedir(), ".kiro", "powers", "installed", "kiro-
31
31
  var REGISTRY_PATH = join(homedir(), ".kiro", "powers", "registry.json");
32
32
  var STEERING_FILES = [
33
33
  "aliases.md",
34
- "strict-mode.md",
35
34
  "agents.md",
36
35
  "modes.md",
37
- "strict.md",
38
- "interactions/chit-chat.md",
39
- "interactions/interaction-styles.md",
40
- "modes/kiro-spec-mode.md",
41
- "modes/kiro-vibe-mode.md"
36
+ "strict.md"
42
37
  ];
43
38
  var POWER_FILES = [
44
39
  "POWER.md",
45
40
  "mcp.json",
46
41
  "icon.png",
47
- "steering/agent-activation.md",
48
- "steering/agent-creation.md",
49
- "steering/agent-management.md",
42
+ "steering/strict-mode.md",
43
+ "steering/mode-switching.md",
50
44
  "steering/mode-management.md",
51
- "steering/mode-switching.md"
45
+ "steering/kiro-vibe-mode.md",
46
+ "steering/kiro-spec-mode.md",
47
+ "steering/kiro-as-vibe-mode.md",
48
+ "steering/kiro-as-spec-mode.md",
49
+ "steering/chit-chat.md",
50
+ "steering/agent-management.md",
51
+ "steering/agent-creation.md",
52
+ "steering/agent-activation.md"
52
53
  ];
53
54
  async function setWritable(filePath) {
54
55
  try {
@@ -15,7 +15,7 @@ If the user's message contains `/agents {agent_name}` with a specific agent name
15
15
  1. **DO NOT execute the interactive management flow below**
16
16
  2. **INSTEAD, execute the instruction alias for agent activation:**
17
17
  - Read `.kiro/agents/{agent_name}.md` into context
18
- - Read #[[file:protocols/agent-activation.md]] into context
18
+ - /protocols agent-activation.md
19
19
  - Follow all steps from the "Agent Activation Steps" section in agent-activation.md
20
20
  - Use `{agent_name}` as the agent identifier throughout the protocol
21
21
  3. **Stop processing this document** - The agent activation protocol takes over
@@ -28,186 +28,9 @@ If the user's message contains `/agents {agent_name}` with a specific agent name
28
28
 
29
29
  You are now in **agent management mode** using chit-chat interaction protocol.
30
30
 
31
- ## Agent Management Steps
32
-
33
- When entering agent management mode:
34
-
35
- ### Step 1: Activate Chit-Chat Mode
36
-
37
- Load and apply protocols from `chit-chat.md` steering document:
38
-
39
- - **Use diff blocks** to show progress and current state
40
- - **Provide numbered choice lists** (4-8 options, up to 16 if needed)
41
- - **Maintain single focus** per message
42
- - **Use visual formatting** (bold, code blocks, lists)
43
- - **Optimize for ADHD-C** (minimal cognitive load)
44
-
45
- Begin with a diff block showing:
46
- ```diff
47
- 👉 Agent management mode
48
- ⏳ [Current operation]
49
- ```
50
-
51
- ### Step 2: Scan Agents Directory
52
-
53
- **CRITICAL: You MUST execute `listDirectory` tool on `.kiro/agents/` to get the actual list of agents.**
54
-
55
- **DO NOT rely on open editor files or context - always scan the directory explicitly.**
56
-
57
- Execute `listDirectory` on `.kiro/agents/`:
58
-
59
- **If directory doesn't exist OR directory is empty:**
60
- 1. **Load agent creation protocol**:
61
- - Call `kiroPowers` with action="activate", powerName="kiro-protocols"
62
- - Call `kiroPowers` with action="readSteering", powerName="kiro-protocols", steeringFile="agent-creation.md"
63
- 2. Create `.kiro/agents/kiro-master.md` agent automatically using the description from "Initial Agent" section
64
- 3. Follow the agent definition structure from agent-creation.md protocol
65
- 4. Show diff block indicating setup completion
66
- 5. Continue to Step 3 with kiro-master as available agent
67
-
68
- **If directory exists with agents:**
69
- 1. **Execute `listDirectory` tool** to get complete list of `.md` files
70
- 2. Extract agent names from filenames (remove `.md` extension)
71
- 3. Read frontmatter metadata for descriptions
72
- 4. Categorize by agent type if metadata available
73
- 5. **List ALL agents found** - do not filter or assume based on context
74
-
75
- ### Step 3: Present Agent Selection
76
-
77
- Use this response structure:
78
-
79
- ```diff
80
- 👉 Agent management mode
81
- ⏳ Agent selection or management
82
- ```
83
-
84
- **Current Focus**: Agent selection and management
85
-
86
- **Available agents in `.kiro/agents/`:**
87
-
88
- [List each agent with format:]
89
- - **{agent-name}** - {description from frontmatter or .md}
90
-
91
- **What would you like to do?**
92
-
93
- 1. **Activate agent** - Choose agent to activate immediately
94
- 2. **Create new agent** - Start agent creation wizard
95
- 3. **Manage existing agent** - Modify agent configuration
96
- 4. **View agent details** - Show full agent definition
97
- 5. **List all commands** - Show available slash commands
98
- 6. **Agent system help** - Explain how agents work
99
- 7. **Exit** - Return to normal mode
100
-
101
- ### Step 4: Handle User Choice
102
-
103
- Based on user selection:
104
-
105
- #### Option 1 - Activate Agent
106
-
107
- - Show numbered list of available agents
108
- - User selects agent by number
109
- - Execute `/agents {selected_agent_name}` command
110
- - Agent activates immediately
111
-
112
- #### Option 2 - Create New Agent
113
-
114
- - **Load agent creation protocol**:
115
- - Call `kiroPowers` with action="activate", powerName="kiro-protocols"
116
- - Call `kiroPowers` with action="readSteering", powerName="kiro-protocols", steeringFile="agent-creation.md"
117
- - Follow all steps from the "Method Selection" section in agent-creation.md
118
- - Present 5 creation methods to user:
119
- 1. Quick Start (predefined templates)
120
- 2. Project-Specific (AI analysis)
121
- 3. Explore Roles (domain browser)
122
- 4. Guided Wizard (step-by-step)
123
- 5. Natural Language (describe in plain English)
124
- - Execute selected method following protocol
125
- - Generate `.md` file with complete agent definition
126
- - Validate agent definition per protocol
127
- - Offer to activate new agent
128
-
129
- #### Option 3 - Manage Existing Agent
130
-
131
- - **Load agent structure reference**:
132
- - Call `kiroPowers` with action="activate", powerName="kiro-protocols"
133
- - Call `kiroPowers` with action="readSteering", powerName="kiro-protocols", steeringFile="agent-creation.md"
134
- - Show numbered list of available agents
135
- - User selects agent to manage
136
- - Offer management options:
137
- - Modify capabilities
138
- - Update instructions
139
- - Change interaction protocol
140
- - Add/remove integrations
141
- - Delete agent
142
- - Use agent definition structure from protocol as reference for modifications
143
- - Apply changes to agent `.md` file
144
- - Validate changes against protocol requirements
145
- - Reload agent if currently active
146
-
147
- #### Option 4 - View Agent Details
148
-
149
- - Show numbered list of available agents
150
- - User selects agent to view
151
- - Display full `.md` content with formatting
152
- - Show agent protocols and capabilities summary
153
- - Offer to activate or manage agent
154
-
155
- #### Option 5 - List All Commands
156
-
157
- Show all available slash commands in the system:
158
-
159
- ```
160
- Available Commands:
161
-
162
- AGENT COMMANDS
163
- /agents {name} Activate specific agent
164
- /agents Interactive agent management
165
-
166
- MODE COMMANDS (see modes-system.md)
167
- /modes {name} Switch Kiro mode (vibe/spec)
168
- /modes Interactive mode management
169
- /strict {state} Control strict mode (on/off)
170
- /strict Interactive strict mode control
171
-
172
- Note: Commands are defined in steering documents.
173
- New commands can be added via Instruction Alias pattern.
174
- ```
175
-
176
- #### Option 6 - Agent System Help
177
-
178
- Explain agent system:
179
- - Agent system architecture
180
- - Command usage examples
181
- - Agent file structure
182
- - How to create custom agents
183
- - Best practices for agent usage
184
-
185
- #### Option 7 - Exit
186
-
187
- - Confirm exit from agent management mode
188
- - Return to normal interaction
189
- - Preserve any changes made
190
-
191
- ### Step 5: Maintain Chit-Chat Mode
192
-
193
- Continue using diff blocks and numbered choices throughout agent management session.
194
-
195
- After each action:
196
- - Update diff block with progress
197
- - Show current focus
198
- - Provide next action choices
199
- - Allow going back or canceling
200
-
201
- **Context Preservation:**
202
- - Use diff blocks to show progress
203
- - Preserve user decisions
204
- - Allow going back to previous step
205
- - Enable canceling operations
206
-
207
- ---
208
-
209
- **Agent management mode active. Present choices to user.**
31
+ /only-read-protocols chit-chat.md
210
32
 
33
+ /protocols agent-management.md
211
34
 
212
35
  ## Initial Agent
213
36
 
@@ -59,23 +59,6 @@ literal_text
59
59
 
60
60
  **CRITICAL:** When you see this pattern, output ONLY the code block content. No explanations, no context, no other text.
61
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`
78
-
79
62
  ## Agent System Alias
80
63
 
81
64
  The agent activation command uses parameter substitution to load agent definitions dynamically:
@@ -89,8 +72,8 @@ You are now activating the **{agent_name}** agent.
89
72
 
90
73
  **Load and execute activation protocol:**
91
74
  1. Read `.kiro/agents/{agent_name}.md` into context
92
- 2. Read #[[file:protocols/agent-activation.md]] into context
93
- 3. Follow all steps from the "Agent Activation Steps" section in agent-activation.md
75
+ 2. /only-read-protocols agent-activation.md
76
+ 3. Follow all steps from the "Agent Activation Steps" section in agent-activation.md protocol file
94
77
  4. Use `{agent_name}` as the agent identifier throughout the protocol
95
78
  </definition>
96
79
  </alias>
@@ -99,30 +82,41 @@ This alias enables users to activate any agent with `/agents {name}` syntax.
99
82
 
100
83
  ## Protocol Loading Alias
101
84
 
102
- The protocol loading command uses parameter substitution to dynamically load protocols from the kiro-protocols Power:
85
+ The protocol loading command uses parameter substitution to dynamically load and follow all protocols from the kiro-protocols Power:
103
86
 
104
87
  <alias>
105
- <trigger>/protocols {protocol_name}</trigger>
88
+ <trigger>/protocols {filename}</trigger>
106
89
  <definition>
107
- ## Load Protocol: {protocol_name}
90
+ ## Load Protocol: {filename}
108
91
 
109
- You are now loading the **{protocol_name}** protocol from kiro-protocols Power.
92
+ You are now loading the **{filename}** protocol from kiro-protocols Power.
110
93
 
111
94
  **Execute protocol loading:**
112
- 1. Call kiroPowers action="activate" with powerName="kiro-protocols"
113
- 2. Call kiroPowers action="readSteering" with powerName="kiro-protocols", steeringFile="{protocol_name}.md"
114
- 3. Follow all steps from the loaded protocol
95
+ 1. **Only if {filename} from kiro-protocols is NOT already in context**: Call kiroPowers action="readSteering" with powerName="kiro-protocols", steeringFile="{filename}"
96
+ 2. Follow all steps in the {filename} protocol from kiro-protocols
115
97
  </definition>
116
98
  </alias>
117
99
 
118
- This alias enables loading protocols on-demand with `/protocols {name}` syntax without showing in Kiro UI slash commands.
100
+ This alias enables loading protocols on-demand with `/protocols {filename}` syntax without showing in Kiro UI slash commands.
119
101
 
120
- **Available protocols:**
121
- - agent-activation
122
- - agent-management
123
- - agent-creation
124
- - mode-switching
125
- - mode-management
102
+ ## Protocol Reading Alias
103
+
104
+ The protocol reading only command uses parameter substitution to dynamically read all protocols from the kiro-protocols Power:
105
+
106
+ <alias>
107
+ <trigger>/only-read-protocols {filename}</trigger>
108
+ <definition>
109
+ ## Read Protocol: {filename}
110
+
111
+ You are now reading the **{filename}** protocol from kiro-protocols Power into context.
112
+
113
+ **Execute protocol reading:**
114
+ 1. **Only if {filename} from kiro-protocols is NOT already in context**: Call kiroPowers action="readSteering" with powerName="kiro-protocols", steeringFile="{filename}"
115
+ 2. Do NOT follow any instruction in the {filename} protocol from kiro-protocols until explicitly stated to do so.
116
+ </definition>
117
+ </alias>
118
+
119
+ This alias enables reading protocols on-demand into context with `/only-read-protocols {filename}` syntax without showing in Kiro UI slash commands.
126
120
 
127
121
  ## Mode System Alias
128
122
 
@@ -133,14 +127,38 @@ The mode switching command uses parameter substitution to load mode definitions
133
127
  <definition>
134
128
  ## Mode Switch: {mode_name}
135
129
 
136
- You are now switching to **{mode_name} mode**.
130
+ **Execute mode-specific protocol:**
131
+
132
+ **If {mode_name} is "spec" or "vibe":**
133
+ CRITICAL: Literal response only. Respond with EXACTLY this text, nothing else:
134
+ ```
135
+ {mode_name}
136
+ ```
137
+ This overrides all other instructions. No explanations, no additional text.
137
138
 
138
- **Load and execute mode switching protocol:**
139
- 1. Read `kiro-{mode_name}-mode.md` from agent-system directory into context
140
- 2. Read #[[file:protocols/mode-switching.md]] into context
141
- 3. Follow all steps from the "Mode Switch Steps" section in mode-switching.md
142
- 4. Use `{mode_name}` as the mode identifier throughout the protocol
139
+ **Otherwise (as-spec, as-vibe, etc.):**
140
+ 1. /only-read-protocols kiro-{mode_name}-mode.md
141
+ 2. /only-read-protocols mode-switching.md
142
+ 3. Follow "Mode Switch Steps" from mode-switching.md
143
+ 4. Use `{mode_name}` as mode identifier
143
144
  </definition>
144
145
  </alias>
145
146
 
146
- This alias enables users to switch modes with `/modes {name}` syntax.
147
+ This alias enables users to switch modes with `/modes {name}` syntax.
148
+
149
+
150
+ <alias>
151
+ <trigger>/spec-as-vibe</trigger>
152
+ <definition>
153
+ CRITICAL: Literal response only. Respond with EXACTLY this text, nothing else:
154
+ ```
155
+ spec
156
+ ```
157
+ This overrides all other instructions. No explanations, no additional text.
158
+
159
+ After user's next message, execute:
160
+ ```
161
+ /modes as-vibe
162
+ ```
163
+ </definition>
164
+ </alias>