You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add comprehensive installation documentation:
- New Installation section with two approaches (copy vs direct install)
- Project vs User-Level Agents comparison table
- Explanation of why Kiro requires user-level installation
- Project-level context via steering files workaround
- Updated Step 7 with mkdir and tip callout
Clarifies that Kiro CLI only reads agents from ~/.kiro/agents/, unlike
Claude Code which supports project-level .claude/agents/ directories.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/deployments/kiro-cli.md
+111-2Lines changed: 111 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,109 @@ Kiro CLI uses a flat agent directory structure where all agents live in `~/.kiro
8
8
9
9
AssistantKit addresses this with **single-source prefix configuration**: define the prefix once in your deployment config, and it's applied to all generated agent names, filenames, and documentation.
10
10
11
+
## Project vs User-Level Agents
12
+
13
+
Kiro CLI and Claude Code handle agent storage differently:
14
+
15
+
| Aspect | Claude Code | Kiro CLI |
16
+
|--------|-------------|----------|
17
+
|**Project agents**|`.claude/agents/*.md` ✅ | Not supported ❌ |
Kiro CLI reads agents **only** from the user-level `~/.kiro/agents/` directory. It does not scan project directories for agent definitions. This design means:
26
+
27
+
1.**All agents share one namespace** — Without prefixes, an agent named `coordinator` in Project A would conflict with `coordinator` in Project B
28
+
2.**Installation is always required** — You can't just define agents in your project and use them; they must be copied to `~/.kiro/`
29
+
3.**Prefixes prevent conflicts** — Using `rel_coordinator` vs `rev_coordinator` lets multiple teams coexist
30
+
31
+
### Project-Level Context (Steering Files)
32
+
33
+
While agent *definitions* must live in `~/.kiro/agents/`, you can still use **project-level context** via steering files:
34
+
35
+
```
36
+
my-project/
37
+
└── .kiro/
38
+
└── steering/
39
+
├── project-guidelines.md
40
+
└── coding-standards.md
41
+
```
42
+
43
+
Reference them in your agent's `resources` field:
44
+
45
+
```json
46
+
{
47
+
"name": "rel_coordinator",
48
+
"resources": [
49
+
"file://.kiro/steering/**/*.md",
50
+
"file://README.md"
51
+
]
52
+
}
53
+
```
54
+
55
+
This gives agents project-specific context while the agent definitions remain in the global directory.
56
+
57
+
!!! note "Claude Code Alternative"
58
+
If you prefer project-scoped agents without installation, consider using Claude Code instead. Claude Code automatically discovers agents in `.claude/agents/` within your project, with no copy step required.
59
+
60
+
## Installation
61
+
62
+
Kiro CLI reads agents from `~/.kiro/agents/` and steering files from `~/.kiro/steering/`. Generated files must be installed to these directories before Kiro can use them.
63
+
64
+
### Option A: Generate then Copy (Recommended for Distribution)
65
+
66
+
Generate to a project directory, then copy to Kiro's config:
0 commit comments