[Feature Request] Allow Claude to exit session programmatically via tool

Resolved 💬 3 comments Opened Dec 28, 2025 by 0xnfrith Closed Feb 14, 2026

Bug Description
\ Here's a copy/paste version for your feedback submission:

---
Feature Request: Allow Claude to exit the session programmatically

Current behavior:
The CLI only exits when the user types the literal command exit (and nothing else). If the user includes exit

Requested behavior:
Give Claude the ability to exit the harness when instructed to do so in natural language. This could be a tool

Why this matters:

  • Open sessions create psychological friction — anxiety about unfinished work and loss of continuity
  • Users naturally want to close loops with a final check ("anything else? if not, exit")
  • Forcing users to send a separate literal "exit" command breaks conversational flow
  • It's a small UX friction that compounds over many sessions

Suggested implementation:
Add a tool or capability that allows Claude to terminate the session when the user expresses intent to exit, rather than requiring the exact keyword match.

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.0.76
  • Feedback ID: 8389a417-a590-4eb3-84e9-d5f0ed34b0c2

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