Independent AI intelligence Two editions daily · ET
Fervor AI

Analysis · December 2, 2026 · repo

DraftmuxClaude Codeclaude-codeagent-harnessai-skills

Draftmux Turns AI Drafts Into Human-Approved PR Descriptions

A free, open-source editor that hands your coding agent's draft to you, shows it the way GitHub or Slack will, and sends back exactly what you approved.

The most-read thing a coding agent produces is often not the code. It is the pull request description your reviewer reads first, and it usually goes out after a quick squint in a terminal window. That squint is the only human check between your agent and the people who read its words.

The same goes for the issue a teammate picks up next week and the Slack update your manager skims on a phone. Agents are good at writing these, because they were in the room for the work. They know which files changed and which dead end they hit at 3 p.m.

But the review step is clumsy. You type "make it shorter" a few times, guess how the Markdown will look on GitHub, and then tell the agent to post it. The draft is the last thing between your agent and other people, and most of us review it in a tool built for something else.

Draftmux is a small open-source app that fixes that one step. It also shows something worth thinking about for any agent workflow: the editing pass is a checkpoint, and the details of how that checkpoint works decide what it protects.

What Draftmux is

Draftmux is a free desktop editor, MIT licensed, built by Raine Virta and released as v0.8.0 on November 27, 2026. Its Show HN post on December 1 drew more than 200 points on Hacker News. It is young (around 160 stars when I checked on December 2), so treat it as a sharp new tool rather than settled infrastructure.

The README states the pitch plainly: your agent "knows the context, so it should be the one writing the PR description, the issue or the Slack update. But refining that message inside" a chat window "sucks."

Here is the loop, in plain terms:

  1. In a Claude Code or pi session (pi is an open-source terminal coding agent), you type /draftmux PR description.
  2. Draftmux opens with a first draft written by a copy of your session, so it already knows what you worked on.
  3. You edit it beside a live preview of how it will look on GitHub, in Slack, as rich text or as plain text.
  4. You go back to your session and say something like done, open the PR. Your original agent picks up the text exactly as you left it.

That last step matters most in the design. The thing that gets posted is your edited text, not a fresh rewrite by the agent.

The checkpoint, and how it is built

Think of Draftmux as a holding pen. The agent's words go in, you work on them, and only your approved version comes out. A holding pen is only as good as its fences, so it is worth reading how this one is built. The README is unusually clear about it.

The draft runs in its own session. When you hand off from Claude Code, the draft "continues your conversation in its own Claude Code session," and "your original session is untouched." For pi, each draft gets its own forked pi session. You can wreck a draft without touching the session that did the real work.

The draft agent may read files but edit only the draft. On Claude Code, the README says it "may read files but edit only the draft." On pi, a bundled extension "limits edits to the draft file," and the code shows exactly what that means: it blocks pi's edit and write tools outside the draft, while its own instructions say "read, bash and other tools work as usual for checking facts." So the draft agent can look at your code to get details right, and its file-editing tools stay on the draft. On pi that is a fence around two tools, not a sandbox, because a shell command can still touch anything your user can.

It runs without your hooks or MCP servers. (Hooks are scripts Claude Code runs before or after tool calls, often as safety checks; MCP servers are plug-ins that give an agent tools like Slack or GitHub.) This one cuts both ways. The Claude Code draft session runs "without your Claude Code hooks, MCP servers or other settings," keeping only the env and apiKeyHelper entries in your user settings.json so your gateway or API key still works. It does keep the CLAUDE.md files and .claude/rules your session loaded. In practice, the draft agent cannot post to Slack or open a PR through an MCP tool on its own, which is good. But any safety hook you rely on in your main session does not run in the draft session either.

Quick rewrites have no tools at all. When you select a passage and ask for a shorter or tighter version, that runs "in a throwaway copy of the conversation with no tools." Rewording a sentence cannot touch anything else.

The handoff is one line. Your original agent reads the finished draft with draftmux show, which is what makes "done, file the issue" work.

The design puts the risky actions, posting and filing, back with your main agent, where your usual rules apply, and keeps the draft agent's editing tools pointed at a text file. That is a sensible split. Just know which side of it each of your protections lives on.

Put this into practice

The lowest-friction setup takes about five minutes. Check the platform notes first: on macOS it needs Apple silicon and macOS 11 or later, on Linux x86_64 or arm64 with glibc 2.35 or later (glibc is the system C library; in practice, Ubuntu 22.04 or Debian 12 and newer), and on Windows x64 Windows 10 version 1803 or later.

