Skip to main content

agent_dir

Function agent_dir 

Source
pub fn agent_dir() -> PathBuf
Expand description

Resolve the per-user agent directory.

Priority:

  1. $CAPO_AGENT_DIR env var if set (leading ~/ expanded to $HOME).
  2. $HOME/.capo/agent.
  3. ./.capo/agent as a last-resort fallback if $HOME is missing.