Skip to main content

nested_instructions

Function nested_instructions 

Source
pub fn nested_instructions(cwd: &Path, touched: &Path) -> Option<(String, Item)>
Expand description

Dynamic subdir hints (M2): the first time a tool touches a file under a directory carrying its own AGENTS.md/CLAUDE.md, that file is injected just-in-time. Returns (source_marker, item) — the caller dedupes by checking the projection for the marker.