Nested AGENTS.md discovery

Tighter rules win where the agent works

Monorepo tree
AGENTS.md
repo root
global Do / Don’t
apps/web/
AGENTS.md
apps/web
stack + commands
apps/web/src/
AGENTS.md
nearest wins
local.notes
ignored
gitignore
Discovery

Walk up from the working directory. Load every AGENTS.md; closer files refine the compass.

root = global Do / Don’t package = stack + commands src = local overrides