Skip to main content

AGENT_CONFIG_DIRS

Constant AGENT_CONFIG_DIRS 

Source
pub const AGENT_CONFIG_DIRS: &[&str];
Expand description

Agent/IDE CLI config or sandbox directories some clients launch their MCP server from, but which are never a user’s project root. Adopting one as the project root jails every real repository path out — the root cause of #580 (GitHub Copilot CLI launches from ~/.copilot; Cursor, Windsurf, Gemini CLI and LM Studio behave similarly). This is the canonical set: every “is this an agent dir?” check across the codebase delegates here so the list never drifts.