Sessions
Commands#
List previous chats and choose one to resume:
agent lsResume the most recent conversation:
agent resumeContinue the previous session directly:
agent --continueResume a specific conversation by id:
agent --resume="chat-id-here"When to resume and when to start fresh#
Resume when you are continuing the same piece of work and the earlier context still holds: the same files, the same goal, the same constraints you already explained.
Start fresh when the task changes. A long session carries all of its earlier turns, including abandoned approaches and dead ends. On a new problem that history is noise, and it competes for context with what actually matters.
Related#
- CLI overview — modes and installation
- Automation — running without a session at all