Skip to content
Python · Claude

Sage CLI

AI that handles Ctrl+C gracefully

GITHUB →
sage
➜ sage|
➜ sage |
fetch_stock_data.
Dev Story
The Problem

Most AI CLI tools crash or leave orphan processes when you press Ctrl+C mid-response. Conversation state gets corrupted.

My Approach

Built a Python CLI with clean signal handling. Async streaming, tool calling, and cancellation that preserves conversation history up to the interruption point.

Results
Clean
Cancellation
Zero
Orphan Tasks
Preserved
History
Tech Stack
PythonClaude