Session Management
A session is a single, continuous interaction between you and goose, providing a space to ask questions and prompt action. This guide covers how to manage the session lifecycle.
Start Session
In your first session, goose prompts you to set up an LLM (Large Language Model) provider.
- goose Desktop
- goose CLI
When you open goose, you'll see the session interface ready for use. Just type—or speak—your questions, requests, or instructions directly into the input field, and goose will immediately get to work.
When you're ready to work on a new task, you can start a new session in the same directory or a different one. This directory is where goose reads and writes files by default.
- Same Directory
- Different Directory
To start a session in the same goose window:
- Click the button in the top-left to open the sidebar
- Click
Homein the sidebar - Send your first prompt from the chat box
To start a session in a new goose window:
- Click the button in the top-left
- In the new goose window, send your first prompt from the chat box
- Click the directory switcher at the bottom of the app
- Navigate to the new directory or create a new folder
- Click
Opento open a new goose window for the selected directory - Send your first prompt from the chat box
On macOS, you can use the goose dock icon to quickly start sessions:
- Drag and drop a folder onto the goose icon to open a new session in that directory
- Right-click the goose icon and select
New Windowto open a new session in your most recent directory
You can also use keyboard shortcuts to start a new session or manage goose windows.
| Action | macOS | Windows/Linux |
|---|---|---|
| New Session with Quick Launcher | Cmd+Option+Shift+G | Ctrl+Alt+Shift+G |
| New Session in Current Directory | Cmd+N | Ctrl+N |
| New Session in Current Directory (Same Window) | Cmd+T | Ctrl+T |
| New Session in Different Directory | Cmd+O | Ctrl+O |
| Toggle Sidebar | Cmd+B | Ctrl+B |
| Open Settings | Cmd+, | Ctrl+, |
| Keep goose Window Always on Top | Cmd+Shift+T | Ctrl+Shift+T |
Quick Launcher
Start a new session by typing your prompt into a popup:
- Press
Cmd+Option+Shift+G(macOS) orCtrl+Alt+Shift+G(Windows/Linux) to open the popup - Type your prompt and press
Enter
The session opens to your most recently opened directory in a new goose window.
Name Session
- goose Desktop
- goose CLI
In the Desktop app, session tiles display auto-generated descriptions based on the context of your initial prompt.
You can edit session descriptions after they're created:
- Click the button in the top-left to open the sidebar
- Click
Historyin the sidebar - Hover over the session you'd like to rename
- Click the button that appears on the session card
- In the "Edit Session Description" modal that opens:
- Enter your new session description (up to 200 characters)
- Press
Enterto save orEscapeto cancel - Or click the
SaveorCancelbuttons
- A success toast notification will confirm the change
Session descriptions help you manage multiple goose windows. When you're in the goose chat interface, session descriptions appear in the Window menu and in the Dock (macOS) or taskbar (Windows) menu, making it easy to identify and switch between different goose sessions.
By default, goose names your session using the current timestamp in the format YYYYMMDD_<COUNT>. If you'd like to provide a specific name, this is where you'd do so. For example to name your session react-migration, you would run:
goose session -n react-migration
You'll know your session has started when your terminal looks similar to the following:
starting session | provider: openai model: gpt-4o
session id: react-migration
working directory: /path/to/your/project
Exit Session
Note that sessions are automatically saved when you exit.
- goose Desktop
- goose CLI
To exit a session, simply close the application.
To exit a session, type exit. Alternatively, you exit the session by holding down Ctrl+C.
Your session will be stored in the local SQLite database at ~/.local/share/goose/sessions/sessions.db.
Search Sessions
Search allows you to find specific content within sessions or find specific sessions.
- goose Desktop
- goose CLI
You can use keyboard shortcuts and search bar buttons to search sessions in goose Desktop.
| Action | macOS | Windows/Linux |
|---|---|---|
| Open Search | Cmd+F | Ctrl+F |
| Next Match | Cmd+G or ↓ | Ctrl+G or ↓ |
| Previous Match | Shift+Cmd+G or ↑ | Shift+Ctrl+G or ↑ |
| Use Selection for Find | Cmd+E | n/a |
| Toggle Case-Sensitivity | Aa | Aa |
| Close Search | Esc or X | Esc or X |
The following scenarios are supported:
Search Within Current Session
To find specific content within your current session:
- Use
Cmd+Fto open the search bar - Enter your search term
- Use shortcuts and search bar buttons to navigate the results
Search For Session By Name or Path
To search all your sessions by name or working directory path:
- Click the button in the top-left to open the sidebar
- Click
Historyin the sidebar - Use
Cmd+Fto open the search bar - Enter your search term
- Use keyboard shortcuts and search bar buttons to navigate the results (
Cmd+Enot supported)
This is a metadata-only search. It doesn't search conversation content. Note that searching by session ID (e.g. 20251108_1) is supported, but this property isn't displayed in the UI.
You can rename sessions to give them descriptive names that you'll remember later.
Search Across All Session Content
To search conversation content across all your sessions, ask goose directly in any chat session. For example:
- "Find my earlier conversation about React hooks from last week"
- "Show me sessions where I worked on database migrations"
goose will search your session history and show relevant conversations with context from matching sessions.
This functionality requires the built-in Chatrecall extension to be enabled (it's enabled by default).
Search Within Historical Session
To find specific content within a historical session:
- Click the button in the top-left to open the sidebar
- Click
Historyin the sidebar - Click a specific session tile from the list to view its content
- Use
Cmd+Fto open the search bar - Enter your search term
- Use keyboard shortcuts and search bar buttons to navigate the results
Using regular expressions or search operators in search text isn't supported.
Search Within Current Session
Search functionality is provided by your terminal interface. Use the appropriate shortcut for your environment:
| Terminal | Operating System | Shortcut |
|---|---|---|
| iTerm2 | macOS | Cmd+F |
| Terminal.app | macOS | Cmd+F |
| Windows Terminal | Windows | Ctrl+F |
| Linux Terminal | Linux | Ctrl+F |
To find specific content within your current session:
- Use the shortcut to open the search bar
- Enter your search term
- Use shortcuts and search bar buttons to navigate the results
Your specific terminal emulator may use a different keyboard shortcut. Check your terminal's documentation or settings for the search command.
Search Across All Session Content
To search conversation content across all your sessions, start a goose session and ask directly:
- "Find my earlier conversation about React hooks from last week"
- "Show me sessions where I worked on database migrations"
goose will search your session history and show relevant conversations with context from matching sessions.
This functionality requires the built-in Chatrecall extension to be enabled (it's enabled by default).
Search Session Data Directly
The session list subcommand with supported options can be useful for some search operations.
You can also query the SQLite database directly:
# Search session descriptions
sqlite3 ~/.local/share/goose/sessions/sessions.db \
"SELECT id, description FROM sessions WHERE description LIKE '%your search term%';"
# Search by working directory
sqlite3 ~/.local/share/goose/sessions/sessions.db \
"SELECT id, description, working_dir FROM sessions WHERE working_dir LIKE '%project-name%';"
# List recent sessions
sqlite3 ~/.local/share/goose/sessions/sessions.db \
"SELECT id, description, created_at FROM sessions ORDER BY created_at DESC LIMIT 10;"
Starting with version 1.10.0, goose uses a SQLite database (sessions.db) instead of individual .jsonl files. Legacy .jsonl files remain on disk but are no longer managed by goose.
Resume Session
- goose Desktop
- goose CLI
- Click the button in the top-left to open the sidebar
- Click
Historyin the sidebar - Click the session you'd like to resume. goose provides search features to help you find the session.
- Choose how to resume:
- Click
Resumeto continue in the current window - Click
New Windowto open in a new window
- Click
You can also quickly resume one of your three most recent sessions by clicking it in the Recent chats section on the Home page.
To resume your latest session, you can run the following command:
goose session -r
To resume a specific session, run the following command:
goose session -r --name <name>
For example, to resume the session named react-migration, you would run:
goose session -r --name react-migration
While you can resume sessions using the commands above, we recommend creating new sessions for new tasks to reduce the chance of doom spiraling.
Resume Session Across Interfaces
You can resume a CLI session in Desktop.
- goose Desktop
- goose CLI
All saved sessions are listed in the Desktop app, even CLI sessions. To resume a CLI session within the Desktop:
- Click the button in the top-left to open the sidebar
- Click
Historyin the sidebar - Click the session you'd like to resume
- Choose how to resume:
- Click
Resumeto continue in the current window - Click
New Windowto open in a new window
- Click
Currently, you cannot resume a Desktop session within the CLI.
Resume Project-Based Sessions
- goose Desktop
- goose CLI
Project-based sessions are only available through the CLI.
You can use the project and projects commands to start or resume sessions from a project, which is a tracked working directory with session metadata. For a complete guide to using Projects, see Managing Projects Guide.
Delete Sessions
- goose Desktop
- goose CLI
You can delete sessions directly from the Desktop app:
- Click the button in the top-left to open the sidebar
- Click
Historyin the sidebar - Find the session you want to delete
- Hover over the session card to reveal the action buttons
- Click the button that appears
- Confirm the deletion in the modal that appears
Deleting a session from goose Desktop will also delete it from the CLI. This action cannot be undone.
The session will be immediately removed from your session history and the underlying session record will be deleted from local storage.
You can remove sessions using CLI commands. For detailed instructions on session removal, see the CLI Commands documentation.
Import Sessions
- goose Desktop
- goose CLI
Import complete sessions from JSON files to restore, share, or migrate sessions between goose instances. Importing creates a new session with a new ID rather than overwriting existing sessions.
- Click the button in the top-left to open the sidebar
- Click
Historyin the sidebar - Click the
Import Sessionbutton in the top-right corner - Select a
.jsonsession file that was previously exported from goose - The session will be imported with a new session ID
- A success notification will confirm the import
Session import is currently only available through the Desktop app.
Export Sessions
- goose Desktop
- goose CLI
Export complete sessions as JSON files for backup, sharing, migration, or archival. Exported files preserve all session data including conversation history, metadata, and settings.
- Click the button in the top-left to open the sidebar
- Click
Historyin the sidebar - Find the session you want to export
- Hover over the session card to reveal the action buttons
- Click the button that appears
- The session will be downloaded as a
.jsonfile named after the session description
Export sessions for backup, sharing, migration, or documentation purposes. You can export as JSON files to preserve complete session data including conversation history, metadata, and settings, or as Markdown files to get a formatted, readable version of the conversation.
From your terminal, run the session export subcommand:
goose session export