> ## Documentation Index
> Fetch the complete documentation index at: https://docs.docwriter.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Sessions and history

> Switch conversations, inspect activity, and start fresh.

## Live activity

The expanded agent dock shows the current turn, tool progress, subagent progress, errors, and the running session cost. After the first round, the cost detail includes input, output, and cache token counts with the estimated cost in US dollars.

Open **Settings**, then **History detail** to choose **Verbose** or **Minimal**. Long assistant and thinking entries have expand controls. Subagent rows show the task description and current progress.

The current in progress turn stays pinned above older activity while the agent works.

## Full transcript

Choose **Transcript** in the dock header. The viewer can search messages, filter by user, assistant, tools, or thinking, and expand tool calls and the system prompt.

The Context view estimates how different content uses the model context window. Use the export action to download the transcript as JSON.

<Frame>
  <img src="https://mintcdn.com/ucberkeley-8d9be701/_cooIo6pWvrP0otR/images/transcript-overview.png?fit=max&auto=format&n=_cooIo6pWvrP0otR&q=85&s=0fece0fe40c198e5bfd0cb41f658622e" alt="The full session transcript with event filters" width="1400" height="900" data-path="images/transcript-overview.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/ucberkeley-8d9be701/_cooIo6pWvrP0otR/images/transcript-detail.png?fit=max&auto=format&n=_cooIo6pWvrP0otR&q=85&s=93bcc6f753459f3e2629a02f5c0fdf92" alt="Transcript search with the tool filter active" width="1400" height="900" data-path="images/transcript-detail.png" />
</Frame>

## Browse sessions

Open **Settings**, then **Sessions**. Search earlier sessions and switch to one. DocWriter restores the provider, model, and saved conversation when possible.

Provider sessions can expire or become unavailable. DocWriter can recover some Cursor and Pi session failures by starting a fresh provider session.

## Start a new session

Choose **New session** in the agent dock. A new session clears:

* Provider conversation and live history
* Queued work and active questions or plans
* Pending edit proposals
* Session cost, recent feedback actions, and proposal toasts
* `.docwriter/agent/scratch/`

Files, comments, rules, references, hooks, reviewers, skills, appearance, and agent behavior settings remain.
