Weeklong migration agent re-exploring the repo every session

CCDV-F Agents & Workflows Medium Question 50 of 105

A migration agent works on a codebase across several sessions spread over a week. Each new session currently re-explores the repository and repeats earlier decisions before doing any new work.

How should the agent carry state between sessions?

Show answer and explanation

CMemory files holding a progress log and feature checklist, read at each session start

The memory tool's multisession pattern has an initializer session write a progress log and a feature checklist, later sessions open by reading them, and each session update the log before it ends. Replaying the old transcript reloads the whole history into context every time, the cost the pattern exists to remove. A week-long session still fills its context window and loses everything unwritten on any interruption. Compaction summarizes the conversation it is in; it does not start the next one.

Source: platform.claude.com/docs/en/agents-and-tools/tool-use/memor…

Anonymous, no account needed. Your tally stays in this browser.

Next question Start 5 timed questions Browse all 105 original CCDV-F practice questions