Skip to main content

inject_rules_for_agent

Function inject_rules_for_agent 

Source
pub fn inject_rules_for_agent(home: &Path, agent_key: &str) -> InjectResult
Expand description

Inject global rules for a single agent (by CLI key like “opencode”, “cursor”, etc.). Used by init --agent to ensure global rules are written alongside MCP config.