AIToday

Quil: reboot-proof terminal multiplexer resumes AI sessions

Hacker News3h ago
Quil: reboot-proof terminal multiplexer resumes AI sessions

Key takeaway

Quil is a terminal multiplexer built for developers working with AI assistants; it persists your entire workspace—tabs, panes, working directories, and AI conversations—across reboots, resuming everything in roughly 30 seconds when you type `quil`. Unlike tmux, it understands projects and AI sessions, and it exposes a Model Context Protocol interface so your AI assistant can read pane output and send terminal commands directly, eliminating manual copy-paste workflows.

Summaries like this, in your inbox every morning.

Sign up free →

3 Key Points

  • What happened

    Quil, a terminal multiplexer designed for AI-native development, lets developers persist entire workspaces—tabs, panes, working directories, and AI conversations—across full reboots. After a reboot, typing `quil` restores every session in roughly 30 seconds, and AI assistants can drive the terminal directly via MCP (Model Context Protocol) integration.

  • Why it matters

    Developers orchestrating 5–10 sessions per project across AI assistants, build watchers, and SSH connections have long relied on tmux, which does not preserve AI conversations or understand project context. Quil fills this gap by auto-resuming conversations by session ID and exposing panes to AI agents, so they can read output and send commands without manual copy-paste—a practical speed gain for teams leaning on AI coding tools.

  • What to watch

    The tool ships with built-in typed panes for Claude Code, OpenCode, lazygit, k9s, lazysql, SSH, and Stripe CLI, and users can define custom pane types in TOML. Installation is one-line on Linux/macOS; the full documentation (keybindings, MCP setup, custom plugins) lives in the repo at docs/README.md. If a pane hangs, `quil restart` or Alt+R recovers it with the AI session intact.

In Depth

Quil is a terminal multiplexer—a tool that lets you split your terminal into multiple panes and tabs—built from the ground up for developers who work with AI assistants. Unlike tmux (the Unix standard), Quil persists your entire workspace across reboots: when you power off your machine and power it back on, typing `quil` restores every tab, pane, working directory, layout split, and AI conversation to exactly where you left it, completing the restoration in roughly 30 seconds. This persistence works because Quil is project-aware and conversation-aware—it saves not just the terminal state but the context of each pane, including the session ID of any AI conversation running there.

The core workflow revolves around typed panes. Instead of generic shells, Quil offers built-in pane types for the tools developers run daily: Terminal (your system shell with live working-directory tracking), Claude Code and OpenCode (AI coding sessions that resume by session ID), lazygit (a Git TUI), k9s (a Kubernetes cluster manager), lazysql (a database client), SSH (persistent remote sessions), and Stripe CLI (for webhook tunnels). Each pane type knows how to restore itself; for example, an SSH pane re-runs the same host, port, and forwards. Users can also define custom pane types in TOML. New panes are created with Ctrl+N, tabs with Ctrl+T, and the command palette (Alt+Shift+P) fuzzy-finds every pane and tab—navigation grouped at the top, all available actions shown below with their keybindings.

The most significant feature for AI-native teams is MCP (Model Context Protocol) integration. By adding Quil to an AI client's MCP config (Claude Desktop, Claude Code, Cursor, or VS Code Copilot), developers give the AI assistant access to terminal actions: list_panes, read_pane_output, send_to_pane, watch_notifications, screenshot_pane, and 12 additional tools. This means an AI assistant can autonomously read the output of a failed build in one pane, react to the error, and send a fix command to another pane—all without the developer copying and pasting. For teams with high session counts, this eliminates a major friction point.

Recovery is built in. If a pane hangs, `quil restart` escalates through stop → fresh start → tabs restored from the last snapshot, or Alt+R restarts a single stuck pane in place with its AI session intact. Installation is one-line on Linux/macOS (`curl -sSfL https://raw.githubusercontent.com/artyomsv/quil/master/scripts/install.sh | sh`), downloadable on Windows, or via `go install` for Go users. The tool is licensed MIT and comes with comprehensive documentation covering installation, quick-start, keybindings, MCP setup, custom plugins, architecture (24 ADRs), and a roadmap.

Context & Analysis

Quil addresses a specific friction point in modern development: as teams adopt AI-native workflows (pairing with Claude, OpenAI, or other LLM-powered coding tools), they often run multiple long-lived sessions—an AI coding window, a build watcher, a webhook tunnel, an SSH connection—across many projects. Traditional terminal multiplexers like tmux can preserve shell state but do not understand AI conversations or provide a structured way for agents to interact with the terminal. Quil changes that by introducing typed panes (which know their purpose and restore strategy), session-aware resumption (so an AI conversation picks up exactly where it left off), and MCP integration (so an AI assistant can autonomously read pane output and send commands). For developers juggling 5–10 sessions per project, this means fewer manual context switches and less copy-pasting of error logs or command output to the AI—the AI can see and act on your terminal directly. The tool's availability across Linux, macOS, and Windows, combined with one-line install and a command palette, lowers the barrier to adoption.

FAQ

What happens to my AI conversations when I reboot my machine?
Quil auto-resumes AI conversations by session ID across reboots. When you type `quil` after restarting, every tab, pane, working directory, layout split, and AI conversation is restored to exactly where you left it in roughly 30 seconds.
How does an AI assistant use Quil?
You add Quil to your AI client's MCP config (e.g., Claude Desktop, Claude Code, Cursor, VS Code Copilot). The AI then has access to tools like list_panes, read_pane_output, send_to_pane, and screenshot_pane, allowing it to read build output and react to errors without manual copy-paste.
What integrations are built in?
Quil ships with typed panes for Terminal, Claude Code, OpenCode, lazygit, k9s, lazysql, SSH, and Stripe CLI. Each opens from Ctrl+N; external tools appear only if that binary is on your PATH. You can also define custom pane types in TOML.

Get AI news like this every morning

AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.

Free · takes 30 seconds · unsubscribe anytime

Discussion

No discussion yet for this article

Stay ahead with AI news

Get curated AI news from 200+ sources delivered daily to your inbox. Free to use.

Get Started Free

Free · takes 30 seconds · unsubscribe anytime