← All articles

AI Coding

What to Carry Into Your Next Claude Code Session

When a Claude Code session gets crowded, carry the decisions, test results, and next action into a fresh chat with a short handoff.

What to Carry Into Your Next Claude Code Session

Ted Mavera, Product Manager at HarnessUp · November 20, 2026

Open a fresh Claude Code session after a long debugging thread and you face a small editorial problem. The old chat has every theory you tried, every test you ran, and the exact moment someone blamed the cache. Somewhere in there is the one fact the next session needs. How much of the conversation should you bring along?

A good handoff gives the new session enough to make its first move. It names the job, records the decisions that still apply, and points to evidence the agent can check. If you can also spare it another investigation of the perfectly innocent cache, all the better.

Decide whether the thread is still helping

Stay in the same session when the next step depends on a precise exchange you just had. If you and Claude Code are narrowing down why a test fails only with two requests in flight, the last few messages may contain observations that are hard to compress without losing something. Finish the experiment or write down its current state before switching.

A fresh session makes more sense when the job changes. You spent the morning reproducing a bug and now want a review of the patch. Or you finished the implementation and need to update the docs. Those jobs need a smaller set of facts and a different first move. A review needs the behavior the patch is supposed to preserve, the relevant diff, and any remaining uncertainty. The morning’s entire debugging chronology can stay in the morning.

Give the next session five things

  1. The goal. Describe the behavior you want in a sentence someone could test. “Keep the edited values visible when saving fails” gives the agent a clearer target than “finish the profile fix.”
  2. The decisions that still apply. Include constraints the code may leave implicit. If you agreed to preserve the existing API response or keep the patch in one component, carry that agreement forward.
  3. The current state. Name the files that changed and say whether the work is in a commit or in the working tree. Mention an unrelated edit in the same file if the next session could easily mistake it for part of the patch.
  4. The evidence. Record the relevant check, its outcome, and any important gap. If a test failed before the patch and passed afterward, say so. If nobody ran the full suite, give the result the scope it earned.
  5. The next move. Give the agent one concrete action and the point at which you want it to stop. “Review the diff for behavior changes and report findings before editing” is a different assignment from “fix whatever you find.”

One sentence per item is a reasonable starting point. Add detail when two choices would send the agent down different paths. A dead end earns space if someone could plausibly repeat it and you can say what ruled it out. “We looked at the cache” leaves the next session guessing. “The failure reproduced with caching disabled” gives it a reason to look elsewhere.

Try a handoff for a small bug fix: Here’s a hypothetical profile form fix.

Try a handoff for a small bug fix

Here’s a hypothetical profile form fix. The outgoing session has made a patch, and the incoming session has been asked to review it.

Review the current patch for a profile form bug. Edited fields should stay populated when the save request fails. Preserve the existing API response and the reset after a successful save.

The working tree contains changes in ProfileForm.tsx and ProfileForm.test.tsx. The regression test failed before the patch and passed afterward. The full suite is still pending.

Read the diff and check both the failed-save and successful-save paths. Report any issues before making edits.

There’s a small but consequential detail in that note. The fix and the behavior it must preserve appear together. A reviewer who sees only “keep the fields populated” could approve a patch that also prevents the form from resetting after a successful save. The handoff makes both cases part of the review. It also points to the current diff, where the reviewer can see what actually changed.

Check the summary before you paste it

You can ask Claude Code to draft the handoff while the thread is still open. Ask it to record the goal, decisions, changed files, checks it actually ran, and the next action. Then compare the result with your working tree and the last relevant test output. Look closely at verbs. “Ran” and “passed” are two different claims. “Planned to update the test” and “updated the test” can leave the next session with two different jobs.

Keep a file path or test name when it lets the agent verify a claim. Carry over the exact error message when its wording distinguishes two failure modes. For example, an assertion about a cleared input points somewhere different from a timeout waiting for the save request. A page of surrounding output can stay in the old thread unless a particular line changes the diagnosis.

Once you open the new session, ask the agent to check the handoff against the files before making changes. Working trees move. A teammate may have added a test, or you may have fixed a typo while the first chat was wrapping up. A quick comparison gives the new session a chance to catch that drift before it acts on yesterday’s version of the job.

Look at the repeated work, too

The handoff is one place to avoid spending context twice. The same pattern can show up inside a session when an agent rereads a file it has already seen or gives a long recap after a small edit. At HarnessUp, where I’m a product manager, we work on that part of the problem. Delta Read helps cut repeated reads, and Response Diet trims verbose output. Both are part of the local HarnessUp token-saving tools for Claude Code and Codex.

The next time a Claude Code thread has done its job and you’re about to give the agent a different one, write the note you’d want at the top of a review. Give it the behavior to preserve, the evidence to check, and the first thing to open. If that first thing is the diff, the handoff has already saved someone a walk through the entire morning.

This article was drafted with AI assistance in HarnessUp Publish and approved by the HarnessUp team before publishing.