What leaves the machine, what gets archived, what never gets shared
A request sends the prompt text and the model's responses over the network, encrypted in transit, and the local copy of that exchange then stays readable in plain text on disk for a duration fixed by default; deleting a file leaves no way back, whereas archiving it keeps it available and reversible; and an internal document rich in detail becomes dangerous the moment it leaves, for the very reason that makes it useful internally, which calls for a raw inventory followed by an adversarial re-read before any sending.
A conversation with Claude Code sends the text of the request and the model's responses over the network, encrypted in transit by TLS 1.2 or a later version, according to the product's official documentation. What then remains on the local machine is not erased for all that: session transcripts are kept in plain text on disk, in the user's projects folder, for thirty days by default, to allow an interrupted session to be resumed. One documented exception sets this limit aside: a session started or last resumed in Claude Desktop or Cowork is by default exempt from this thirty-day limit, so its transcript stays in plain text on disk with no automatic deletion scheduled.
What a request actually sends
Two facts complete each other. The first: every prompt and every model response leaves the machine the moment a request is sent. The second, less visible: the local copy of that exchange does not disappear at the end of the conversation, it stays readable in plain text for a period fixed by default. A secret pasted just once into a conversation therefore exists in at least two places afterwards, on the network at the moment it was sent and on the local disk for weeks, which ties back to the rule of never letting a sensitive credential pass through a conversation, developed in the lesson on secrets that must never pass through.
Archiving rather than deleting
A permanent file deletion removes the information with no way back. Moving it to an archive folder keeps the same information available while taking it out of the current working path, and stays reversible at any time. The difference comes down to a single command.
mkdir brouillon_a_ranger
echo note périmée > brouillon_a_ranger\vieux.txt
mkdir _ARCHIVES
move brouillon_a_ranger\vieux.txt _ARCHIVES\vieux_2026-09-02.txt
dir _ARCHIVES
The _ARCHIVES folder now holds the file, still readable, still recoverable, under a dated name that avoids silently overwriting a file with the same name already present in that folder. The same sequence of steps with a deletion instead of a move would make this file permanently lost from the very first command.
An internal document is filtered before it goes out
An internal document is written without filtering precisely because it serves an internal purpose: it names purchase amounts, margins, server paths, people. That same richness becomes a risk the moment the document goes to a third-party formatting tool or to someone outside the organisation. Two separate passes correct this risk. The first is a raw inventory: note every piece of sensitive data present in the document, without yet judging whether it should stay. The second is an adversarial re-read: ask, line by line, what a hostile reader would take from it, a commercial leak, a piece of data that incriminates its author, a shaky claim they could turn against the organisation. A single read that only looks for formatting mistakes does not replace this second pass.
The three reflexes share the same logic: know what leaves, keep what can still be useful, and filter what stays internal for good reason before sending it out.
Three perimeters, what stays and the correct reaction
| Perimeter | What leaves or stays | State once gone | Correct reaction |
|---|---|---|---|
| A request sent to Claude | The prompt text and the model's responses leave over the network, encrypted in transit | A copy stays in plain text on the local disk for a duration fixed by default | Never paste a secret or sensitive data into the text of a request |
| Permanent deletion of a file | The file disappears from the system as soon as the command runs | Nothing remains, the operation leaves no way back | Move the file to an archive rather than deleting it |
| Internal document shared externally | Amounts, server paths and names leave with the document if it is not filtered | The content becomes available to a third party who no longer has to ask for it | Do a raw inventory then an adversarial re-read before any sending |
A nonprofit treasurer finishes a financial summary meant for an external partner. Before sending it, she reads through the document once to fix spelling and formatting.
Write, in one sentence, what this situation establishes, and in one sentence what it does not establish.
What this establishes: What the situation describes establishes that a formatting re-read, spelling and layout, did take place before sending.
What this does not establish: It does not establish that an adversarial re-read, looking for sensitive data or shaky claims an outside reader could exploit, took place.
The three most common miscalibrations
- Too broad A single re-read, whatever form it takes, is always enough to make an internal document ready for external sending.
- Too narrow This result proves nothing since the treasurer has not yet sent the document at the point where the situation stops.
- Off target This re-read means the document has already been copied to the association's archive folder before sending.
- The text of a request and the model's responses leave the machine as soon as it is sent, encrypted in transit.
- A session transcript stays stored in plain text on the local disk for a duration fixed by default, well after the conversation ends, except for a Claude Desktop or Cowork session, exempt by default from this limit.
- Moving a file to an archive keeps the information available and stays reversible; a permanent deletion does not.
- An internal document rich in detail is dangerous to share as is, for the very reason that makes it useful internally.
- The raw inventory notes the sensitive data, the adversarial re-read judges what a hostile reader would do with it: these are two distinct passes.
Before your next sending of an internal document to the outside, make two separate passes on your machine: first note every sensitive piece of data it contains, then re-read a second time looking for what a hostile reader would take from it, and only send the document after this second pass.
These points depend on an interface or a rule that may have changed since this was written. Check them on your own screen before relying on them.
- Check on your own machine, in Claude Code's retention settings, the current duration for local storage of session transcripts: the default period may have changed since this lesson's date.
Every datable claim in this lesson links here to the public text behind it. A source that does not open proves nothing.
- Data usage, official Claude Code documentation, code.claude.com consultée le 2026-09-02