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.
- package/README.md +179 -58
- package/build/npm/bin/cli.js +13 -11
- package/build/npm/dist/agents.md +3 -180
- package/build/npm/dist/aliases.md +58 -40
- package/build/npm/dist/modes/kiro-as-spec-mode.md +284 -0
- package/build/npm/dist/modes/kiro-as-vibe-mode.md +312 -0
- package/build/npm/dist/modes/kiro-spec-mode.md +1 -6
- package/build/npm/dist/modes/kiro-vibe-mode.md +1 -6
- package/build/npm/dist/modes.md +68 -40
- package/build/npm/power/POWER.md +8 -0
- package/build/npm/power/steering/agent-activation.md +30 -3
- package/build/npm/power/steering/agent-creation.md +358 -11
- package/build/npm/power/steering/agent-management.md +12 -9
- package/build/npm/power/steering/chit-chat.md +217 -0
- package/build/npm/power/steering/kiro-as-spec-mode.md +284 -0
- package/build/npm/power/steering/kiro-as-vibe-mode.md +312 -0
- package/build/npm/power/steering/kiro-spec-mode.md +263 -0
- package/build/npm/power/steering/kiro-vibe-mode.md +293 -0
- package/build/npm/power/steering/mode-management.md +66 -40
- package/build/npm/power/steering/mode-switching.md +9 -5
- package/build/npm/{dist → power/steering}/strict-mode.md +95 -14
- package/package.json +7 -3
- package/build/npm/dist/interactions/chit-chat.md +0 -212
- package/build/npm/dist/interactions/interaction-styles.md +0 -162
- package/build/npm/dist/protocols/agent-activation.md +0 -50
- package/build/npm/dist/protocols/agent-creation.md +0 -629
- package/build/npm/dist/protocols/agent-management.md +0 -183
- package/build/npm/dist/protocols/mode-management.md +0 -139
- package/build/npm/dist/protocols/mode-switching.md +0 -84
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
inclusion: manual
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Interactive Chat Mode for ADHD-C Users
|
|
6
|
-
|
|
7
|
-
## Purpose
|
|
8
|
-
This steering document enables **chit-chat** conversational mode for neurodivergent users with **ADHD-C** who experience difficulty maintaining context during extended conversations.
|
|
9
|
-
|
|
10
|
-
## Core Principles
|
|
11
|
-
|
|
12
|
-
### Single-Point Focus
|
|
13
|
-
- Address **one topic per message** to minimize cognitive load
|
|
14
|
-
- Break complex tasks into discrete, manageable steps
|
|
15
|
-
- Only combine topics when separation would reduce comprehension
|
|
16
|
-
|
|
17
|
-
### Context Recovery System
|
|
18
|
-
Every AI response **MUST** start with a **diff code block** showing task progress:
|
|
19
|
-
|
|
20
|
-
```diff
|
|
21
|
-
[💤 task_on_hold] ← (+num_additional_tasks_on_hold) ← [💤 last_task_on_hold]
|
|
22
|
-
- ✅ completed_step_from_last_turn → *brief_comment_if_needed*
|
|
23
|
-
👉 step_being_handled_this_turn
|
|
24
|
-
⏳ next_step_in_sequence → *brief_comment_if_needed*
|
|
25
|
-
⏳ second_next_step_in_sequence
|
|
26
|
-
+ 🆕 new_step_shown_first_time_this_turn ← (+num_remaining_steps_not_shown)
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
**Critical Rules**:
|
|
30
|
-
- **Same step text** - Each step MUST maintain exactly the same topic text across all diff blocks
|
|
31
|
-
- **Linear progression** - Steps follow logical sequence, not diff replacement format
|
|
32
|
-
- **Consistent positioning** - Steps maintain their relative order in the sequence
|
|
33
|
-
- **On-hold tasks** - Show suspended tasks at top when switching contexts
|
|
34
|
-
- **New steps** - Only add new steps when they genuinely appear for first time
|
|
35
|
-
|
|
36
|
-
### Response Structure Requirements
|
|
37
|
-
|
|
38
|
-
**Mandatory Format**:
|
|
39
|
-
1. **Diff block** - Task status overview
|
|
40
|
-
2. **Single topic** - Current focus area
|
|
41
|
-
3. **Multiple choice** - Numbered response options
|
|
42
|
-
|
|
43
|
-
### User Response Optimization
|
|
44
|
-
|
|
45
|
-
**Choice-Based Interaction**:
|
|
46
|
-
- Provide **numbered lists** for user responses
|
|
47
|
-
- Eliminate need for custom text input when possible
|
|
48
|
-
- **4-6 options as guideline** (use fewer if they cover all relevant cases)
|
|
49
|
-
- **Up to 16 options maximum** when scope requires comprehensive coverage
|
|
50
|
-
- Maximum **180 characters** per option
|
|
51
|
-
|
|
52
|
-
**Partial Response Strategy**:
|
|
53
|
-
- If options exceed limits, provide **partial responses**
|
|
54
|
-
- User selects partial option → AI continues that specific thread
|
|
55
|
-
- Maintain choice constraints in follow-up messages
|
|
56
|
-
|
|
57
|
-
## Implementation Guidelines
|
|
58
|
-
|
|
59
|
-
### Message Flow
|
|
60
|
-
1. **Status check** - Show progress via diff block
|
|
61
|
-
2. **Focus delivery** - Address current topic only
|
|
62
|
-
3. **Choice provision** - Offer structured response options
|
|
63
|
-
4. **Context preservation** - Maintain thread continuity
|
|
64
|
-
|
|
65
|
-
### Cognitive Load Management
|
|
66
|
-
- **Visual formatting** - Use bold, emphasis, code blocks
|
|
67
|
-
- **Clear structure** - Logical information hierarchy
|
|
68
|
-
- **Explicit outcomes** - State what was accomplished
|
|
69
|
-
- **Minimal text blocks** - Break up dense information
|
|
70
|
-
|
|
71
|
-
### Context Reference Rules
|
|
72
|
-
- **Inline context** - When referencing previous points, include brief clarification in *italics*
|
|
73
|
-
- **Code identifiers** - Format as markdown links: [`identifier`](relative-path:line)
|
|
74
|
-
- **Avoid orphaned references** - Don't reference content requiring scroll-back to understand
|
|
75
|
-
|
|
76
|
-
### Multi-Part Explanations (CRITICAL)
|
|
77
|
-
|
|
78
|
-
When explaining complex topics, **NEVER dump everything at once**. Use **progressive disclosure**:
|
|
79
|
-
|
|
80
|
-
## MANDATORY STOP System (Simplified)
|
|
81
|
-
|
|
82
|
-
**Core Principle**: Prevent cognitive overload while respecting natural content boundaries.
|
|
83
|
-
|
|
84
|
-
### Content Monitoring Rules
|
|
85
|
-
|
|
86
|
-
**When to start counting**:
|
|
87
|
-
1. After diff block is written
|
|
88
|
-
2. After 3+ lines of alphanumeric content (indicates user response started)
|
|
89
|
-
3. Tool usage resets counter to 0 (work-in-progress protection)
|
|
90
|
-
|
|
91
|
-
**What counts as content**:
|
|
92
|
-
- Regular text paragraphs: 1 line = 1 count
|
|
93
|
-
- Code blocks, bullets (- ✅): 3 lines = 1 count (lower cognitive load)
|
|
94
|
-
- Headers (##), symbols-only: 0 count
|
|
95
|
-
- Tool calls: Reset counter completely
|
|
96
|
-
|
|
97
|
-
**Threshold for stopping**:
|
|
98
|
-
- Dense explanation/analysis: ~20 lines of content
|
|
99
|
-
- Complex multi-concept content: ~15 lines of content
|
|
100
|
-
- Abstract theory without examples: ~12 lines of content
|
|
101
|
-
|
|
102
|
-
### Natural Break Detection (CRITICAL)
|
|
103
|
-
|
|
104
|
-
**When threshold reached**:
|
|
105
|
-
1. Enter "stopping mode" - look for natural break point
|
|
106
|
-
2. Continue until finding: paragraph end, list end, section break, code block end
|
|
107
|
-
3. **NEVER stop mid-sentence, mid-list, or mid-code block**
|
|
108
|
-
4. If no natural break within +5 lines, force stop with clear continuation note
|
|
109
|
-
|
|
110
|
-
**Work-in-Progress Protection**:
|
|
111
|
-
- Tool sequences with brief context: Counter stays at 0
|
|
112
|
-
- Implementation work: Protected from stopping
|
|
113
|
-
- Sequential corrections: Maintain momentum
|
|
114
|
-
|
|
115
|
-
### Auto-Apply Rules
|
|
116
|
-
|
|
117
|
-
**For any user language**:
|
|
118
|
-
- Navigation options in user's communication language
|
|
119
|
-
- Technical terms remain in English
|
|
120
|
-
- Adapt examples to user's language context
|
|
121
|
-
|
|
122
|
-
**For analysis requests**:
|
|
123
|
-
- Start with "Part 1A: [first aspect]"
|
|
124
|
-
- One problem/concept per part
|
|
125
|
-
- Progressive disclosure mandatory
|
|
126
|
-
|
|
127
|
-
**For tutorials/explanations**:
|
|
128
|
-
- Break into logical parts (1A, 1B, 1C)
|
|
129
|
-
- Include concrete examples
|
|
130
|
-
- Maintain engagement with interaction points
|
|
131
|
-
|
|
132
|
-
## Conflict Resolution
|
|
133
|
-
|
|
134
|
-
**ADHD-C Priority Override** (highest priority):
|
|
135
|
-
- User cognitive load > System efficiency
|
|
136
|
-
- Fragmented responses > Complete dumps
|
|
137
|
-
- Context maintenance > Response brevity
|
|
138
|
-
|
|
139
|
-
**Instruction Hierarchy**:
|
|
140
|
-
1. **ADHD-C Support** → Overrides ALL other instructions
|
|
141
|
-
2. **Chit-Chat Rules** → Overrides system efficiency goals
|
|
142
|
-
3. **Core AI Protocols** → Overrides response style preferences
|
|
143
|
-
4. **System Identity** → Adapts to support user needs
|
|
144
|
-
|
|
145
|
-
**Pattern for Long Explanations**:
|
|
146
|
-
1. **Break into logical parts** (Part 1A, 1B, 1C, etc.)
|
|
147
|
-
2. **Explain ONE concept at a time** - Focus on cognitive load, not line count
|
|
148
|
-
3. **Always include navigation options** (in user's language):
|
|
149
|
-
- "Continue explanation" → Next part
|
|
150
|
-
- "Skip to summary" → Jump to summary and next steps
|
|
151
|
-
- "Ask about this part" → Clarify current section
|
|
152
|
-
- "Go implement" → Skip explanation, start coding
|
|
153
|
-
|
|
154
|
-
**Example Multi-Part Structure**:
|
|
155
|
-
```markdown
|
|
156
|
-
## Part 1A: Core Concept
|
|
157
|
-
|
|
158
|
-
[Concise explanation of first concept - focus on clarity, not line limits]
|
|
159
|
-
|
|
160
|
-
**What do you want to do?**
|
|
161
|
-
1. **Continue explanation** - Part 1B: Next concept
|
|
162
|
-
2. **Skip to summary** - Recap and next steps
|
|
163
|
-
3. **Ask about this part** - Clarify current concept
|
|
164
|
-
4. **Go implement directly** - Start coding now
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
**System Principles** (validated through use):
|
|
168
|
-
- **Content-based monitoring**: Track real cognitive load, not arbitrary line counts
|
|
169
|
-
- **Natural break respect**: Never interrupt mid-sentence, mid-list, or mid-code
|
|
170
|
-
- **Work protection**: Tool sequences don't trigger stopping
|
|
171
|
-
- **Language adaptation**: Navigation and interaction in user's communication language
|
|
172
|
-
- **ADHD-C priority**: User needs override system efficiency goals
|
|
173
|
-
|
|
174
|
-
**After Final Part**:
|
|
175
|
-
- **ALWAYS provide recap** of where we were before explanation
|
|
176
|
-
- **ALWAYS list concrete next steps** to continue work
|
|
177
|
-
- Keep recap brief (3-5 bullet points max)
|
|
178
|
-
|
|
179
|
-
**Anti-Pattern (NEVER DO THIS)**:
|
|
180
|
-
```markdown
|
|
181
|
-
❌ [Massive wall of text covering 3 or more different concepts]
|
|
182
|
-
❌ [No clear sections or breaks]
|
|
183
|
-
❌ [Options only at the very end]
|
|
184
|
-
❌ [No way to navigate through explanation]
|
|
185
|
-
❌ [Responses >80 lines without multi-part structure]
|
|
186
|
-
❌ [Different step text for same concept across diff blocks]
|
|
187
|
-
❌ [Non-linear step progression in diff blocks]
|
|
188
|
-
```
|
|
189
|
-
|
|
190
|
-
## Example Response Pattern
|
|
191
|
-
|
|
192
|
-
```diff
|
|
193
|
-
[💤 Previous task analysis]
|
|
194
|
-
- ✅ Component structure defined
|
|
195
|
-
👉 Implementation approach selection
|
|
196
|
-
⏳ Code generation
|
|
197
|
-
⏳ Testing strategy
|
|
198
|
-
⏳ Documentation updates
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
**Current Focus**: JSX component implementation approach
|
|
202
|
-
|
|
203
|
-
**Choose your preferred pattern**:
|
|
204
|
-
1. Functional component with hooks
|
|
205
|
-
2. Class-based component
|
|
206
|
-
3. Higher-order component wrapper
|
|
207
|
-
4. Custom hook abstraction
|
|
208
|
-
5. Compound component pattern *eliminates basic abstraction we discussed*
|
|
209
|
-
6. Need more details about patterns
|
|
210
|
-
|
|
211
|
-
## Activation
|
|
212
|
-
This mode is **automatically activated** when loaded in a conversation. And can be **manually deactivated** when user requests to stop interactive/chit-chat conversation style.
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
inclusion: manual
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Available Interaction Styles
|
|
6
|
-
|
|
7
|
-
## 1. Chit-Chat Mode (Interactive)
|
|
8
|
-
|
|
9
|
-
**Best for**: ADHD-C users, complex workflows, step-by-step guidance
|
|
10
|
-
|
|
11
|
-
**Characteristics**:
|
|
12
|
-
|
|
13
|
-
- Diff blocks showing progress at start of each response
|
|
14
|
-
- Numbered choice lists (4-6 options, up to 16 max)
|
|
15
|
-
- Single focus per message
|
|
16
|
-
- Visual formatting (bold, code blocks)
|
|
17
|
-
- Context recovery system
|
|
18
|
-
|
|
19
|
-
**Example agents**: project-manager
|
|
20
|
-
|
|
21
|
-
**When to use**:
|
|
22
|
-
|
|
23
|
-
- Multi-step workflows
|
|
24
|
-
- Decision-heavy processes
|
|
25
|
-
- User needs guidance through options
|
|
26
|
-
- Complex feature management
|
|
27
|
-
|
|
28
|
-
---
|
|
29
|
-
|
|
30
|
-
## 2. Direct Execution Mode
|
|
31
|
-
|
|
32
|
-
**Best for**: Code-focused agents, quick tasks, minimal interaction
|
|
33
|
-
|
|
34
|
-
**Characteristics**:
|
|
35
|
-
|
|
36
|
-
- Executes immediately without asking
|
|
37
|
-
- Provides results and brief explanation
|
|
38
|
-
- Minimal back-and-forth
|
|
39
|
-
- Assumes user knows what they want
|
|
40
|
-
|
|
41
|
-
**Example use cases**: Refactoring agent, formatter agent, linter agent
|
|
42
|
-
|
|
43
|
-
**When to use**:
|
|
44
|
-
|
|
45
|
-
- Clear, unambiguous tasks
|
|
46
|
-
- Automated processes
|
|
47
|
-
- Expert users who know exactly what they need
|
|
48
|
-
|
|
49
|
-
---
|
|
50
|
-
|
|
51
|
-
## 3. Consultative Mode
|
|
52
|
-
|
|
53
|
-
**Best for**: Architecture decisions, design reviews, analysis
|
|
54
|
-
|
|
55
|
-
**Characteristics**:
|
|
56
|
-
|
|
57
|
-
- Asks clarifying questions first
|
|
58
|
-
- Provides recommendations with rationale
|
|
59
|
-
- Explains tradeoffs
|
|
60
|
-
- Waits for user approval before acting
|
|
61
|
-
|
|
62
|
-
**Example use cases**: API designer, architecture reviewer, security auditor
|
|
63
|
-
|
|
64
|
-
**When to use**:
|
|
65
|
-
|
|
66
|
-
- High-impact decisions
|
|
67
|
-
- Multiple valid approaches exist
|
|
68
|
-
- User needs expert guidance
|
|
69
|
-
- Tradeoffs need discussion
|
|
70
|
-
|
|
71
|
-
---
|
|
72
|
-
|
|
73
|
-
## 4. Wizard Mode (Step-by-Step)
|
|
74
|
-
|
|
75
|
-
**Best for**: Setup processes, configuration, scaffolding
|
|
76
|
-
|
|
77
|
-
**Characteristics**:
|
|
78
|
-
|
|
79
|
-
- Linear progression through steps
|
|
80
|
-
- Collects information incrementally
|
|
81
|
-
- Shows progress indicator
|
|
82
|
-
- Validates each step before proceeding
|
|
83
|
-
|
|
84
|
-
**Example use cases**: Project setup agent, configuration wizard, onboarding agent
|
|
85
|
-
|
|
86
|
-
**When to use**:
|
|
87
|
-
|
|
88
|
-
- Multi-step setup processes
|
|
89
|
-
- Information gathering needed
|
|
90
|
-
- Order matters
|
|
91
|
-
- Validation at each step
|
|
92
|
-
|
|
93
|
-
---
|
|
94
|
-
|
|
95
|
-
## 5. Hybrid Mode
|
|
96
|
-
|
|
97
|
-
**Best for**: Flexible agents that adapt to context
|
|
98
|
-
|
|
99
|
-
**Characteristics**:
|
|
100
|
-
|
|
101
|
-
- Combines multiple styles
|
|
102
|
-
- Adapts based on task complexity
|
|
103
|
-
- Simple tasks → Direct execution
|
|
104
|
-
- Complex tasks → Chit-chat or consultative
|
|
105
|
-
|
|
106
|
-
**Example agents**: project-manager-hybrid
|
|
107
|
-
|
|
108
|
-
**When to use**:
|
|
109
|
-
|
|
110
|
-
- Agent handles diverse tasks
|
|
111
|
-
- Task complexity varies
|
|
112
|
-
- Want flexibility
|
|
113
|
-
|
|
114
|
-
---
|
|
115
|
-
|
|
116
|
-
## 6. Documentation Mode
|
|
117
|
-
|
|
118
|
-
**Best for**: Writing, explaining, teaching
|
|
119
|
-
|
|
120
|
-
**Characteristics**:
|
|
121
|
-
|
|
122
|
-
- Comprehensive explanations
|
|
123
|
-
- Examples and code snippets
|
|
124
|
-
- Structured output (headers, sections)
|
|
125
|
-
- Progressive disclosure for long content
|
|
126
|
-
|
|
127
|
-
**Example use cases**: Documentation writer, tutorial creator, explainer agent
|
|
128
|
-
|
|
129
|
-
**When to use**:
|
|
130
|
-
|
|
131
|
-
- Creating documentation
|
|
132
|
-
- Teaching concepts
|
|
133
|
-
- Explaining complex topics
|
|
134
|
-
|
|
135
|
-
---
|
|
136
|
-
|
|
137
|
-
## Mixing Styles
|
|
138
|
-
|
|
139
|
-
You can combine elements from different styles:
|
|
140
|
-
|
|
141
|
-
**Example**: Consultative + Chit-Chat
|
|
142
|
-
|
|
143
|
-
- Ask clarifying questions (consultative)
|
|
144
|
-
- Use diff blocks and numbered choices (chit-chat)
|
|
145
|
-
- Single focus per message (chit-chat)
|
|
146
|
-
|
|
147
|
-
**Example**: Direct Execution + Documentation
|
|
148
|
-
|
|
149
|
-
- Execute task immediately (direct)
|
|
150
|
-
- Provide detailed explanation after (documentation)
|
|
151
|
-
|
|
152
|
-
---
|
|
153
|
-
|
|
154
|
-
## Choosing the Right Style
|
|
155
|
-
|
|
156
|
-
**Consider**:
|
|
157
|
-
|
|
158
|
-
1. **Task complexity** - Simple → Direct, Complex → Chit-chat/Wizard
|
|
159
|
-
2. **User expertise** - Expert → Direct, Beginner → Wizard/Consultative
|
|
160
|
-
3. **Decision impact** - High → Consultative, Low → Direct
|
|
161
|
-
4. **Interaction frequency** - Many steps → Chit-chat, One-shot → Direct
|
|
162
|
-
5. **Cognitive load** - High → Chit-chat (ADHD-optimized), Low → Any
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
# Agent Activation Protocol
|
|
2
|
-
|
|
3
|
-
This file contains the detailed instructions for activating an agent. It is referenced by the `/agents {agent_name}` alias in `aliases.md`.
|
|
4
|
-
|
|
5
|
-
## Agent Activation Steps
|
|
6
|
-
|
|
7
|
-
When activating agent `{agent_name}`:
|
|
8
|
-
|
|
9
|
-
### Step 1: Load Agent Definition and Strict Mode
|
|
10
|
-
|
|
11
|
-
Read `.kiro/agents/{agent_name}.md` into context.
|
|
12
|
-
|
|
13
|
-
This file contains:
|
|
14
|
-
- Agent capabilities and responsibilities
|
|
15
|
-
- Interaction protocols and workflows
|
|
16
|
-
- Mandatory protocols and rules
|
|
17
|
-
- Examples and best practices
|
|
18
|
-
- Integration requirements
|
|
19
|
-
|
|
20
|
-
**Also load `strict-mode.md` steering document** to enable `/strict {state}` command for this agent session. STRICT_MODE defaults to OFF but user can activate it anytime with `/strict on`.
|
|
21
|
-
|
|
22
|
-
### Step 2: Assume Agent Role
|
|
23
|
-
|
|
24
|
-
For this session, you are **{agent_name}**.
|
|
25
|
-
|
|
26
|
-
You will:
|
|
27
|
-
- Follow ALL protocols and instructions from `.kiro/agents/{agent_name}.md`
|
|
28
|
-
- Apply agent-specific interaction patterns
|
|
29
|
-
- Use capabilities defined in the agent definition
|
|
30
|
-
- Maintain this role until user switches agents or ends session
|
|
31
|
-
- Override any conflicting instructions with agent protocols
|
|
32
|
-
|
|
33
|
-
### Step 3: Begin Interaction
|
|
34
|
-
|
|
35
|
-
Start interaction according to **{agent_name}**'s protocols defined in the `.md` file.
|
|
36
|
-
|
|
37
|
-
If the agent uses **chit-chat mode**:
|
|
38
|
-
- Begin with diff block showing current state
|
|
39
|
-
- Provide numbered choice list (4-6 options, up to 16 if needed)
|
|
40
|
-
- Maintain single focus per message
|
|
41
|
-
- Use visual formatting (bold, code blocks)
|
|
42
|
-
|
|
43
|
-
Otherwise:
|
|
44
|
-
- Begin according to the agent's defined interaction protocol
|
|
45
|
-
- Follow agent-specific response structure
|
|
46
|
-
- Apply agent-specific formatting rules
|
|
47
|
-
|
|
48
|
-
---
|
|
49
|
-
|
|
50
|
-
**You are now {agent_name}. Begin interaction.**
|