Kiro Agent
Integrate AWS Kiro CLI with Ralph TUI for AI-assisted coding.
Kiro Agent
The Kiro agent plugin integrates with AWS's kiro-cli to execute AI coding tasks. It supports trust-all-tools mode for autonomous operation and agent selection for specialized workflows.
Kiro outputs text only (no JSONL), so subagent tracing shows activity indicators rather than detailed tool calls.
Prerequisites
Install Kiro CLI using one of these methods:
For other platforms, visit the Kiro Downloads page.
Verify installation:
Basic Usage
Run with Kiro
Use the --agent kiro flag:
Select an Agent
Specify a Kiro agent via CLI with --agent-options:
Or configure in TOML:
Enable Trust All Tools
Configure auto-approve in config:
Configuration
Shorthand Config
The simplest configuration:
Full Config
For advanced control:
Options Reference
| Option | Type | Default | Description |
|---|---|---|---|
trustAllTools | boolean | true | Skip tool approval prompts for autonomous operation |
agent | string | - | Specific Kiro agent to use (optional) |
timeout | number | 0 | Execution timeout in ms (0 = no timeout) |
command | string | "kiro-cli" | Path to Kiro CLI executable |
A timeout of 0 means no timeout (unlimited execution time). For production or autonomous runs, consider setting a reasonable timeout like 300000 (5 minutes) or 600000 (10 minutes) to prevent runaway executions.
Trust All Tools
When trustAllTools is enabled (default), Kiro will skip tool approval prompts and auto-approve all tool invocations. This is required for Ralph TUI's autonomous operation since it cannot relay interactive prompts.
With trust-all-tools enabled, Kiro can execute any tool without confirmation. Ensure your task is well-defined and you trust the execution environment.
Agent Selection
Kiro supports multiple specialized agents. You can select one via the agent option:
Leave empty to use Kiro's default agent.
Skills Support
Kiro CLI supports skills similar to other agents:
| Location | Description |
|---|---|
~/.kiro/skills/ | Personal skills (user-specific) |
.kiro/skills/ | Repository skills (project-specific) |
Kiro also has "Powers" (~/.kiro/powers/) which use a POWER.md format - these are similar to skills but follow a different specification.
How It Works
When Ralph TUI executes a task with Kiro:
- Build command: Constructs
kiro-cli chat --no-interactive [options] - Pass prompt via stdin: Avoids shell escaping issues with special characters
- Stream output: Captures stdout/stderr in real-time
- Detect completion: Watches for completion token
- Handle exit: Reports success, failure, or timeout
CLI Arguments
Ralph TUI builds these arguments:
Text-Only Output
Unlike Claude and Gemini, Kiro outputs plain text rather than structured JSONL. This means:
- Subagent tracing shows activity indicators only
- No detailed tool call breakdown in the TUI
- Output is displayed as-is in the main output pane
Troubleshooting
"Kiro CLI not found"
Ensure Kiro is installed and in your PATH:
"Execution timeout"
Increase the timeout for complex tasks:
"Tool approval required"
Ensure trust-all-tools is enabled:
"Agent not found"
Check available agents in Kiro and ensure the name is correct:
Next Steps
- Claude Agent - Anthropic's Claude Code
- Gemini Agent - Google's Gemini CLI
- Configuration - Full options reference