~/.zeropath/config.env
Read by the stop hooks on every invocation; real environment variables
override file values.
Credentials
~/.config/zeropath/credentials.json— written byzeropath auth, used by the CLI and therefore the hooks.- Each agent’s MCP config carries the token as
ZEROPATH_TOKEN_ID/ZEROPATH_TOKEN_SECRETenv vars (plus optionalZEROPATH_ORG_ID,ZEROPATH_BASE_URL).
--token-id/--token-secret (it
rewrites both places), or run zeropath auth NEW_ID NEW_SECRET and update the
MCP config blocks manually.
Installer environment overrides
Logs and cache
~/.zeropath/logs/scan-<agent>-<timestamp>.json— full scan outcome (submitted job, status, vulnerabilities, suggested fixes) for every hook scan, including failed ones.~/.zeropath/cache/hook-state.json— per-workspace diff hash (skip rescanning unchanged diffs) and per-session block budgets. Safe to delete.