Skip to main content

discover_agents

Function discover_agents 

Source
pub fn discover_agents(dir: &Path) -> Vec<(String, PathBuf)>
Expand description

Discover all agent configs in the given directory.

Why: tcode needs to know which agents are available before the PM loop starts so it can validate delegate_to_agent calls pre-flight. What: Scans dir/*.toml and returns (name, path) pairs sorted by name. Files that fail to parse are skipped with a tracing warning. Test: discover_agents_finds_tomls, discover_agents_skips_non_toml.