Skip to content
Augusta BhardwajSay hello
Work / 2025 · Conversational AI

Elyos AI

AI that handles Ctrl+C gracefully

CLI tool with real-time streaming, tool calling, and clean cancellation.

sage1 of 4
You: What's the weather in Tokyo right now?Assistant:Here's the current weather in Tokyo:  • 🌤 Condition: Partly cloudy • 🌡 Temperature: 18°C • 💧 Humidity: 65% Overall, it's a mild and comfortable day in Tokyo! Let me know if you need any other information.
A real session, recorded October 2026. The two tools return the take-home's built-in mock data, which is why both cities share one forecast; the answers are the model's own.
CleanCancellation
ZeroOrphan Tasks
PreservedHistory

The problem

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

How I built it

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

PythonLLM APIs

The hard parts

  1. Python signal handling + asyncio cancellation edge cases
  2. Partial response cleanup: what to keep, what to discard
  3. Mid-tool-call cancellation without corrupting external state
  4. Graceful degradation when multiple cancellations happen rapidly