1. Home
  2. Guides
  3. Chat to Claude Code

Continue a Claude chat in Claude Code

Turn a useful coding discussion into a project brief that Claude Code can read alongside the repository. Start with a small, verifiable change.

To continue an ordinary Claude chat in Claude Code, save the approved plan as Markdown inside your repository and ask Claude Code to read it before making changes. Supply the actual source files as well as the conversation’s decisions. A new Claude Code session should not be assumed to know an ordinary claude.ai conversation just because you use the same account.

Start from the right conversation

Choose the discussion that contains the current requirements. If the conversation has several proposed implementations, identify the version you approved before exporting it. A coding session needs to know which proposal to follow and which alternatives were abandoned.

As of November 2026, an existing Cowork task has a separate route in Anthropic’s surface guide. Use its own task-data package for these steps.

  1. Select Download task data for the Cowork task.
  2. Unzip the download.
  3. Open the extracted folder in Claude Code.
  4. Run the task-import command below.
/port-task-data

The chat-to-Cowork guide covers the current relationship between those experiences. Here, the worked example is a small Python repository whose CSV timestamp normalizer was planned in an ordinary chat. The filenames and requirements are illustrative, so adapt them to your own project.

Export the discussion and collect files

DocMyChat saves an original conversation or reply in desktop Chrome. The Markdown guide explains its output.

  1. Open the original conversation in desktop Chrome.
  2. Select Export.
  3. Choose Markdown.

Save the export as supporting material under a path such as the one below. Check later corrections and the currently visible branch before treating any proposal as approved.

docs/notes/timestamp-discussion.md

Collect the actual normalizer script, a representative CSV fixture, and the current tests. Mentioning a source file in a transcript does not supply its current contents.

If the chat produced a proposed replacement file, keep it separate until you have compared it with the repository version. Label it as a proposal in the plan so Claude Code does not mistake it for the current implementation. The Claude to GitHub workflow explains how conversation exports can accompany repository work.

Put the approved plan in the repository

Create a short Markdown plan at the path below. State the change, relevant files, behavior to preserve, and checks that will show the change works.

docs/notes/timestamp-import-plan.md

Suppose the chat approved converting timestamps with explicit UTC offsets and rejected guessing a timezone for other values. Keep those decisions together: correct conversion of one input cannot excuse inventing another input’s timezone.

Task: Normalize CSV timestamps with explicit offsets

Current repository files
- scripts/normalize_timestamps.py
- tests/fixtures/import.csv
- tests/test_normalize_timestamps.py

Approved behavior
- Convert timestamps with explicit offsets to UTC.
- Preserve unrelated columns and their order.
- Leave empty timestamp cells empty.
- Report timestamps without an offset as unresolved input.

Boundaries
- Do not infer a timezone from the computer’s location.
- Do not overwrite the input CSV.
- Do not add a dependency without discussing the need.

Evidence to check
- Two different offsets representing the same instant
- An empty timestamp cell
- A timestamp with no offset
- A row with additional, unrelated columns

Supporting discussion
docs/notes/timestamp-discussion.md records the earlier options.
This plan identifies the approved scope.

First task
Read the existing implementation and tests.
Report any conflict with this plan before editing.

Check each path against your checkout before handing over the plan. If the test file does not exist, say that a test file must be created rather than listing it as current. Distinguish work you have already completed from work you are asking Claude Code to do.

Keep the transcript as background while the plan states the active decisions. Reviewers can then compare requested behavior with the diff without reconstructing the conversation.

Start Claude Code in that repository

Anthropic’s terminal quickstart starts Claude Code from the project directory. Follow its setup instructions if you have not installed Claude Code and signed in, then use your actual repository path in these commands.

cd /path/to/your/repository
claude

Give Claude Code the plan’s exact path in your first request. Name the relevant source files as well, and ask for a brief understanding check before implementation. This makes missing context visible while the next action is still reading.

Read docs/notes/timestamp-import-plan.md and the repository files
it names. Compare the current behavior with the approved scope.
List missing files, conflicting requirements, and unanswered
questions before making changes. Do not infer a missing timezone.

Review the response against the actual repository. If Claude Code describes a function that exists only in the old chat proposal, point it to the current file and ask it to reassess. The exported discussion explains intent; the checkout supplies the code that will be changed.

Keep lasting instructions separate

CLAUDE.md

Use this file for stable repository instructions, such as the test command or dependency policy. Anthropic describes these as “instructions you write to give Claude persistent context” in its memory documentation. Keep the current implementation plan separate and preserve existing instructions when adding anything new. This file supplies guidance across sessions, so check the resulting behavior instead of treating it as an enforcement mechanism.

Fix the handoff before coding

For a missing file, recover or create the intended source before implementation. Update the plan to describe its status instead of asking Claude Code to reconstruct a module from a passing reference.

A disagreement between the plan and existing tests requires a decision. For example, an old test might expect timestamps without offsets to use the local timezone. Decide whether that test records an obsolete requirement or exposes a mistake in the new plan before authorizing the implementation.

Keep instructions quoted inside the transcript as history. The active plan should name the permitted change, so a copied deployment command or discarded package suggestion does not become authorization to run it.

A correct-looking patch can still omit a requirement that was only mentioned deep in the chat. Compare the proposed work with the plan’s acceptance cases, including empty values and unrelated columns. The guide to verifying Claude answers offers a broader review process for claims and explanations that accompany the code.

Verify one small change

Ask Claude Code to implement the smallest useful part of the approved plan. Review the diff and run the relevant tests before extending the scope. In the timestamp example, confirm the explicit-offset conversion and the unresolved-input behavior together, since both define what the normalizer is allowed to infer.

Use a small, illustrative acceptance fixture such as this one. Python’s date and time documentation distinguishes timestamps that identify an unambiguous instant from values without timezone information.

Input: 2026-11-04T10:00:00+02:00
Expected UTC instant: 2026-11-04T08:00:00Z

Input: 2026-11-04T08:00:00Z
Expected UTC instant: 2026-11-04T08:00:00Z

Input: 2026-11-04T10:00:00
Expected handling: Report unresolved timezone; do not guess.

The first pair should describe the same instant after conversion. The last input should trigger the unresolved-input path required by this example’s plan. Check empty cells and unrelated columns too, and compare the original CSV afterward to confirm that the implementation left it untouched.

Update the plan after resolving a question or changing a requirement. Your next session should find a clear record of the current decision beside the code, with the earlier discussion available when its reasoning is needed.

Questions

Does signing in to Claude Code move my ordinary Claude chat?

Do not assume a new repository session has read an ordinary chat because both use the same account. Supply a reviewed plan and the source files needed for the task.

Should I give Claude Code the whole transcript?

Use a short plan to identify the approved decisions and current task. Keep the transcript as supporting material when the reasoning or exact wording matters, and tell Claude Code which file governs the work.

Can I move an existing Cowork task into Claude Code?

Anthropic documents a separate route using downloaded Cowork task data and its task-import command. Follow that route for an existing Cowork task; an ordinary chat transcript uses the reviewed file handoff in this guide.

What if the chat contains code for files I have not saved?

Create or download the source files and place them at the intended repository paths before continuing. Check that each file is complete and corresponds to the version you approved.