rules ride in the system prompt on every turn. unlike a command or a skill, nothing invokes them.
AGENTS.md at the project root:
- run `bun check` before calling a change done.
- match the file you are editing: naming, layout, error handling.
every directory from your home directory down to the working directory, nearest
last. ~/.config/glrs/AGENTS.md applies to every project.
AGENT.md and CLAUDE.md are read when AGENTS.md is absent, so a repository
written for another agent works unchanged.
AGENTS.md files from your home directory down to the project root are read once,
at startup. restart to pick up an edit; /reload does not re-read them.
a file's own directory is searched again every time a tool reads that file, so a rule beside the code it governs takes effect immediately and applies only when that code is opened. both paths: rules.
next: manage extensions
see also: rules