Sessions & Workflows Simple
Continue Most Recent Session
Resume the last session in the current working directory without knowing the session ID
Command
$ "color:#7C5CFC">claude -p "What did we discuss?" "color:#d97757">--continue
Response
Based on our previous conversation, we discussed the authentication module refactoring...
Parsing Code
059669">">const output = execFileSync(059669059669">">'claude', [ 059669059669">">'-p', 059669059669">">'Continue where we left off', 059669059669">">'--continue', 059669059669">">'--output-format', 059669059669">">'text' ], { encoding: 059669059669">">'utf-8', env: { ...process.env, CLAUDECODE: 059669">'' } });
Gotchas
! --continue is directory-scoped — won't find sessions created from other directories
! Use --resume SESSION_ID for cross-directory session resumption