Python

rex-cssh: Cluster SSH in Rex, the New Terminal Multiplexer from Superlogical

rex-cssh: Cluster SSH in Rex, the New Terminal Multiplexer from Superlogical

13 min read

Rex is a terminal multiplexer made by Superlogical, the new company from Mitchell Hashimoto — the author of Ghostty and co-founder of HashiCorp. It has been in public beta since late October 2026, and the first thing I wanted to do in it was the thing I do every day in tmux: cluster SSH.

This post is about that: what Rex is, why it cannot synchronize panes out of the box, and how I closed the gap with rex-cssh, a single-file Python tool in the spirit of tmux-cssh. It opens one Rex pane per host, tiles them into a grid, and broadcasts whatever you type in any pane to all the others.

Text Embeddings for RAG and Search: Ollama and OpenAI-Compatible APIs

Text Embeddings for RAG and Search: Ollama and OpenAI-Compatible APIs

3 min read

An embedding is a fixed-dimensional float vector placing similar meanings nearby — a representation layer for search, clustering, dedup, and RAG retrieval, not token IDs and not chat output. The concepts stay identical across backends; only the HTTP surface changes. Two local patterns cover nearly everything: Ollama’s embed endpoint and any OpenAI-compatible embeddings route.

Cost Optimization for LLM Systems: Spend Tokens Where They Matter

Cost Optimization for LLM Systems: Spend Tokens Where They Matter

3 min read

Ten thousand requests a day at a cent each is $100 daily — and enterprise scale turns that into five figures fast. Optimization isn’t corner-cutting; it’s spending tokens where they matter. Budgets, fallbacks, local inference break-evens, and caching form the practical stack, roughly in that order of effort.

Model Routing: Stop Using One Model for Everything

Model Routing: Stop Using One Model for Everything

4 min read

A 70B model summarizing an email burns money; a 3B model reviewing production code courts disaster. Routing matches task complexity to model capability across four strategies — capability, cost, latency, hybrid — each optimizing what hurts most. Production systems converge on hybrid; start there only after one model genuinely fails.

LLM Guardrails in Practice: Control the Risk, Not the Model

LLM Guardrails in Practice: Control the Risk, Not the Model

3 min read

Models hallucinate, leak data, emit harmful content, and refuse legitimate requests. Guardrails constrain behavior without removing capability — but only the guardrails that match real risk earn their latency. The discipline is knowing which ones matter and which are noise.

Multi-Model System Design: The Right Model for the Right Task

Multi-Model System Design: The Right Model for the Right Task

3 min read

Running a 70B model to summarize an email wastes money; running a 3B model to review production code courts disaster. Multi-model design isn’t about collecting models — it’s about architecture that puts the right model on the right task at the right time, with the simplest pattern that survives the constraints.