Sessions
Updated
RightNow Agent, the terminal coding agent, is paused. Its guides stay online as reference.
RightNow Agent saves every conversation to disk as a session, whether it ran in the TUI, headless, or over ACP.
Resume
- /resume or Ctrl+S
- Pick a recent session for this workspace. Typing filters titles and also searches conversation content; content matches appear under "Extended search results".
- rightnow --resume
- Resume the most recent session for the current directory.
- rightnow --resume <id-or-title>
- Resume by ID, or by a case-insensitive title in the current directory. UUID-shaped values are always IDs.
- rightnow --continue
- Continue the most recent session for the current directory; cannot be combined with
--resume.
Scripts should pass a session ID. When several sessions share a title, a single hand-renamed one wins; otherwise the command stops and lists the matching IDs.
Fork, rewind, and compact
- /fork [--worktree|--no-worktree] [directive]
- Start a peer session from a copy of this conversation, optionally in a new git worktree and with a first prompt. Without a flag, RightNow asks.
- /rewind, /undo
- Pick an earlier prompt and drop the conversation after it.
- /compact [note]
- Summarize older history to free context; the note says what must survive. RightNow also compacts automatically near the context limit.
- rightnow --continue --fork-session
- Copy the latest session for this directory into a new session ID.
Rewind truncates the conversation only. File changes made by removed turns stay on disk; review or revert them yourself.
Command-line flags
- -s, --session-id <UUID>
- Start a new session with this unused UUID. With
--resumeor--continueit also needs--fork-session, and names the copy. - --fork-session
- With
--resumeor--continue, copy the history into a new session ID instead of appending. - -w, --worktree [NAME]
- Start the session in a new git worktree, optionally named. Headless mode (
-p) does not create one. - --worktree-ref, --ref <REF>
- Branch, tag, or commit for
--worktree; defaults to the current HEAD of the source checkout. - --restore-code
- With
--resume, also restore the session's repository snapshot; otherwise only the conversation returns. A remote session's snapshot needs--worktree.
Use a new worktree when you need the code restored into a separate checkout:
List, search, and export
rightnow sessions requires a subcommand: list, search, or delete.
- rightnow sessions list [--limit N]
- Recent sessions for this repository, including sibling worktrees, grouped by worktree label (20 by default). Rows show ID, created and updated dates, source status, and summary.
- rightnow sessions search <query>
- Search session titles and conversation content for the current directory. With the default configuration it also prints
warning: remote session search failedon stderr; local results are unaffected. - rightnow export <session-id> [file]
- Write the transcript as Markdown to stdout or a file;
--clipboardcopies it instead. - /export [file]
- Save this conversation as Markdown, or copy it to the clipboard when no file is given.
- /transcript
- Open the transcript of this conversation in
$PAGER(defaultless). Nothing opens when that program is not onPATH; on Windows, setPAGERfirst, for example tomore.com.
rightnow sessions delete <session-id> finds the ID in any workspace and permanently deletes its history without asking. An unknown ID reports that no session was found.
Storage and cleanup
Each session is a directory, <RIGHTNOW_HOME>/, holding prompts, responses, tool results, task state, rewind points, usage counters, compaction checkpoints, and subagent records. <RIGHTNOW_HOME> is the effective product home; RIGHTNOW_HOME can override it.
- rightnow du [--json]
- Disk use under the product home: top-level directories by size, then worktrees with size, type, age, label, and path.
- rightnow worktree list
- List registered worktrees.
- rightnow worktree gc --max-age 7d
- Remove registered worktrees older than seven days. Without
--max-age, nothing expires. - rightnow worktree rm <path>
- Remove one worktree, including untracked ones that gc never visits.
Preview first: gc and rm both accept --dry-run.
Neither garbage collection nor worktree removal checks for uncommitted or unpushed work. Keep what you need before you run the removal.
Related guides
Continue with the Agent Dashboard, Memory, or Headless Mode.
If a session command fails, see the troubleshooting guide.