kiro-sub-agent
Skill3 starsChanged 3 months agoMITView on GitHub
Launch Kiro CLI as a headless sub-agent in a tmux pane and monitor its completion. Use when delegating a well-defined coding task to a Kiro agent subprocess. Triggers include "run kiro agent", "delegate to kiro", "kiro sub-agent", or any request to run kiro-cli headlessly.
In this repository86 other files it gives its agents.
- AGENTS.mdAGENTS.md
- adrSkill
- adzic-bddSkill
- agent-md-refactorSkill
- agent-muxSkill
- agent-role-impersonatorSkill
- agilquest-reservationsSkill
- ai-text-humanizerSkill
- architecture-decision-recordsSkill
- ast-grepSkill
- atacSkill
- aws-cliSkill
- bart-adversarial-reviewerSkill
- bddSkill
- branch-doctorSkill
- c4-architectureSkill
- c4Skill
- claude-sub-agentSkill
- codemap-config-setupSkill
- codemap-exploreSkill
- codemap-handoffSkill
- codemap-hub-safetySkill
- codemapSkill
- commitSkill
- copilot-sub-agentSkill
- daily-standupSkill
- daily-statusSkill
- debugSkill
- design-thinkingSkill
- doctorSkill
- docx-word-processorSkill
- farley-tddSkill
- forensicsSkill
- gemini-sub-agentSkill
- git-commit-formatterSkill
- git-forensicsSkill
- github-actions-permissionsSkill
- github-cliSkill
- git-repo-discoverySkill
- git-safety-guardrailsSkill
- harness-idpSkill
- humanizeSkill
- iteration-plannerSkill
- jira-issue-managerSkill
- justfile-assistantSkill
- lessons-learnedSkill
- lessonsSkill
- lisa-planning-agentSkill
- lovejoy-release-agentSkill
- lsp-code-analysisSkill
- macro-to-microSkill
- marge-product-agentSkill
- meeting-notesSkill
- mermaid-diagram-generatorSkill
- modern-cli-overridesSkill
- native-web-searchSkill
- obsidian-notetakerSkill
- outlook-headlessSkill
- pdf-document-processorSkill
- pi-sub-agentSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
When you want to use Kiro's tool ecosystem (AWS, code intelligence, etc.)
- Distinctive: line 106
No structured output — cannot extract cost, turn count, or tool calls programmatically
- Very specific: line 107
No session persistence control beyond --no-interactive
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Kiro Sub-Agent Skill
Launch kiro-cli chat as a headless sub-agent in a tmux pane.
When to use
- Delegating a scoped task to Kiro CLI running autonomously
- Parallel execution alongside other sub-agents (claude, gemini, pi)
- Running Ralph or Bart loops via Kiro instead of Claude CLI
- When you want to use Kiro's tool ecosystem (AWS, code intelligence, etc.)
Key differences from Claude CLI
| Aspect | Claude CLI | Kiro CLI |
| Structured output | --output-format stream-json (JSONL) | None — ANSI terminal output only |
| Non-interactive | --print + --no-session-persistence | --no-interactive |
| Tool trust | --dangerously-skip-permissions | -a / --trust-all-tools |
| Prompt input | -p @/path/to/file.md or -p "text" | Positional argument "text" |
| Model selection | --model haiku|sonnet|opus | --model <model> |
| Completion signal | {"type":"result"} in JSONL | Process exit (exit code 0) |
| Cost tracking | total_cost_usd in result event | Not available in output |
Non-interactive invocation
kiro-cli chat \
--trust-all-tools \
--no-interactive \
--model <model> \
"Your prompt here"Reading prompt from file
Kiro CLI doesn't support @file syntax. Use command substitution:
kiro-cli chat -a --no-interactive "$(cat /tmp/task-prompt.md)"Or for very long prompts (argument length limits), use a heredoc wrapper:
cat > /tmp/launch-kiro.sh << 'SCRIPT'
#!/bin/bash
cd /path/to/worktree
kiro-cli chat -a --no-interactive "$(cat /tmp/ralph-task.md)" \
> /tmp/kiro-task.log 2>&1
echo "EXIT_CODE: $?"
SCRIPT
chmod +x /tmp/launch-kiro.shMonitoring
Since Kiro doesn't produce JSONL, monitoring is process-based:
Check if still running
# From tmux pane scraping
tmux capture-pane -t "$PANE" -p | tail -5Check completion
# Look for the credits/time line that signals end of response
tmux capture-pane -t "$PANE" -p | grep -q "Credits:.*Time:" && echo "DONE"Log-based monitoring
# If output is redirected to a file
tail -f /tmp/kiro-task.log | grep --line-buffered "Credits:"Launch template (for dispatch.py)
#!/bin/bash
cd {worktree}
kiro-cli chat -a --no-interactive "$(cat {prompt})" \
> {logfile} 2>&1
echo "KIRO_EXIT: $?" >> {logfile}Completion detection
Unlike Claude's JSONL result event, detect Kiro completion by:
- Process exit — the
kiro-cli chatprocess terminates - Log marker — look for
Credits:andTime:in output - Exit code file — append
echo "KIRO_EXIT: $?"after the command
Limitations
- No structured output — cannot extract cost, turn count, or tool calls programmatically
- No session persistence control beyond
--no-interactive - Prompt size limited by shell argument length (
getconf ARG_MAX, typically 2MB on Linux) - ANSI escape codes in output require stripping for clean log analysis
- No
--append-system-promptequivalent — persona must be included in the prompt text
Integration with agent-mux
In dispatch.py, Kiro uses a different launch template:
AGENT_CONFIG = {
"ralph": {
"runner": "kiro",
"model": None, # uses default
"logfile": "/tmp/kiro-ralph-{id}.log",
},
}The dispatch script writes the prompt to a file and launches via:
cd <worktree> && kiro-cli chat -a --no-interactive "$(cat <prompt>)" > <logfile> 2>&1Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

