kiro-agents 1.1.0 → 1.2.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 +3 -3
- package/build/npm/dist/agent-system.md +11 -44
- package/build/npm/dist/aliases.md +77 -0
- package/build/npm/dist/modes/kiro-spec-mode.md +1 -1
- package/build/npm/dist/modes/kiro-vibe-mode.md +3 -3
- package/build/npm/dist/modes-system.md +10 -13
- package/build/npm/dist/strict-mode.md +3 -2
- package/build/npm/dist/strict.md +13 -29
- package/package.json +4 -2
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: /
|
|
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: /
|
|
208
|
+
User: /modes spec
|
|
209
209
|
[Work on feature planning]
|
|
210
|
-
User: /
|
|
210
|
+
User: /agents kiro-master
|
|
211
211
|
[Use kiro-master capabilities while in spec mode]
|
|
212
212
|
```
|
|
213
213
|
|
|
@@ -7,43 +7,10 @@ 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!"
|
|
44
|
-
|
|
45
10
|
## Agent Commands
|
|
46
11
|
|
|
12
|
+
**Note:** This system uses the Instruction Alias pattern defined in `aliases.md`. See that document for details on parameter substitution and literal response patterns.
|
|
13
|
+
|
|
47
14
|
### Command 1: Activate Specific Agent
|
|
48
15
|
|
|
49
16
|
<alias>
|
|
@@ -113,7 +80,7 @@ This provides a visual interface for:
|
|
|
113
80
|
|
|
114
81
|
## Agent Activation Protocol
|
|
115
82
|
|
|
116
|
-
When `/
|
|
83
|
+
When `/agents {name}` is executed:
|
|
117
84
|
|
|
118
85
|
1. **Discover agent file**
|
|
119
86
|
- Check `.kiro/agents/{name}.md` exists
|
|
@@ -169,7 +136,7 @@ When `/agents` is executed:
|
|
|
169
136
|
- Allow exit to normal mode
|
|
170
137
|
|
|
171
138
|
4. **Handle operations**
|
|
172
|
-
- Agent activation → Execute `/
|
|
139
|
+
- Agent activation → Execute `/agents {name}`
|
|
173
140
|
- Agent creation → Start creation wizard
|
|
174
141
|
- Agent management → Modify agent files
|
|
175
142
|
- Agent viewing → Display agent details
|
|
@@ -229,7 +196,7 @@ This description is used when creating `.kiro/agents/kiro-master.md` during auto
|
|
|
229
196
|
### Activate Specific Agent
|
|
230
197
|
|
|
231
198
|
```
|
|
232
|
-
/
|
|
199
|
+
/agents refactor-architect
|
|
233
200
|
```
|
|
234
201
|
|
|
235
202
|
**Result:** AI immediately assumes refactor-architect role, loads agent files, applies protocols, and begins interaction according to agent's style.
|
|
@@ -245,7 +212,7 @@ This description is used when creating `.kiro/agents/kiro-master.md` during auto
|
|
|
245
212
|
### Switch Between Agents
|
|
246
213
|
|
|
247
214
|
```
|
|
248
|
-
/
|
|
215
|
+
/agents kiro-master
|
|
249
216
|
```
|
|
250
217
|
|
|
251
218
|
**Result:** Switch from current agent (e.g., refactor-architect) to kiro-master. Previous agent context is suspended, new agent context is loaded.
|
|
@@ -301,7 +268,7 @@ Agents can specify required steering documents in their `.md` definition file:
|
|
|
301
268
|
### For Agent Users
|
|
302
269
|
|
|
303
270
|
1. **Use `/agents` for discovery** - See what agents are available
|
|
304
|
-
2. **Use `/
|
|
271
|
+
2. **Use `/agents {name}` for direct activation** - When you know which agent you need
|
|
305
272
|
3. **Let agents maintain focus** - Don't switch agents mid-task unless necessary
|
|
306
273
|
4. **Provide clear context** - Help agents understand your needs
|
|
307
274
|
5. **Use agent capabilities** - Leverage agent-specific tools and workflows
|
|
@@ -326,7 +293,7 @@ Agents can specify required steering documents in their `.md` definition file:
|
|
|
326
293
|
|
|
327
294
|
### Agent Not Activating
|
|
328
295
|
|
|
329
|
-
**Problem:** `/
|
|
296
|
+
**Problem:** `/agents {name}` doesn't work
|
|
330
297
|
**Solutions:**
|
|
331
298
|
- Check agent files exist in `.kiro/agents/`
|
|
332
299
|
- Verify filename matches command (case-sensitive)
|
|
@@ -356,8 +323,8 @@ Agents can specify required steering documents in their `.md` definition file:
|
|
|
356
323
|
Potential improvements to agent system:
|
|
357
324
|
|
|
358
325
|
**Agent enhancements:**
|
|
359
|
-
- **Agent parameters** - `/
|
|
360
|
-
- **Agent chaining** - `/
|
|
326
|
+
- **Agent parameters** - `/agents refactor-architect --mode=strict`
|
|
327
|
+
- **Agent chaining** - `/agents kiro-master then refactor-architect`
|
|
361
328
|
- **Agent templates** - Quick agent creation from templates
|
|
362
329
|
- **Agent marketplace** - Share agents with community
|
|
363
330
|
- **Agent versioning** - Track agent changes over time
|
|
@@ -378,4 +345,4 @@ Potential improvements to agent system:
|
|
|
378
345
|
|
|
379
346
|
---
|
|
380
347
|
|
|
381
|
-
**Agent system ready. Use `/agents` to begin or `/
|
|
348
|
+
**Agent system ready. Use `/agents` to begin or `/agents {name}` to activate specific agent.**
|
|
@@ -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
|
-
- `/
|
|
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
|
-
- `/
|
|
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 `/
|
|
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 `/
|
|
247
|
+
- Use `/modes vibe` for flexibility
|
|
248
248
|
- Continue working on same code
|
|
249
249
|
- Drop formal structure
|
|
250
250
|
- Iterate freely
|
|
@@ -36,8 +36,6 @@ This file contains:
|
|
|
36
36
|
- File organization rules
|
|
37
37
|
- Integration points
|
|
38
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
39
|
### Step 2: Assume Mode Role
|
|
42
40
|
|
|
43
41
|
For this session, you are in **{mode_name} mode**.
|
|
@@ -119,11 +117,10 @@ This provides a visual interface for:
|
|
|
119
117
|
|
|
120
118
|
## Mode Activation Protocol
|
|
121
119
|
|
|
122
|
-
When `/
|
|
120
|
+
When `/modes {name}` is executed:
|
|
123
121
|
|
|
124
122
|
1. **Load mode definition**
|
|
125
123
|
- Read `kiro-{name}-mode.md` from agent-system directory
|
|
126
|
-
- Load `strict-mode.md` steering document
|
|
127
124
|
- Parse mode configuration
|
|
128
125
|
- Understand mode workflows
|
|
129
126
|
|
|
@@ -166,7 +163,7 @@ When `/modes` is executed:
|
|
|
166
163
|
- Allow staying in current mode
|
|
167
164
|
|
|
168
165
|
4. **Handle operations**
|
|
169
|
-
- Mode switching → Execute `/
|
|
166
|
+
- Mode switching → Execute `/modes {name}`
|
|
170
167
|
- View details → Show mode definition
|
|
171
168
|
- Comparison → Explain differences
|
|
172
169
|
- Help → Explain mode system
|
|
@@ -182,7 +179,7 @@ When `/modes` is executed:
|
|
|
182
179
|
- Custom agents: Domain-specific expertise
|
|
183
180
|
|
|
184
181
|
**They work together:**
|
|
185
|
-
- Modes can activate agents: `/
|
|
182
|
+
- Modes can activate agents: `/modes spec` then `/agents kiro-master`
|
|
186
183
|
- Agents inherit mode protocols: Agent in spec mode follows spec workflow
|
|
187
184
|
- Context preserved: Switch modes/agents without losing work
|
|
188
185
|
- Layered capabilities: Mode + Agent + Strict mode all active simultaneously
|
|
@@ -198,13 +195,13 @@ When `/modes` is executed:
|
|
|
198
195
|
### Switch Kiro Modes
|
|
199
196
|
|
|
200
197
|
```
|
|
201
|
-
/
|
|
198
|
+
/modes vibe
|
|
202
199
|
```
|
|
203
200
|
|
|
204
201
|
**Result:** AI switches to Vibe mode - flexible, conversational development. No formal workflows, quick iterations, direct changes.
|
|
205
202
|
|
|
206
203
|
```
|
|
207
|
-
/
|
|
204
|
+
/modes spec
|
|
208
205
|
```
|
|
209
206
|
|
|
210
207
|
**Result:** AI switches to Spec mode - structured feature development with requirements, design, and task planning.
|
|
@@ -220,9 +217,9 @@ When `/modes` is executed:
|
|
|
220
217
|
### Combined with Agents
|
|
221
218
|
|
|
222
219
|
```
|
|
223
|
-
/
|
|
220
|
+
/modes spec
|
|
224
221
|
[Work on structured feature planning]
|
|
225
|
-
/
|
|
222
|
+
/agents kiro-master
|
|
226
223
|
[Use kiro-master agent while in spec mode]
|
|
227
224
|
```
|
|
228
225
|
|
|
@@ -250,7 +247,7 @@ When `/modes` is executed:
|
|
|
250
247
|
|
|
251
248
|
**Mode enhancements:**
|
|
252
249
|
- **Custom modes** - User-defined modes beyond vibe/spec
|
|
253
|
-
- **Mode parameters** - `/
|
|
250
|
+
- **Mode parameters** - `/modes spec --strict --minimal-tests`
|
|
254
251
|
- **Mode presets** - Save mode configurations
|
|
255
252
|
- **Mode history** - Track mode usage patterns
|
|
256
253
|
- **Automated transitions** - Suggest mode switch when appropriate
|
|
@@ -273,6 +270,6 @@ When `/modes` is executed:
|
|
|
273
270
|
**Modes system ready.**
|
|
274
271
|
|
|
275
272
|
**Quick start:**
|
|
276
|
-
- `/
|
|
277
|
-
- `/
|
|
273
|
+
- `/modes vibe` - Flexible development
|
|
274
|
+
- `/modes spec` - Structured planning
|
|
278
275
|
- `/modes` - Interactive mode management
|
|
@@ -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
|
|
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
|
|
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
|
package/build/npm/dist/strict.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
inclusion: manual
|
|
3
|
-
description: "Interactive strict mode control with
|
|
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
|
|
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
|
-
|
|
17
|
+
Display the question with numbered options:
|
|
18
18
|
|
|
19
|
-
```
|
|
20
|
-
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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.
|
|
3
|
+
"version": "1.2.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": [
|