Where Claude Code, Codex and Cursor Keep Your Chat History on Disk, and How to Read It A developer documented where Claude Code, Codex and Cursor store chat history on disk, finding Claude Code keeps plaintext JSONL transcripts under ~/.claude/projects/ that are deleted after 30 days by default, while Codex writes dated rollout files under ~/.codex/sessions/ and Cursor uses SQLite state.vscdb databases. The writeup notes these transcripts capture file contents, command output and pasted text, and shows how grep and jq can be used to search them without a dedicated viewer. Claude Code chat history is stored on your own machine as plaintext JSONL files under ~/.claude/projects/ , one file per session, and deleted after 30 days by default. On Windows the same folder is %USERPROFILE%\.claude\projects\ . Codex and Cursor keep their own records in their own places and formats. Paths and defaults below were last verified on 6 November 2026, and they do change, so check them against your installed version. Most of us never open these files. We should, for two reasons. They record real work: why you dropped Redis for SQLite, the three-hour bug behind a one-line fix, the reason the repo always uses pnpm. Yet you may still re-explain your project every morning https://rohithhn.github.io/brain-site/blog/why-ai-coding-tools-need-memory.html while all of that sits on disk. They also hold more than you'd guess. Claude Code's own docs the "Explore the .claude directory" page say anything that passes through a tool lands in the transcript: file contents, command output, pasted text. That makes these folders worth knowing about whether you want to mine them or clean them out. Each session is a file at ~/.claude/projects/