XLI: Open-Source Python Library for Claude Code-Style Terminal UIs

If you've tried to build your own coding agent, you've probably noticed the terminal UX is half the work. The Claude Code style transcript — where messages stream in, tool calls flip from running to done in place, and approvals pop up inline — is genuinely hard to reproduce. The team behind XLI kept rewriting this same layer every time. Full TUI frameworks like Textual (and even Rust-backed Ratatui bindings) take over the whole screen with their own widget tree, which kills your normal terminal scrollback. Lower-level toolkits leave you rebuilding streaming markdown, mutable tool cards, inline approvals, and a real input box from scratch.
So they built their own rendering engine and pulled it out into a library called XLI.
What You Get
- Streaming markdown responses
- Slash commands
u/filementions- Tool cards that update in place
- Inline approvals and pickers
- ESC to interrupt
- A status bar
The key design choice: it renders inline, so your transcript flows into the terminal's normal scrollback and stays selectable, scrollable, and searchable. It does not hijack the screen.
Framework-Agnostic
XLI does not care if your agent loop is Claude, OpenAI, or your own thing. It's framework-agnostic, so you can drop it into any Python-based agent architecture.
Installation
pip install python-xli📖 Read the full source: r/ClaudeAI
👀 See Also

MCP Server Enables Claude to Create and Run Custom Tools at Runtime
A developer built an MCP server where Claude can create, update, and run new tools without redeployment. The system uses five core tools and executes custom JavaScript/TypeScript code in a Deno sandbox with ~50ms cold start.

HolyClaude: Docker Container for Claude Code with Browser UI and Headless Chromium
HolyClaude is an open-source Docker container that packages Claude Code CLI with a browser UI, headless Chromium, and additional AI coding tools. Setup requires only docker compose up and provides access at localhost:3001.

Clawdbot Unleashes New Features with Pro Subscription
Clawdbot introduces a 'Pro' subscription, offering enhanced capabilities for users aiming to maximize the potential of automation in coding environments. Dive into the latest features and community insights from r/clawdbot.

Anamnese: A Portable Memory Layer for Claude and ChatGPT via MCP
Anamnese is a free MCP server that stores memories, tasks, goals, and notes across Claude and ChatGPT, pulling only relevant context into conversations while letting users view, edit, and export their data.