
Session Detail saves a working session as a careful written record, so the next session does not have to start from zero.
What It Is
Session Detail is a skill I built. A skill is a folder of written instructions that an AI assistant reads and then follows when you ask for it by name. This one tells the assistant how to write down everything important about a working session.
Think of a ship's logbook. The captain does not write 'we sailed today.' The captain writes what was decided, what went wrong, and what the crew must watch out for tomorrow. Session Detail does that for a long piece of work done with an AI assistant.
Each run makes an archive. An archive is a saved record of a session. It holds what got done, which decisions were made and why, which problems came up and what caused them, and which prompts were run or only drafted. A prompt is the instruction you type to the assistant. The archive also carries a compact handoff, which is a short note meant for whoever picks the work up next.
Why It Exists
A summary is a squeezed version of a long chat. Squeezing is the problem. A summary drops the exact words of a decision. It forgets the prompt you drafted but never ran. It loses the small technical note that turns out to matter three days later. Then the next session begins with you explaining work that was already settled.
I wanted a record that keeps the reasoning, not only the result. If two options were on the table and one lost, I want to know which one lost and why. Otherwise someone will propose the losing option again next week.
There is a second reason. Work often moves between machines and between assistants. A good record lets a new session, or a new computer, pick up with the right decisions, the right file versions, and the right list of what is still left to do.
How It Works: Choosing the Kind of Archive
The skill works inside AI assistant apps. Codex, Claude Code, Claude.ai, and Cowork are all tools where you chat with an AI assistant to get work done, and each one handles identity and saving a little differently. You start it by saying a trigger phrase, such as 'session detail', 'full session detail', or 'session detail incremental'. The assistant does not ask you to paste the chat. It uses the conversation it can already see, plus any evidence it is allowed to use.
The first real step is working out which session this is. In Codex, the skill reads one trusted value, the thread key, which is stored in an environment variable called CODEX_THREAD_ID. An environment variable is a named setting that the computer holds for a program. The skill reads only the values it needs. It does not print the whole environment. Claude Code uses its own session key. Claude.ai and Cowork give the skill no trusted key, so those runs are marked as unverified.
The second step is choosing the mode. A full archive covers the whole session. An incremental archive covers only the work done since the last archive, like adding a new page to a notebook instead of rewriting the notebook. An incremental needs three things to be true. The checkpoint in the earlier archive must match the current session exactly. The skill must be able to see where that checkpoint sits in the conversation. And there must be enough evidence to tell old work from new work.
If any one of those is missing, the skill writes a full archive instead. This happens, for example, after compaction. Compaction is when an assistant shortens a very long chat to fit its memory, and the older messages are gone. The skill never guesses a boundary. A timestamp, a similar file name, or a high sequence number is not accepted as proof. Even if you ask for an incremental, an uncertain boundary still gets a full archive, and the archive says why.

How It Works: What Gets Written and Where It Goes
Every archive has exactly two top-level sections, in order. The first is tagged session_full. Inside it are headings for the objective and scope, what was accomplished, decisions made, issues encountered, prompts executed, prompts generated for next session, code and artifact changes, validation and release state, technical notes, and recovery steps for the next session.
The second section is tagged context_updates. It holds new persistent facts, facts that changed or were corrected, decisions and the limits on what was accepted, open questions, and carry-forward warnings. This is the short part. It is the part to read first in a fresh session.
For each human decision the skill records who made it, what was actually said or a faithful quote, and what the decision covers. It keeps accepted proof apart from candidates nobody accepted. It records every check that ran, with the result, including failures and skips. A commit, a push, and a deployment are three separate events, and none of them proves the others happened.
In Codex, the skill writes a local file first. The default folder is the user's CODEX_HOME directory, then session-details, then a safe project name, then the verified thread key. The file name holds an observed timestamp, a short thread hint, the mode, and a sequence number. Files are created exclusively, which means an earlier archive is never overwritten. If the folder would sit inside a code repository, the skill needs explicit approval and a path that Git already ignores. Git is the tool that tracks changes to files. In Claude Code the archive is printed in the chat.

What Keeps It Careful
A saved session can leak things. So the skill runs two privacy checks, first on each excerpt it picks and then on the finished archive. It removes credentials, tokens, cookies, private keys, authentication headers, and connection strings that contain secrets. It does not keep even the first or last few characters of a secret.
Where a secret sat inside a prompt or a piece of code, the skill swaps it for a typed placeholder. A typed placeholder is a label that says what kind of thing was removed, so the text still reads sensibly. The rest of the prompt stays word for word. If anything was removed, the archive says so under Technical Notes.
The skill also removes private customer and transaction facts, such as names, addresses, account numbers, and money values. It uses safe aliases and receipt references with hashes, which are short fingerprints of a file, so the real evidence can be restored later through a separate approved channel. It does not open .env files or credential stores just to write an archive.
One more rule matters a lot. An archive records what was decided. It does not give anyone permission to act. A new session must check the current rules and the current state of the work before it runs an old command or ships anything. Gaps are marked as gaps. The skill cannot bring back messages that no longer exist, and it says so instead of making up history.
What I Built It With and Where It Stands
The skill is plain written instructions. The main file is SKILL.md. A second file, references/recovery.md, explains what evidence to keep for project handoffs and for moves between machines. There is no program to install and no background service. The skill does not set timers or recurring jobs. A person can authorize an archive at a big milestone, and that is all.
The current release is version 3.0.0. Its changelog dates it 2026-09-29. That release added Codex support with file-first saving, plus recovery notes for Windows PowerShell, the command window on Windows, and for POSIX systems such as Linux and macOS. It also tightened the rules on when an incremental is allowed. The skill covers Codex, Claude.ai, Claude Code, and Cowork.
An older slash command for Claude Code, a typed shortcut that starts a saved routine, is still in the repository, unchanged, for people who already use it. It follows the older workflow and does not use the 3.0 identity, storage, and recovery rules. The README says so plainly.
The project is open source under the MIT license. That license lets anyone use and change the instructions. The repository holds reusable instructions only. It contains no session archives and no project data. Context Summary is its companion. Session Detail keeps the long record, and Context Summary carries a short boarding pass into the next chat.
Glossary
- skill
- A folder of written instructions that an AI assistant follows when you call it by name.
- archive
- A saved record of a session: what was done, what was decided and why, and what is left.
- handoff
- A short note that lets the next session or the next person pick the work up.
- incremental
- An archive that covers only the work done since the last one.
- compaction
- When an assistant shortens a very long chat to fit its memory, so older messages are no longer available.
- typed placeholder
- A label that replaces a removed secret and says what kind of thing it was.
- CODEX_THREAD_ID
- A setting that holds the trusted ID of the current Codex conversation.
- Git
- A tool that tracks every change made to a set of files.
- MIT license
- A permission note that lets anyone use and change the work for free.
- Codex
- An AI assistant app for working on code and files, where this skill saves archives as local files.
- Claude Code
- Anthropic's AI assistant that works in a terminal, where this skill prints the archive in the chat.
- hash
- A short fingerprint of a file that changes if the file changes.
Key Facts
- Archive plus compact handoff
- Redacts credentials with typed placeholders
- Open source