█

AI/TLDR

Buy me a coffee
Buy me a coffee

Draftmux

A desktop editor for polishing the PR descriptions, issues and Slack updates your coding agent writes, next to a live preview of where they will land

Coding-Agent Harnesses & RuntimesOpen source
Updated
1 Dec 2026
Language
Rust
License
MIT
Coverage
1 story

What's new

1 Dec 2026

Draftmux launched publicly on Show HN as a desktop editor that forks a pi or Claude Code session into a draft PR description, issue or Slack update, with live previews for GitHub, Slack, rich text and plain text.

Latest news

IN SHORT

What is Draftmux?

Draftmux is an editor for the text a coding agent writes for other people: pull request descriptions, issues, Slack updates and similar messages. It sits in the Coding-Agent Harnesses & Runtimes category of the AI Coding tools and is open-source, written in Rust and licensed MIT. To get started: install Draftmux.

Updated Markdown version ↗

Overview

Draftmux window with a pull request description in Markdown on the left, its GitHub preview in the middle and a pi agent chat on the right, with a Shorten and Tighten menu over a selected sentence
A PR description in Draftmux: Markdown source, GitHub preview and the agent session it came fromDraftmux website ↗

Draftmux is an editor for the text a coding agent writes for other people: pull request descriptions, issues, Slack updates and similar messages. It shows the Markdown source next to a live preview of how the message will look on GitHub, in Slack, as rich text or as plain text, with an agent chat beside both. The project is written in Rust and released under the MIT license, with builds for macOS (Apple silicon), Linux and Windows.

A draft starts from your existing agent conversation. Running `/draftmux` with a topic inside a pi or Claude Code session forks that session, and the fork writes the first draft from what you already discussed, so the agent beside the draft knows the work behind it. You can then edit by hand, ask the agent for changes to the whole draft or only a selected passage, pick alternative wordings for a selection, or use Shorten and Tighten actions.

When the text is ready, you copy it formatted for its target, or hand it back to the agent, which uses the text exactly as you left it — for example to file the issue. Draftmux also opens plain Markdown files as drafts with their own agent session (`draftmux README.md`) and saves the edits back to disk. Editing, previews, copying and Markdown formatting work without an agent.

What it does

  • First draft written by a fork of your current pi or Claude Code session, started with `/draftmux` and a topic
  • Live previews for GitHub, Slack, rich text and plain text next to the Markdown source
  • An agent that edits the whole draft or only a selected passage, plus Shorten, Tighten and background-loaded alternative wordings
  • Sentence completion, inline or as several options
  • Copy formatted for the target, or hand the finished text back to the agent to post it
  • Opens Markdown files as drafts with their own agent session and saves changes back to disk

Getting started

The README offers an install script for macOS and Linux, a Homebrew cask and a PowerShell one-liner for Windows. Drafts written by an agent need pi or Claude Code 2.1.293 or later (Claude Code from the native installer, not the npm package).

Install Draftmux

The script links `draftmux` into `~/.local/bin`, so that directory must be on your PATH. Run it again to update.

bashbash
# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/raine/draftmux/main/install.sh | sh

# macOS (Homebrew)
brew install --cask raine/draftmux/draftmux

# Windows (PowerShell)
irm https://raw.githubusercontent.com/raine/draftmux/main/install.ps1 | iex

Draft from an agent session

Inside a pi or Claude Code session, run `/draftmux` with a topic. Draftmux forks the session and the fork writes the first draft from your conversation; the draft keeps running on the agent it came from.

Open a Markdown file as a draft

Pass a file to open it with its own agent session in the file's directory; edits are saved back to disk.

bashbash
draftmux README.md

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Turn the context of a long coding-agent session into a clear pull request description, then check how it renders on GitHub before posting
  • Rewrite a status update for Slack with the agent that did the work, tightening only the passages that need it
  • Edit a README or other Markdown file with an agent beside it and a live preview

How Draftmux compares

Draftmux alongside other open-source coding-agent harnesses & runtimes tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
CC Switch★ 159kA cross-platform desktop app that manages provider configuration for eight coding-agent CLIs from one place, with a local failover proxy, MCP and skill management, and spend tracking.
Oh My OpenAgent★ 71.3kOpinionated agent bundle for OpenCode and Codex CLI that ships preconfigured sub-agents, lifecycle hooks and built-in MCP servers behind a single ultrawork command.
herdr★ 53.9kA single-binary terminal multiplexer built for coding agents: persistent sessions across local and SSH machines, per-pane working/blocked/idle status, and a socket API agents drive themselves.
oh-my-claudecode★ 41.2kA plugin and CLI that adds multi-agent orchestration to Claude Code: staged autopilot workflows, parallel tmux workers, and advisors that route a second opinion to Codex, Gemini, Grok or Cursor.
DSH Go★ 36.9kA native Android client for DeepSeek Harness that runs the agent on the phone in a built-in Linux environment or drives DSH on your computer or server over SSH, with plugins and phone control.
AionUi★ 34.6kAn open-source desktop workspace that pairs a built-in agent engine with dozens of external CLI agents, adding scheduled runs, MCP tools and remote access from a WebUI or chat apps.
cc-connect★ 16.5kA Go daemon that bridges local coding agents — Claude Code, Codex, Cursor Agent, Gemini CLI, OpenCode, Kimi CLI and more — to Feishu, DingTalk, Slack, Telegram, Discord, LINE and WeCom, so you drive them from chat.
Draftmux—A desktop editor for polishing the PR descriptions, issues and Slack updates your coding agent writes, next to a live preview of where they will land