Where <project-slug> is the workspace path with / replaced by - and leading - stripped.
Steps
The project slug is provided in the system prompt's agent_transcripts section. It contains the path to the agent-transcripts folder. Read it directly from the system prompt -- do NOT try to compute it.
The current session UUID is the parent directory name of the transcript JSONL mentioned in the [Previous conversation summary] section (field: Transcript location). If there is no summary, the session UUID appears in the agent_transcripts section as the citation format (<uuid excluding .jsonl>).
If this is a brand-new session with no [Previous conversation summary], the transcript folder is the one from the agent_transcripts section in the system prompt. List the folder to find the most recently modified .jsonl file -- that is the current session.
1---2name: get-transcript-dir3description: Get Transcript Directory4---5# Get Transcript Directory67Return the agent transcript path for the current session.89## How It Works1011Cursor stores agent transcripts at:1213```14~/.cursor/projects/<project-slug>/agent-transcripts/<session-uuid>/<session-uuid>.jsonl15```1617Where `<project-slug>` is the workspace path with `/` replaced by `-` and leading `-` stripped.1819## Steps20211. The project slug is provided in the system prompt's `agent_transcripts` section. It contains the path to the `agent-transcripts` folder. Read it directly from the system prompt -- do NOT try to compute it.22232. The current session UUID is the parent directory name of the transcript JSONL mentioned in the `[Previous conversation summary]` section (field: `Transcript location`). If there is no summary, the session UUID appears in the `agent_transcripts` section as the citation format `(<uuid excluding .jsonl>)`.24253. Return both:26 - **Transcript directory**: `~/.cursor/projects/<project-slug>/agent-transcripts/<uuid>/`27 - **Transcript file**: `~/.cursor/projects/<project-slug>/agent-transcripts/<uuid>/<uuid>.jsonl`2829## When There Is No Prior Summary3031If this is a brand-new session with no `[Previous conversation summary]`, the transcript folder is the one from the `agent_transcripts` section in the system prompt. List the folder to find the most recently modified `.jsonl` file -- that is the current session.3233## Output Format3435```36Transcript directory: <path>37Transcript file: <path>.jsonl38```
Run npx skillmds@latest add jason-in-tech/get-transcript-dir in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Get Transcript Directory It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
jason-in-tech (@jason-in-tech) published this skill. Their other Agent Skills are listed on their SkillMD profile.