Overview
~/.qoder/projects/<项目>/<session-id>.jsonl).
New Session
qodercli directly in the project root directory starts a new session, and the system automatically generates a session ID:
/new to start a brand new session; /clear clears the Conversation History and also starts a new session, both achieving similar results.
Naming Sessions
Use-n (--name) to set an easily recognizable display name for a session:
/rename to rename the current session from within the session.
Specifying a Session ID
Use--session-id to specify a session ID, making it easy for scripts or automated workflows to reference a fixed session:
Continue and Resume
Continuing the Most Recent Session
Use-c (--continue) to directly continue the most recent session for the current project:
Resuming a Specific Session
Use-r (--resume) to resume a previous session by its ID:
qodercli --resume without an ID opens the Session Browser, allowing you to select the session to resume from a list. In an interactive session, the /resume command also opens the Session Browser; /continue continues the most recent session.
Forking Sessions
--fork-session to fork a resumed session into a new branch instead of continuing the original session. This allows you to explore different directions from a historical point while keeping the original session intact:
/branch to create a branch from the current session.
Exporting Sessions
/export to export the current conversation to a file or copy it to the clipboard for sharing, archiving, or further analysis elsewhere:
Listing and Deleting
--list-sessions to list currently available sessions:
--delete-session to delete a session by its list index:
Session Storage Location
.jsonl stores the conversation logs, and state.json stores the session state. The User Configuration Directory defaults to ~/.qoder and can be customized via the QODER_CONFIG_DIR Environment Variable.