Design, manage, and automate terminal workspaces β for cmux and Ghostty.
Save layouts by name. Restore them anytime. Switch between them in seconds. Resume AI coding sessions mid-conversation. Launch workspaces from Alfred. π¦βπ₯
|
πΎ Save & Restore π¦ 16 Templates π Markdown Blueprints |
π€ AI Auto-Detection π Alfred Integration NEW β‘ Auto-Accept NEW |
brew install drolosoft/tap/crex # install
crex setup # first-run wizard (ships a demo layout)
crex restore demo # try the bundled example β safe anywhere
crex save my-day # snapshot your layout
crex restore my-day # bring it all back
crex pop # instant workspace picker (Ctrl+G)Also available via
go install github.com/drolosoft/cmux-resurrect/cmd/crex@latest. See Building.
Type crex pop or hit Ctrl+G β a floating picker with fuzzy search across all layouts, templates, and individual workspaces.
Tab into any layout to browse its workspaces:
Search and restore workspaces directly from Alfred. Type crex + your query β every saved workspace is searchable by name.
| Key | Action |
|---|---|
| Enter | Restore workspace |
| Cmd+Enter | Restore full layout |
| Alt+Enter | Show layout details |
| Ctrl+Enter | Open TOML file |
Works with both cmux and Ghostty. See Alfred setup guide for installation.
crex template use ide16 built-in templates β from simple splits to monitoring dashboards. See the Template Gallery.
crex save detects running AI sessions and captures their session IDs. On restore, each resumes exactly where you left off.
crexβ― save my-day
π¦ my-day
7 π§© drolosoft π
βββ claude --resume 90d6d97b... β
βββ βright π https://drolosoft.com/
π Homepage π
βββ npm run dev
βββ βright nvim CLAUDE.md β
βββ βright π http://localhost:3000/
15 tools supported: Claude Code, OpenCode, Codex, Amp, Gemini CLI, Copilot, Grok, Cursor, Aider, and more. Any foreground process (npm, nvim, htop) is also detected and restored.
And it works both ways β crex skill install teaches Claude Code and Codex to drive crex themselves: snapshot before risky changes, restore layouts non-interactively, resume sessions. See crex skill.
Configure auto-accept to skip permission prompts on restore β agents start in autonomous mode automatically.
crex tui β a REPL with browse mode, numbered items, history, and tab completion.
| Backend | Status | Detection |
|---|---|---|
| cmux | Full support | Auto-detected via CMUX_SOCKET_PATH, verified alive (falls back to a running Ghostty if the socket is dead) |
| Ghostty | Full support | Auto-detected when running |
macOS only. Both backends auto-detected β same commands, same templates, same Blueprints. Per-pane working directories work on both; exact split geometry is cmux-only for now (backend differences).
| cmux native | crex | |
|---|---|---|
| π | Restores last session on relaunch | Named layout library β switch between saved layouts |
| π | No templates | 16 built-in templates |
| π | JSON snapshots | Markdown Blueprints β Obsidian-compatible |
| π | AI tools via hooks | Any foreground process β npm, vim, htop, all detected |
| β‘ | Automatic on relaunch | On-demand β filter, dry-run, restore specific workspaces |
| β±οΈ | Saves on quit | Watch daemon β background auto-save |
| Commands | Full command reference |
| Templates | 16 built-in templates with diagrams |
| Blueprints | Markdown workspace definitions |
| Alfred | Alfred workflow setup |
| Configuration | config.toml, auto-accept, env vars |
| Auto-Save | Daemon, shell hooks, launchd |
| Shell Completion | bash, zsh, fish setup |
| Workflows | Save/Restore vs Import comparison |
| Building | Build from source |
Contributions welcome β bug fixes, templates, feature ideas. Open an issue or PR.
If crex saves your sessions, a β helps others discover it.
MIT License Β· Forged by Drolosoft Β· Tools we wish existed







