Skip to main content

agent_dir

Function agent_dir 

Source
pub fn agent_dir() -> Result<PathBuf, ConfigError>
Expand description

The rpi config directory (~/.rpi/agent by default, RPI_CODING_AGENT_DIR override). Creates nothing — purely a path computation. The agent/ layer mirrors upstream getAgentDir() (join(homedir(), CONFIG_DIR_NAME, "agent")) so a copied ~/.pi/agent/ directory reads in place. The env override points at the agent dir itself (same as pi’s PI_CODING_AGENT_DIR).