/chat:listfrom chat
List saved chat threads under doc/chat/, newest first, marking the one recording in this session.
Ships in chat. Installing the plugin adds it to Claude Code.
What the command file sets; muted values are Claude Code's defaults
Show the saved chat threads so the user can pick one to /chat:resume or
/chat:note.
echo "session=$CLAUDE_CODE_SESSION_ID"
ls -t doc/chat/*.md 2>/dev/null || echo "NO_THREADS"
NO_THREADS (or no doc/chat/ directory) → tell the user there are no chat
threads yet, and that /chat:new starts one. Stop here.ls -t order is newest-first — that index is exactly what
/chat:resume <N> uses.Read .claude/chat/sessions/{session id}.json if it exists — its file
field is the thread currently recording in this session.
For every doc/chat/*.md, read its > Started … header line for the start
time, and count ## turn headers for a rough size (grep -c '^## ' <file>).
Newest first, as a compact table — index, name, started, turns, and a marker on the thread recording in this session:
Chat threads (doc/chat/):
# thread started turns
1 refactor-plan ● 2026-05-20 14:30 12 ← recording now
2 api-questions 2026-05-19 09:05 31
3 chat-2026-05-18 2026-05-18 16:40 4
Resume: /chat:resume <name | number | keyword>
Summary: /chat:note
Mark ← recording now only on the thread matching this session's state file.
If no thread is active in this session, omit the marker and add a one-line note
that nothing is recording right now.
7-day visitors to each command page
Other plugins' commands for the same job
5 commands in this plugin
/exit/chat:exitLeave chat mode — stop recording the current session's chat thread./new/chat:newStart a new logged chat thread — the conversation is recorded to doc/chat/{name}.md until /chat:exit./note/chat:noteSummarise the active chat thread into a durable note under doc/note/./resume/chat:resumeRe-open a saved chat thread and resume recording into it.npx claudepluginhub kirinchen/claude-workbench --plugin chat