Step 1: install. The README offers a script or Homebrew. The script pipes a remote file into your shell, so read it first if your team has rules about that. It does check each download against the release's checksum file, and setting DRAFTMUX_VERSION installs a specific release instead of the latest, for example curl -fsSL https://raw.githubusercontent.com/raine/draftmux/main/install.sh | DRAFTMUX_VERSION=0.8.0 sh. The checksum guards against a corrupted download, not against a compromised release, since both files come from the same place.

# macOS with Homebrew
brew install --cask raine/draftmux/draftmux

# or the install script (macOS and Linux)
curl -fsSL https://raw.githubusercontent.com/raine/draftmux/main/install.sh | sh

The script links the draftmux command into ~/.local/bin, so make sure that folder is on your PATH. If you install from the .dmg instead, open the app and choose Draftmux › Install Command Line Tool…, or your agent will not find the command.

Step 2: install the agent skill. This teaches Claude Code and pi the /draftmux command:

draftmux skill install

Drafting needs Claude Code 2.1.293 or later, or pi. Editing, previews and copying work without either.

Step 3: hand off your next PR description. At the end of a working session:

/draftmux PR description

In pi, the command is /skill:draftmux PR description. Draftmux opens with a draft. Switch the preview to GitHub, fix what reads wrong, and use selection actions (select text, pick "Shorten" or "Tighten") for the fiddly bits.

Step 4: send it back. In the same session:

done, open the PR

From a different session, the README's form is /draftmux done, open the PR.

Step 5: add your own one-click edits. Settings save as plain JSON in ~/.config/draftmux. A selection action is just a name and a prompt:

"selection_actions": [
  { "name": "Plain English", "prompt": "Rewrite for a reader who did not see the code. Keep every fact." }
]

You can also set a cheaper drafting model, such as sonnet, in Settings, so polishing a Slack update does not run on your most expensive model.

Two smaller features worth knowing. A draft can start with YAML frontmatter (a short block of key: value lines at the top of the file) for fields kept apart from the body, such as title for a PR or issue, or subject, to and cc for an email, so the title gets the same editing pass as the description. And Draftmux works on plain files too: draftmux README.md opens that file as a draft with its own agent session in the file's folder, and you save it back when you are done. That makes it a decent way to clean up the README an agent wrote last week.

Pick the agent per draft if you need to. A draft runs on the agent of the session it came from, but you can send a Claude Code session to pi instead, converted from the transcript, by setting Backend to pi in Settings (globally or for one folder) or by passing --backend pi to draftmux open. Or ask the skill directly: /draftmux PR description, on pi. A draft stays on the agent it started with.

What to expect: the first draft comes from the session that did the work, so it starts with the details already in it. The bigger change is seeing the rendered result before anyone else does. The preview is where a broken bullet list or a code block that swallowed half the message shows up, before your reviewer finds it.

Honest limitations

Your agent's sandbox can block it. The README says draftmux commands talk to the app through a local socket, "so they need to run outside an agent's shell sandbox." If your agent runs commands in a sandbox, the handoff may fail with a "can't connect to draftmux.sock" error until you run the command from a normal shell. That is the correct behavior for a sandbox and an annoying one for a workflow.

Your hooks do not follow the draft, and pi's fence is narrow. The Claude Code draft session skips hooks and MCP servers, and on pi only the edit and write tools are held to the draft file; bash still works. If your safety rules live in hooks, they protect your main session, not the draft agent. The draft agent can still read files, so anything sensitive it reads could end up in a draft. You are the filter there.

It costs model usage. Each draft runs a real agent session on your account, so the cost depends on your backend, model and plan. A drafting model setting helps, but it is not free.

Windows has extra rules. On Windows, Claude Code drafts need Claude Code's native installer, not the npm package, and the install should run in your own PowerShell window rather than an agent's shell.

It is new. v0.7.0 shipped November 25 and v0.8.0 two days later. Expect fast changes, and re-read the README before you build a team process on any detail above.

It does not judge the content. Draftmux shows you what the message will look like. It does not tell you whether the claims in it are true. If the agent says "all tests pass," that is still your job to check.

The editing pass is the review

A lot of energy goes into reviewing the code agents write. Much less goes into the words they send to people, even though those words shape how the code gets reviewed, merged and remembered.

Draftmux makes that pass deliberate: a separate session, a real preview, and your exact text going out. Try it on your next three PR descriptions, and notice how often the version you approve differs from the one the agent would have posted.

Sources: raine/draftmux README at v0.8.0 (read on main December 2, 2026), pi extension at v0.8.0, install.sh at v0.8.0, releases (v0.8.0, November 27, 2026; v0.7.0, November 25, 2026), LICENSE (MIT), draftmux.raine.dev, Show HN thread, pi.