Instructions
Project and global instructions loaded at startup.
An AGENTS.md file holds standing instructions for the agent: coding conventions, package managers, framework rules, things to always or never do. zot loads them at startup and prepends them to the system prompt. No file is created or required; zot only includes the ones that already exist.
Load order
Global instructions in $ZOT_HOME/AGENTS.md are loaded first. Then project instructions are loaded from the top-most parent directory down to the current working directory. Later files are more specific and may override earlier ones.
- $ZOT_HOME/AGENTS.md (global, applies everywhere)
- <repo-root>/AGENTS.md (project-wide)
- <subdir>/AGENTS.md (closest to cwd wins on conflicts)
Example
AGENTS.md
# Project rules
- Use the package manager that matches the lockfile.
- Never start the dev server; run typecheck, lint, and build instead.
- Keep answers short and substantive.
- Do not use em-dashes in any text you write.Reach for AGENTS.md when you want rules that travel with a repository and apply to every session. Reach for SYSTEM.md when you want to replace zot's core identity outright.