feat: add Kiro CLI adapter#115
Open
mvanhorn wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Kiro CLI adapter to
agent-managerso AI DevKit can detect, list, start, and route messages to Kiro CLI sessions, the same way it already does for Claude Code, Codex, Copilot, Gemini CLI, OpenCode, and Pi.Why this matters
Closes the maintainer-declared work item in #109 ("Support Kiro CLI in agent-manager"). Kiro was the one requested coding agent not yet wired into the adapter layer, so
agent list,agent start --type kiro,agent sessions --type kiro, and the channel bridge had no way to reach it.Changes
KiroAdapter(packages/agent-manager/src/adapters/KiroAdapter.ts), mirroring the existingPiAdapter: process detection, PID-to-session tracker matching, defensive JSONL session parsing, conversation/listSessionssupport, and idle/waiting status. Reads sessions from~/.kiro/cli/sessionsand gracefully returns empty results when that directory is absent.AgentTypeunion with'kiro'and exportedKiroAdapterfromadapters/index.tsandagent-manager/src/index.ts.kiroin theAGENTSregistry (launch commandkiro-cli; process matcher accepts thekiro-cliorkirobasename) and added it toStartableAgentType.new KiroAdapter()in bothAgentManagerfactories (cli/src/commands/agent.tsandcli/src/services/channel/channel-runner.ts), added theKirodisplay label, extended the--typehelp text, and added'kiro'toVALID_AGENT_TYPES.Testing
KiroAdapter.test.ts(type identity,kiro-cli/kiroprocess matching with no false positives, session detection) — agent-manager suite: 435 passed.sessions.test.ts,agent.test.ts,channel.test.ts, andStartAgentPane.test.tsfor the new type/registration/cycle order — cli suite: 808 passed.nx run-many -t build -p agent-manager(swc +tsctypecheck) andnx run-many -t lint -p agent-manager cliboth clean.Fixes #109
AI was used for assistance.