← All questions

Why does every session end with /close, and why start a fresh chat?

/close records what happened in your session log — what was decided, what was built, what's still open — and commits. Until it runs, the work may exist in your files but the reasoning behind it isn't on the record anywhere. So finish every session with it.

Then start a fresh chat, either with /clear or a new conversation. /clear wipes the conversation on screen and touches none of your project's files — which is exactly why it is safe once /close has run. This isn't tidiness. Every message in a conversation takes up room in Claude's context window, and a long session fills it; once it's full, earlier details start slipping — instructions get fuzzy, scope drifts, mistakes creep in. A fresh chat gives the next session the whole window. It doesn't lose anything, because the next session learns what happened from your log and what's planned from your queue.

The order matters: /close before /clear, always. Clear first and the session's thinking is gone before it was written down.

Typing /close is the yes: the commit message appears on screen as the record of what is being committed, and the commit follows with no question in between. Where your repository has a remote, one plain question follows about pushing; where it has none, push is never mentioned. What tells you it committed is the commit hash written into the session record's heading.

/close also tells you what the next work is and then stops, naming the command that starts it in words, mid-sentence — the plan command for more planning, the build command for building — so nothing runs by accident. It won't invite you into another build in the same chat. Where a build run ended at work still held, the closing message says in plain terms what part of your change is not in the product yet.