Skip to content

feat(init): add Kiro agent support#2692

Open
chenhaitao888 wants to merge 1 commit into
rtk-ai:developfrom
chenhaitao888:feat/kiro-support
Open

feat(init): add Kiro agent support#2692
chenhaitao888 wants to merge 1 commit into
rtk-ai:developfrom
chenhaitao888:feat/kiro-support

Conversation

@chenhaitao888

Copy link
Copy Markdown

Summary

Adds rtk init --agent kiro, a new rules-file integration for Kiro (AWS's agentic AI IDE).

Kiro reads .kiro/steering/*.md as steering files (project context). This installs token-savings guidance to .kiro/steering/rtk-rules.md, telling Kiro to prefer rtk <cmd> over raw commands — the same prompt-level approach already used for Antigravity and Kilo Code.

Changes

  • src/main.rs — add AgentTarget::Kiro and route --agent kiro (project-scoped, rejects -g)
  • src/hooks/init.rsrun_kiro_mode writes/updates .kiro/steering/rtk-rules.md; idempotent and dry-run aware; 2 unit tests
  • hooks/kiro/rules.md — the embedded steering file (mirrors hooks/antigravity/rules.md)
  • hooks/kiro/README.md — per-agent hook README
  • docs + top-level README.md — Kiro added to the supported-agents table, install section, and quick-start

Integration tier

Rules file (prompt-level) — identical mechanism to Antigravity / Kilo Code / Cline / Windsurf. No programmatic hook, since Kiro does not yet expose a tool-interception API.

Test plan

  • cargo fmt --all — clean
  • cargo clippy --all-targets — 0 warnings
  • cargo test --all — all pass, including test_kiro_mode_creates_rules_file and test_kiro_mode_is_idempotent
  • cargo install --path ., then verified end-to-end:
    • rtk init --agent kiro creates .kiro/steering/rtk-rules.md
    • --dry-run writes nothing
    • second run is idempotent ("already configured")
    • rtk init -g --agent kiro errors (project-scoped), exit 1
    • kiro listed in rtk init --help

Add `rtk init --agent kiro`, installing token-savings guidance to
`.kiro/steering/rtk-rules.md` (project-scoped). Kiro (AWS AI IDE) reads
`.kiro/steering/` as steering files.

Mirrors the existing rules-file integrations (Antigravity, Kilo Code):
idempotent install, dry-run support, and a project-scoped guard that
rejects `-g`. Includes unit tests and docs.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@CLAassistant

CLAassistant commented Jun 28, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants