# EndConversation Tool

> The tool that ends the session, used only in rare cases.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** EndConversation, Claude ended this conversation

## Think of it like

It is like hanging up the phone. It only happens for a big reason.

## Definition

The EndConversation tool ends the session. Claude uses it in only two cases. One is when someone keeps sending abusive messages after a clear warning. The other is when you ask it to end the session and then confirm. After it ends, only a few commands still work, such as /clear and /resume. It only comes with newer models, such as Opus 4.8 and Sonnet 5, in a terminal session.

## Example

Lucy asks Claude to end the chat and confirms. The session locks, and she runs /clear to start fresh.

## Example code

```text
Claude ended this conversation. Start a new session (or /clear) to continue.
```

What a new prompt gets after the session has ended.

## Why it matters

It is a rare last step, and knowing the rules means it never takes you by surprise.

## Common mistake

Thinking a hard day of work can trigger it. Frustration, bad language and failed tasks never do.

## Three principles

- **Two cases only.** Abuse or your request.
- **Session locks.** Use /clear or /resume.
- **Never asks.** And cannot be blocked.

## Related terms

- [Claude Code Session](https://learn.benibix.com/term/ai/claude-code-session)
- [Claude Code Built-in Tool](https://learn.benibix.com/term/ai/claude-code-built-in-tool)

## Taught in

- [Claude Code Session Tools](https://learn.benibix.com/learn/ai-claude-code/claude-code-session-tools): Claude Code, 11/16

![Tools that steer the session: ask a question, switch to plan mode, enter a worktree, run a skill, keep a task list.](https://learn.benibix.com/diagrams/ct-session-tools.svg)

---

Source: https://learn.benibix.com/term/ai/end-conversation-tool
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
