Manage conversational sessions with Chat Mode
mainShellGPT supports persistent conversations using chat sessions. Each session is stored in the CHAT_CACHE_PATH (configurable). You can use the same session ID to iteratively improve suggestions or add context.
--chat <session_id>: Start or continue a conversation with a specific ID. Usetempfor a quick session.--list-chatsor-lc: List all existing chat sessions.--show-chat <session_id>: Display the full message history of a specific session.
# Start a new conversation
sgpt --chat conversation_1 "please remember my favorite number: 4"
# Continue the same conversation
sgpt --chat conversation_1 "what would be my favorite number + 4?"
# List all sessions
sgpt --list-chats
# View history of a session
sgpt --show-chat conversation_1