paths
paths
¶
Platform-aware path resolution for terok-agent directories.
Provides XDG / FHS resolution for the agent's own state directory, independent of terok-sandbox's namespace.
state_root()
¶
Writable state root for agent-owned data.
Priority: TEROK_AGENT_STATE_DIR → /var/lib/terok/agent (root)
→ platformdirs.user_data_dir() → $XDG_DATA_HOME/terok/agent
→ ~/.local/share/terok/agent.
Source code in src/terok_agent/paths.py
mounts_dir()
¶
Base directory for agent config bind-mounts.
Each agent/tool gets a subdirectory (e.g. _claude-config/) that is
bind-mounted read-write into task containers. These directories are
intentionally separated from the credentials store since they are
container-exposed and subject to potential poisoning.