Choose by lifetime, not convenience.
$DSH_HOME/AGENTS.mdOne fixed file, no global local-overlay.
repo/AGENTS.mdVersioned policy from project root to cwd.
AGENTS.local.mdLoads after base candidates in that directory.
src/AGENTS.mdDiscovered after structured fs work reaches it.
SKILL.mdLoaded when the task matches or the user invokes it.
Baseline first. Nested context later.
Shell navigation is not discovery.
bash: cd srcNo persistent shell state and no reliable structured filesystem boundary.
Does not load nested instructionsread: src/index.tsA successful first-party fs result reaches the descendant scope.
Queues nested instructionsOne path currently has two meanings.
Applies to every Session.
Applies only while editing DSH configuration.
rc.7 provides no second official global path, so these policies cannot be separated in the same file. Treat it as global. Use direct task instructions, an explicit Skill, or a separate configuration repository for local guidance.
Budget preserves specificity.
Prove the active chain.
- 01Fresh Session shows expected source labels.
- 02Direct user correction remains authoritative.
- 03Nested read queues one additional scope.
- 04Edit replaces instead of accumulating copies.
- 05Removal creates a durable removal notice.
- 06Budget notice names omitted and truncated paths.
- 07No secret appears in rendered instructions.
- 08$DSH_HOME workspace collision is reviewed.
Primary evidence.
- Upstream scope proposal #3285
- Official agent-instructions lifecycle
- Discovery defaults and fixed global path
- Root walk and bounded loading
Keep the complete scope runbook.
The canonical guide covers authority, baseline order, local overlays, nested refresh, budgets, collisions, diagnosis, and acceptance.
Read and star on GitHub