Create project instructions
- Create
AGENTS.mdat the project root, or update the existing file without replacing unrelated instructions. - Add rules appropriate for the repository. For example:
- Run
/reloadin Step Code or restart to load the changes.
/init to generate instructions from the project. Review its commands, paths, and constraints before saving. To check discovery, ask the model which project instructions apply to a task and compare its references with the file.
Discovery and precedence
In each directory, Step Code selects the first existing file in this order:
AGENTS.override.mdAGENTS.mdCLAUDE.md
--no-context-files disables automatic discovery; see The step command.
Reuse existing instructions
ExistingCLAUDE.md files can remain in place. Check that their tool names, commands, paths, and model requirements apply to Step Code. See Migrating from other tools for importing other resources.
Instructions describe how to work. Configure Permissions and safety separately to control tool approval and project resource loading. For reusable tasks, see Agent Skills. Role definitions belong in Agents and subagents.
