kiro-agent-team 1.0.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/.kiro/README.md +228 -0
- package/.kiro/agents/backend-engineer.json +6 -0
- package/.kiro/agents/backend-engineer.md +643 -0
- package/.kiro/agents/database-specialist.json +6 -0
- package/.kiro/agents/database-specialist.md +390 -0
- package/.kiro/agents/development-logger.json +6 -0
- package/.kiro/agents/development-logger.md +265 -0
- package/.kiro/agents/devops-engineer.json +6 -0
- package/.kiro/agents/devops-engineer.md +287 -0
- package/.kiro/agents/frontend-architect.json +6 -0
- package/.kiro/agents/frontend-architect.md +1032 -0
- package/.kiro/agents/hooks/backend-engineer-hooks.yaml +540 -0
- package/.kiro/agents/hooks/database-specialist-hooks.yaml +488 -0
- package/.kiro/agents/hooks/development-logger-hooks.yaml +361 -0
- package/.kiro/agents/hooks/devops-engineer-hooks.yaml +345 -0
- package/.kiro/agents/hooks/frontend-architect-hooks.yaml +521 -0
- package/.kiro/agents/hooks/project-manager-hooks.yaml +513 -0
- package/.kiro/agents/hooks/security-specialist-hooks.yaml +358 -0
- package/.kiro/agents/hooks/test-orchestrator-hooks.yaml +380 -0
- package/.kiro/agents/hooks/ui-ux-designer-hooks.yaml +353 -0
- package/.kiro/agents/project-manager.json +6 -0
- package/.kiro/agents/project-manager.md +344 -0
- package/.kiro/agents/prompts/backend-engineer-system.md +815 -0
- package/.kiro/agents/prompts/database-specialist-system.md +332 -0
- package/.kiro/agents/prompts/development-logger-system.md +232 -0
- package/.kiro/agents/prompts/devops-engineer-system.md +260 -0
- package/.kiro/agents/prompts/frontend-architect-system.md +305 -0
- package/.kiro/agents/prompts/project-manager-system.md +285 -0
- package/.kiro/agents/prompts/security-specialist-system.md +231 -0
- package/.kiro/agents/prompts/test-orchestrator-system.md +214 -0
- package/.kiro/agents/prompts/ui-ux-designer-system.md +270 -0
- package/.kiro/agents/security-specialist.json +6 -0
- package/.kiro/agents/security-specialist.md +277 -0
- package/.kiro/agents/test-orchestrator.json +6 -0
- package/.kiro/agents/test-orchestrator.md +266 -0
- package/.kiro/agents/ui-ux-designer.json +6 -0
- package/.kiro/agents/ui-ux-designer.md +284 -0
- package/.kiro/devlog/00-START-HERE.md +444 -0
- package/.kiro/devlog/COMPLETE-WORKFLOW.md +553 -0
- package/.kiro/devlog/DEVLOG-INTEGRATION.md +413 -0
- package/.kiro/devlog/DEVLOG-PROCESS-FLOWS.md +484 -0
- package/.kiro/devlog/DEVLOG-QUICK-REF.md +299 -0
- package/.kiro/devlog/DEVLOG.md +22 -0
- package/.kiro/devlog/IMPLEMENTATION-COMPLETE.txt +434 -0
- package/.kiro/devlog/IMPLEMENTATION-SUMMARY.md +358 -0
- package/.kiro/devlog/README.md +363 -0
- package/.kiro/devlog/devlog-update.bat +136 -0
- package/.kiro/devlog/devlog-update.sh +275 -0
- package/.kiro/devlog/feature-completion-hook.bat +78 -0
- package/.kiro/devlog/feature-completion-hook.sh +84 -0
- package/.kiro/documentation/cli.md +31 -0
- package/.kiro/documentation/docs_cli.md +41 -0
- package/.kiro/documentation/docs_cli_authentication.md +43 -0
- package/.kiro/documentation/docs_cli_autocomplete.md +132 -0
- package/.kiro/documentation/docs_cli_billing.md +31 -0
- package/.kiro/documentation/docs_cli_billing_contact-support.md +43 -0
- package/.kiro/documentation/docs_cli_billing_managing-taxes.md +67 -0
- package/.kiro/documentation/docs_cli_billing_related-questions.md +49 -0
- package/.kiro/documentation/docs_cli_billing_subscription-portal.md +31 -0
- package/.kiro/documentation/docs_cli_chat.md +84 -0
- package/.kiro/documentation/docs_cli_chat_configuration.md +40 -0
- package/.kiro/documentation/docs_cli_chat_context.md +258 -0
- package/.kiro/documentation/docs_cli_chat_git-aware-selection.md +41 -0
- package/.kiro/documentation/docs_cli_chat_images.md +53 -0
- package/.kiro/documentation/docs_cli_chat_manage-prompts.md +216 -0
- package/.kiro/documentation/docs_cli_chat_model-selection.md +153 -0
- package/.kiro/documentation/docs_cli_chat_permissions.md +68 -0
- package/.kiro/documentation/docs_cli_chat_planning-agent.md +230 -0
- package/.kiro/documentation/docs_cli_chat_responding.md +123 -0
- package/.kiro/documentation/docs_cli_chat_security.md +87 -0
- package/.kiro/documentation/docs_cli_chat_subagents.md +77 -0
- package/.kiro/documentation/docs_cli_code-intelligence.md +251 -0
- package/.kiro/documentation/docs_cli_custom-agents.md +37 -0
- package/.kiro/documentation/docs_cli_custom-agents_configuration-reference.md +941 -0
- package/.kiro/documentation/docs_cli_custom-agents_creating.md +93 -0
- package/.kiro/documentation/docs_cli_custom-agents_examples.md +360 -0
- package/.kiro/documentation/docs_cli_custom-agents_troubleshooting.md +180 -0
- package/.kiro/documentation/docs_cli_enterprise_billing.md +33 -0
- package/.kiro/documentation/docs_cli_enterprise_concepts.md +34 -0
- package/.kiro/documentation/docs_cli_enterprise_getting-started.md +19 -0
- package/.kiro/documentation/docs_cli_enterprise_iam.md +251 -0
- package/.kiro/documentation/docs_cli_enterprise_monitor-and-track.md +15 -0
- package/.kiro/documentation/docs_cli_enterprise_monitor-and-track_dashboard.md +62 -0
- package/.kiro/documentation/docs_cli_enterprise_monitor-and-track_prompt-logging.md +165 -0
- package/.kiro/documentation/docs_cli_enterprise_monitor-and-track_user-activity.md +123 -0
- package/.kiro/documentation/docs_cli_enterprise_settings.md +15 -0
- package/.kiro/documentation/docs_cli_enterprise_subscribe.md +36 -0
- package/.kiro/documentation/docs_cli_enterprise_subscription-management.md +55 -0
- package/.kiro/documentation/docs_cli_enterprise_supported-regions.md +39 -0
- package/.kiro/documentation/docs_cli_experimental.md +282 -0
- package/.kiro/documentation/docs_cli_experimental_checkpointing.md +439 -0
- package/.kiro/documentation/docs_cli_experimental_delegate.md +422 -0
- package/.kiro/documentation/docs_cli_experimental_knowledge-management.md +449 -0
- package/.kiro/documentation/docs_cli_experimental_tangent-mode.md +357 -0
- package/.kiro/documentation/docs_cli_experimental_thinking.md +331 -0
- package/.kiro/documentation/docs_cli_experimental_todo-lists.md +385 -0
- package/.kiro/documentation/docs_cli_hooks.md +207 -0
- package/.kiro/documentation/docs_cli_installation.md +235 -0
- package/.kiro/documentation/docs_cli_mcp.md +106 -0
- package/.kiro/documentation/docs_cli_mcp_configuration.md +294 -0
- package/.kiro/documentation/docs_cli_mcp_examples.md +273 -0
- package/.kiro/documentation/docs_cli_mcp_governance.md +436 -0
- package/.kiro/documentation/docs_cli_mcp_security.md +77 -0
- package/.kiro/documentation/docs_cli_migrating-from-q.md +129 -0
- package/.kiro/documentation/docs_cli_privacy-and-security.md +83 -0
- package/.kiro/documentation/docs_cli_privacy-and-security_compliance-validation.md +17 -0
- package/.kiro/documentation/docs_cli_privacy-and-security_data-protection.md +104 -0
- package/.kiro/documentation/docs_cli_privacy-and-security_firewalls.md +26 -0
- package/.kiro/documentation/docs_cli_privacy-and-security_infrastructure-security.md +10 -0
- package/.kiro/documentation/docs_cli_privacy-and-security_vpc-endpoints.md +41 -0
- package/.kiro/documentation/docs_cli_reference_built-in-tools.md +624 -0
- package/.kiro/documentation/docs_cli_reference_cli-commands.md +689 -0
- package/.kiro/documentation/docs_cli_reference_settings.md +294 -0
- package/.kiro/documentation/docs_cli_reference_slash-commands.md +559 -0
- package/.kiro/documentation/docs_cli_steering.md +84 -0
- package/.kiro/guides/AGENT_WORKFLOW_GUIDE.md +294 -0
- package/.kiro/guides/DEVLOG.md +882 -0
- package/.kiro/guides/IMPLEMENTATION_EXAMPLES.md +611 -0
- package/.kiro/guides/PIV Loop.md +122 -0
- package/.kiro/guides/PIV Loop.png +0 -0
- package/.kiro/guides/PIVLoop.png +0 -0
- package/.kiro/guides/QUICK_REFERENCE.md +202 -0
- package/.kiro/guides/README.md +149 -0
- package/.kiro/guides/advanced-patterns.md +514 -0
- package/.kiro/guides/agent-coordination.md +434 -0
- package/.kiro/guides/core-workflows.md +409 -0
- package/.kiro/guides/emergency-procedures.md +414 -0
- package/.kiro/guides/project-evaluation.md +534 -0
- package/.kiro/guides/quality-assurance.md +431 -0
- package/.kiro/guides/quick-start.md +235 -0
- package/.kiro/guides/troubleshooting.md +575 -0
- package/.kiro/guides/walkthroughs.md +711 -0
- package/.kiro/prompts/add-to-devlog.md +263 -0
- package/.kiro/prompts/code-review-fix.md +18 -0
- package/.kiro/prompts/code-review-hackathon.md +167 -0
- package/.kiro/prompts/code-review-security.md +454 -0
- package/.kiro/prompts/code-review.md +113 -0
- package/.kiro/prompts/create-prd.md +151 -0
- package/.kiro/prompts/execute-backend.md +257 -0
- package/.kiro/prompts/execute-frontend.md +438 -0
- package/.kiro/prompts/execute-logging.md +491 -0
- package/.kiro/prompts/execute-security.md +482 -0
- package/.kiro/prompts/execute-testing.md +528 -0
- package/.kiro/prompts/execute.md +101 -0
- package/.kiro/prompts/execution-report.md +72 -0
- package/.kiro/prompts/implement-fix.md +228 -0
- package/.kiro/prompts/plan-feature.md +433 -0
- package/.kiro/prompts/prime.md +73 -0
- package/.kiro/prompts/quality-metrics.md +622 -0
- package/.kiro/prompts/quickstart.md +318 -0
- package/.kiro/prompts/rca.md +220 -0
- package/.kiro/prompts/system-review.md +189 -0
- package/README.md +32 -0
- package/bin/cli.js +97 -0
- package/package.json +33 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Subagents
|
|
2
|
+
Subagents are specialized agents that can autonomously execute complex tasks on your behalf. They have their own context, tool access, and decision-making capabilities, making them ideal for sophisticated multi-step operations.
|
|
3
|
+
## Key capabilities[](https://kiro.dev/docs/cli/chat/subagents/#key-capabilities)
|
|
4
|
+
* **Autonomous execution** - Run independently with their own context, with the level of autonomy depending on agent configuration
|
|
5
|
+
* **Live progress tracking** - Monitor real-time status updates as subagents work through tasks
|
|
6
|
+
* **Core tool access** - Read files, execute commands, write files, and use MCP tools
|
|
7
|
+
* **Parallel execution** - Run multiple subagents simultaneously for efficient task execution
|
|
8
|
+
* **Result aggregation** - Results automatically returned to the main agent when complete
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Default subagent[](https://kiro.dev/docs/cli/chat/subagents/#default-subagent)
|
|
12
|
+
Kiro includes a default subagent that can handle general-purpose tasks. When you assign a task to a subagent, the default subagent is used unless you specify a custom agent configuration.
|
|
13
|
+
## Custom subagents[](https://kiro.dev/docs/cli/chat/subagents/#custom-subagents)
|
|
14
|
+
You can spawn subagents using your own agent configurations. This allows you to create specialized subagents tailored to specific workflows:
|
|
15
|
+
bash
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
> Use the backend agent to refactor the payment module
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
To use a custom agent as a subagent, reference it by name when assigning tasks. The subagent will inherit the tool access and settings from that agent's configuration.
|
|
24
|
+
## How subagents work[](https://kiro.dev/docs/cli/chat/subagents/#how-subagents-work)
|
|
25
|
+
1. **Task assignment** - You describe a task, and Kiro determines if a subagent is appropriate
|
|
26
|
+
2. **Subagent initialization** - The subagent is created with its own context and tool access based on its agent configuration
|
|
27
|
+
3. **Autonomous execution** - The subagent works through the task independently, though it may pause to request user approval for certain tool permissions
|
|
28
|
+
4. **Progress updates** - You receive live progress updates showing current work
|
|
29
|
+
5. **Result return** - When complete, results are returned to the main agent
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
## Tool availability[](https://kiro.dev/docs/cli/chat/subagents/#tool-availability)
|
|
33
|
+
Subagents run in a separate runtime environment. Some tools available in normal chat are not yet implemented in subagents.
|
|
34
|
+
**Available tools:**
|
|
35
|
+
* `read` - Read files and directories
|
|
36
|
+
* `write` - Create and edit files
|
|
37
|
+
* `shell` - Execute bash commands
|
|
38
|
+
* MCP tools
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
**Not available:**
|
|
42
|
+
* `web_search` - Web research
|
|
43
|
+
* `web_fetch` - Fetch URLs
|
|
44
|
+
* `introspect` - CLI info
|
|
45
|
+
* `thinking` - Reasoning tool
|
|
46
|
+
* `todo_list` - Task tracking
|
|
47
|
+
* `use_aws` - AWS commands
|
|
48
|
+
* `grep` - Search file contents
|
|
49
|
+
* `glob` - Find files by pattern
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
**Agent configuration**
|
|
53
|
+
If your custom agent configuration includes tools that aren't available in subagents, those tools will simply be unavailable when the agent runs as a subagent. The agent will still function with the available tools.
|
|
54
|
+
## Best practices[](https://kiro.dev/docs/cli/chat/subagents/#best-practices)
|
|
55
|
+
1. **Use for complex tasks** - Most valuable for multi-step operations that benefit from isolation
|
|
56
|
+
2. **Provide clear instructions** - Specific task descriptions lead to better results
|
|
57
|
+
3. **Monitor progress** - Check on long-running subagents periodically
|
|
58
|
+
4. **Review results** - Verify subagent output before acting on recommendations
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
## Troubleshooting[](https://kiro.dev/docs/cli/chat/subagents/#troubleshooting)
|
|
62
|
+
Issue | Solution
|
|
63
|
+
---|---
|
|
64
|
+
Subagent not starting | Verify the task description is clear and actionable
|
|
65
|
+
Missing tool access | Check if the required tool is available in subagent runtime (see table above)
|
|
66
|
+
Incomplete results | Provide more specific instructions or break into smaller tasks
|
|
67
|
+
Page updated: December 18, 2025
|
|
68
|
+
[Model selection](https://kiro.dev/docs/cli/chat/model-selection/)
|
|
69
|
+
[Planning Agent](https://kiro.dev/docs/cli/chat/planning-agent/)
|
|
70
|
+
On this page
|
|
71
|
+
* [Key capabilities](https://kiro.dev/docs/cli/chat/subagents/#key-capabilities)
|
|
72
|
+
* [Default subagent](https://kiro.dev/docs/cli/chat/subagents/#default-subagent)
|
|
73
|
+
* [Custom subagents](https://kiro.dev/docs/cli/chat/subagents/#custom-subagents)
|
|
74
|
+
* [How subagents work](https://kiro.dev/docs/cli/chat/subagents/#how-subagents-work)
|
|
75
|
+
* [Tool availability](https://kiro.dev/docs/cli/chat/subagents/#tool-availability)
|
|
76
|
+
* [Best practices](https://kiro.dev/docs/cli/chat/subagents/#best-practices)
|
|
77
|
+
* [Troubleshooting](https://kiro.dev/docs/cli/chat/subagents/#troubleshooting)
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
# Code Intelligence
|
|
2
|
+
## Overview[](https://kiro.dev/docs/cli/code-intelligence/#overview)
|
|
3
|
+
Code Intelligence integrates Language Server Protocol (LSP) into Kiro CLI to enable semantic understanding of your codebase for the Kiro agent, similar to how extensions provide capabilities in your IDE. It comes pre-configured with 7 languages (TypeScript, Rust, Python, Go, Java, Ruby, C/C++) but can be expanded to any language by adding custom LSP configurations to `.kiro/settings/lsp.json` in your project root. After running `/code init`, you can search symbols, find references, navigate definitions, rename across files, and get diagnostics through natural language queries.
|
|
4
|
+
### How it works[](https://kiro.dev/docs/cli/code-intelligence/#how-it-works)
|
|
5
|
+
Kiro CLI spawns LSP server processes in the background that communicate via JSON-RPC over stdio. When you initialize a workspace, it detects languages from project markers (like `package.json`, `Cargo.toml`) and file extensions, then starts the appropriate language servers. These servers continuously analyze your code and maintain an index of symbols, types, and references. When you make queries, Kiro translates your natural language into LSP protocol requests, sends them to the relevant server, and formats the responses back into readable output.
|
|
6
|
+
Here's how you can enable Kiro CLI to use LSP servers:
|
|
7
|
+
1. Install language servers
|
|
8
|
+
2. Enable the LSP integration
|
|
9
|
+
3. Ask code related questions to use language servers
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## Installing language servers[](https://kiro.dev/docs/cli/code-intelligence/#installing-language-servers)
|
|
13
|
+
**Supported Languages**
|
|
14
|
+
Language | Extensions | Server | Install Command
|
|
15
|
+
---|---|---|---
|
|
16
|
+
TypeScript/JavaScript | .ts, .js, .tsx, .jsx | typescript-language-server | `npm install -g typescript-language-server typescript`
|
|
17
|
+
Rust | .rs | rust-analyzer | `rustup component add rust-analyzer`
|
|
18
|
+
Python | .py | jedi-language-server | `npm install -g pyright or pip install pyright`
|
|
19
|
+
Go | .go | gopls | `go install golang.org/x/tools/gopls@latest`
|
|
20
|
+
Java | .java | jdtls | `brew install jdtls (macOS)`
|
|
21
|
+
Ruby | .rb | solargraph | `gem install solargraph`
|
|
22
|
+
C/C++ | .c, .cpp, .h, .hpp | clangd | `brew install llvm (macOS) or apt install clangd (Linux)`
|
|
23
|
+
## Initialize Code Intelligence[](https://kiro.dev/docs/cli/code-intelligence/#initialize-code-intelligence)
|
|
24
|
+
**Workspace-scoped configuration**
|
|
25
|
+
Code intelligence is configured per workspace, not globally. Each project maintains its own LSP settings independently.
|
|
26
|
+
Run this slash command in your project root:
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
/code init
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
This creates `.kiro/settings/lsp.json` configuration and starts language servers.
|
|
35
|
+
What you'll see:
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
✓ Workspace initialization started
|
|
39
|
+
|
|
40
|
+
Workspace: /path/to/your/project
|
|
41
|
+
Detected Languages: ["python", "rust", "typescript"]
|
|
42
|
+
Project Markers: ["Cargo.toml", "package.json"]
|
|
43
|
+
|
|
44
|
+
Available LSPs:
|
|
45
|
+
○ clangd (cpp) - available
|
|
46
|
+
○ gopls (go) - not installed
|
|
47
|
+
◐ jdtls (java) - initializing...
|
|
48
|
+
✓ jedi-language-server (python) - initialized (687ms)
|
|
49
|
+
✓ rust-analyzer (rust) - initialized (488ms)
|
|
50
|
+
○ solargraph (ruby) - not installed
|
|
51
|
+
✓ typescript-language-server (typescript) - initialized (214ms)
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
**Status indicators:**
|
|
57
|
+
* ✓ - Initialized and ready
|
|
58
|
+
* ◐ - Currently initializing
|
|
59
|
+
* ○ available - Installed but not needed for detected languages
|
|
60
|
+
* ○ not installed - Not installed on your system
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
**Restart LSP servers:** If language servers shut down or become unresponsive, use `/code init -f`.
|
|
64
|
+
**Auto-initialization:** After the first `/code init`, Kiro CLI automatically initializes code intelligence on startup when `.kiro/settings/lsp.json` exists in the workspace.
|
|
65
|
+
**Disabling code intelligence:** Delete `.kiro/settings/lsp.json` from your project to disable. You must restart your session for this change to take effect. Re-enable anytime with `/code init`.
|
|
66
|
+
## Using Language Servers[](https://kiro.dev/docs/cli/code-intelligence/#using-language-servers)
|
|
67
|
+
Language servers provide semantic code intelligence through natural language queries. You can search symbols, navigate definitions, find references, rename across files, get diagnostics, view method documentation, and discover available APIs on classes and objects.
|
|
68
|
+
### Example 1: Find a Symbol[](https://kiro.dev/docs/cli/code-intelligence/#example-1-find-a-symbol)
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
> Find the UserRepository class
|
|
72
|
+
|
|
73
|
+
Searching for symbols matching: "UserRepository"
|
|
74
|
+
|
|
75
|
+
1. Class UserRepository at src/repositories/user.repository.ts:15:1
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Example 2: Find All References[](https://kiro.dev/docs/cli/code-intelligence/#example-2-find-all-references)
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
> Find references of Person class
|
|
84
|
+
|
|
85
|
+
Finding all references at: auth.ts:42:10
|
|
86
|
+
|
|
87
|
+
1. src/auth.ts:42:10 - export function authenticate(...)
|
|
88
|
+
2. src/handlers/login.ts:15:5 - authenticate(credentials)
|
|
89
|
+
3. src/handlers/api.ts:89:12 - await authenticate(token)
|
|
90
|
+
(3 more items found)
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Example 3: Go to Definition[](https://kiro.dev/docs/cli/code-intelligence/#example-3-go-to-definition)
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
> Find the definition of UserService
|
|
99
|
+
|
|
100
|
+
src/services/user.service.ts:42:1: export class UserService { ...
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Example 4: Get File Symbols[](https://kiro.dev/docs/cli/code-intelligence/#example-4-get-file-symbols)
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
> What symbols are in auth.service.ts?
|
|
109
|
+
|
|
110
|
+
Getting symbols from: auth.service.ts
|
|
111
|
+
|
|
112
|
+
1. Class AuthService at auth.service.ts:12:1
|
|
113
|
+
2. Function login at auth.service.ts:25:3
|
|
114
|
+
3. Function logout at auth.service.ts:45:3
|
|
115
|
+
4. Function validateToken at auth.service.ts:62:3
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### Example 5: Rename with Dry Run[](https://kiro.dev/docs/cli/code-intelligence/#example-5-rename-with-dry-run)
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
> Dry run: rename the method "FetchUser" to "fetchUserData"
|
|
124
|
+
|
|
125
|
+
Dry run: Would rename 12 occurrences in 5 files
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Example 6: Get Diagnostics[](https://kiro.dev/docs/cli/code-intelligence/#example-6-get-diagnostics)
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
> Get diagnostics for main.ts
|
|
134
|
+
|
|
135
|
+
1. Error line 15:10: Cannot find name 'undefined_var'
|
|
136
|
+
2. Warning line 42:5: 'result' is declared but never used
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### Example 7: Get Hover Information[](https://kiro.dev/docs/cli/code-intelligence/#example-7-get-hover-information)
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
> What's the documentation for the authenticate method in AuthService?
|
|
145
|
+
|
|
146
|
+
Type: (credentials: Credentials) => Promise<AuthResult>
|
|
147
|
+
|
|
148
|
+
Documentation: Authenticates a user with the provided credentials.
|
|
149
|
+
Returns an AuthResult containing the user token and profile.
|
|
150
|
+
|
|
151
|
+
@param credentials - User login credentials
|
|
152
|
+
@throws AuthenticationError if credentials are invalid
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
### Example 8: Get Code Completions[](https://kiro.dev/docs/cli/code-intelligence/#example-8-get-code-completions)
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
> What methods are available on the s3Client instance?
|
|
161
|
+
|
|
162
|
+
Available completions:
|
|
163
|
+
|
|
164
|
+
1. putObject - Function: (params: PutObjectRequest) => Promise<PutObjectOutput>
|
|
165
|
+
2. getObject - Function: (params: GetObjectRequest) => Promise<GetObjectOutput>
|
|
166
|
+
3. deleteObject - Function: (params: DeleteObjectRequest) => Promise<DeleteObjectOutput>
|
|
167
|
+
4. listObjects - Function: (params: ListObjectsRequest) => Promise<ListObjectsOutput>
|
|
168
|
+
5. headObject - Function: (params: HeadObjectRequest) => Promise<HeadObjectOutput>
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
## Custom Language Servers[](https://kiro.dev/docs/cli/code-intelligence/#custom-language-servers)
|
|
174
|
+
Add custom language servers by editing `.kiro/settings/lsp.json` in your project:
|
|
175
|
+
json
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
{
|
|
179
|
+
"languages": {
|
|
180
|
+
"mylang": {
|
|
181
|
+
"name": "my-language-server",
|
|
182
|
+
"command": "my-lsp-binary",
|
|
183
|
+
"args": ["--stdio"],
|
|
184
|
+
"file_extensions": ["mylang", "ml"],
|
|
185
|
+
"project_patterns": ["mylang.config"],
|
|
186
|
+
"exclude_patterns": ["**/build/**"],
|
|
187
|
+
"multi_workspace": false,
|
|
188
|
+
"initialization_options": { "custom": "options" }
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
**Fields:**
|
|
197
|
+
* **name** : Display name for the language server
|
|
198
|
+
* **command** : Binary/command to execute
|
|
199
|
+
* **args** : Command line arguments (usually ["--stdio"])
|
|
200
|
+
* **file_extensions** : File extensions this server handles
|
|
201
|
+
* **project_patterns** : Files that indicate a project root (e.g., package.json)
|
|
202
|
+
* **exclude_patterns** : Glob patterns to exclude from analysis
|
|
203
|
+
* **multi_workspace** : Set to true if the LSP supports multiple workspace folders (default: false)
|
|
204
|
+
* **initialization_options** : LSP-specific configuration passed during initialization
|
|
205
|
+
* **request_timeout_secs** : Timeout in seconds for LSP requests. Default is 60.
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
After editing, restart KIRO CLI to load the new configuration.
|
|
209
|
+
## Troubleshooting[](https://kiro.dev/docs/cli/code-intelligence/#troubleshooting)
|
|
210
|
+
Issue | Cause(s) | Solution
|
|
211
|
+
---|---|---
|
|
212
|
+
Workspace is still initializing | LSP servers are starting up | Wait and try again. If servers crashed, use `/code init -f` to restart.
|
|
213
|
+
LSP initialization failed | | Check logs for details: `/code logs -l`
|
|
214
|
+
No symbols found | Language server is still indexing or File has syntax errors or Symbol name doesn't match | Check file for errors, try broader search terms.
|
|
215
|
+
No definition found | Position doesn't point to a symbol. Solution: Verify the row and column numbers point to a symbol name. |
|
|
216
|
+
## Best Practices[](https://kiro.dev/docs/cli/code-intelligence/#best-practices)
|
|
217
|
+
1. Initialize once per project - Run `/code init` in project root
|
|
218
|
+
2. Use exact positions - Row and column must point to the symbol
|
|
219
|
+
3. Use dry_run for renames - Preview changes before applying
|
|
220
|
+
4. Check diagnostics first - Syntax errors can prevent analysis
|
|
221
|
+
5. Be specific in searches - "UserService" > "user"
|
|
222
|
+
6. Ask for documentation naturally - "What does the login method do?" instead of specifying coordinates
|
|
223
|
+
7. Discover APIs conversationally - "What methods does s3Client have?" to explore external library functionality
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
## Limitations[](https://kiro.dev/docs/cli/code-intelligence/#limitations)
|
|
227
|
+
1. LSP feature support varies by language server - not all servers support every operation (e.g., some may not support rename or formatting)
|
|
228
|
+
2. Large codebases may have slow initial indexing
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
Page updated: December 18, 2025
|
|
232
|
+
[Auto complete](https://kiro.dev/docs/cli/autocomplete/)
|
|
233
|
+
[Billing for individuals](https://kiro.dev/docs/cli/billing/)
|
|
234
|
+
On this page
|
|
235
|
+
* [Overview](https://kiro.dev/docs/cli/code-intelligence/#overview)
|
|
236
|
+
* [How it works](https://kiro.dev/docs/cli/code-intelligence/#how-it-works)
|
|
237
|
+
* [Installing language servers](https://kiro.dev/docs/cli/code-intelligence/#installing-language-servers)
|
|
238
|
+
* [Initialize Code Intelligence](https://kiro.dev/docs/cli/code-intelligence/#initialize-code-intelligence)
|
|
239
|
+
* [Using Language Servers](https://kiro.dev/docs/cli/code-intelligence/#using-language-servers)
|
|
240
|
+
* [Example 1: Find a Symbol](https://kiro.dev/docs/cli/code-intelligence/#example-1-find-a-symbol)
|
|
241
|
+
* [Example 2: Find All References](https://kiro.dev/docs/cli/code-intelligence/#example-2-find-all-references)
|
|
242
|
+
* [Example 3: Go to Definition](https://kiro.dev/docs/cli/code-intelligence/#example-3-go-to-definition)
|
|
243
|
+
* [Example 4: Get File Symbols](https://kiro.dev/docs/cli/code-intelligence/#example-4-get-file-symbols)
|
|
244
|
+
* [Example 5: Rename with Dry Run](https://kiro.dev/docs/cli/code-intelligence/#example-5-rename-with-dry-run)
|
|
245
|
+
* [Example 6: Get Diagnostics](https://kiro.dev/docs/cli/code-intelligence/#example-6-get-diagnostics)
|
|
246
|
+
* [Example 7: Get Hover Information](https://kiro.dev/docs/cli/code-intelligence/#example-7-get-hover-information)
|
|
247
|
+
* [Example 8: Get Code Completions](https://kiro.dev/docs/cli/code-intelligence/#example-8-get-code-completions)
|
|
248
|
+
* [Custom Language Servers](https://kiro.dev/docs/cli/code-intelligence/#custom-language-servers)
|
|
249
|
+
* [Troubleshooting](https://kiro.dev/docs/cli/code-intelligence/#troubleshooting)
|
|
250
|
+
* [Best Practices](https://kiro.dev/docs/cli/code-intelligence/#best-practices)
|
|
251
|
+
* [Limitations](https://kiro.dev/docs/cli/code-intelligence/#limitations)
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Custom agents
|
|
2
|
+
Custom agents provide a way to customize Kiro behavior by defining specific configurations for different use cases. Each custom agent is defined by a configuration file that specifies which tools the agent can access, what permissions it has, and what context it should include.
|
|
3
|
+
By default, Kiro CLI provides access to all available tools but requires user confirmation for most operations. This approach prioritizes security but can interrupt your workflow with frequent permission prompts.
|
|
4
|
+
Custom agents solve this by allowing you to:
|
|
5
|
+
* **Pre-approve specific tools** - Define which tools can run without prompting
|
|
6
|
+
* **Limit tool access** - Restrict which tools are available to reduce complexity
|
|
7
|
+
* **Include relevant context** - Automatically load project files, documentation, or system information
|
|
8
|
+
* **Configure tool behavior** - Set specific parameters for how tools should operate
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Benefits of using custom agents[](https://kiro.dev/docs/cli/custom-agents/#benefits-of-using-custom-agents)
|
|
12
|
+
1. Workflow optimization - Create custom agents tailored to specific tasks like AWS infrastructure management, code reviews, or debugging sessions.
|
|
13
|
+
2. Reduced interruptions - Pre-approve trusted tools to eliminate permission prompts during focused work sessions.
|
|
14
|
+
3. Enhanced context - Automatically include relevant project documentation, configuration files, or system information.
|
|
15
|
+
4. Team collaboration - Share custom agent configurations with team members to ensure consistent development environments.
|
|
16
|
+
5. Security control - Limit tool access to only what's needed for specific workflows, reducing potential security risks.
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Relationship to MCP and built-in tools[](https://kiro.dev/docs/cli/custom-agents/#relationship-to-mcp-and-built-in-tools)
|
|
20
|
+
Custom agents work with both built-in tools and external tools provided through the Model Context Protocol (MCP). This gives you flexibility to:
|
|
21
|
+
* Use built-in tools - File operations, command execution, AWS CLI integration, and other core functionality
|
|
22
|
+
* Integrate MCP servers - Add custom tools and services through MCP server configurations
|
|
23
|
+
* Control tool access - Specify exactly which tools from each source are available
|
|
24
|
+
* Manage tool conflicts - Use aliases to handle naming conflicts between different tool sources
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## Next steps[](https://kiro.dev/docs/cli/custom-agents/#next-steps)
|
|
28
|
+
* Learn how to [Create Custom Agents](https://kiro.dev/docs/cli/custom-agents/creating)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
Page updated: November 18, 2025
|
|
32
|
+
[Configuration](https://kiro.dev/docs/cli/chat/configuration/)
|
|
33
|
+
[Creating custom agents](https://kiro.dev/docs/cli/custom-agents/creating/)
|
|
34
|
+
On this page
|
|
35
|
+
* [Benefits of using custom agents](https://kiro.dev/docs/cli/custom-agents/#benefits-of-using-custom-agents)
|
|
36
|
+
* [Relationship to MCP and built-in tools](https://kiro.dev/docs/cli/custom-agents/#relationship-to-mcp-and-built-in-tools)
|
|
37
|
+
* [Next steps](https://kiro.dev/docs/cli/custom-agents/#next-steps)
|