When a developer leaves, their agent sessions leave too

Published · Updated

The code stays in git when an engineer leaves. The reasoning behind it, if they worked through Claude Code or Codex, sits in transcripts on a laptop that IT is about to wipe, under a default that deletes Claude Code transcripts after 30 days anyway. You can keep that reasoning, but only if you decide before the last day.

The webhook that broke twice

Priya spends three sessions on the webhook handler. Her first two designs fail: the payment provider redelivers events out of order, so a naive "mark paid" corrupts state. The third works and looks odd, with a lookup before every write. The commit says Fix webhook ordering. The two rejected designs exist only in transcript files.

Six months after she leaves, someone tidies the odd lookup away and production breaks the way it did the first time.

This is the old "the person who knew left" problem, not an AI problem. What changed is that the record of the thinking now exists in machine-readable form, in a folder nobody manages.

Where the reasoning lives

PlaceSurvives departure?Why
Commit messages, PR descriptions, ADRsYesIn your repo and tracker
Project CLAUDE.mdYesCommitted, shared through version control
Transcripts in ~/.claude/projects/Usually noOn the laptop; swept after cleanupPeriodDays, default 30
Claude Code auto memoryNoMachine-local, per the memory docs
Codex history.jsonl under CODEX_HOMEUsually noOn the laptop
Vendor-side copyNot for youRetention is the vendor's, partly unclear; see the audit guide

The retention default and the auto memory behaviour come from the Claude directory reference and the memory docs as they read on 10 November 2026. The file layout is in where Claude Code stores sessions.

Transcripts are usually gone before the person leaves, not after. Someone who gives notice and works a four-week handover has already lost most of the first week's sessions, so offboarding is too late unless a copy exists from earlier.

An offboarding routine with no new tool

Do these during the notice period, in this order.

  1. Ask for a written handover per area. Skip "what exists" and ask "what did you try that failed, and what would surprise the next person". Transcripts answer those questions, but the person will answer them better.
  2. Commit what belongs in the repo. Convention changes go into project CLAUDE.md; rejected designs go into an ADR or a comment next to the odd line.
  3. Copy the transcripts for company projects while they still exist. On the laptop, check the newest files with ls -t ~/.claude/projects/-Users-priya-work-payments | head, then copy that folder somewhere the company controls. Do the same for Codex under CODEX_HOME (default ~/.codex).
  4. Scan before you store. Transcripts contain whatever tools read, credentials included; see secrets in transcripts. Rotate anything found, and rotate the person's credentials regardless.
  5. Decide who may read the copy and for how long. The policy template beats improvising.
  6. Settle personal accounts explicitly. If someone used a personal subscription for work, the company has no access to that data by default. Have that conversation before the contract ends.

A transcript is not a clean document. It holds false starts, frustration and anything the person pasted, so reading it is closer to reading scratch notes than documentation, and people should be told it will be kept. Also, the folder name is the project path with slashes turned into dashes, so a laptop with a different checkout path has a different folder name for the same project.

Capturing sessions as they finish

The routine above depends on someone remembering during a stressful month. A scheduled copy job removes that, and offboarding then has nothing to rescue. Options and trade-offs are in backing up Claude Code and Codex sessions.

Settle four things first. Capturing everything, personal experiments included, makes the archive bigger and more sensitive, so pick which projects. Per-project read access is easier to defend than company-wide. An unencrypted bucket of transcripts is a bucket of source code and secrets, so decide how it is protected. And an archive nobody searches is a backup, not memory; onboarding with agent history covers the other half.

What Sealkeep does here

Sealkeep can be the capture job. Autopilot seals each finished session on the developer's machine, uploads it to storage the company chose, and makes it searchable. Access is per project: sealkeep org join <project> needs an admin's approval. When someone leaves, sealkeep org members remove <email> closes the seat, and sealkeep org revoke <project> --email <addr> cuts a single project, after which the owner's machine rotates the key. sealkeep why <commit> finds the session behind a commit.

It holds only sessions from machines that ran it before the person left. Revoking stops future access but cannot un-read what a machine already decrypted. It does not summarize, it cannot reach personal accounts you do not control, and its scanner can miss secrets. The encryption format has not been independently audited.

FAQ

Do the vendors keep the sessions after someone leaves?

Anthropic documents 30-day standard retention on commercial plans, with Enterprise Compliance API access to session transcripts for users signed in with the Enterprise account. No clear retention figure is documented for those transcripts. See the audit guide.

That depends on your jurisdiction, your contract and your policy, and this is not legal advice. Tell people in writing that sessions on company projects are retained, and keep personal data out of scope.

What about a contractor?

Same routine, plus a contract clause saying session data on company projects belongs to the company. Check it before the engagement starts, not on the last day.

See also: all guides.