Draftmux
Desktop editor and CLI for refining PR descriptions, issues and Slack updates drafted by coding agents, with live destination previews.
At a Glance
MIT-licensed desktop editor and CLI, free to use, copy, modify and distribute. Drafts are written by pi or Claude Code, which are separate external tools with their own costs.
Engagement
Available On
Listed Dec 2026
About Draftmux
Draftmux is an MIT-licensed desktop editor and CLI by Raine Virta for polishing text that a coding agent writes before it goes out. A message is handed off from a Claude Code or pi session and opens beside a live preview of how it will look on GitHub, in Slack, as rich text or as plain text. The latest release listed is v0.8.0, with builds for Linux, macOS and Windows.
What It Is
Draftmux is an editor built for iterating on a message with an agent, instead of refining it in an agent harness chat UI. The agent already knows the context of your session, so it writes the PR description, issue, Slack update or email, and you refine it in Draftmux. Markdown drafts are edited by hand, with a preview of the destination format shown alongside.
How the Workflow Runs
After installing the agent skill with draftmux skill install, you run /draftmux PR description in Claude Code, or /skill:draftmux PR description in pi. A fork of that session writes the first draft, and your original session is left untouched. In the editor you can change the text by hand, select a passage to get alternatives, shorten or tighten it, or ask the draft's agent for changes in chat. A chat message with text selected changes only that part. Sentence completion finishes a started sentence inline or offers a few ways to continue. When the draft is ready, you copy it formatted for the target, or tell your original agent something like "done, open the PR" and it reads the text with draftmux show.
Files and Standalone Drafts
Opening a README or any Markdown file with draftmux README.md creates a draft with its own agent session in the file's directory, and the result can be saved back. ⌘N opens a blank draft with its own agent for messages that don't come from a coding session. Drafts can carry YAML frontmatter for fields such as title, subject, to and cc. Custom selection actions can be defined in a JSON settings file.
Agents and Setup
Drafts are written by pi or Claude Code 2.1.293 or later; editing, previews, copying and Markdown formatting of GitHub and rich-text drafts work without either. A draft runs on the agent of the session it came from, and a backend can be set to pi in Settings or per draft. With pi, Draftmux uses its RPC mode and your own config, so logins, models and skills apply. With Claude Code, the draft runs in its own session without your hooks or MCP servers, keeping CLAUDE.md files and rules. Install is via a curl script, a PowerShell script on Windows, or Homebrew cask on macOS.
Collections
Popular collections
- Find the Ways Your AI App Can Fail Before Launch
Collection by @samirhaddad
- Give Your AI Agent the Meaning Behind Your Database
Collection by @danielokafor
- Black Friday 2026: Learn with AI
Collection by @evtuff
- Black Friday 2026: Coding Agent Tools
Collection by @samofcode
Add Draftmux to one of your collections.
Community Discussions
Be the first to start a conversation about Draftmux
Share your experience with Draftmux, ask questions, or help others learn from your insights.
Pricing
Open Source
MIT-licensed desktop editor and CLI, free to use, copy, modify and distribute. Drafts are written by pi or Claude Code, which are separate external tools with their own costs.
- MIT License
- Desktop editor plus draftmux CLI
- Live previews for GitHub, Slack, rich text and plain text
- Selection actions and chat with the draft's agent
- Available for macOS, Linux and Windows
Capabilities
Key Features
- Hand-off from Claude Code or pi sessions that forks the conversation to write the first draft
- Live previews as GitHub, Slack, rich text or plain text
- Selection actions for alternatives, shorten and tighten, plus custom actions
- Chat with the draft's agent on the whole draft or selected passages
- Inline sentence completion
- Copy formatted for the target or hand back to the original agent
- Open Markdown files as drafts and save them back
- Blank drafts with their own agent
- YAML frontmatter fields such as title, subject, to and cc
- Choice of pi or Claude Code backend
