Skip to content

Session Actions

When you select a session — either from the search TUI or via aichat menu — an action menu appears with operations you can perform on that session.

These actions operate on the session file without starting a new Claude Code / Codex session:

ActionDescription
Show session file pathPrint the full path to the JSONL session file
Copy session fileCopy the session file to a destination path
Export to text fileExport the session as a readable .txt file
Query this sessionAsk a question about the session content (uses an AI agent to read and summarize)

These actions start or continue a Claude Code or Codex session:

ActionDescription
Resume/trim sessionOpens the resume submenu

When you select Resume/trim session, a submenu appears with these options:

OptionDescription
Resume as-isOpen the session with claude --resume
Clone session and resume cloneCopy the file first, then resume the copy
Trim + resumeTruncate large tool outputs and optionally assistant messages, then resume
Smart trim + resumeUse an AI agent to decide what to trim, then resume
RolloverHand off work to a fresh session with lineage

See the Resume page for details on each strategy.

Select any session in the search TUI (aichat search) and the action menu appears automatically.

The Query this session action lets you ask arbitrary questions about a session. It uses a headless AI agent to read the session file and return a focused answer. The default query is:

Summarize what was accomplished in this session

You can replace this with any question, such as:

  • “What files were modified?”
  • “What was the final decision on the auth approach?”
  • “List all TODO items mentioned”

The Export to text file action converts the JSONL session into a human-readable .txt file. By default, exports go to:

<project>/exported-sessions/<date>-session-<id>.txt

You can specify a custom destination path when prompted.

aichat move <session> <new-project> re-homes a session on a different project directory. Both arguments are required, and the session may be named any way the shared lookup accepts:

Terminal window
aichat move session-finder ~/Git/other-repo
aichat move 2945d228 ~/Git/other-repo

It rewrites the working directory recorded on every line of the transcript, then:

  • Claude: relocates the transcript into the new project’s directory under the Claude home. The destination filename and the resume command it prints both come from the session id recorded inside the transcript, so a file you renamed yourself still lands as <session-id>.jsonl.
  • Codex: rewrites the rollout in place. Codex organizes sessions by date rather than by project, so the file itself does not move.

A name you set with /rename survives either way: a Claude name is recorded inside the transcript, and a Codex name lives in the home-level session_index.jsonl, keyed by a session id that move never changes. Afterwards move offers to switch to the new directory and resume the session.

Both rewrites are atomic: the new content is written to a temporary file beside the destination and then swapped into place, so a move interrupted partway cannot leave you with a truncated transcript.