Skip to main content

load_project_agents

Function load_project_agents 

Source
pub fn load_project_agents(cwd: &Path) -> Result<Vec<ClaudeProjectAgent>>
Expand description

Discover and parse every <cwd>/.claude/agents/*.md definition.

Results are sorted by path. A malformed definition fails the whole import instead of silently omitting a capability that the resumed session may rely on. A missing agents directory is the ordinary empty result.