Practical patterns for using RMUX day-to-day — overnight agents, parallel features, long test suites, and more.
These are the patterns RMUX users reach for most often. Each one starts
from a project directory that already has an environment (rmux new has
been run at least once).
Start a large refactoring or migration task, go to sleep, check results in
the morning.
Copy
Ask AI
cd my-projectrmux workspace attach# Inside the remote terminal, give the agent a big task:claude# Once the agent is working, detach:# Ctrl+B, then D# Close your laptop and go to sleep.
The next morning:
Copy
Ask AI
cd my-projectrmux workspace attach# Full scrollback shows everything the agent did overnight.
Use rmux env down when you are done to stop compute costs. The
workspace state is preserved — run rmux new in the same directory to
resume later.
Run multiple agents on different features at the same time. Each workspace
gets its own git worktree, so agents do not create merge conflicts.
Copy
Ask AI
# Create isolated workspacesrmux workspace new feature-authrmux workspace new feature-paymentsrmux workspace new fix-ci# Start an agent in each onermux workspace attach feature-auth# Start Claude Code, give it the auth task, detachrmux workspace attach feature-payments# Start another Claude instance, detachrmux workspace attach fix-ci# Start Codex for CI fixes, detach
Run your full test suite on the remote VM while you keep working locally.
Copy
Ask AI
# Send the test command without attachingrmux workspace run bun test# Or create a dedicated workspace for itrmux workspace new testsrmux workspace run -w tests bun test -- --coverage
Start work at the office, close your laptop, reconnect from home (or your
phone, or a different machine).
Copy
Ask AI
# At the office:cd my-projectrmux workspace attach# Work, then close your laptop and leave.# At home, on a different machine:cd my-projectrmux workspace attach# Same session, same scrollback, same running processes.
RMUX stores the project-to-environment binding in .rmux/state.json
inside the project directory. As long as you are in the same local
directory, RMUX finds the right remote environment.
rmux workspace new review-pr-42rmux workspace attach review-pr-42# Inside: git fetch && git checkout pr-branch# Run the app, inspect the code, then detach# Clean up when donermux workspace rm review-pr-42