As a task progresses, file excerpts, messages, and tool output can accumulate. More material can make a request costly, leave less room for new work, and make relevant details harder to find. A model can overlook or misinterpret information even when it fits within the window.
Suppose a session begins by investigating an incorrect invoice total, then turns to changing email templates. The previous debugging output may no longer help. Keep the new goal, relevant files, constraints, and evidence easy to identify. Ask for targeted reads instead of indiscriminately loading every file; a harness can retrieve more when needed. Tool descriptions may also consume space, although systems differ in how and when they provide them.
Compaction is one way some harnesses reduce a long history: they replace part of the active context with a shorter summary, sometimes keeping recent messages separately. This is lossy. A summary may omit an exact error, a rejected approach, or a constraint. It does not guarantee a successful continuation or mean that saved history was deleted. Availability, triggering, and retained material vary by implementation; an oversized request can still fail.
Before continuing after a summary, inspect or restate the goal, important constraints, current changes, and outstanding checks. Reopen the relevant files or test output when exact details matter rather than treating the summary as a transcript. A new session can remove irrelevant history, but it can also lose useful decisions. Carry forward a concise handoff and verify what the new session actually receives. Starting fresh does not normally undo changes already made to project files, though session behavior depends on the application.
Some applications also offer a conversation fork: choose an earlier point and continue along a separate conversation path, often retaining context up to that point according to the product’s rules. For example, two paths might consider different designs from the same requirements. A fork is not necessarily a copy of the project: both paths may still edit the same files. A separate working directory, such as a version-control worktree, can isolate file edits, but shared databases and services remain shared unless separately isolated. Check the application’s fork and workspace semantics; a fresh session may instead start without that earlier conversation.
Neither compacting nor starting again is a reliable way to erase sensitive information from provider records, logs, or saved history. Follow the applicable data-handling and incident procedures if a secret is exposed.