Skip to main content

load_agents_md

Function load_agents_md 

Source
pub fn load_agents_md(workspace_root: &Path) -> Option<ContextSource>
Expand description

Load root AGENTS.md from the workspace root, if present.

Returns None when the file does not exist.

Enforces AGENTS_MD_SIZE_CAP: content beyond the cap is truncated and truncated is set to true.

Computes a content hash of the full file content before truncation.