Skip to content

feat(adapter): add Kiro CLI export adapter#61

Open
VedantMadane wants to merge 1 commit intoopen-gitagent:mainfrom
VedantMadane:feat/kiro-adapter
Open

feat(adapter): add Kiro CLI export adapter#61
VedantMadane wants to merge 1 commit intoopen-gitagent:mainfrom
VedantMadane:feat/kiro-adapter

Conversation

@VedantMadane
Copy link
Copy Markdown

Closes #46

Adds an export adapter for AWS Kiro CLI custom agents.

What it does

Generates two outputs from a gitagent directory:

  1. Agent config JSON (.kiro/agents/<name>.json) with:

    • name, description, model from the manifest
    • prompt as a file://./prompt.md URI (Kiro's recommended pattern for long prompts)
    • tools and allowedTools collected from skills frontmatter and tools/*.yaml
    • mcpServers from tool YAML files that declare mcp_server
    • hooks mapped to Kiro's event model (PreToolUse, PostToolUse, Notification, Stop)
  2. Prompt markdown (prompt.md) built from SOUL.md, RULES.md, DUTIES.md, skills, tools, knowledge, and compliance sections -- same pattern as the Gemini and Codex adapters.

Files changed

  • src/adapters/kiro.ts -- new adapter (306 lines)
  • src/adapters/index.ts -- add kiro export
  • src/commands/export.ts -- add kiro format to switch and help text

Usage

gitagent export -f kiro -d ./my-agent

Reference

Based on Kiro CLI configuration reference and follows the same adapter pattern as gemini.ts and codex.ts.

Add export adapter for AWS Kiro CLI custom agents.
Maps gitagent manifest to Kiro's JSON config format with:
- prompt via file:// URI referencing a generated prompt.md
- tools and allowedTools from skills and tool definitions
- mcpServers from tool yaml mcp_server declarations
- hooks mapping (PreToolUse, PostToolUse, Notification, Stop)
- model preference passthrough

Closes open-gitagent#46
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.

[Adapter] Kiro CLI Custom Agent

1 participant