Onboarding a new engineer with the team's agent session history

Published · Updated

Past agent sessions can answer what a new engineer is slow to ask: why is this written this way, what did we already try, what broke last time. They are raw material, not documentation. Used well they shorten the "why" part of onboarding; used carelessly they give a newcomer stale or wrong claims with unearned authority.

What a newcomer has to learn beyond the code

Code shows what the system does. A new person also needs to know why it is shaped this way, such as the odd lookup before every write or the retry that waits exactly 7 seconds. They need what was tried and rejected, so they do not propose it again. And they need the unwritten constraints: the provider that redelivers events out of order, the table you must not lock.

Those live in commit messages, ADRs and people's heads, and for teams using coding agents, in session transcripts. The question is how much of that last source to expose, and how.

Start with what is already curated

Before pointing anyone at raw history, check that the cheaper layers are filled. They deserve different amounts of trust.

LayerTrustNotes
Project CLAUDE.mdHigh if maintainedCommitted and shared through version control; the agent reads it every session
ADRs, PR descriptions, commit messagesHighWritten to be read
A short "read first" doc for the repoHighWritten by a human for this purpose
TranscriptsVariableComplete, noisy, can be wrong or out of date

The CLAUDE.md row follows the memory docs as they stood on 10 November 2026. How the memory options compare is in memory between Claude Code sessions.

A new engineer should read the first three in week one. The fourth is for specific questions, not for reading front to back: a transcript from eight months ago may describe a design that was later reversed, and nothing in the file says so.

A first-week plan

On day 1, give them the repository, the project CLAUDE.md and the ADRs, and have them start their own agent sessions in the repo so the agent loads the project instructions.

On days 2 and 3, pair them with a senior on a small change. Afterwards ask the senior to name two or three past sessions that explain the area. A person pointing at the right session beats any search.

In week 1, give them access to the project's session history, scoped to the projects they work on, and teach one habit: when the code surprises you, search for why before you change it. With plain files:

grep -l "webhook" ~/.claude/projects/-Users-me-work-payments/*.jsonl

That only finds your own sessions on your own machine, and a new hire has none yet, which is the whole problem. Handing over a few sessions is possible (sharing a Claude Code session with a teammate), but it stops scaling after a handful of files.

Giving the agent the history too

The new engineer's agent is new as well. If it can search past sessions, it can answer "why does this function do a lookup first" from the record instead of guessing from code. That is the case for an MCP memory tool: a local server the agent queries on demand. Everything pre-loaded into a session is re-sent with every request, so on-demand search costs less than stuffing context.

Whatever you use, set expectations in the project CLAUDE.md:

## History
- Past agent sessions may be searchable. Treat them as hints, not facts.
- Before relying on a recalled claim, check it against the current code and git log.
- If a recalled design conflicts with the code, the code wins; tell the user.

Where history misleads

A session records what was true then, so pair every recalled claim with git log for the file. Agents state wrong things fluently, and the transcript holds both the wrong turn and its correction, usually many lines apart; a search excerpt can return the wrong half.

Transcripts contain whatever tools read, so scan before sharing and rotate anything found (secrets in transcripts). A senior engineer's sessions are also their working notes. Say in advance what will be shared and scope it by project; the policy template has a clause for this. Finally, months of sessions are enormous. Without search they are unusable, and with search you still need a person to say what matters.

Sealkeep for the newcomer's access

If the seniors' sessions were sealed while they worked, a new engineer gets in without file copying. They run sealkeep org join <project> --note "<why>", an admin approves, and the owner's machine lets them in. After that, sealkeep search <query> --content searches the project history, sealkeep why <commit> shows the session behind a commit, and sealkeep mcp install lets their agent search it on demand. Recalled text is labelled untrusted, and current facts are checked against Git.

It holds only sessions captured by machines running it, and the owner's machine must be reachable to wrap keys when someone joins. It does not curate or decide what matters, so the "read first" doc is still yours. Nobody independent has audited the encryption format.

FAQ

Should a new engineer read old transcripts cover to cover?

No. Use them to answer specific questions after reading the committed docs; they are long and mix right and wrong turns.

Do we have to ask senior engineers before sharing their sessions?

You should. Sessions hold prompts, pasted text and false starts. Agree the scope per project, and tell people when the policy changes.

Can the agent just use auto memory for this?

No. Claude Code auto memory is machine-local and per user, so a new hire's agent starts with none of the team's. Project CLAUDE.md is the shared curated layer.

See also: all guides.