Skip to content

DraftMux: Polish Agent-Written PR Descriptions Before Posting

AINewss Editorial Team

DraftMux is an open-source editor for the PR descriptions, issues and Slack updates your coding agent writes. Based on the project README, this guide covers install commands, the /draftmux handoff, agent support and the tool's real boundaries. Install commands and platform requirements come straight from the repository.

View 2 references
0 views 0 likes

Allow the functional cookie to save your likes. Privacy details

A desktop text editor showing a pull request description beside a live GitHub preview

What is DraftMux?

DraftMux is a desktop editor for refining text that a coding agent has already written, such as a pull request description, an issue or a Slack update. You hand the message off from Claude Code or pi, edit it next to a live preview of the destination, then pass the finished text back to the original agent.

The premise is specific: the agent has the context, so it should write the first draft, but refining that draft inside a terminal chat is awkward. DraftMux supplies the editing surface. It is free, MIT licensed, and built by Raine Virta; the project README is the authoritative source for its behaviour.

It is not a general Markdown editor. It is a last-mile tool for agent-written messages.

How does DraftMux get the first draft?

The /draftmux command forks your current coding session, and that fork writes the first draft from the conversation you have already had. Your original session is untouched, and the fork knows what you were working on. The fork inherits your context but not your repository permissions.

The mechanics differ by agent:

  • With pi, each draft gets its own pi session forked from yours, or converted from a Claude Code transcript. DraftMux drives it through pi RPC mode with your own configuration, logins and skills. A bundled extension limits edits to the draft file.
  • With Claude Code, the draft continues your conversation in its own session. Claude Code may read files but edit only the draft. It runs without your hooks or MCP servers, though env and apiKeyHelper settings still apply, and it keeps CLAUDE.md and .claude/rules files.
  • Selection actions run in a throwaway fork with tools blocked, so a one-click rewrite cannot change your repository.

This isolation is the core design choice: the draft is editable, the repository is not.

How do you install DraftMux?

The install script fetches the latest release and links the draftmux command, which the Claude Code and pi skills need. Make sure the install directory is on your PATH before using the command. The README warns that the command-line tool needs an unsandboxed shell to reach the app.

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

On Windows, the README specifies PowerShell instead:

irm https://raw.githubusercontent.com/raine/draftmux/main/install.ps1 | iex

Platform requirements from the README:

  • macOS: Apple silicon, macOS 11 or later; the script installs Draftmux.app in /Applications. Homebrew users can run brew install --cask raine/draftmux/draftmux.
  • Linux: x86_64 or arm64 with glibc 2.35 or later, such as Ubuntu 22.04 or Debian 12; the app installs in ~/.local/lib/draftmux.
  • Windows: x64, version 1803 or later; installs in the local app data folder and adds a Start Menu shortcut.

A .dmg install does not add the command-line tool, so you must choose Install Command Line Tool on first launch.

How do you use DraftMux in a coding session?

Install the skill once, hand off a message from your session, refine it, then tell your agent the draft is done. The whole loop is four steps. You can also open a Markdown file as a draft or start a blank one with the keyboard shortcut.

  1. Install the skill: run draftmux skill install.
  2. Hand off: type /draftmux PR description in Claude Code, or /skill:draftmux PR description in pi.
  3. Edit: work beside the live preview, use selection actions, or ask the draft's agent for changes in chat.
  4. Return: in the same session say done, open the PR. From a different session, run /draftmux done, open the PR. The original agent reads the text with draftmux show and uses it exactly as you left it.

You can also open a Markdown file such as a README as a draft, or press ⌘N for a blank draft with its own agent.

Which agents does DraftMux support?

Drafting is supported only on pi and Claude Code 2.1.293 or later. Editing, previews, copying and GitHub or rich-text Markdown formatting work without either agent installed. Third-party directories list the tool as free and open source, but the drafting step still depends on one of those two agents.

The README is explicit about this split. A draft runs on the agent of the session it came from: pi sessions continue on pi, Claude Code sessions on Claude Code. If you want to draft Claude Code sessions using pi, set Backend to pi in Settings, ask for it in the command, or pass --backend pi to draftmux open.

For teams on other agents, the useful parts are reduced to a standalone Markdown editor with previews. That is a real boundary, not a minor footnote.

How do the previews and selection actions work?

DraftMux renders the same Markdown as GitHub, Slack, rich text or plain text while you write, and lets you apply changes to selected passages only. It also loads alternatives in the background so you can keep typing. Alternatives load without interrupting your typing.

The available interactions are:

  • Select any passage to get rewordings, a shorter or tighter version, or your own custom actions.
  • Ask for changes in chat, either across the whole draft or only the highlighted text.
  • Use inline sentence completion from the draft's agent.
  • Define custom selection actions as plain JSON in settings, for example a More formal rewrite prompt.

Drafts can begin with YAML frontmatter for fields kept apart from the body, such as title for a PR or subject, to and cc for an email.

What are the limits of DraftMux?

DraftMux is narrow by design. It needs a specific pair of coding agents to generate drafts, it runs only on three desktop platforms, and its commands require a shell that is not sandboxed. Drafts and settings are stored locally rather than synced.

Other constraints from the README:

  • No draft agent, no generation. Without pi or a recent Claude Code, you can edit and preview but not produce a context-aware draft.
  • Claude Code drafts lose some settings. Hooks, MCP servers and CLAUDE.local.md are not loaded in the draft's session.
  • Local socket dependency. Commands reach the app through a local socket, so an agent's sandboxed shell may fail to connect; run the command from a normal terminal.
  • No cloud sync described. Settings and drafts live locally in the user's configuration and data directories.

Is DraftMux worth installing?

If you routinely let Claude Code or pi write your PR descriptions and status updates, DraftMux solves a genuine annoyance with little setup. If you use another agent or only need a Markdown preview, there is not much here. Check the supported platforms before committing.

Third-party tool directories recorded a Show HN post for DraftMux on 1 December 2026 and a v0.8.0 release on 27 November 2026 that added find-in-draft with highlighted matches. Those are secondary reports; the README remains the source of truth for features and requirements.

What questions do readers ask about DraftMux?

People ask whether DraftMux is open source, whether it edits their code, and whether it works without an agent session. It is MIT licensed, the draft agent is restricted to the draft file, and editing and previews work standalone, though generating a context-aware draft requires pi or a recent Claude Code.

Is DraftMux open source?

Yes. The repository is MIT licensed, and the README points to a LICENSE file. Installation is free and there are no paid plans listed in the project itself.

Does DraftMux edit my code?

No. The bundled pi extension restricts the draft agent to the draft file, and Claude Code's draft session may read files but edit only the draft. The original session is left untouched.

Can I use DraftMux without an agent session?

Yes, for editing and previewing. Pressing ⌘N opens a blank draft with its own agent, but that still requires one of the two supported agent backends.

References

  1. raine/draftmux on GitHubgithub.com
  2. Draftmux - ai.dosa.dev tool listingai.dosa.dev