Saved Sessions
TheGitAI saves your sessions locally so you can pick up exactly where you left off. Saved sessions are scoped to the repo you were working in.
List saved sessions
ai --list-sessions
Lists the saved sessions for the current repo.
Resume a session
ai --session session_abc123
ai --session my-named-session
Resume a saved session by its id or name. Inside a running session you can also
use /resume to pick one interactively.
What's kept
- Sessions are stored locally and scoped to the current repo.
- The five most recent sessions per repo are kept.
- A resumed session restores its conversation history and the work state from where you left off. Mode is session-local and resumes in Default mode.
Change where sessions are stored
Set THEGITAI_SESSION_DIR to override the default local directory where saved
sessions live.
Because sessions are repo-scoped,
ai --list-sessions only shows sessions for
the repo you're currently in. cd into a different project to see its sessions.