Usage Examples
Practical examples showing how to use Agents Session Viewer for common tasks.
Browsing Sessions
Finding a Recent Session
- Launch the app -- it automatically discovers sessions from
~/.codex/sessions/ - Sessions are listed in the sidebar, sorted by date (newest first)
- Click a session or use
J/Kto navigate between sessions - The conversation loads in the main panel
Scanning Through a Conversation
- Select a session from the sidebar
- Press
jto move to the next message,kto go back - Press
ggto jump to the first message - Press
Gto jump to the last message - Use
Ctrl+dandCtrl+uto scroll half-page at a time
Collapsing Long Messages
When reviewing a session with lengthy assistant responses:
- Navigate to a long message with
j/k - Press
oto collapse it to a single line - Continue scanning with
j/k - Press
oagain on any collapsed message to expand it
Searching
Finding a Specific Topic
- Press
/to focus the search input - Type your query, for example:
database migration - Results appear in real-time as you type
- Each result shows the session and a preview of the matching message
- Click a result to jump to that message in its full session context
- Press
Escto clear the search and return to browsing
Fuzzy Search
The search engine tolerates typos and partial matches:
datbasewill matchdatabaserefctrwill matchrefactorasync awitwill matchasync await
The threshold is set to 0.3 (fairly strict), so results stay relevant.
Exporting
Save as Markdown
- Open the session you want to export
- Press
Cmd+S(macOS) - Choose a location in the native save dialog
- The conversation is saved as a formatted
.mdfile with headings for each message
Save as JSON
- Open the session you want to export
- Press
Cmd+Shift+S(macOS) - Choose a location in the native save dialog
- The full conversation with metadata is saved as
.json
Copy to Clipboard
For quick sharing without saving a file:
- To copy a single message: navigate to it with
j/k, then pressy - To copy the entire conversation: press
Y - Paste into your editor, chat, or document
Share via macOS
- Open the session you want to share
- Press
Cmd+E - The macOS share sheet opens with the conversation content
- Choose Messages, Mail, AirDrop, or any other share target
Theming
Switching Themes
- Click the theme toggle in the header to switch between light and dark mode
- The app respects your system preference on first launch
- Your choice is saved and persists across restarts
Workflow Examples
Code Review Prep
Reviewing what an AI assistant suggested during a coding session:
- Launch the app and find the session by date or search
- Use
oto collapse the user messages (you know what you asked) - Use
j/kto step through assistant responses - Press
yto copy useful code snippets - Press
Cmd+Sto save the full conversation for reference
Debugging Session Lookup
Finding how you solved a specific bug previously:
- Press
/and search for the error message or function name - Browse through matching results across all sessions
- Click a result to see the full context
- Press
Yto copy the solution to clipboard
Daily Session Review
Reviewing everything you worked on today:
- Sessions are grouped by date -- today's sessions appear at the top
- Use
J/Kto step through each session - Scan each conversation with
j/k - Collapse uninteresting messages with
o - Export highlights with
Cmd+S