
Spec it, build it, keep the context: Kiro with Kode and Meko
Run Kiro from spec to pull request with Kode, and carry each task's context into the next with Meko, an open-source context layer for agents that runs on your laptop.
Disclosure: I work at Yugabyte, which builds Meko and Kode. Both are open source under Apache-2.0.
Every new Kiro session starts without your project's context. You explain again that the API uses snake_case JSON, that tests need the local Postgres, that the
billing module is off limits. Steering files cover the rules you write down ahead of time. They don't cover what you and the agent work out along the way: the decisions, the reasons behind them, the gotchas.This walkthrough fills that gap with two open-source tools that run on your own machine:
- Meko is a context layer for agents. It keeps a project's context in a datapack: memories, knowledge files, designs and the decisions behind them. Kiro and other agents reach it over MCP, and it stays on your computer.
- Kode is a Meko extension that runs Kiro through a task: Design → Code → Code Review → Pull Request → Merge. Kiro writes a spec, you approve it, and Kiro builds it. Each task gets its own git worktree and branch, and you drive it from your browser.
Kode saves each task's spec, and what the task learned, into the project's datapack. The next task starts with that context.
What you need
- An Apple Silicon Mac with macOS 14 or newer, or Linux on x64 or arm64 (an EC2 instance works).
- Kiro CLI 2.32 or later, signed in (
kiro-cli login).
- A git repo under
~/codeto try it on.
1. Install Meko and Kode
curl -fsSL https://mekodata.ai/install.sh | shmeko extension install kodeRun the second command in a new terminal if the installer added
~/.local/bin to your PATH. Kode's setup checks for git, curl and a coding agent, connects Kiro to Meko, and opens Kode in your browser at http://127.0.0.1:7777/ext/kode/ . Reopen it any time with meko kode ui .If you also have Claude Code installed, Kode starts new sessions on Claude Code. To use Kiro, open Settings › Harness and set Default agent to Kiro.
2. Open your project
Click Open project and pick a repo from
~/code . Kode creates a datapack for the project. It holds the project's specs, what its tasks learned, and a summary of each merged PR.3. Build a spec
Start a new task at the Design stage and describe the change. Here, on Meko's own repo, I asked for a benchmark of Meko's search against LoCoMo, a public long-conversation QA dataset.
Kiro reads the code, searches Meko for the project's context, and writes a design: the goal, the key decisions, the files it expects to change, risks, and a test plan. It took about 8 minutes on this mid-sized Go repo.

Kiro's open questions appear beside the design, each with its options and the one Kiro recommends. Answer them, then click Approve with answers. Until you approve, Kode blocks edits in the repo, so the spec comes before any code.

4. Run it
After approval, the task moves to Code. Kiro implements the spec in the task's worktree and runs the tests. Kode then reviews the change on your machine, and you choose which findings Kiro fixes. When you're happy, click Open PR, and merge once the PR is approved. Kode waits for you at each of these steps.
5. Start the next task with that context
When the PR merges, Kode asks the session what it learned about the repo: how things work, decisions and why, gotchas. It checks each fact against the datapack and saves only the new ones, along with the spec and a summary of the PR.
Start a second task that touches the same area:
Add a --locomo flag to the benchmark that prints only the LoCoMo results as a table.When the session starts, Kode gives Kiro the context Meko holds for the task. Any key decision in the new spec that rests on that context is marked from Meko. You can see which parts came from the first task, without Kiro reading the code again.
To browse a datapack, open Meko's web UI with
meko ui and pick the project's datapack.Without Kode
To give Kiro Meko's context without Kode, connect it directly:
meko agent connect kiroThis adds an MCP server named
meko to Kiro's settings, for all your projects. Kiro can then save what it learns to a datapack, and any later session can search it.How it works
- Meko runs as one binary and keeps everything in
~/.meko. Each datapack is separate, with its own memories, knowledge files, conversations and artifacts.
- Search works on meaning and on keywords. Embedding and reranking run locally.
- The same Meko serves Claude Code, Codex, Cursor and OpenCode (
meko agent connect claude), so context one agent saves, the others can use. Kode can run sessions on Claude Code and OpenCode too.
Usage stats
Release installs of Meko and Kode send anonymous usage stats to YugabyteDB: counts and command names, never your data. Turn Meko's off in its Settings › Anonymous usage stats, and Kode's in its Settings › General. The README lists exactly what's sent.
Next
- Code and issues: github.com/yugabyte/meko . A star helps others find it.
- Kode: its README , with the full feature list.
- Docs: docs.mekodata.ai
- Questions: Meko's Discord
To remove them, run
meko extension delete kode , then meko uninstall . Add --purge to meko uninstall to delete Meko's data too.Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article