Recipes · Chapter 32 of 63
Use AGENTS.md as Steering
Kiro reads AGENTS.md files as steering from anywhere in your workspace tree. How they load, what they cannot do, and when to prefer .kiro/steering/.
All levels 2 min read last reviewed 2026-09-04
◎ Learning objective
Add an AGENTS.md file that Kiro loads as steering, and decide which rules belong there instead of .kiro/steering/.
AGENTS.md is a plain Markdown file that several AI coding tools read for project instructions, and Kiro loads it as steering. Drop one in your repository root and Kiro picks it up with no configuration and no front matter.
When to use this
Use AGENTS.md when your team runs more than one AI coding tool and you want a single file of house rules. Use it in a monorepo where each package needs its own local rules, since Kiro finds nested files too. Stay with .kiro/steering/ when a rule should load only for certain paths.
Steps
-
Create
AGENTS.mdin the root of your repository. -
Write the rules that should apply to every conversation. Keep it short, because the file is always included.
AGENTS.md# Project rules - Python 3.12 with FastAPI and SQLAlchemy 2.x. No new dependencies without a note in the design document explaining why. - Routers stay thin. Business logic lives in src/services/. - Every bug fix ships with a regression test. - Money values are integers of minor units. Never floats. -
Add a nested
AGENTS.mdinside a package or subdirectory when that area has its own rules. Kiro discovers files below the workspace root, so a monorepo can carry one file per package. -
Put a personal
AGENTS.mdin~/.kiro/steering/if you want the same rules in every project you open. -
Move any conditional rule into
.kiro/steering/withinclusion: fileMatch.AGENTS.mdhas no way to express “only for the API folder”. -
Commit the file. It is project documentation, and a human reader benefits from it too.
Check it worked
Start a new chat session and ask the agent something that only your AGENTS.md answers, such as which database library the project uses. In the CLI, the configuration panel added in v2.21.0 lists loaded steering. If the rule takes effect in a brand new session with no other prompting, the file is loading.
Common problems
- Nothing changes after you add the file. Check your Kiro version. Nested discovery landed in CLI v2.18.0 and IDE v1.0.309. Older builds may only read the workspace root.
- The file grows into a manual. It is always included, so every line costs context on every turn. Push long reference material into a skill that loads on demand.
- Rules contradict
.kiro/steering/. Kiro’s documentation does not state which one wins. Do not rely on a guess. Pick one home for each rule. - You expect
AGENTS.mdto be optional. It is not. There is noinclusion: manualequivalent, so anything you write there applies to every request. - Secrets end up in it. The same rule as all steering: no tokens, no keys, no customer data.
Related
- Steering covers inclusion modes and merge behaviour.
- Create your first steering file sets up the foundational three.
- Advanced Tutorial discusses the team decision between the two formats.
Frequently asked questions
Does Kiro read AGENTS.md?
Yes. Since Kiro CLI v2.18.0 and Kiro IDE v1.0.309, AGENTS.md files load as steering context from anywhere in the workspace tree, not only the workspace root. They can also live in ~/.kiro/steering/.
Can I set inclusion modes in AGENTS.md?
No. Kiro's steering documentation states that AGENTS.md files do not support inclusion modes and are always included. If you need conditional loading, put the rule in a .kiro/steering/ file with inclusion: fileMatch instead.
Does AGENTS.md replace .kiro/steering/?
No. Each AGENTS.md loads alongside your other steering files. The two are complementary. Kiro's documentation does not state a precedence rule between them, so avoid writing rules in both places that contradict each other.
☰ Chapter summary
- Kiro loads AGENTS.md as steering context, from the workspace root and from subdirectories.
- Support arrived in CLI v2.18.0 and IDE v1.0.309, both in August 2026.
- AGENTS.md files do not support inclusion modes; they are always included.
- They load alongside your .kiro/steering/ files rather than replacing them.
- Use AGENTS.md for rules every tool should read; use .kiro/steering/ when you need fileMatch.
All chapter summaries are collected on the revision page.
Related chapters
- ConceptsSteeringSteering files give Kiro permanent project knowledge. Where they live, the four inclusion modes, how scopes merge, and how AGENTS.md fits in.
- RecipesCreate Your First Steering FileCreate product.md, tech.md, and structure.md in .kiro/steering/, set inclusion modes in front matter, and check that the agent obeys them.
- Hands-onAdvanced TutorialA production-shaped workflow that combines specs, steering, hooks, MCP, custom agents, and skills, written for engineers who already know the basics.
- Core knowledgeCore ConceptsThe twelve ideas that make up Kiro, each in one paragraph with a link to its full page, plus permissions, checkpoints, compaction, and a surface matrix.