# 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

- Category: AI Coding / Coding-Agent Harnesses & Runtimes
- Language: Rust
- Licence: MIT
- Repository: https://github.com/raine/draftmux
- Website: https://draftmux.raine.dev
- Canonical page: https://ai-tldr.dev/tools/draftmux/
- Updated: 2026-12-01

## In short

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.

## Overview

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).

1. Install Draftmux

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

```bash
# 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
```

2. 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.

3. 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.

```bash
draftmux README.md
```

## 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

## Version history

- 2026-12-01: 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.
