[idea] Add Kiro CLI direct integration #1649
Replies: 1 comment
|
+1 on this. I'm running Kiro CLI daily in herdr and losing sessions on server restart is the main pain point. I looked at the branch and have a few notes that might be useful. Session ID source. The hook scans session_id = os.environ.get("KIRO_SESSION_ID")
if not session_id:
raise SystemExit(0)I just verified Resume plan is missing. The branch reports session identity to herdr, but ("herdr:kiro", "kiro", AgentSessionRefKind::Id) => {
vec!["kiro-cli".into(), "chat".into(), "--resume-id".into(), session_ref.value.clone()]
}
pub(crate) fn session_identity_only_integration(source: &str, agent_label: &str) -> bool {
matches!(
(source, agent_label),
("herdr:hermes", "hermes")
| ("herdr:kiro", "kiro")
)
}Without this, v3 hooks format. The v3 docs (kiro.dev/docs/cli/v3/hooks/) show standalone What works today. With 2.15.1, Happy to test a patched build if it helps move this forward. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
idea / problem
Kiro CLI (
kiro-cli) is detected by herdr via screen manifests (working/blocked/idle), but session identity is not reported. After a herdr server restart, Kiro panes are restored as bare shells — the conversation cannot be resumed automatically.requested change
Add
herdr integration install kiro/herdr integration uninstall kirothat installs a session-identity hook following the same pattern as Copilot, Cursor, and Droid.The hook script reports
pane.report_agent_sessionat SessionStart. Kiro CLI's v3 agent engine executes.shfiles placed in~/.kiro/hooks/. State detection remains screen-manifest-based.I already implemented this and verified it works:
s-miyama-nyle/herdr@feat/kiro-integration(+187 lines, 9 files)cargo check,cargo clippy,cargo test --bin herdr(2702 tests) pass cleankiro-cli chat --v3and successfully reports session ID to socketkiro-cli chat --resume-id <session_id>Note: Kiro CLI's default (v2) engine does not load standalone hooks yet. The v3 engine does and is expected to become default.
why you want this
I run multiple Kiro CLI sessions in herdr daily. Without session restore, every server restart loses all active conversations and requires manual re-launch with
--resume-id(after looking up each session ID).I intend to open a PR if this direction is approved.
All reactions