<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/a-crash-took-my-cmux-workspaces-so-i-built-cmux-resurrect--sqveaqpsa" -->

---
title: A crash took my cmux workspaces. So I built cmux-resurrect.
description: After a cmux crash wiped an hour of carefully arranged workspaces, the author built cmux-resurrect (crex) — a save/restore tool for cmux sessions inspired by...
canonical: https://daily.dev/posts/a-crash-took-my-cmux-workspaces-so-i-built-cmux-resurrect--sqveaqpsa
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: A crash took my cmux workspaces. So I built cmux-resurrect. | daily.dev
og:description: After a cmux crash wiped an hour of carefully arranged workspaces, the author built cmux-resurrect (crex) — a save/restore tool for cmux sessions inspired by...
og:url: https://daily.dev/posts/a-crash-took-my-cmux-workspaces-so-i-built-cmux-resurrect--sqveaqpsa
og:image: https://api.daily.dev/og/posts/SQVEaQpSA.png
og:image:alt: A crash took my cmux workspaces. So I built cmux-resurrect.
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# A crash took my cmux workspaces. So I built cmux-resurrect.

**[Juan Andrés Moreno Rubio](https://daily.dev/sources/gfmimpgjcvvxoigj3n5zw)** · [@txeo](https://daily.dev/txeo) · 2 min read · 1 upvotes · 0 comments

## Summary

After a cmux crash wiped an hour of carefully arranged workspaces, the author built cmux-resurrect (crex) — a save/restore tool for cmux sessions inspired by tmux-resurrect. It captures splits, working directories, pinned tabs, and startup commands, then restores them exactly. A standout feature is Workspace Blueprints, which saves layouts as human-readable Markdown files that can be edited, versioned in git, or opened in Obsidian. Additional features include dry-run mode, reusable templates, and auto-save via launchd. Built in Go, MIT licensed, distributed as a single binary installable via Homebrew.

## Content

Last month a [cmux](https://github.com/manaflow-ai/cmux) crash wiped an hour of carefully arranged workspaces — splits, commands, everything. Gone.

I looked for a recovery tool. **There wasn't one. **(At the time I started. Now there are few [tries/workarounds](https://github.com/manaflow-ai/cmux/issues/1984) on the go)

If you've used tmux, you might know [tmux-resurrect](https://github.com/tmux-plugins/tmux-resurrect) — it lets you save and restore your entire tmux session across reboots (12K+ stars, essential for any serious tmux workflow). cmux had nothing like it. Inspired by this project, I built one: [**cmux-resurrect**](https://github.com/drolosoft/cmux-resurrect). (The command is `crex` for short.)

`crex save` — captures your entire layout: splits, working directories, pinned tabs, startup commands.

`crex restore` — brings it all back exactly as it was.

But here's what I'm most excited about: **Workspace Blueprints**:Your layouts become human-readable Markdown files — edit them by hand, version them in git, or open them in Obsidian. Your terminal layout,_ human-readable _and_ shareable._

It also has **dry-run mode** (preview before restoring), **reusable templates**, and **auto-save** via launchd.

Built in Go. MIT licensed. **Single binary**. Homebrew installable.

Huge thanks to the [cmux](https://github.com/manaflow-ai/cmux) team for building such a clean public API — crex wouldn't exist without it — and to [tmux-resurrect](https://github.com/tmux-plugins/tmux-resurrect) for proving this idea works.

If you've ever lost a cmux session and spent 20 minutes rebuilding it — this is for you. 🔗 [github.com/drolosoft/cmux-resurrect](https://github.com/drolosoft/cmux-resurrect)

## Similar posts on daily.dev

- [A deep dive into cmux](https://daily.dev/posts/a-deep-dive-into-cmux-cy5qgzdpv) · Flavio Copes · 1 upvotes · 0 comments
- [cmux — The terminal built for multitasking, organization, and programmability](https://daily.dev/posts/cmux-the-terminal-built-for-multitasking-organization-and-programmability-xafzhkyws) · Reid Burke · 7 upvotes · 1 comments
- [Show HN: Remux – an open-source tmux workspace designed for iPhone](https://daily.dev/posts/show-hn-remux-an-open-source-tmux-workspace-designed-for-iphone-8pvm455t3) · Hacker News · 0 upvotes · 0 comments

---

Tags: [#authentication](https://daily.dev/tags/authentication), [#golang](https://daily.dev/tags/golang)

[View this post on daily.dev](https://daily.dev/posts/a-crash-took-my-cmux-workspaces-so-i-built-cmux-resurrect--sqveaqpsa)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/a-crash-took-my-cmux-workspaces-so-i-built-cmux-resurrect--sqveaqpsa","headline":"A crash took my cmux workspaces. So I built cmux-resurrect.","text":"After a cmux crash wiped an hour of carefully arranged workspaces, the author built cmux-resurrect (crex) — a save/restore tool for cmux sessions inspired by tmux-resurrect. It captures splits, working directories, pinned tabs, and startup commands, then restores them exactly. A standout feature is Workspace Blueprints, which saves layouts as human-readable Markdown files that can be edited, versioned in git, or opened in Obsidian. Additional features include dry-run mode, reusable templates, and auto-save via launchd. Built in Go, MIT licensed, distributed as a single binary installable via Homebrew.","url":"https://daily.dev/posts/a-crash-took-my-cmux-workspaces-so-i-built-cmux-resurrect--sqveaqpsa","datePublished":"2026-04-05T19:40:55.035Z","dateModified":"2026-10-14T02:24:26.565Z","author":{"@type":"Person","name":"Juan Andrés Moreno Rubio","url":"https://daily.dev/txeo","image":"https://lh3.googleusercontent.com/a/AAcHTtdKeLrhLLCaqQYFjJrtjeWCk4iHnZ9XzjsC33y92WCYfZ-_=s96-c","description":"Technical Consultant \u0026 full-stack dev with experience in Go, Node+React, and HTMX for modern apps. ","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":60}},"image":"https://media.daily.dev/image/upload/s--qkWf15sN--/f_auto/v1775418055/posts/SQVEaQpSA?_a=BAMAMiWQ0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/gfmimpgjcvvxoigj3n5zw","name":"Juan Andrés Moreno Rubio"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Juan Andrés Moreno Rubio","item":"https://daily.dev/sources/gfmimpgjcvvxoigj3n5zw"},{"@type":"ListItem","position":3,"name":"A crash took my cmux workspaces. So I built cmux-resurrect."}]}
```

