Overview
Every interaction with Gizzi Code happens inside a session — a persisted conversation context that includes messages, tool calls, traces, and metadata. Thegizzi session command group lets you manage those sessions directly from the terminal: list recent work, export a session for offline analysis or sharing, and remove sessions you no longer need.
Sessions are typically created when you run gizzi, gizzi run, or gizzi exec. Use gizzi session when you want to inspect history without reopening the TUI, archive a transcript, or clean up disk storage.
Command reference
gizzi session list
Show your recent root sessions. In an interactive terminal the output is paged with less; in non-TTY environments it prints to stdout.
gizzi session delete
Delete a session permanently. You must provide the full session ID.
gizzi session export
Export a complete session snapshot as formatted JSON. The export includes session metadata, all messages and parts, and the session trace.
Export is useful for attaching context to bug reports, importing into another tool, or keeping a long-term archive outside of Gizzi Code.
Common flags
Runtime session flags
Sessions are usually created and continued throughgizzi run or gizzi exec. The relevant flags are:
See Headless Execution for pipe-safe, non-interactive usage with
gizzi exec.
Related docs
- Gizzi Code Overview — Interactive TUI, headless mode, and platform integration
- Headless Execution — Run agents non-interactively in scripts and CI
- Configuration — Config files, profiles, and environment variables
- Permission Profiles — Approval rules for tools and edits