Introduction
We've all been there: one person on the team gets a really good agent setup in their AI coding CLI. The right prompt, a few MCP servers, some rules about what the agent may and may not do. Two weeks later, a colleague asks for it, you zip up a folder from ~/.kiro, and from that moment on you have two diverging copies and no idea which one is good.
In this post, I want to share kirokit, a small Go CLI and repository layout I built to fix exactly this for Kiro CLI v3.
Note: this works for several projects I worked for. It works for me, but it's far from complete. Feel free to contribute. If you want a more mature version, check out apm from Microsoft. I preferred to keep it lean for now.
Update (18 October 2026): kirokit now also comes as a desktop app for macOS, so colleagues who don't live in a terminal can use it too.
Update (8 November 2026): the CLI and the desktop app now run on macOS, Linux and Windows. kirokit setup downloads the config repository for you, and you can pin a branch or tag. There is an example team of role agents with a feedback loop, and the same templates now also reach Kiro IDE, kirocrew and Amazon Quick.
Now let's go into the details.
The problem
Kiro CLI reads its agents, prompts, hooks, steering docs, and skills from $KIRO_HOME (~/.kiro by default). That is great for one person. For several teams, it gets messy quickly, and for me it always starts with these four things:
- Nobody owns the config. It lives in home directories, so there is no review, no history and no way to roll back.
- MCP servers drift. One laptop runs
npx some-mcpat whatever version was latest that day, another one is three versions behind. - Secrets end up in the wrong place. The Jira or Atlassian token has to go somewhere, and "somewhere" quickly becomes a plaintext JSON file.
- Teams want different things. The platform team wants a
devopsagent with Jira access, the data team wants a Snowflake MCP server and no shared steering at all. One shared folder doesn't work; one folder per person doesn't scale.
The solution
kirokit treats the Kiro config as source code. Each team owns a directory of templates in a git repository, and the CLI renders them into the exact layout Kiro expects.
brew install --cask mavogel/tap/kirokit
kirokit --version
# download the config repository onto its newest release
kirokit setup --source https://github.com/mavogel/kirokit.git --target ~/.kirokit-config
export KIROKIT_REPO=~/.kirokit-config
kirokit install platform-team
kiro-cli chat --agent devops --v3That's the full command-line experience. Everything interesting happens in the repository behind it. Linux has apt and dnf packages next to Homebrew, and on Windows you install it with scoop. If you'd rather press a button than type a command, there is a desktop app; more on that below.
Here is the whole flow in about a minute: a team installs in the terminal, the agent lists its skill, the Quick bundle, Kiro IDE, and kirocrew see the same agents, and the desktop app does the same with a button.
Teams own templates
The layout is boring on purpose:
teams/<team>/manifest.yaml
teams/<team>/agents/<agent>/agent.json.tmpl
teams/<team>/agents/<agent>/env/secrets.enc.yaml # optional, SOPS-encrypted
teams/<team>/hooks/*.json.tmpl
teams/<team>/prompts/*.md.tmpl
teams/<team>/skills/<skill>/SKILL.md.tmpl
teams/<team>/steerings/*.md.tmpl
global/steerings/*.md # shared docs a team can opt into
env/mcp-versions.yaml # central MCP version pinsEvery source file has a double extension like agent.json.tmpl. The renderer finds them with a **/*.tmpl glob, strips the .tmpl and writes the result to Kiro's flatter layout, so agents/devops/agent.json.tmpl becomes agents/devops.json. Prompts are a nice bonus: Kiro lists every file in prompts/ as a slash command, so a template like create-steering.md.tmpl shows up as /create-steering after the install.
Duplication between teams is expected and fine. There are two worked examples in the repo (platform-team and data-team), and kirokit onboard <team> scaffolds a new one.
Pinned MCP versions
All MCP server versions live in one file:
mcp-remote: "0.14.3"
context7-mcp: "4.3.0"An agent template asks for its version with {{ mcpVersion "context7-mcp" }}. If the key doesn't exist, the render fails and names the missing key and the file. Bumping a pin in one place then shows you which teams' output changes. I let Renovate open those bump PRs, so the pins don't rot.
Secrets without plaintext
This was the part I cared about most. A token never appears in a template, in rendered output, or in a test fixture. Instead, each agent has its own SOPS-encrypted secrets.enc.yaml (ciphertext, safe to commit), and the MCP server is launched through sops exec-env:
"atlassian": {
"command": {{ sopsCommand }},
"args": {{ sopsArgsJSON (printf "%s/kirokit-secrets/platform-team/devops/secrets.enc.yaml" .KiroHome) "npx" "-y" (printf "mcp-remote@%s" (mcpVersion "mcp-remote")) "https://mcp.atlassian.com/v2/mcp" "--header" "Authorization: ${ATLASSIAN_AUTH}" }}
}SOPS decrypts the file when the MCP server starts and sets the keys as environment variables for that process. I went this way because Kiro CLI's own ${VAR} substitution wasn't reliable for me. Every team also gets its own age key, so the platform team's key can't decrypt the data team's secrets.
Permissions in the template
Since the agent config is a template, we review the guardrails like any other code. The devops agent for example may read everything, write only to /tmp, has to ask before calling the Atlassian tools, and has a hard deny on rm *, force pushes, pushes to main and branch deletion:
{ "capability": "shell", "match": ["rm *"], "effect": "deny" },
{ "capability": "shell", "match": ["git push --force*", "git push -f*"], "effect": "deny" },
{ "capability": "shell", "match": ["git push * main", "git push * main *"], "effect": "deny" }On top of that, a team can opt into a shared steering such as security-baseline. It is added to the resources of every agent of that team, and only those, because it's rendered to kirokit-steerings/<team>/ and not into Kiro's auto-loaded steering/ folder.
Golden files catch drift
Rendering is deterministic: kirokit renders with a fixed /kiro-home sentinel, so the output is the same on every machine. The committed result lives in testdata/golden/<team>/, and CI compares it byte for byte.
kirokit render [team] --out <dir> # render only
kirokit test [team] # diff against the goldens (CI)
kirokit update [team] # regenerate goldens after a template changeChange a template, run kirokit update, and the golden diff in the pull request shows exactly what each agent will look like after the merge. For me, that review step is the biggest win, because nobody has to guess what a template change does. go test additionally runs kiro-cli agent validate on the rendered agents when a logged-in kiro-cli is available.
Skills from other repositories
Teams can also pull in skills from other git repositories, pinned to a ref:
externalSkills:
- source: https://github.com/anthropics/skills.git
ref: <commit-sha>
paths:
- skills/pdf
- skills/xlsxkirokit skills fetch <team> copies the skill byte for byte into teams/<team>/external/skills/ and writes a lock file with the resolved commit and a content hash. Fetching is the only step that touches the network. render, test, install and sync work offline, and they fail if the vendored files and the lock disagree. So a hand-edited skill doesn't slip through.
Install, back up, sync
kirokit install <team> renders with your real $KIRO_HOME and copies the files there. kirokit uninstall <team> removes exactly what that install wrote, tracked in a manifest, and leaves Kiro's own data alone. Before an install overwrites anything, the affected folder is copied to something like 20261015-101530-agents.backup.
One machine now holds one team. Installing another team replaces the installed one, so two teams can't quietly mix their agents in the same Kiro home. Also, with KIROKIT_REPO=<checkout> set, every command runs from any folder, not only from inside the clone.
To keep everyone current, there is kirokit sync. It pulls the config repository, optionally checks out the newest v* tag, installs, and removes files the team stopped shipping. scripts/kirokit-sync-setup.sh registers it as a launchd agent on macOS or a systemd user timer on Linux, every four hours by default. On Windows, you run kirokit sync yourself.
kirokit sync platform-team --latest-tag # only releases (v* tags) reach the machine
kirokit sync platform-team --branch main # follow a branch, or pin a tagkirokit setup takes the same --branch, so a team can try a feature branch of the config before it is released. A branch follows its new commits, a tag stays where it is, and a switch that would clobber local changes is refused with a clear message.
Role agents that ask each other
So far the example teams are engineering teams. The newest example, product-team, shows that the idea works for a whole product team: five role agents (product-owner, engineer, customer, qa and ux-designer) that can ask each other before they answer.
kirokit install product-team
kiro-cli chat --agent product-owner
# "Ask the customer agent what frustrates them about onboarding."A few details I like:
- Subagent calls are scoped. Every agent may call only the other four. Calling one that can't write files runs without a prompt; calling the
engineer, who can run commands, asks first. Render fails when a rule names an agent that doesn't exist in the team, because Kiro accepts any name there. - Review gates for specs. A steering tells the agent writing a spec to let
product-ownerreviewrequirements.mdandengineerreviewdesign.mdbefore the next phase. A steering instructs the agent; it can't force the review, but it works well for me. - Every agent and skill has an owner. The owners live in
manifest.yamlas GitHub handles. /feedbackcloses the loop. It drafts an issue that mentions the owner of the agent or skill from your chat and prints a prefilled link to the team's feedback repository. Nothing is sent; you open the link, edit, and submit. Theanalyze-sessionskill goes one step further: it reads your last session and recommends a hook, a steering, or a permission, grouped by owner.
The customer persona is invented. Replace it with something from your own customer interviews before you trust its answers.
More than Kiro CLI
More tools than Kiro CLI read the same installed folder. With kirokit install, the agents, skills and steering also show up in Kiro IDE (under Global in the agent selector) and in kirocrew. Two caveats from my testing: Kiro IDE only honours KIRO_HOME when it is an absolute path, so start it from a shell that has it set, and kirocrew writes its own kirocrew*.json agents into the same agents/ folder, which kirokit's backups copy and uninstall leaves alone.
Amazon Quick has no API for agents and skills, so kirokit writes files there, and you import them by hand. A team lists the skills and agents it wants under quick in its manifest, and one command renders the bundle from the same templates:
kirokit render --quick product-team --out ~/quick/product-teamNo MCP servers and no secrets go into that bundle. Quick assigns a skill ID on the first import, so a second pass is needed: import, export the skills, record the IDs with kirokit quick ids, render again, and reimport. The Amazon Quick page in the repo walks through it. AWS doesn't document Quick's agent format, so treat it as something that may change.
The desktop app: no terminal needed
Everything above assumes you are comfortable in a terminal. Most people on a team aren't, and they shouldn't have to be. So kirokit now also comes as a small desktop app for macOS, Linux, and Windows.
In plain words: kirokit gives every person on a team the same approved setup for their AI assistant. The team agrees once on how the assistant behaves, which tools it may use, and what it must never do. The desktop app lets a colleague get that setup with one click—no commands, no config files, no folder copying. You pick your team, press Install, and your assistant is ready. When the team improves the setup, you press Sync and you're up to date again.
brew install --cask mavogel/tap/kirokit-desktopOn Linux, you install the .deb or .rpm from the release (it needs GTK 4.14 or later, so Ubuntu 24.04+ or Debian 13+), on Windows 10 or 11, you run the -setup.exe. The app bundles the kirokit CLI, so you don't need to install anything else. What it does:
- First launch: you enter the address of your team's repository and press Clone. The app then checks out the latest release tag, so you start on a reviewed version, not someone's half-finished branch. If you want something else, you pick the Version right after the clone: the newest release, a branch or a tag.
- Teams: every team shows what it ships (agents, skills, prompts, steerings) and whether it's installed. Install first checks that SOPS, your decryption key and Kiro CLI are there, then runs
kirokit install <team>. Teams with aquicksection also get Export for Quick. - Agents and skills: each one shows its owner and a Feedback button that opens a prefilled GitHub issue in the browser.
- Install and sync: Sync pulls the latest config for the version you chose, Uninstall removes exactly what the install wrote. A badge tells you when the templates come from a branch ("not a release") or a pinned tag.
- Settings: the Kiro home folder, the repository address and the version. A new address is stored only after the clone succeeds, and a failed clone restores the old one.
For the technical folks: the app is just a front end for the CLI. Every button runs the same kirokit command in the terminal dock at the bottom, so you see exactly what happens, and you can answer a git sign-in prompt right there. The second tab is your normal shell (zsh, bash or PowerShell) with the bundled kirokit first on the PATH. The app writes byte for byte what the command line does, so a mixed team of terminal and button people ends up with the same setup.
Note: the apps are not signed. On macOS, the cask clears the quarantine flag after the install; if you open the DMG by hand, run xattr -dr com.apple.quarantine kirokit.app once, or macOS says the app is damaged. On Windows, SmartScreen shows "Windows protected your PC" once: choose More info, then Run anyway. The app needs macOS 13 or later (Apple Silicon and Intel) and runs on amd64 and arm64 on Linux and Windows.
Try it without touching your setup
Kiro respects KIRO_HOME, so you can test kirokit in a throwaway directory:
git clone https://github.com/mavogel/kirokit.git
cd kirokit
export KIRO_HOME_BACKUP=$KIRO_HOME
export KIRO_HOME=$(mktemp -d)
# add a new external skill to the platform-team manifest
cat >> teams/platform-team/manifest.yaml <<'EOF'
externalSkills:
- source: https://github.com/anthropics/skills.git
ref: dbd4588f9e1033efb41dad4bef2f7947c8993d44
paths:
- skills/frontend-design
EOF
# fetch and update the platform-team with the new external skill
kirokit skills fetch platform-team
kirokit update platform-team
# install the updated platform-team in tmp KIRO_HOME
kirokit install platform-team
# run the devops agent in chat mode
kiro-cli chat --agent devops --v3
# and see the frontend-design skill is present...
rm -rf $KIRO_HOME
export KIRO_HOME=$KIRO_HOME_BACKUPConclusion
My rule of thumb: as soon as a second person needs your agent setup, it belongs in git, not in a home directory. Templates give each team room to differ, the central pins and golden files keep the differences visible, and SOPS keeps the tokens out of the picture.
Personally, I'd start with one team, one agent, and the golden tests, then add secrets and sync once the first colleague asks for the config. And once the first colleague who avoids the terminal asks, point them to the desktop app. If you try it, I'd like to hear what breaks. Happy rendering!
This post was written with AI assistance and verified plus enhanced by a human.



