kiro-agents 1.2.0 → 1.4.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 +56 -227
- package/build/npm/dist/agent-system.md +44 -281
- package/build/npm/dist/agents.md +165 -132
- package/build/npm/dist/modes-system.md +22 -199
- package/build/npm/dist/protocols/agent-activation.mdx +50 -0
- package/build/npm/dist/protocols/mode-switching.mdx +84 -0
- package/package.json +26 -3
package/README.md
CHANGED
|
@@ -1,266 +1,95 @@
|
|
|
1
1
|
# kiro-agents
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## What is kiro-agents?
|
|
6
|
-
|
|
7
|
-
kiro-agents is a steering document system that extends Kiro IDE with:
|
|
8
|
-
|
|
9
|
-
- **Agent System** - Create and manage specialized AI agents with `/agent` and `/agents` commands
|
|
10
|
-
- **Mode System** - Switch between interaction styles with `/mode` command (vibe/spec modes)
|
|
11
|
-
- **Strict Mode** - Precision mode for experimental development with `/strict` command
|
|
12
|
-
- **Interactive Workflows** - Choice-based interactions that minimize cognitive load
|
|
13
|
-
- **Progressive Enhancement** - Start minimal, add agents as needed
|
|
14
|
-
|
|
15
|
-
## Installation
|
|
16
|
-
|
|
17
|
-
### Option 1: Global Installation (npm)
|
|
3
|
+
AI agent system for Kiro IDE. Create specialized agents, switch interaction modes, and reduce cognitive load during development.
|
|
18
4
|
|
|
19
5
|
```bash
|
|
20
6
|
npx kiro-agents
|
|
21
|
-
# or
|
|
22
|
-
bunx kiro-agents
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
This installs steering documents to `~/.kiro/steering/` (global, available in all workspaces).
|
|
26
|
-
|
|
27
|
-
### Option 2: Workspace Installation (Kiro Power)
|
|
28
|
-
|
|
29
|
-
1. Open Kiro IDE
|
|
30
|
-
2. Open Powers panel (Ghosty icon ⚡)
|
|
31
|
-
3. Click "Add power from GitHub"
|
|
32
|
-
4. Enter: `https://github.com/theadd/kiro-agents`
|
|
33
|
-
5. Click Install
|
|
34
|
-
|
|
35
|
-
This installs to `.kiro/powers/kiro-agents/` (workspace-specific).
|
|
36
|
-
|
|
37
|
-
**Differences:**
|
|
38
|
-
- **npm**: Global installation, available in all workspaces
|
|
39
|
-
- **Power**: Workspace-specific, auto-updates, better Kiro integration
|
|
40
|
-
|
|
41
|
-
## Core Features
|
|
42
|
-
|
|
43
|
-
### Agent System
|
|
44
|
-
|
|
45
|
-
Create specialized AI agents for different tasks. Each agent has:
|
|
46
|
-
|
|
47
|
-
- Defined capabilities and responsibilities
|
|
48
|
-
- Custom interaction protocols
|
|
49
|
-
- Specific workflows and tools
|
|
50
|
-
- Integration with other agents
|
|
51
|
-
|
|
52
|
-
**Commands:**
|
|
53
|
-
- `/agents` - Interactive agent management (visual menu)
|
|
54
|
-
- `/agents {name}` - Activate specific agent directly
|
|
55
|
-
|
|
56
|
-
**Example workflow:**
|
|
57
|
-
```
|
|
58
|
-
User: /agents
|
|
59
|
-
AI: [Shows available agents with numbered choices]
|
|
60
|
-
User: 2 (Create new agent)
|
|
61
|
-
AI: [Guides through agent creation wizard]
|
|
62
7
|
```
|
|
63
8
|
|
|
64
|
-
|
|
65
|
-
- Created interactively through wizard
|
|
66
|
-
- Modified and updated
|
|
67
|
-
- Activated on-demand
|
|
68
|
-
- Coordinated with other agents
|
|
69
|
-
|
|
70
|
-
### Mode System
|
|
71
|
-
|
|
72
|
-
Switch between interaction styles based on your needs:
|
|
73
|
-
|
|
74
|
-
**Vibe Mode** - Flexible, conversational development
|
|
75
|
-
- Quick iterations and prototyping
|
|
76
|
-
- Direct code changes
|
|
77
|
-
- Exploratory development
|
|
78
|
-
- Minimal ceremony
|
|
79
|
-
|
|
80
|
-
**Spec Mode** - Structured feature development
|
|
81
|
-
- Formal requirements (EARS/INCOSE compliant)
|
|
82
|
-
- Design with correctness properties
|
|
83
|
-
- Task-based implementation
|
|
84
|
-
- Property-based testing focus
|
|
85
|
-
|
|
86
|
-
**Commands:**
|
|
87
|
-
- `/modes` - Interactive mode management (visual menu)
|
|
88
|
-
- `/modes vibe` - Switch to flexible development
|
|
89
|
-
- `/modes spec` - Switch to structured planning
|
|
90
|
-
|
|
91
|
-
### Strict Mode
|
|
92
|
-
|
|
93
|
-
Precision mode for experimental or critical development:
|
|
94
|
-
|
|
95
|
-
- Blocks execution on ambiguous input
|
|
96
|
-
- Requires explicit clarification
|
|
97
|
-
- Prevents assumption propagation
|
|
98
|
-
- Ideal for architectural decisions
|
|
99
|
-
|
|
100
|
-
**Commands:**
|
|
101
|
-
- `/strict` - Interactive control (visual buttons)
|
|
102
|
-
- `/strict on` - Activate precision mode
|
|
103
|
-
- `/strict off` - Return to normal mode
|
|
104
|
-
|
|
105
|
-
### Interactive Workflows
|
|
106
|
-
|
|
107
|
-
All interactions use choice-based patterns:
|
|
9
|
+
## Features
|
|
108
10
|
|
|
109
|
-
-
|
|
110
|
-
-
|
|
111
|
-
-
|
|
112
|
-
-
|
|
11
|
+
- **Agents** - Specialized AI personas with defined capabilities (`/agents`)
|
|
12
|
+
- **Modes** - Switch between vibe (flexible) and spec (structured) workflows (`/modes`)
|
|
13
|
+
- **Strict Mode** - Precision mode that blocks on ambiguity (`/strict`)
|
|
14
|
+
- **Zero Config** - Works immediately after installation ⇨ <kbd>/agents</kbd>
|
|
113
15
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
## How It Works
|
|
117
|
-
|
|
118
|
-
kiro-agents provides steering documents that Kiro loads to enhance AI capabilities:
|
|
119
|
-
|
|
120
|
-
**npm installation:**
|
|
121
|
-
- Installs to `~/.kiro/steering/` (global)
|
|
122
|
-
- Available in all workspaces
|
|
123
|
-
- Manual updates via re-running npx/bunx
|
|
124
|
-
|
|
125
|
-
**Power installation:**
|
|
126
|
-
- Installs to `.kiro/powers/kiro-agents/` (workspace)
|
|
127
|
-
- Auto-updates from GitHub
|
|
128
|
-
- Better integration with Kiro ecosystem
|
|
129
|
-
- Keyword-based activation
|
|
130
|
-
|
|
131
|
-
Both methods provide:
|
|
132
|
-
1. New slash commands (`/agents`, `/modes`, `/strict`)
|
|
133
|
-
2. Protocols for AI behavior
|
|
134
|
-
3. Agent and mode systems
|
|
135
|
-
4. Optimized interactions for reduced cognitive load
|
|
136
|
-
|
|
137
|
-
The system adds minimal overhead while enabling progressive enhancement.
|
|
138
|
-
|
|
139
|
-
## File Structure After Installation
|
|
140
|
-
|
|
141
|
-
**npm installation** (`~/.kiro/steering/`):
|
|
142
|
-
```
|
|
143
|
-
~/.kiro/steering/
|
|
144
|
-
├── agent-system.md
|
|
145
|
-
├── modes-system.md
|
|
146
|
-
└── agent-system/
|
|
147
|
-
├── strict-mode.md
|
|
148
|
-
├── kiro-spec-mode.md
|
|
149
|
-
├── kiro-vibe-mode.md
|
|
150
|
-
├── interactions/
|
|
151
|
-
└── tools/
|
|
152
|
-
```
|
|
16
|
+
## Installation
|
|
153
17
|
|
|
154
|
-
**
|
|
155
|
-
```
|
|
156
|
-
|
|
157
|
-
├── POWER.md # Power metadata
|
|
158
|
-
├── mcp.json # MCP server config (empty for now)
|
|
159
|
-
└── steering/
|
|
160
|
-
├── agent-system.md # Core system (always loaded)
|
|
161
|
-
├── agents.md # Interactive menu (manual)
|
|
162
|
-
├── modes-system.md # Core system (always loaded)
|
|
163
|
-
├── modes.md # Interactive menu (manual)
|
|
164
|
-
├── strict-mode.md # Core system (always loaded)
|
|
165
|
-
├── strict.md # Interactive control (manual)
|
|
166
|
-
├── interactions/ # Interaction patterns
|
|
167
|
-
└── modes/ # Mode definitions
|
|
18
|
+
**Global (npm):**
|
|
19
|
+
```bash
|
|
20
|
+
npx kiro-agents
|
|
168
21
|
```
|
|
22
|
+
Installs to `~/.kiro/steering/kiro-agents/` - available in all workspaces.
|
|
169
23
|
|
|
170
|
-
|
|
24
|
+
<!--
|
|
25
|
+
**Workspace (Kiro Power):**
|
|
26
|
+
1. Open Powers panel in Kiro IDE
|
|
27
|
+
2. Add from GitHub: `https://github.com/theadd/kiro-agents`
|
|
171
28
|
|
|
172
|
-
|
|
29
|
+
Installs to `.kiro/powers/kiro-agents/` - auto-updates, workspace-specific.
|
|
30
|
+
-->
|
|
173
31
|
|
|
174
|
-
|
|
32
|
+
## Quick Start
|
|
175
33
|
|
|
34
|
+
**Create an agent:**
|
|
176
35
|
```
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
AI: What type of agent? [Shows options]
|
|
181
|
-
User: 1 (Code-focused agent)
|
|
182
|
-
AI: [Collects name, capabilities, workflows]
|
|
183
|
-
AI: Agent created! Activate now? [Yes/No]
|
|
36
|
+
/agents
|
|
37
|
+
→ Choose "Create new agent"
|
|
38
|
+
→ Follow wizard
|
|
184
39
|
```
|
|
185
40
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
```
|
|
189
|
-
User: /modes spec
|
|
190
|
-
AI: [Loads spec mode protocols]
|
|
191
|
-
AI: What feature do you want to work on?
|
|
192
|
-
User: User authentication system
|
|
193
|
-
AI: [Guides through requirements → design → tasks]
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
### Using Strict Mode
|
|
197
|
-
|
|
41
|
+
**Switch modes:**
|
|
198
42
|
```
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
User: Add caching to the API
|
|
202
|
-
AI: [Asks clarifying questions about cache strategy, TTL, invalidation, etc.]
|
|
43
|
+
/modes spec # Structured feature development
|
|
44
|
+
/modes vibe # Flexible, conversational coding
|
|
203
45
|
```
|
|
204
46
|
|
|
205
|
-
|
|
206
|
-
|
|
47
|
+
**Enable precision mode:**
|
|
207
48
|
```
|
|
208
|
-
|
|
209
|
-
[Work on feature planning]
|
|
210
|
-
User: /agents kiro-master
|
|
211
|
-
[Use kiro-master capabilities while in spec mode]
|
|
49
|
+
/strict on # Blocks on ambiguous input
|
|
212
50
|
```
|
|
213
51
|
|
|
214
|
-
##
|
|
52
|
+
## How It Works
|
|
215
53
|
|
|
216
|
-
|
|
217
|
-
- Core system adds small context footprint
|
|
218
|
-
- Agents created progressively as needed
|
|
219
|
-
- Only load what you use
|
|
54
|
+
kiro-agents installs steering documents (markdown files with AI instructions) that extend Kiro's capabilities:
|
|
220
55
|
|
|
221
|
-
**
|
|
222
|
-
-
|
|
223
|
-
-
|
|
224
|
-
- Single focus per message
|
|
225
|
-
- Clear context maintenance
|
|
56
|
+
- **Agents** - Stored in `.kiro/agents/{name}.md`, activated via `/agents {name}`
|
|
57
|
+
- **Modes** - Define interaction style (vibe = flexible, spec = structured)
|
|
58
|
+
- **Strict Mode** - Requires explicit clarification before execution
|
|
226
59
|
|
|
227
|
-
|
|
228
|
-
- Switch between modes as needs change
|
|
229
|
-
- Combine modes with agents
|
|
230
|
-
- Adapt to your working style
|
|
60
|
+
All interactions use numbered choices to reduce cognitive load.
|
|
231
61
|
|
|
232
|
-
|
|
233
|
-
- Create custom agents for your needs
|
|
234
|
-
- Define specialized workflows
|
|
235
|
-
- Integrate with existing Kiro features
|
|
62
|
+
## Use Cases
|
|
236
63
|
|
|
237
|
-
|
|
64
|
+
**Specialized Development:**
|
|
65
|
+
- Create agents for frontend, backend, testing, DevOps
|
|
66
|
+
- Each agent has domain-specific knowledge and workflows
|
|
67
|
+
- Switch agents based on current task
|
|
238
68
|
|
|
239
|
-
|
|
69
|
+
**Workflow Flexibility:**
|
|
70
|
+
- Vibe mode for prototyping and exploration
|
|
71
|
+
- Spec mode for production features with formal requirements
|
|
72
|
+
- Combine modes with agents for maximum control
|
|
240
73
|
|
|
241
|
-
|
|
242
|
-
-
|
|
243
|
-
-
|
|
244
|
-
-
|
|
245
|
-
- Collaborative workflows
|
|
74
|
+
**Precision Work:**
|
|
75
|
+
- Enable strict mode for architectural decisions
|
|
76
|
+
- Prevents AI from making assumptions
|
|
77
|
+
- Forces explicit clarification on ambiguous requests
|
|
246
78
|
|
|
247
|
-
|
|
79
|
+
## Why kiro-agents?
|
|
248
80
|
|
|
249
|
-
|
|
250
|
-
-
|
|
251
|
-
-
|
|
252
|
-
-
|
|
81
|
+
Traditional AI assistants overwhelm you with context and options. kiro-agents:
|
|
82
|
+
- Starts minimal, grows with your needs
|
|
83
|
+
- Uses numbered choices instead of open-ended questions
|
|
84
|
+
- Maintains single focus per interaction
|
|
85
|
+
- Reduces decision fatigue during long sessions
|
|
253
86
|
|
|
254
|
-
##
|
|
87
|
+
## Links
|
|
255
88
|
|
|
256
|
-
|
|
89
|
+
- [npm Package](https://www.npmjs.com/package/kiro-agents)
|
|
90
|
+
- [GitHub](https://github.com/Theadd/kiro-agents)
|
|
91
|
+
- [Kiro IDE](https://kiro.dev)
|
|
257
92
|
|
|
258
93
|
## License
|
|
259
94
|
|
|
260
95
|
MIT
|
|
261
|
-
|
|
262
|
-
## Links
|
|
263
|
-
|
|
264
|
-
- [GitHub Repository](https://github.com/theadd/kiro-agents)
|
|
265
|
-
- [npm Package](https://www.npmjs.com/package/kiro-agents)
|
|
266
|
-
- [Kiro IDE](https://kiro.dev)
|
|
@@ -7,9 +7,11 @@ 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
|
+
**For complete documentation, examples, and troubleshooting, see `docs/agent-system-guide.md`**
|
|
11
|
+
|
|
10
12
|
## Agent Commands
|
|
11
13
|
|
|
12
|
-
**Note:** This system uses the Instruction Alias pattern defined in `aliases.md`.
|
|
14
|
+
**Note:** This system uses the Instruction Alias pattern defined in `aliases.md`.
|
|
13
15
|
|
|
14
16
|
### Command 1: Activate Specific Agent
|
|
15
17
|
|
|
@@ -20,48 +22,11 @@ Generic agent activation and management system for Kiro using instruction comman
|
|
|
20
22
|
|
|
21
23
|
You are now activating the **{agent_name}** agent.
|
|
22
24
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
Read
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
- Agent capabilities and responsibilities
|
|
29
|
-
- Interaction protocols and workflows
|
|
30
|
-
- Mandatory protocols and rules
|
|
31
|
-
- Examples and best practices
|
|
32
|
-
- Integration requirements
|
|
33
|
-
|
|
34
|
-
**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`.
|
|
35
|
-
|
|
36
|
-
### Step 2: Assume Agent Role
|
|
37
|
-
|
|
38
|
-
For this session, you are **{agent_name}**.
|
|
39
|
-
|
|
40
|
-
You will:
|
|
41
|
-
- Follow ALL protocols and instructions from `.kiro/agents/{agent_name}.md`
|
|
42
|
-
- Apply agent-specific interaction patterns
|
|
43
|
-
- Use capabilities defined in the agent definition
|
|
44
|
-
- Maintain this role until user switches agents or ends session
|
|
45
|
-
- Override any conflicting instructions with agent protocols
|
|
46
|
-
|
|
47
|
-
### Step 3: Begin Interaction
|
|
48
|
-
|
|
49
|
-
Start interaction according to **{agent_name}**'s protocols defined in the `.md` file.
|
|
50
|
-
|
|
51
|
-
If the agent uses **chit-chat mode**:
|
|
52
|
-
- Begin with diff block showing current state
|
|
53
|
-
- Provide numbered choice list (4-6 options, up to 16 if needed)
|
|
54
|
-
- Maintain single focus per message
|
|
55
|
-
- Use visual formatting (bold, code blocks)
|
|
56
|
-
|
|
57
|
-
Otherwise:
|
|
58
|
-
- Begin according to the agent's defined interaction protocol
|
|
59
|
-
- Follow agent-specific response structure
|
|
60
|
-
- Apply agent-specific formatting rules
|
|
61
|
-
|
|
62
|
-
---
|
|
63
|
-
|
|
64
|
-
**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
|
|
65
30
|
</definition>
|
|
66
31
|
</alias>
|
|
67
32
|
|
|
@@ -78,270 +43,68 @@ This provides a visual interface for:
|
|
|
78
43
|
- Interactive: `/agents` (no parameters, loads `agents.md` steering file)
|
|
79
44
|
- Direct: `/agents {name}` (with agent name, uses alias above)
|
|
80
45
|
|
|
81
|
-
##
|
|
46
|
+
## Quick Reference
|
|
47
|
+
|
|
48
|
+
### Activation Protocol Summary
|
|
82
49
|
|
|
83
50
|
When `/agents {name}` is executed:
|
|
84
51
|
|
|
85
|
-
1. **Discover
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
- Parse frontmatter metadata
|
|
93
|
-
- Understand agent capabilities and workflows
|
|
94
|
-
- Identify mandatory protocols
|
|
95
|
-
- Note interaction patterns
|
|
96
|
-
- Check integration requirements
|
|
97
|
-
|
|
98
|
-
3. **Apply protocols**
|
|
99
|
-
- Follow all mandatory protocols from definition
|
|
100
|
-
- Load required steering documents
|
|
101
|
-
- Apply agent-specific overrides
|
|
102
|
-
- Set up agent context
|
|
103
|
-
|
|
104
|
-
4. **Assume role**
|
|
105
|
-
- Become the agent completely
|
|
106
|
-
- Maintain role until user switches agents
|
|
107
|
-
- Apply agent personality and style
|
|
108
|
-
- Use agent-specific tools and workflows
|
|
109
|
-
|
|
110
|
-
5. **Begin interaction**
|
|
111
|
-
- Start according to agent's interaction protocol
|
|
112
|
-
- Use agent's response structure
|
|
113
|
-
- Apply agent's formatting rules
|
|
114
|
-
- Maintain agent's focus and priorities
|
|
115
|
-
|
|
116
|
-
## Agent Management Protocol
|
|
52
|
+
1. **Discover** - Check `.kiro/agents/{name}.md` exists
|
|
53
|
+
2. **Load** - Read agent definition and `strict-mode.md`
|
|
54
|
+
3. **Apply** - Follow mandatory protocols, load required steering
|
|
55
|
+
4. **Assume** - Become agent completely, maintain role
|
|
56
|
+
5. **Begin** - Start interaction per agent's protocol
|
|
57
|
+
|
|
58
|
+
### Management Protocol Summary
|
|
117
59
|
|
|
118
60
|
When `/agents` is executed:
|
|
119
61
|
|
|
120
|
-
1. **Activate chit-chat
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
- Extract agent metadata
|
|
130
|
-
- Categorize agents by type
|
|
131
|
-
|
|
132
|
-
3. **Present choices**
|
|
133
|
-
- Show available agents with descriptions
|
|
134
|
-
- Offer management operations
|
|
135
|
-
- Provide help and documentation
|
|
136
|
-
- Allow exit to normal mode
|
|
137
|
-
|
|
138
|
-
4. **Handle operations**
|
|
139
|
-
- Agent activation → Execute `/agents {name}`
|
|
140
|
-
- Agent creation → Start creation wizard
|
|
141
|
-
- Agent management → Modify agent files
|
|
142
|
-
- Agent viewing → Display agent details
|
|
143
|
-
- Help → Explain agent system
|
|
144
|
-
- Exit → Return to normal mode
|
|
145
|
-
|
|
146
|
-
5. **Maintain context**
|
|
147
|
-
- Use diff blocks to show progress
|
|
148
|
-
- Preserve user decisions
|
|
149
|
-
- Allow going back
|
|
150
|
-
- Enable canceling operations
|
|
151
|
-
|
|
152
|
-
## Agent Directory Structure
|
|
153
|
-
|
|
154
|
-
```
|
|
155
|
-
.kiro/agents/
|
|
156
|
-
└── {agent-name}.md # Complete agent definition
|
|
157
|
-
├── Frontmatter metadata
|
|
158
|
-
├── Core responsibilities
|
|
159
|
-
├── Capabilities and workflows
|
|
160
|
-
├── Interaction protocols
|
|
161
|
-
├── Mandatory protocols
|
|
162
|
-
├── Examples and best practices
|
|
163
|
-
├── Integration rules
|
|
164
|
-
└── Conflict priorities
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
### Agent Definition File (.md)
|
|
62
|
+
1. **Activate chit-chat** - Load chit-chat.md, use diff blocks
|
|
63
|
+
2. **Scan directory** - List `.md` files in `.kiro/agents/`
|
|
64
|
+
3. **Present choices** - Show agents, offer operations
|
|
65
|
+
4. **Handle operations** - Activation, creation, management, viewing
|
|
66
|
+
5. **Maintain context** - Track progress, preserve decisions
|
|
67
|
+
|
|
68
|
+
## Agent Definition Requirements
|
|
69
|
+
|
|
70
|
+
**File location:** `.kiro/agents/{agent-name}.md`
|
|
168
71
|
|
|
169
72
|
**Required sections:**
|
|
170
|
-
- Frontmatter
|
|
73
|
+
- Frontmatter (name, type, description, version)
|
|
171
74
|
- Core Responsibilities
|
|
172
|
-
- Capabilities
|
|
173
|
-
- Interaction Protocol
|
|
174
|
-
- Mandatory Protocols
|
|
175
|
-
- Workflows
|
|
176
|
-
- Examples
|
|
75
|
+
- Capabilities
|
|
76
|
+
- Interaction Protocol
|
|
77
|
+
- Mandatory Protocols
|
|
78
|
+
- Workflows
|
|
79
|
+
- Examples
|
|
177
80
|
|
|
178
81
|
**Recommended sections:**
|
|
82
|
+
- Integration Points
|
|
83
|
+
- Conflict Priorities
|
|
179
84
|
- Best Practices
|
|
180
|
-
- Integration Points (with other agents/steering)
|
|
181
|
-
- Conflict Priorities (ordered list)
|
|
182
85
|
- Advanced Features
|
|
183
86
|
- Error Handling
|
|
184
87
|
- Success Metrics
|
|
185
88
|
|
|
186
89
|
## Initial Agent
|
|
187
90
|
|
|
188
|
-
When auto-setup detects no agents exist, it creates
|
|
91
|
+
When auto-setup detects no agents exist, it creates:
|
|
189
92
|
|
|
190
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
|
|
191
94
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
## Usage Examples
|
|
195
|
-
|
|
196
|
-
### Activate Specific Agent
|
|
197
|
-
|
|
198
|
-
```
|
|
199
|
-
/agents refactor-architect
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
**Result:** AI immediately assumes refactor-architect role, loads agent files, applies protocols, and begins interaction according to agent's style.
|
|
203
|
-
|
|
204
|
-
### Interactive Agent Management
|
|
205
|
-
|
|
206
|
-
```
|
|
207
|
-
/agents
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
**Result:** Chit-chat mode activates, shows available agents, offers management options with numbered choices.
|
|
211
|
-
|
|
212
|
-
### Switch Between Agents
|
|
213
|
-
|
|
214
|
-
```
|
|
215
|
-
/agents kiro-master
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
**Result:** Switch from current agent (e.g., refactor-architect) to kiro-master. Previous agent context is suspended, new agent context is loaded.
|
|
219
|
-
|
|
220
|
-
### Create New Agent
|
|
95
|
+
## Integration Notes
|
|
221
96
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
[Follow wizard prompts]
|
|
226
|
-
```
|
|
227
|
-
|
|
228
|
-
**Result:** Interactive agent creation wizard guides through agent setup, generates files, offers activation.
|
|
229
|
-
|
|
230
|
-
## Integration with Existing System
|
|
231
|
-
|
|
232
|
-
### Compatibility
|
|
233
|
-
|
|
234
|
-
- **Works alongside steering documents** - Agents can load additional steering
|
|
235
|
-
- **Compatible with chit-chat mode** - Agents can use chit-chat protocols
|
|
236
|
-
- **Preserves ADHD-C optimizations** - Single focus, visual formatting maintained
|
|
237
|
-
- **Maintains language rules** - Spanish chat, English files
|
|
238
|
-
- **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
|
|
239
100
|
- **Mode system** - Works seamlessly with modes (see `modes-system.md`)
|
|
240
101
|
- **Context preservation** - File changes and conversation history persist across agent switches
|
|
241
102
|
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
Agents can specify required steering documents in their `.md` definition file:
|
|
245
|
-
|
|
246
|
-
```markdown
|
|
247
|
-
## Integration Points
|
|
248
|
-
|
|
249
|
-
### Required Steering Documents
|
|
250
|
-
- `[steering-name].md` - Always loaded when agent is active
|
|
251
|
-
- `[another-steering].md` - Core rules for agent behavior
|
|
252
|
-
|
|
253
|
-
### Optional Steering Documents
|
|
254
|
-
- `[conditional-steering].md` - Loaded based on file context
|
|
255
|
-
- `[manual-steering].md` - Loaded when explicitly needed
|
|
256
|
-
```
|
|
257
|
-
|
|
258
|
-
### Agent Coordination
|
|
259
|
-
|
|
260
|
-
**Multiple agents can coordinate through:**
|
|
261
|
-
- **Handoff procedures** - Agent A passes control to Agent B
|
|
262
|
-
- **Context sharing** - Agents share relevant information
|
|
263
|
-
- **Conflict resolution** - Priority rules determine behavior
|
|
264
|
-
- **Collaborative workflows** - Agents work together on complex tasks
|
|
265
|
-
|
|
266
|
-
## Best Practices
|
|
267
|
-
|
|
268
|
-
### For Agent Users
|
|
269
|
-
|
|
270
|
-
1. **Use `/agents` for discovery** - See what agents are available
|
|
271
|
-
2. **Use `/agents {name}` for direct activation** - When you know which agent you need
|
|
272
|
-
3. **Let agents maintain focus** - Don't switch agents mid-task unless necessary
|
|
273
|
-
4. **Provide clear context** - Help agents understand your needs
|
|
274
|
-
5. **Use agent capabilities** - Leverage agent-specific tools and workflows
|
|
275
|
-
|
|
276
|
-
### For Agent Creators
|
|
277
|
-
|
|
278
|
-
1. **Clear agent definition** - Comprehensive `.md` with all capabilities and protocols
|
|
279
|
-
2. **Focused protocols** - Clear mandatory protocols section within `.md` file
|
|
280
|
-
3. **Consistent interaction** - Follow established patterns (chit-chat mode, etc.)
|
|
281
|
-
4. **Good examples** - Show how agent works in practice
|
|
282
|
-
5. **Integration rules** - Specify required steering documents
|
|
283
|
-
|
|
284
|
-
### For Agent Development
|
|
285
|
-
|
|
286
|
-
1. **Start with template** - Use existing agents as reference
|
|
287
|
-
2. **Test thoroughly** - Verify agent activates and functions correctly
|
|
288
|
-
3. **Document well** - Clear descriptions and examples
|
|
289
|
-
4. **Keep it simple** - Don't overcomplicate agent protocols
|
|
290
|
-
5. **Iterate based on use** - Improve agent based on actual usage
|
|
291
|
-
|
|
292
|
-
## Troubleshooting
|
|
293
|
-
|
|
294
|
-
### Agent Not Activating
|
|
295
|
-
|
|
296
|
-
**Problem:** `/agents {name}` doesn't work
|
|
297
|
-
**Solutions:**
|
|
298
|
-
- Check agent files exist in `.kiro/agents/`
|
|
299
|
-
- Verify filename matches command (case-sensitive)
|
|
300
|
-
- Ensure `.md` file contains all required sections
|
|
301
|
-
- Try `/agents` to see available agents
|
|
302
|
-
|
|
303
|
-
### Agent Behaving Incorrectly
|
|
304
|
-
|
|
305
|
-
**Problem:** Agent doesn't follow expected protocols
|
|
306
|
-
**Solutions:**
|
|
307
|
-
- Review agent `.md` file for clarity in Mandatory Protocols section
|
|
308
|
-
- Check for conflicting steering documents
|
|
309
|
-
- Verify mandatory protocols are clear and comprehensive
|
|
310
|
-
- Test agent in isolation
|
|
311
|
-
|
|
312
|
-
### Agent Management Not Working
|
|
313
|
-
|
|
314
|
-
**Problem:** `/agents` command doesn't activate
|
|
315
|
-
**Solutions:**
|
|
316
|
-
- Verify `agent-system.md` is in `.kiro/steering/`
|
|
317
|
-
- Check `inclusion: always` in frontmatter
|
|
318
|
-
- Ensure `chit-chat.md` exists
|
|
319
|
-
- Try reloading steering documents
|
|
320
|
-
|
|
321
|
-
## Future Enhancements
|
|
322
|
-
|
|
323
|
-
Potential improvements to agent system:
|
|
324
|
-
|
|
325
|
-
**Agent enhancements:**
|
|
326
|
-
- **Agent parameters** - `/agents refactor-architect --mode=strict`
|
|
327
|
-
- **Agent chaining** - `/agents kiro-master then refactor-architect`
|
|
328
|
-
- **Agent templates** - Quick agent creation from templates
|
|
329
|
-
- **Agent marketplace** - Share agents with community
|
|
330
|
-
- **Agent versioning** - Track agent changes over time
|
|
331
|
-
- **Agent testing** - Automated agent validation
|
|
332
|
-
|
|
333
|
-
**Integration enhancements:**
|
|
334
|
-
- **Task sessions** - Agents create sub-tasks with own context
|
|
335
|
-
- **Session continuation** - Resume interrupted work with full context
|
|
336
|
-
- **Enhanced mode integration** - Better coordination with modes system
|
|
337
|
-
|
|
338
|
-
## Notes
|
|
103
|
+
## System Notes
|
|
339
104
|
|
|
340
|
-
-
|
|
341
|
-
-
|
|
342
|
-
-
|
|
343
|
-
- May need **iteration based on actual usage**
|
|
344
|
-
- 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
|
|
345
108
|
|
|
346
109
|
---
|
|
347
110
|
|