Steering
Steering means writing your project's rules down once, in a file in the repository, so every agent follows them: build commands, code style, folders to leave alone. IZ Code's Context Engine gives that file to each agent session when it starts.
The instructions file#
IZ Code looks for one instructions file at the root of the project folder. It checks these names in order and uses the first one it finds:
| Order | File | Typical use |
|---|---|---|
| 1 | AGENTS.md | The common format most coding agents understand. Recommended. |
| 2 | CLAUDE.md | Projects already set up for Claude Code. |
| 3 | .izcode/instructions.md | Instructions only IZ Code should send. |
flowchart TD
S([Session starts]) --> A{"AGENTS.md at the root?"}
A -- Yes --> UA[Send AGENTS.md]
A -- No --> C{"CLAUDE.md?"}
C -- Yes --> UC[Send CLAUDE.md]
C -- No --> I{".izcode/instructions.md?"}
I -- Yes --> UI[Send it]
I -- No --> N([No instructions])Only one file is used. If you have both AGENTS.md and CLAUDE.md, IZ Code sends AGENTS.md.
The instructions are sent once, when a session starts, before your first message. Editing the file does not change sessions already running; start a new chat to pick up the change. Resuming an old session does not send them again.
Write your instructions#
- Create the file
Add
AGENTS.mdat the root of your repository. - Write short, concrete rules Say how to build and test, which conventions to follow and what to avoid. Agents follow specific rules better than general advice.
- Commit it The file lives in the repository, so your whole team and every agent get the same rules.
- Check what the agent receives Open Settings → Context Builder. The Project instructions row shows whether the file was found. Its Debug section shows the whole message an agent would be handed.
# Project rules
- Build with `pnpm build`; run tests with `pnpm test -- --run`.
- TypeScript strict mode. No `any`.
- Database access goes through `src/db/repo.ts`; never query from components.
- Do not edit files under `generated/`.
- Commit messages: imperative mood, one line under 72 characters.How each agent receives it#
Some agents read instruction files themselves. For them, IZ Code leaves its copy out, so the rules are not sent twice:
| Agent | What it reads |
|---|---|
| Claude | Reads CLAUDE.md files itself, the way Claude Code does. IZ Code does not send its copy. |
| Codex | Reads AGENTS.md files itself. IZ Code does not send its copy. |
| Other agents | Receive IZ Code's copy at the start of the session. |
Multi-root workspaces#
In a workspace with several folders, each folder's instructions file is read. The primary folder's instructions come first. The instructions of the other folders are labelled with the folder's name, so the agent knows which rules belong where. See Multi-root workspaces.
Organization instructions#
If you belong to an organization in IZ Code, instructions set for the organization and the project are placed before the repository's own file, which then refines them. See Teams overview.
Attach instructions on demand#
- Type
@rulein the chat to attach the project's instructions file to one message. - Type
/instructionsto pick an instruction file to attach. - Agent Customizations → Instructions, opened from the chat menu, lists the instruction files found in the workspace and your user profile.
Skills#
For knowledge that only some tasks need, write a skill instead of making the instructions longer. A skill is a folder with a SKILL.md file in .claude/skills, .izcode/skills or ~/.claude/skills. Agents load relevant skills when they need them, and you can attach one with @skill or /skills. Agent Memory can also extract skills from your conversations. See Agent Memory.
Settings#
| Setting | Values | Default |
|---|---|---|
izcode.context.instructions.enabled | true, false | true |
This is the Project instructions switch in Settings → Context Builder. Turn it off to stop IZ Code sending the file. Agents that read instruction files themselves still read them.