---
title: Sessions
description: Resume, fork, compact, and undo — sessions are durable and rewindable.
status: draft
sidebar:
  order: 2
---

Every session is recorded as a JSONL transcript under
`~/.nori/cli/transcripts/`, independent of the agent's own storage. On exit,
Nori prints the exact command to pick up where you left off.

## Resume

```sh
nori resume            # picker, sessions for the current directory
nori resume --last     # newest session
nori resume <uuid>     # a specific session
nori resume --all      # across all directories
```

In the TUI: `/resume`, or `/resume-viewonly` for a read-only transcript.

## Rewind and recover

- `/fork` — rewind the conversation to an earlier message and branch from it
- `/undo` — ask Nori to undo a turn's changes (Esc also offers undo)
- `/compact` — summarize the conversation to stay under the context limit
- `/new` — fresh chat without restarting

## Transcript format

The on-disk transcript schema is a documented, stable contract for
third-party tools — see [architecture](/cli/develop/architecture/).
