# How do I end a session?

Checked 2026-11-15 against GilbApp d5296208bbffa2ab70076e6194f5537c4be1ddf7.

With Kai-Zen chosen in the chat, type close in "Write a message…", press "Send", and wait until Kai-Zen says you can close.

## Before you start

[A session with Kai-Zen open](http://support.gilb.com/help/how-do-i-start-work-with-kai-zen) in GilbApp's chat, with "Kai-Zen - Master Agent of Planning" chosen in the agent list. The pictures show a made-up person on a test site; your screen shows your own name and address.

## Steps

1. Type close in "Write a message…" and press "Send".

   In the box that shows "Write a message…", type close and press "Send". Kai-Zen then closes the session, and its last message tells you what is left open and that you can close the session.

   While closing, Kai-Zen finishes or stops the work in hand and says what is not done. It saves everything the session wrote where the project is kept: its vault or the store where its code is kept, and, in Claude Code in Terminal, also its folder on your computer. It puts live what is ready to be live but is not; before that it always stops and asks you. Last, it writes a handoff for the next session, saved with the project: what was done, what is open, and where to start.

   ![GilbApp with the word close typed in a chat with Kai-Zen; "Send" to the right of the box is outlined in orange.](http://support.gilb.com/help/media/2b55782b0be5babe.png)
   What you see: The chat is on the left of the screen. At its top the agent list reads "Kai-Zen - Master Agent of Planning", and Kai-Zen's last message ends "Say close when you want to end this session." At the bottom left, close is typed in the message box. Press "Send", outlined in orange, to the right of that box.

## Deeper

Also asked:

The menu says "Sign out: End this session." Is that the same as ending a session with Kai-Zen? No. "Sign out" ends your sign-in in this browser. A session with Kai-Zen is one stretch of work in the chat, which you end by typing close.

If I close the tab, does the agent keep working? With Claude Code, no: closing the tab stops it. With Grok, the turn runs on to its end on GilbPlatform, but its answer is lost. What it already wrote in your vaults stays.

A session is one stretch of work with an agent, from your first message until you close it. With Kai-Zen you close it by typing close.

In GilbApp nothing else is needed after Kai-Zen's last message. GilbApp keeps the chat in this browser tab only; the handoff is saved with the project for [the next session](http://support.gilb.com/help/how-do-i-continue-a-project-with-kai-zen): what was done, what is open and where to start.

In Claude Code in Terminal, type close and press Return in the same way. When Kai-Zen says you can close, type this line and press Return to leave Claude Code:
/exit
When nothing is running, pressing Control and C twice also leaves it.

Only Kai-Zen runs a close. Jackfruit has no close step: when you are done with Jackfruit, read its report of what it wrote, and stop.

This answer is written for a computer screen.

Source: Kai-Zen step End \("When the requester says close, run Kai-Zen.Close"\) \(K kai-zen-06gd2d286dz8s9b6ey63f9e49r\); Kai-Zen.Close \(K 06ge3wedb5z9kac8xg072nbx54\) steps Finish, Git \("its folder on the requester's computer, its GilbPlatform vault, or its repo"\), Deploy, Handoff, Tell \("Tell the requester what is left open, and that they can close the session"\); Kai-Zen.AskRules.Stop \(a release always stops\); Jackfruit \(no close step; Report\). GilbApp 0c933e55 src/components/agent/AgentChat.tsx:4-5, :1046, :1063. Claude Code docs, read 2026-11-09: https://code.claude.com/docs/en/commands \(/exit: "Exit the CLI"\), https://code.claude.com/docs/en/interactive-mode \(Ctrl+C: "a second press exits Claude Code"\). t:AgentWorkSession; folder scoped to Terminal \(claude-code-bridge.mjs:865-870\).
