Where Six AI Coding CLIs Store Your Session Logs

Where Claude Code, Codex, Cursor, Amp, opencode, and pi store session logs, which formats they use, how long they keep them, and what remains undocumented.