kg keeps source configuration and generated output separate.
That is the main idea:
- you edit TOML in
generators/ kggenerates JSON intoagents/- global and local config can both exist at the same time
Overview
Source directories
manifests/ declares which agents exist and how they relate to each other.
agents/ usually holds the heavier per-agent configuration.
Precedence
kg loads and merges configuration in this order:
- global manifests:
~/.kiro/generators/manifests/*.toml - global agents:
~/.kiro/generators/agents/<agent-name>.toml - local manifests:
.kiro/generators/manifests/*.toml - local agents:
.kiro/generators/agents/<agent-name>.toml
--globalto ignore local config--localto ignore global config
Generated output
The TOML files undergenerators/ are the source of truth.
Generated JSON is written to:
~/.kiro/agents/for global agents.kiro/agents/for local agents
Initialization
kg init installs the kg-helper agent:
kg init --skeleton creates starter TOML files:
Inspect what is loaded
Use these commands when you want to see whatkg is reading: